Entity : ... ('[' mappings+=Map ("," mappings+=Map)* ']')? ... Map : source=[Value|QualifiedName] '<->' target=[value|QualifiedName]; QualifiedName returns ecore::EString: StringId ('::' StringId)*; StringId returns ecore::EString: STRING | ID;
def IScope scope_Map_source(Map map, EReference ref) { return Scopes.scopeFor(map..[valid_sources].) } def IScope scope_Map_target(Map map, EReference ref) { return Scopes.scopeFor(map...[valid_targets]) }
Map : '(' source=[Value|QualifiedName] '<->' target=[value|QualifiedName] ')';