modeltype ECORE "strict" uses ecore('http://www.eclipse.org/emf/2002/Ecore'); | |
transformation ChildInTreeInput(in input : ECORE, out output : ECORE); | |
main() { | |
input.rootObjects()[EAttribute]->map toAnnotation(); | |
} | |
mapping EAttribute::toAnnotation() : EAnnotation { | |
assert fatal (not self.container().oclIsUndefined()); | |
source := self.name; | |
} |