Cross Reference without additional feature [message #1761176] |
Mon, 08 May 2017 11:11  |
 Messages: 23 Registered: September 2015 |
Junior Member |
|
|
Hi, I tried to look for answers on the forum on my own, but didn't find what I've looked for - please don't kill me if the question has been already answered.
I have defined following:
AttributeGroup:
( doc = COMMENT )?
'group' name = ID
'from' mainObject = [ Class | QualifiedName ]
'select' attributes += AbstractAttribute (',' attributes += AbstractAttribute)*;
now I define a reference:
AttributeGroupReference:
group = [AttributeGroup]
;
this is all well, but what I would actually want to do would be to refer the "attributes" feature of the AttributeGroup in moe or less following fashion:
AttributeGroupReference:
group = [AttributeGroup]
attributes = group.attributes;
;
the idea is that I would then be able to access the attributes directly from the AttributeGroupReference (I don't really need the AttributeGroup itself even).
Originally I've posted it on stack overflow (if somebody want's to get some fame ...):
http://stackoverflow.com/questions/43810119/xtext-cross-reference-of-a-feature-of-a-reference
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04619 seconds