angular-cn/packages/compiler-cli/test/ngtsc
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
..
fake_core build: simplify package.jsons for all of our packages (#36944) 2020-05-06 13:54:26 -07:00
BUILD.bazel test: handle bootstrap templated_args in jasmine_node_test defaults.bzl (#34736) 2020-01-15 14:58:07 -05:00
component_indexing_spec.ts style(compiler-cli): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
env.ts fix(compiler-cli): don't try to tag non-ts files as shims (#36987) 2020-05-07 14:45:05 -07:00
incremental_error_spec.ts style(compiler-cli): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
incremental_spec.ts perf(compiler-cli): perform template type-checking incrementally (#36211) 2020-05-05 18:40:42 -07:00
modulewithproviders_spec.ts style(compiler-cli): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
monorepo_spec.ts perf(compiler-cli): split Ivy template type-checking into multiple files (#36211) 2020-05-05 18:40:42 -07:00
ngtsc_spec.ts fix(compiler-cli): don't try to tag non-ts files as shims (#36987) 2020-05-07 14:45:05 -07:00
scope_spec.ts style(compiler-cli): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
sourcemap_utils.ts style(compiler-cli): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
template_mapping_spec.ts style(compiler-cli): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
template_typecheck_spec.ts feat(compiler): add name spans for property reads and method calls (#36826) 2020-05-08 14:42:42 -07:00