@@ -17,11 +17,11 @@ Return the file and line of the definition of `method`. `line`
1717is the first line of the method's body.
1818"""
1919function whereis(method:: Method )
20- lin = get(method_locations , method. sig, nothing )
20+ lin = get(method_info , method. sig, nothing )
2121 if lin === nothing
2222 file, line = String(method. file), method. line
2323 else
24- file, line = fileline(lin)
24+ file, line = fileline(lin[ 1 ] )
2525 end
2626 if ! isabspath(file)
2727 # This is a Base or Core method
6868Return an expression that defines `method`.
6969"""
7070function definition(method:: Method , :: Type{Expr} )
71- def = get(method_definitions , method. sig, nothing )
71+ def = get(method_info , method. sig, nothing )
7272 if def === nothing
7373 f = method_lookup_callback[]
7474 if f != = nothing
7575 Base. invokelatest(f, method)
7676 end
77- def = get(method_definitions , method. sig, nothing )
77+ def = get(method_info , method. sig, nothing )
7878 end
79- return def === nothing ? nothing : copy(def)
79+ return def === nothing ? nothing : copy(def[ 2 ] )
8080end
8181
8282definition(method:: Method ) = definition(method, Expr)
0 commit comments