Skip to content

Commit

Permalink
Added edit(::Method), fixes JuliaLang#41408 (JuliaLang#41414)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidrafeek committed Jun 30, 2021
1 parent e2d5f52 commit 71bf608
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/InteractiveUtils/src/editless.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ function edit(@nospecialize f)
length(ms) == 0 && functionloc(f) # throws
nothing
end
edit(m::Method) = edit(functionloc(m)...)
edit(@nospecialize(f), idx::Integer) = edit(methods(f).ms[idx])
edit(f, t) = (@nospecialize; edit(functionloc(f, t)...))
edit(file::Nothing, line::Integer) = error("could not find source file for function")
Expand Down

0 comments on commit 71bf608

Please sign in to comment.