Skip to content

Disambiguate sourced bindings for References and Rename - #897

Merged
renkun-ken merged 1 commit into
masterfrom
codex/source-binding-owners
Nov 30, 2026
Merged

renkun-ken merged 1 commit into
masterfrom
codex/source-binding-owners

Conversation

@renkun-ken

Copy link
Copy Markdown
Member

Part 3 of the review split for #894. The base is #896.

This isolates the general source-binding resolution from roxygen navigation. A script may source several files which define the same name. Find References and Rename use verified source order and the origin visible at each use. They decline an edit if different executions could select different definitions.

For example, a caller that sources first.R, uses make, then sources second.R and uses make again can lead to two distinct declarations. Renaming the first declaration must preserve the use that belongs to the second. The same ownership check applies to embedded glue expressions.

The regression cases use real multi-file workspaces and cover rebindings, source order, and uncertain or nested uses.

Base automatically changed from codex/roxygen-explicit-dispatch to master November 30, 2026 23:22
@renkun-ken
renkun-ken force-pushed the codex/source-binding-owners branch from c754589 to 1b00b46 Compare November 30, 2026 23:22
@renkun-ken
renkun-ken merged commit ce2f0cf into master Nov 30, 2026
15 checks passed
@renkun-ken
renkun-ken deleted the codex/source-binding-owners branch November 30, 2026 23:22
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.

2 participants