mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fd4fed14d8
Prior to this commit, the absolute spans (relative to template source file rather than the start of an expression) of expressions in a template attribute like `*ngIf` were generated incorrectly, equating to the relative spans. This fixes the bug by passing an `absoluteOffset` parameter when parsing template bindings. Through some levels of indirection, this is required for the Language Service to support text replacement in https://github.com/angular/angular/pull/33091. PR Close #33189
Tests in this directory are excluded from running in the browser and only run in node.