blob: 7237480de439f15a613fc4e64ce4158a66186fe2 [file] [log] [blame]
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;
}