object.method(method_name).source_filepattern that you can use to determine the file in which the method definition is contained. But did you know that you could also use the same pattern to find the file location for the actual object exemplar?
For example, in my Web Maps Connector image, I want to figure out where map_view.int!do_render() is actually defined. I can do the following to get that information.
But what if I want to determine how that patch of
map_view.int!do_render()has modified the original version of that method? Where can I find that original method definition? While it is not 100% guaranteed, Magik style conventions strongly suggest that object method definitions be kept in the same file as the object's exemplar definition. Great. So all we need to do is find the file in which the
def_slotted_exemplar(:map_view)is called. Here is how you do that...
The trick is to request the source file for the special method called
:exemplar. Happy debugging!