I figured out how to find where a method is defined:
methods(generic_function).ms returns a handy array of objects which have
I’m now trying to do the same thing for macros. For example,
Printf.@sprintf — where is it defined?
code_lowered don’t work, since they only understand generic functions.
Edit: Clarification: I’m looking for a general way to find the definition of something known in the Julia environment given its name. Ideally, I’d like to use a Symbol to find it, so something like
methods("+") (which does not work) would be preferred to