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 |
||
|---|---|---|
| .. | ||
| ast.ts | ||
| entities.ts | ||
| html_parser.ts | ||
| html_tags.ts | ||
| html_whitespaces.ts | ||
| icu_ast_expander.ts | ||
| interpolation_config.ts | ||
| lexer.ts | ||
| parser.ts | ||
| tags.ts | ||
| tokens.ts | ||
| xml_parser.ts | ||
| xml_tags.ts | ||