Skip to content

Rename Locatable props to startPosition, endPosition and sourceInfo - #1918

Merged
TwitchBronBron merged 1 commit into
flatten-locationsfrom
rename-locatable-props
Oct 15, 2026
Merged

TwitchBronBron merged 1 commit into
flatten-locationsfrom
rename-locatable-props

Conversation

@TwitchBronBron

@TwitchBronBron TwitchBronBron commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Stacked on #1845. source collided with fields that mean something else (LSP Diagnostic.source, the source strings on plugin RawCodeStatements), so the 'source' in x checks could misfire. And pos only named the start of the pair.

  • pos → startPosition, end → endPosition, source → sourceInfo on Locatable, AstNode, TokenObject and every node class
  • SourceInfo.lineStarts → linePositions
  • 'source' in x checks → 'sourceInfo' in x

🤖 Generated with Claude Code

`source` collided with other fields that mean something else (LSP `Diagnostic.source`, plugin RawCodeStatement `source` strings), which broke the `'source' in x` checks, and `pos` only named the start. `SourceInfo.lineStarts` is now `linePositions`.

Done with the TypeScript language service rename, plus the string checks, untyped test literals, comments and docs it can't see.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TwitchBronBron
TwitchBronBron merged commit 9661a67 into flatten-locations Oct 15, 2026
9 checks passed
@TwitchBronBron
TwitchBronBron deleted the rename-locatable-props branch October 15, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant