[nem-en] IntelliSense support of macro

vc vc at rsdn.ru
Mon Jan 22 13:19:57 CET 2007


> Looks very helpful. This is because location of generated method has
> the location of macro invocation, which generated it?

The Completion because macro generate real methods. :)
If you say about goto - yes. Macro set location to attribute location.
If try goto in this situation:
def ff = CompilerComponentsFactory();
ff.CreateMethodBuilder(null, null);
goto will be navigate to root factory.

> So if we had the "jump to definition" feature, we could point to
> invocation of generated method, jump to place where the macro is used
> and them maybe even see the method body...

Potentially - yes.

> at least if this is in
> current compilation, completion engine has this body in memory, isn't
> it?

For factories defined in current project - yes. For externally defined
factories we have only location, but it is not so small.




More information about the devel-en mailing list