angular-cn/packages/language-service/test
Keen Yee Liau adb562bca6 fix(language-service): create StaticReflector once only (#32543)
The creation of StaticReflector in createMetadataResolver() is a very expensive operation because it involves numerous module resolutions.
To make matter worse, since the API of the Reflector does not provide the ability to invalidate its internal caches, it has to be destroyed and recreated on *every* program change.
This has a HUGE impact on performance.
This PR fixes this problem by carefully invalidating all StaticSymbols in a file that has changed, thereby reducing the overhead of recomputation on program change.

PR Close #32543
2019-10-03 15:02:03 -07:00
..
project fix(language-service): Turn on strict mode for test project (#32783) 2019-10-01 11:01:01 -07:00
BUILD.bazel test(language-service): Create proper test project (#32653) 2019-09-18 13:07:01 -07:00
completions_spec.ts fix(language-service): Turn on strict mode for test project (#32783) 2019-10-01 11:01:01 -07:00
definitions_spec.ts test(language-service): Remove MockTypescriptHost.readFileContent() (#32782) 2019-09-30 14:16:03 -07:00
diagnostics_spec.ts fix(language-service): Turn on strict mode for test project (#32783) 2019-10-01 11:01:01 -07:00
hover_spec.ts feat(language-service): module definitions on directive hover (#32763) 2019-10-02 13:26:30 -07:00
html_info_spec.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
language_service_spec.ts test(language-service): remove MockData from MockTypescriptHost (#32752) 2019-09-18 15:29:25 -07:00
reflector_host_spec.ts test(language-service): remove MockData from MockTypescriptHost (#32752) 2019-09-18 15:29:25 -07:00
template_references_spec.ts test(language-service): remove MockData from MockTypescriptHost (#32752) 2019-09-18 15:29:25 -07:00
template_spec.ts test(language-service): remove MockData from MockTypescriptHost (#32752) 2019-09-18 15:29:25 -07:00
test_utils.ts fix(language-service): Turn on strict mode for test project (#32783) 2019-10-01 11:01:01 -07:00
ts_plugin_spec.ts test(language-service): remove MockData from MockTypescriptHost (#32752) 2019-09-18 15:29:25 -07:00
typescript_host_spec.ts fix(language-service): create StaticReflector once only (#32543) 2019-10-03 15:02:03 -07:00
utils_spec.ts refactor(language-service): Omit typechecking for finding directives (#32156) 2019-08-16 09:58:28 -07:00