mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Change sourceSpan for Comment nodes to cover the whole comment instead of just the opening token. The primary motivation for this is the interaction between ESLint and `@angular-eslint`. ESLint can detect unused `eslint-disable` directives in comments and automatically remove them when running with `--fix`. This is based on ranges computed from AST spans, and as a result does not work inside Angular templates - right now all comments claim to be 4 characters long so only the opening `<!--` is removed. PR Close #50855 |
||
|---|---|---|
| .. | ||
| binding_spec.ts | ||
| i18n_spec.ts | ||
| parse_template_options_spec.ts | ||
| util.ts | ||