Skip to content

fix(scanner): bound JS/TS class spans - #211

Merged
JohnXu22786 merged 1 commit into
mainfrom
bug/r26-js-class-span-call-owner
Sep 29, 2026
Merged

JohnXu22786 merged 1 commit into
mainfrom
bug/r26-js-class-span-call-owner

Conversation

@JohnXu22786

Copy link
Copy Markdown
Owner

What this PR does

Before this PR:

JavaScript and TypeScript class symbols could extend through following module statements, causing later calls to be assigned to the class.

After this PR:

Use tree-sitter class end rows to keep call ownership outside the class boundary accurate. Add focused regression coverage for both grammars.

Type of change

Bug fix

Keep module-level calls from inheriting a class owner after its closing brace.
@JohnXu22786
JohnXu22786 marked this pull request as ready for review September 29, 2026 12:16
@JohnXu22786
JohnXu22786 merged commit abe09fa into main Sep 29, 2026
2 checks passed
@JohnXu22786
JohnXu22786 deleted the bug/r26-js-class-span-call-owner branch September 29, 2026 12:16
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