blob: 4954735b68b9040a3d0f377708ad9988618afec2 [file] [log] [blame]
modeltype ecore uses ecore('http://www.eclipse.org/emf/2002/Ecore');
transformation computeExp_250403(in model : ecore, out ecore);
main(in inModel : ecore::EPackage) {
var a := null;
var s_result := compute (s : String = 'a') {
s := s + 'b';
s := s + 'c';
};
s_result := s_result + 'd';
inModel.map toEPackage(s_result);
}
mapping EPackage::toEPackage(in s : String) : EPackage {
name := compute (s1 : String = s) {
s1 := s1 + 'e';
s1 := s1 + 'f';
};
}