Commit 8216cd7
fix(jit): exclude all Angular decorators from non-Angular __decorate lowering
Angular parameter decorators (@Inject, @optional, @self, @SkipSelf, @host,
@Attribute) and class decorators (@component, @directive, @pipe, @Injectable,
@NgModule) should never be emitted in member __decorate() calls. Previously
only the 8 field decorators were excluded; now all 19 Angular decorators are
excluded from the non-Angular member decorator extraction.
This matches Angular's official behavior where decorators are identified by
their @angular/core import source — any Angular decorator on a member should
be handled via propDecorators/ctorParameters, not __decorate.
https://claude.ai/code/session_01BbwLMsG3SjXcCbvDxAyW2Z1 parent d499460 commit 8216cd7
3 files changed
Lines changed: 95 additions & 2 deletions
File tree
- crates/oxc_angular_compiler
- src/component
- tests
- snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
935 | 941 | | |
936 | 942 | | |
937 | 943 | | |
| |||
940 | 946 | | |
941 | 947 | | |
942 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
943 | 962 | | |
944 | 963 | | |
945 | 964 | | |
| |||
991 | 1010 | | |
992 | 1011 | | |
993 | 1012 | | |
994 | | - | |
| 1013 | + | |
995 | 1014 | | |
996 | 1015 | | |
997 | 1016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7039 | 7039 | | |
7040 | 7040 | | |
7041 | 7041 | | |
| 7042 | + | |
| 7043 | + | |
| 7044 | + | |
| 7045 | + | |
| 7046 | + | |
| 7047 | + | |
| 7048 | + | |
| 7049 | + | |
| 7050 | + | |
| 7051 | + | |
| 7052 | + | |
| 7053 | + | |
| 7054 | + | |
| 7055 | + | |
| 7056 | + | |
| 7057 | + | |
| 7058 | + | |
| 7059 | + | |
| 7060 | + | |
| 7061 | + | |
| 7062 | + | |
| 7063 | + | |
| 7064 | + | |
| 7065 | + | |
| 7066 | + | |
| 7067 | + | |
| 7068 | + | |
| 7069 | + | |
| 7070 | + | |
| 7071 | + | |
| 7072 | + | |
| 7073 | + | |
| 7074 | + | |
| 7075 | + | |
| 7076 | + | |
| 7077 | + | |
| 7078 | + | |
| 7079 | + | |
| 7080 | + | |
| 7081 | + | |
| 7082 | + | |
| 7083 | + | |
| 7084 | + | |
| 7085 | + | |
| 7086 | + | |
| 7087 | + | |
| 7088 | + | |
| 7089 | + | |
| 7090 | + | |
| 7091 | + | |
| 7092 | + | |
| 7093 | + | |
7042 | 7094 | | |
7043 | 7095 | | |
7044 | 7096 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments