Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » inlined cross-references
inlined cross-references [message #808174] Mon, 27 February 2012 13:48 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Hi,

This is a follow-up question regarding our use of lexical macros. We might be able to restrict them to parseable code, which would make them like inlined function calls.

When searching for cross-references, I would like to be able to find both the places where something is referenced in a macro and where that macro is used, in the same search. Is there any support for something like that?

If I have to go with our own implementation, is there a way to plug it in instead of the regular one? At the moment I only need a yes/no/maybe answer.

[I am currently checking the code, but asked because there might be alternative ways to solve this that aren't apparent in the code]

best regards,
Vlad
Re: inlined cross-references [message #808531 is a reply to message #808174] Mon, 27 February 2012 21:56 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2012-27-02 14:48, Vlad Dumitrescu wrote:
> Hi,
>
> This is a follow-up question regarding our use of lexical macros. We
> might be able to restrict them to parseable code, which would make them
> like inlined function calls.
>
That makes it much easier to implement.

> When searching for cross-references, I would like to be able to find
> both the places where something is referenced in a macro and where that
> macro is used, in the same search. Is there any support for something
> like that?
>
Simply export them and link as usual. You then get bi-directional search
of the index (there is even UI for it out of the box).

> If I have to go with our own implementation, is there a way to plug it
> in instead of the regular one? At the moment I only need a yes/no/maybe
> answer.
>
I wrote my own because I am not using regular linking.
My solution for "find declaration" and "find references" can be found in
cloudsmith/geppetto @ github.

> [I am currently checking the code, but asked because there might be
> alternative ways to solve this that aren't apparent in the code]
>

Regards
- henrik
Re: inlined cross-references [message #808543 is a reply to message #808531] Mon, 27 February 2012 22:20 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Thank you very much!

/Vlad
Re: inlined cross-references [message #808550 is a reply to message #808531] Mon, 27 February 2012 22:20 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Thank you very much!

/Vlad
Previous Topic:Problem cross-referencing to non-ID terminal
Next Topic:Fornax mwe2 problem
Goto Forum:
  


Current Time: Fri Mar 29 13:53:12 GMT 2024

Powered by FUDForum. Page generated in 0.03065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top