angular-docs-cn/packages/language-service
Keen Yee Liau 8f349b2375 fix(compiler): source span for microsyntax text att should be key span (#38766)
In a microsyntax expressions, some attributes are not bound after
desugaring. For example,
```html
<div *ngFor="let item of items">
</div>
```
gets desugared to
```html
<ng-template ngFor let-items [ngForOf]="items">
</ngtemplate>
```
In this case, `ngFor` should be a literal attribute with no RHS value.
Therefore, its source span should be just the `keySpan` and not the
source span of the original template node.
This allows language service to precisely pinpoint different spans in a
microsyntax to provide accurate information.

PR Close #38766
2020-09-10 14:31:23 -07:00
..
bundles
ivy fix(compiler): source span for microsyntax text att should be key span (#38766) 2020-09-10 14:31:23 -07:00
src refactor(compiler): element.startSourceSpan is required (#38581) 2020-09-02 14:47:28 -07:00
test feat(compiler-cli): add support for TypeScript 4.0 (#38076) 2020-08-24 13:06:59 -07:00
BUILD.bazel
build.sh
index.ts
language-service.ts
package.json