First off, I have no experience with using Wolfram Language in Eclipse or the Wolfram Workbench stuff or any other more sophisticated development environments. Those tools might have some fancy UI that will do what you want. I'm just using vanilla Mathematica, so keep that in mind.
Somewhere in the codebase we have:
MyFunction[a_, b_, c_] := {a, 2 b, 3 c}
When that particular chunk of code was executed, it stored a new item in DownValues
in the "memory" of the environment. You don't need to go to the actual location in the code where the above line appears to retrieve the definition for MyFunction
. You can just execute this:
DownValues[MyFunction]
Which will give you this:
{HoldPattern[MyFunction[a_, b_, c_]] :> {a, 2 b, 3 c}}
I think this addresses your concern of:
I want to figure out what's going to happen
You can also execute this:
Information["MyFunction"]
So, if you're insisting on a UI feature that will navigate you to the particular instance of the text MyFunction
that was used in a SetDelayed
expression, then I don't know how to do that. But if you want to know "what's going to happen", i.e. if you want to see the definition the system has "remembered" for MyFunction
, then there are ways to do that directly (as I've shown above) without actually navigating anywhere.