We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df93c72 commit 517d645Copy full SHA for 517d645
src/refactor.jl
@@ -30,7 +30,9 @@ function renamerefactor(
30
end
31
32
expr = CSTParser.parse(context)
33
- bind = CSTParser.bindingof(expr)
+ items = toplevelitems(expr, context)
34
+ ind = findfirst(item -> item isa ToplevelBinding, items)
35
+ bind = ind === nothing ? nothing : items[ind].bind
36
37
# local rename refactor if `old` isn't a toplevel binding
38
if bind === nothing || old ≠ bind.name
0 commit comments