Any way to access the name of a reference in the ScopeProvider? [message #1017622] |
Tue, 12 March 2013 04:22  |
Eclipse User |
|
|
|
Hi, i'm trying to implement the ScopeProvider in my project and i would like to know if there's a way to do the following.
I have a block structured grammar with variable declarations, expressions, assignments etc.
Let's say (a part of) the structure is like this:
[...]
VarDeclaration: 'integer' name=VariableName
Assignment: name=[VariableName] '=' value=INT;
VariableName: name=ID ;
[...]
Is there a way in the getScope(EObject context, EReference reference) function to access the name of the variable in the assignment before the scope is resolved?
Something like reference.getVariableName() just to know the name of the variable i just typed?
Thanks in advance
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03553 seconds