There's no way to do that that I know of, but it might be possible (though nontrivial) to implement functionality of that kind through a macro. Much of the code in the Debug.jl package is dedicated to that kind of AST analysis, though so far not exposed for other purposes.
- [julia-users] Metaprogramming weirdness Andrew McKinlay
- [julia-users] Re: Metaprogramming weirdness Adam Smith
- Re: [julia-users] Re: Metaprogramming weirdness Isaiah Norton
- Re: [julia-users] Re: Metaprogramming weird... Andrew McKinlay
- Re: [julia-users] Re: Metaprogramming w... Toivo Henningsson
- Re: [julia-users] Re: Metaprogramming w... Adam Smith
- [julia-users] Re: Metaprogramming weirdness Toivo Henningsson