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 9f0e53b commit fc68378Copy full SHA for fc68378
src/CodeTracking.jl
@@ -110,7 +110,11 @@ function whereis(lineinfo, method::Method)
110
end
111
function whereis(lineinfo::Core.LineInfoNode, method::Method)
112
# With LineInfoNode we have certainty about whether we're in a macro expansion
113
- if lineinfo.method == Symbol("macro expansion")
+ meth = lineinfo.method
114
+ if isa(meth, WeakRef)
115
+ meth = meth.value
116
+ end
117
+ if meth === Symbol("macro expansion")
118
return maybe_fix_path(String(lineinfo.file)), lineinfo.line
119
120
file, line1 = whereis(method)
0 commit comments