documentation on rule fragments [message #1727518] |
Wed, 23 March 2016 12:39 |
|
Hi
I started to use rule fragments which look really cool :)
However, I see no documentation, besides the but itself
https://bugs.eclipse.org/bugs/show_bug.cgi?id=263773
"
Class : Documented 'class' name=ID ... ;
Method: Documented returnType=TypeRef name=ID ... ;
fragment Documented :
documentation=JAVADOC;
This will semantically like the content of Documented is included in
Class and Method (at the respective position).
In addition this has the effect on the meta model, that Class and Method
have to extend an abstract EClass called 'Documented'. If the meta model
is generated, such a super type will be generated.
"
Say that I don't want Class and Method to inherit from Documented in the
generated metamodel. Is the following the right solution (note the *)?
fragment Documented *:
documentation=JAVADOC;
No Documented type will be generated in the ecore model either.
I haven't seen that mentioned in the bug, but I saw that in Sebastian's
pull requests implementing rule fragments.
It looks like it gives me what I need, but I'd like to be sure that is
the intended behavior :)
thanks in advance
Lorenzo
--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02548 seconds