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 |
||
|---|---|---|
| .. | ||
| util | ||
| ast_serializer_spec.ts | ||
| ast_spec_utils.ts | ||
| BUILD.bazel | ||
| html_parser_spec.ts | ||
| html_whitespaces_spec.ts | ||
| icu_ast_expander_spec.ts | ||
| lexer_spec.ts | ||