Open ebousse opened 7 years ago
Additionnaly, only external language would make sense in case of mixed K3/Melange projects
For "normal / non external" languages, Melange copies the aspects in the runtime language. Thus the original aspect classes are useless when the language is deployed. they are used only at compilation time then at runtime only the copies are useful.
Inn case of external language, the contract is that the aspect doesn't changes the language signature, they only implements the predefined operations, thus the original aspect classes can be used.
When creating a new "K3 Project" with the "User Ecore Basic Aspects With Melange" template, the generated melange file has several problems, including:
MetamodelExtensions
does not exist anymore):import static extension fr.inria.diverse.melange.lib.MetamodelExtensions.*
metamodel
(instead oflanguage
) orecore
(instead ofsyntax
)MyMetamodelMT
that "cannot be resolved as a type, even after generating the language runtime, for some reasonExample: