Commit 21290ce
committed
fix(semantic): use exclusive upper bound in ExpansionOffset::mapped
TextSpan.end is exclusive throughout the codebase, so an offset
exactly at a mapping's span.end lies outside that mapping. Replace the
inclusive `<= span.end` check with an exclusive range so a boundary offset
resolves to the mapping that actually contains it (or to none), instead of
matching the preceding adjacent mapping.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 75f957d commit 21290ce
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments