angular-cn/packages/compiler/test/render3
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
..
util style(compiler): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
view style(compiler): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
BUILD.bazel build: derive ts_library dep from jasmine_node_test boostrap label if it ends in `_es5` (#34736) 2020-01-15 14:58:07 -05:00
README.md feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
r3_ast_absolute_span_spec.ts feat(compiler): add name spans for property reads and method calls (#36826) 2020-05-08 14:42:42 -07:00
r3_ast_spans_spec.ts style(compiler): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
r3_template_transform_spec.ts style(compiler): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00
style_parser_spec.ts style(compiler): reformat of codebase with new clang-format version (#36520) 2020-04-08 14:51:08 -07:00

README.md

Tests in this directory are excluded from running in the browser and only run in node.