mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
When parsing expressions inside a bound attribute, we offset all of its spans by an `absoluteOffset` in order to get the right spans in the source file. The offset was incorrect when parsing an attribute with leading spaces during the construction of the Ivy AST, because of the combination of: 1. We were setting the offset by looking at `valueSpan.start`. 2. The Ivy parser sets `leadingTriviaChars: [' ', '\n']` which means that spaces and new lines will be ignored in the `sourceSpan.start`. These changes resolve the issue by using `valueSpan.fullStart` which includes the leading spaces. Fixes #63069. PR Close #63082 |
||
|---|---|---|
| .. | ||
| design | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| compiler.ts | ||
| index.ts | ||
| package.json | ||
| public_api.ts | ||