angular/packages/compiler-cli/test/compliance/test_cases
Pete Bacon Darwin 393efa54e6 fix(compiler): ensure that partially compiled queries can handle forward references (#44113)
When a partially compiled component or directive is "linked" in JIT mode, the body
of its declaration is evaluated by the JavaScript runtime. If a class is referenced
in a query (e.g. `ViewQuery` or `ContentQuery`) but its definition is later in the
file, then the reference must be wrapped in a `forwardRef()` call.

Previously, query predicates were not wrapped correctly in partial declarations
causing the code to crash at runtime. In AOT mode, this code is never evaluated
but instead transformed as part of the build, so this bug did not become apparent
until Angular Material started running JIT mode tests on its distributable output.

This change fixes this problem by noting when queries are wrapped in `forwardRef()`
calls and ensuring that this gets passed through to partial compilation declarations
and then suitably stripped during linking.

See https://github.com/angular/components/pull/23882 and https://github.com/angular/components/issues/23907

PR Close #44113
2021-11-10 18:25:16 +00:00
..
r3_compiler_compliance fix(compiler): ensure that partially compiled queries can handle forward references (#44113) 2021-11-10 18:25:16 +00:00
r3_view_compiler fix(compiler): generate correct code for safe method calls (#44088) 2021-11-08 17:31:36 +00:00
r3_view_compiler_bindings Revert "test: update compiler-cli compliance goldens due to TS 4.3 emit format regression (#42022)" (#42600) 2021-06-21 16:42:48 +00:00
r3_view_compiler_di/di fix(compiler-cli): correctly interpret token arrays in @Injectable deps (#43226) 2021-09-28 14:15:48 -07:00
r3_view_compiler_directives/matching Revert "test: update compiler-cli compliance goldens due to TS 4.3 emit format regression (#42022)" (#42600) 2021-06-21 16:42:48 +00:00
r3_view_compiler_i18n Revert "fix(compiler): support i18n interpolated only attribute bindings (#43815)" (#43882) 2021-10-18 13:15:57 -07:00
r3_view_compiler_input_outputs refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_listener fix(compiler): incorrect context object being referenced from listener instructions inside embedded views (#42755) 2021-07-12 11:58:18 -07:00
r3_view_compiler_providers refactor(compiler-cli): change how partial-linkers are matched to declaration versions (#41578) 2021-04-14 11:00:40 -07:00
r3_view_compiler_styling Revert "test: update compiler-cli compliance goldens due to TS 4.3 emit format regression (#42022)" (#42600) 2021-06-21 16:42:48 +00:00
r3_view_compiler_template feat(compiler): add support for shorthand property declarations in templates (#42421) 2021-06-21 23:40:47 +00:00
source_mapping fix(compiler): include leading whitespace in source-spans of i18n messages (#43132) 2021-09-16 18:15:51 +00:00
BUILD.bazel test(compiler-cli): generate golden files for partial compilation (#39617) 2020-11-13 11:25:56 -08: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 test(compiler-cli): improve compliance test compile mode filtering (#39939) 2020-12-07 16:21:04 -08:00