Skip to content

Improved name location lookups in rename framework#50

Merged
PaulKlint merged 1 commit into
mainfrom
improved-name-location-lookup-in-rename-framework
Jun 16, 2026
Merged

Improved name location lookups in rename framework#50
PaulKlint merged 1 commit into
mainfrom
improved-name-location-lookup-in-rename-framework

Conversation

@sungshik

@sungshik sungshik commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

This PR improves name location lookups in the rename framework to read the new define2id field of TModels. Anecdotally (based on a few profiled runs; not thorough benchmarking), the Rascal renamer gets a few percent faster after this PR.

Integration test succeeds: https://github.com/usethesource/rascal-core-big-tests/actions/runs/27611396733/job/81636393389

…ine2id` field of TModels (originally intended to make use-defs more precise)
@sungshik sungshik changed the title Update name location lookups in the rename framework to read the `def… Improved name location lookups in the rename framework Jun 16, 2026
@sungshik sungshik changed the title Improved name location lookups in the rename framework Improved name location lookups in rename framework Jun 16, 2026
@sungshik sungshik marked this pull request as ready for review June 16, 2026 11:14

@toinehartman toinehartman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I like how we prefer the 'new' TModel-based lookup, but keep tree-based as a fallback.

@PaulKlint PaulKlint merged commit c236820 into main Jun 16, 2026
1 check passed
@PaulKlint PaulKlint deleted the improved-name-location-lookup-in-rename-framework branch June 16, 2026 15:02
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.

3 participants