angular-cn/packages/language-service/test
Ayaz Hafiz eb34aa551a feat(compiler): add name spans for property reads and method calls (#36826)
ASTs for property read and method calls contain information about
the entire span of the expression, including its receiver. Use cases
like a language service and compile error messages may be more
interested in the span of the direct identifier for which the
expression is constructed (i.e. an accessed property). To support this,
this commit adds a `nameSpan` property on

- `PropertyRead`s
- `SafePropertyRead`s
- `PropertyWrite`s
- `MethodCall`s
- `SafeMethodCall`s

The `nameSpan` property already existed for `BindingPipe`s.

This commit also updates usages of these expressions' `sourceSpan`s in
Ngtsc and the langauge service to use `nameSpan`s where appropriate.

PR Close #36826
2020-05-08 14:42:42 -07:00
..
project test(language-service): Add method to override inline template (#36890) 2020-05-04 12:50:47 -07:00
BUILD.bazel build(language-service): make test project a filegroup (#36865) 2020-05-01 10:02:34 -07:00
completions_spec.ts test(language-service): Add method to override inline template (#36890) 2020-05-04 12:50:47 -07:00
definitions_spec.ts feat(compiler): add name spans for property reads and method calls (#36826) 2020-05-08 14:42:42 -07:00
diagnostic_messages_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
diagnostics_spec.ts feat(compiler): add name spans for property reads and method calls (#36826) 2020-05-08 14:42:42 -07:00
expression_diagnostics_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
global_symbols_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
hover_spec.ts feat(compiler): add name spans for property reads and method calls (#36826) 2020-05-08 14:42:42 -07:00
html_info_spec.ts build: update jasmine to 3.5 (#34625) 2020-04-08 12:10:34 -07:00
language_service_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
mocks.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00
reflector_host_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
test_utils.ts test(language-service): Add method to override inline template (#36890) 2020-05-04 12:50:47 -07:00
ts_plugin_spec.ts test(language-service): remove ng-if-cases.ts (#36470) 2020-04-07 11:34:38 -07:00
typescript_host_spec.ts test(language-service): Add method to override inline template (#36890) 2020-05-04 12:50:47 -07:00
typescript_symbols_spec.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00
utils_spec.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00