Commit eefb449
Move initializedEmpty into ConstantArrayType to avoid heuristic reconstruction
Instead of scanning keys and nextAutoIndexes in createFromConstantArray to
reconstruct whether an array was empty-initialized, store the initializedEmpty
flag directly in ConstantArrayType. This eliminates the elseif heuristic and
ensures the flag persists naturally through setOffsetValueType round-trips
via recreate().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ee2c7a3 commit eefb449
File tree
2 files changed
+10
-18
lines changed- src/Type/Constant
2 files changed
+10
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | | - | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 78 | + | |
| 79 | + | |
94 | 80 | | |
95 | 81 | | |
96 | 82 | | |
| |||
393 | 379 | | |
394 | 380 | | |
395 | 381 | | |
396 | | - | |
| 382 | + | |
397 | 383 | | |
398 | 384 | | |
399 | 385 | | |
| |||
0 commit comments