angular/packages/compiler-cli/test/compliance/test_cases
Kristiyan Kostadinov 9e847fc60d fix(compiler): handle tracking expressions requiring temporary variables (#58520)
Currently when we generate the tracking expression for a `@for` block, we process its expression in the context of the creation block. This is incorrect, because the expression may require ops of its own for cases like nullish coalescing or safe reads. The result is that while we do generate the correct variable, they're added to the creation block rather than the tracking function which causes an error at runtime.

These changes address the issue by keeping track of a separate set of ops for the `track` expression that are prepended to the generated function, similarly to how we handle event listeners.

Fixes #56256.

PR Close #58520
2025-02-12 09:56:08 -08:00
..
model_inputs refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
output_function refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_compiler_compliance feat(compiler): support untagged template literals in expressions (#59230) 2025-01-21 12:04:53 -08:00
r3_view_compiler build: clean up pipeline-specific tests (#59450) 2025-01-09 09:56:06 -05:00
r3_view_compiler_bindings build: clean up pipeline-specific tests (#59450) 2025-01-09 09:56:06 -05:00
r3_view_compiler_control_flow fix(compiler): handle tracking expressions requiring temporary variables (#58520) 2025-02-12 09:56:08 -08:00
r3_view_compiler_deferred fix(compiler-cli): handle deferred blocks with shared dependencies correctly (#59926) 2025-02-12 09:15:53 -08:00
r3_view_compiler_di/di refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_directives refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_i18n build: clean up pipeline-specific tests (#59450) 2025-01-09 09:56:06 -05:00
r3_view_compiler_input_outputs refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_let refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_listener build: clean up pipeline-specific tests (#59450) 2025-01-09 09:56:06 -05:00
r3_view_compiler_providers refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
r3_view_compiler_styling build: clean up pipeline-specific tests (#59450) 2025-01-09 09:56:06 -05:00
r3_view_compiler_template build: clean up pipeline-specific tests (#59450) 2025-01-09 09:56:06 -05:00
signal_inputs refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
signal_queries refactor(compiler): update compliance tests. (#58238) 2024-10-24 12:44:12 -07:00
source_mapping build: clean up pipeline-specific tests (#59450) 2025-01-09 09:56:06 -05:00
BUILD.bazel test: refactor compiler-cli compliance test to work on windows (#45431) 2022-03-25 12:18:34 -07:00
list_golden_update_rules.ts refactor(compiler-cli): use semver range checking for partial versions (#39847) 2020-12-04 10:26:17 -08:00
test_case_schema.json refactor(compiler): Delete TemplateDefinitionBuilder acceptance test expectations (#54757) 2024-03-08 16:51:01 -08:00