angular-docs-cn/packages/language-service
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
..
bundles build: Add entry point for Ivy language service (#36864) 2020-05-01 10:02:03 -07:00
ivy feat(language-service): [ivy] wrap ngtsc to handle typecheck files (#36930) 2020-05-08 14:42:11 -07:00
src feat(compiler): add name spans for property reads and method calls (#36826) 2020-05-08 14:42:42 -07:00
test feat(compiler): add name spans for property reads and method calls (#36826) 2020-05-08 14:42:42 -07:00
BUILD.bazel build: Add entry point for Ivy language service (#36864) 2020-05-01 10:02:03 -07:00
index.ts build: roll up to named .js files rather than 'index.js' (#19190) 2017-09-19 16:59:18 -07:00
language-service.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00
package.json build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00