Skip to content

call sites carry the called name's column - #7

Merged
tabladrum merged 1 commit into
mainfrom
feat/callsite-columns
Oct 12, 2026
Merged

tabladrum merged 1 commit into
mainfrom
feat/callsite-columns

Conversation

@tabladrum

Copy link
Copy Markdown
Contributor

CallSite.Col: the 1-based character column of the called name, filled for every language in one post-extract pass (the callee's last segment found on its line in masked code, followed by (, < or !; repeated same-named calls on a line take occurrences in order; 0 when not found). Lets a name-matched edit list name one token, not a line. Test covers Python (incl. a decoy in a string), Go, Java (two calls on one line), Rust (macro + call). go test green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KXa6Cv1ZUXcdMqXcJfQFhX

A rename edit list built from call sites needs the token, not just the
line: two same-named calls on one line, or a name also present in a
string, made line-keyed edits rewrite the wrong text. Extract now fills
CallSite.Col (1-based characters) for every language in one pass: the
callee's last segment found on its line in the masked code (comments and
strings blanked), as an identifier followed by '(', '<' or '!'; several
same-named calls on a line take the occurrences in order; 0 when not
found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KXa6Cv1ZUXcdMqXcJfQFhX
@tabladrum
tabladrum merged commit 889629f into main Oct 12, 2026
3 checks passed
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