-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getter dispatch in case of default value in K3 #55
Comments
Are we talking about an EClass generated by Melange, where the
|
I was talking of the first case but the second one is relevant too. |
So for the first case, the best would be to patch Melange to generate a more complete EClass, where the EStructuralFeature But can this default value be accessed when the aspect is parsed? |
I guess we have to deal with Expression for default value at the Xtend side |
Ah you are right, the expression might not be a primitive/serializable value... In that case, yes you are right something smarter can be done in K3, such as checking only on the first access whether there is a default expression specified in the aspect. |
For the case:
foo
foo
with a default valueCan we consider the aspect has the priority?
It is breaking a test case in Melange. We load a model of merged Ecore + Aspect and try to access the attribute declared in the Aspect but we access the null value of the model.
k3/k3.eclipse/fr.inria.diverse.k3.al.annotationprocessor.plugin/src/fr/inria/diverse/k3/al/annotationprocessor/Aspect.xtend
Lines 800 to 817 in 5c35a83
The text was updated successfully, but these errors were encountered: