File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ function identify_framemethod_calls(frame)
143
143
if length (tsrc. code) == 1
144
144
tstmt = tsrc. code[1 ]
145
145
if is_return (tstmt)
146
- tex = JuliaInterpreter . get_return_node ( tstmt)
146
+ tex = tstmt. val
147
147
if isa (tex, Expr)
148
148
if tex. head === :method && (methname = tex. args[1 ]; isa (methname, Symbol))
149
149
push! (refs, methname=> i)
@@ -165,8 +165,13 @@ function identify_framemethod_calls(frame)
165
165
key = stmt. args[1 ]
166
166
key = normalize_defsig (key, frame)
167
167
if key isa Symbol
168
- mi = methodinfos[key]
169
- mi. stop = i
168
+ if (isdefined (moduleof (frame), key) &&
169
+ getfield (moduleof (frame), key) isa Core. MethodTable)
170
+ # accept it
171
+ else
172
+ mi = methodinfos[key]
173
+ mi. stop = i
174
+ end
170
175
elseif key isa Expr # this is a module-scoped call. We don't have to worry about these because they are named
171
176
continue
172
177
end
You can’t perform that action at this time.
0 commit comments