Commit 7592060
Address review: fix union type handling and extract helper
- value.lua: clear result when any non-integer type is found in node,
preventing incorrect integer return for union types (integer|string)
- operator.lua: extract getOperandInfers() helper to deduplicate
URI/infer retrieval across 5 call sites
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 93b666b commit 7592060
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
270 | 276 | | |
271 | 277 | | |
272 | 278 | | |
273 | | - | |
274 | | - | |
275 | | - | |
| 279 | + | |
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
| |||
395 | 399 | | |
396 | 400 | | |
397 | 401 | | |
398 | | - | |
399 | | - | |
400 | | - | |
| 402 | + | |
401 | 403 | | |
402 | 404 | | |
403 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments