Commit 166f6e2
fix: pool ng-content attributes into the const pool (v22) (#340)
* fix: pool ng-content attributes into the const pool (v22)
Angular 22.0.0 (rc.3, angular/angular@2891f7e) moves the `attrs` argument
of `ɵɵprojection` out of the inline call and into the shared const pool,
emitting `ɵɵprojection(slot, idx, _cN)` instead of an inline array. Mirror
that in const_collection by routing projection attrs through
`pool.get_const_literal(.., true)`, exactly as element attrs and the
projectionDef/ngContentSelectors consts already do. This phase runs after
generate_projection_def, so the projection attrs land at the next `_cN`,
matching the goldens.
Bump the conformance angular submodule rc.2 -> v22.0.0 so the suite guards
this emit. Conformance stays at 1264/1264 (100%); update the three
ng-content integration snapshots to the pooled form.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: reuse pooled projection attrs const per xref
Co-authored-by: brandonroberts <42211+brandonroberts@users.noreply.github.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com>
Co-authored-by: brandonroberts <42211+brandonroberts@users.noreply.github.com>1 parent 1c2da17 commit 166f6e2
5 files changed
Lines changed: 34 additions & 8 deletions
File tree
- crates/oxc_angular_compiler
- src/pipeline/phases
- tests/snapshots
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
| 763 | + | |
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
771 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
772 | 786 | | |
773 | 787 | | |
774 | 788 | | |
| |||
794 | 808 | | |
795 | 809 | | |
796 | 810 | | |
797 | | - | |
798 | | - | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
799 | 822 | | |
800 | 823 | | |
801 | 824 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
0 commit comments