Skip to content

Commit 0731336

Browse files
rashidrafeekjohanmon
authored andcommitted
Added edit(::Method), fixes JuliaLang#41408 (JuliaLang#41414)
1 parent b05370f commit 0731336

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/InteractiveUtils/src/editless.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ function edit(@nospecialize f)
229229
length(ms) == 0 && functionloc(f) # throws
230230
nothing
231231
end
232+
edit(m::Method) = edit(functionloc(m)...)
232233
edit(@nospecialize(f), idx::Integer) = edit(methods(f).ms[idx])
233234
edit(f, t) = (@nospecialize; edit(functionloc(f, t)...))
234235
edit(file::Nothing, line::Integer) = error("could not find source file for function")

0 commit comments

Comments
 (0)