angular/packages/compiler/test/expression_parser
Kristiyan Kostadinov 159be56709 fix(compiler): recover template literals with broken expressions (#64150)
Fixes two issues that were preventing template literals from being recovered properly if one of the interpolated expressions is broken:
1. We weren't updating the expected brace counter when an interpolation starts which in turn was throwing off the recovery logic in `skip`.
2. When producing tokens for template literals, we were treating the closing brace as an operator whereas other places treat it as a character. Even after fixing the first issue, this was preventing the recovery logic from working correctly.

Fixes #63940.

PR Close #64150
2025-09-30 16:01:50 -04:00
..
utils refactor(compiler): Remove the interpolation config (#64071) 2025-09-29 15:29:46 -04:00
ast_spec.ts refactor(compiler): consolidate error classes (#62160) 2025-06-23 14:25:28 +02:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
lexer_spec.ts fix(compiler): recover template literals with broken expressions (#64150) 2025-09-30 16:01:50 -04:00
parser_spec.ts fix(compiler): recover template literals with broken expressions (#64150) 2025-09-30 16:01:50 -04:00
serializer_spec.ts refactor(compiler): consolidate error classes (#62160) 2025-06-23 14:25:28 +02:00