Closed lucaswerkmeister closed 9 years ago
there’s currently no way to get a metamodel reference to
a.b.c
Well, that’s not completely true. You can totally get a reference like this:
assert (exists cDec = `value a.b`.objectClass?.getMemberDeclaration<ValueDeclaration>("c"));
It’s just not as convenient (and not typechecked).
Solved as part of #1243. Use \Ia.\Ib.\Ic
to refer to the c
class and \Ia.\Ib.c
to refer to the c
attribute.
If you have something like
there’s currently no way to get a metamodel reference to
a.b.c
– the spec and the parser both only allow one level of nesting for member names.