GitNexus/docs
Mick Cooney ec0fe2e1cc fix(r): refuse renames past block-local definitions and $methods() calls
The local-definition guard now also reads the braces of block scopes
(local, test_that, describe, it, with, within; bare or pkg::). A call of
the name before a block-local function literal, or a literal assigned only
under if, refuses the rename: R calls the outer function there, but the
index binds the call to the block-local literal, so the rename left that
call behind. A nested function or block is judged by its own body, so a
stub defined first inside it() under describe() is still accepted.

A x$methods(...) call whose arguments mention the name refuses the rename
too: methods added to a RefClass generator that way are not modelled, so a
bare call inside one was rewritten although R reaches the class method.

Also pin that a function-local rebinding shadows a module-level
constructor type in a file that no <<- rebinds (r-receiver-agreement m10).

Four rename fixtures (57 per test file); gaps rows R-43 and R-44.
2026-10-25 12:04:36 +00:00
..
languages fix(r): refuse renames past block-local definitions and $methods() calls 2026-10-25 12:04:36 +00:00
plans fix(scope): preserve lexical bindings in HTTP wrapper detection (#3632) 2026-10-20 11:36:06 +01:00
cli-reference.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
deployment.md feat(web): resolve a root-relative GITNEXUS_BACKEND_URL against the page origin (#3640) 2026-10-24 08:45:24 +01:00
editor-setup.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
mcp-reference.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
wiki-generation.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00