mirror of
https://github.com/angular/angular.git
synced 2026-11-22 22:55:25 -05:00
Extend `escapeIdentifier` in `AbstractEmitterVisitor` with an `escapeNonAscii` option and expose a protected `escapeIdentifier` hook so `ngp`'s `ExpressionPrinter` escapes control and non-ASCII code units as `\uXXXX`, matching TypeScript's `escapeNonAsciiString` behavior on synthesized string literals. Add an i18n named placeholder test case (`// i18n(ph=...)`) to the preprocessor goldens and remove the `\uXXXX` normalization from `ngp_emit_normalizer`.