Commit f1b1c4d
refactor: deduplicate create_host_directive_mappings_array across directive/component
Mirrors Angular's structure where `createHostDirectivesMappingArray` is defined
once in `view/compiler.ts` and imported by `partial/directive.ts`. The shared
function now lives in `directive::compiler` (pub(crate)) and is imported by
`component::definition`, with the `with_capacity_in` optimization.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent da9f6d6 commit f1b1c4d
File tree
3 files changed
+9
-30
lines changed- crates/oxc_angular_compiler/src
- component
- directive
3 files changed
+9
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
1256 | 1258 | | |
1257 | 1259 | | |
1258 | 1260 | | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | 1261 | | |
1287 | 1262 | | |
1288 | 1263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | | - | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
920 | 923 | | |
921 | 924 | | |
922 | 925 | | |
923 | | - | |
| 926 | + | |
924 | 927 | | |
925 | 928 | | |
926 | 929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments