refactor(compiler): Update pipe test golden for alternative create order (#52289)
We roughly attempt to match TemplateDefinitionBuilder's pipe creation order, by placing pipe creation instructions after their target elements. However, we cannot fully emulate the "inside-out" ordering TemplateDefinitionBuilder uses when multiple pipes apply to one element, because TemplateDefinitionBuilder creates the pipes as expressions are visited, from the leaves up. Our order is perfectly adequate though. We also add a non-compatibility-mode ordering, which just appends them to the end of the create block. This is better because it allows for more chaining opportunities. PR Close #52289
Showing
- packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/TEST_CASES.json 3 additions, 3 deletions...ompliance/components_and_directives/pipes/TEST_CASES.json
- packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/pipes_my_app_def.pipeline.js 27 additions, 0 deletions...ponents_and_directives/pipes/pipes_my_app_def.pipeline.js
- packages/compiler/src/template/pipeline/src/phases/pipe_creation.ts 8 additions, 1 deletion...ompiler/src/template/pipeline/src/phases/pipe_creation.ts
Please register or sign in to comment