mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
[#1141] fixed javadoc problem with serializer constraints
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
parent
20667db3ac
commit
6baba136df
2 changed files with 8 additions and 0 deletions
|
@ -394,11 +394,13 @@ import static extension org.eclipse.xtext.xtext.generator.util.GenModelUtil2.*
|
|||
val states = c.linearListOfMandatoryAssignments
|
||||
'''
|
||||
/**
|
||||
* <pre>{@code
|
||||
* Contexts:
|
||||
* «c.contexts.sort.join("\n").replaceAll("\\n","\n* ")»
|
||||
*
|
||||
* Constraint:
|
||||
* «IF c.body === null»{«c.type.name»}«ELSE»«c.body.toString.replaceAll("\\n","\n* ")»«ENDIF»
|
||||
* }</pre>
|
||||
*/
|
||||
protected void sequence_«c.simpleName»(«ISerializationContext» context, «c.type» semanticObject) {
|
||||
«IF states !== null»
|
||||
|
|
|
@ -991,6 +991,9 @@ public class SerializerFragment2 extends AbstractStubGeneratingFragment {
|
|||
_builder.append("/**");
|
||||
_builder.newLine();
|
||||
_builder.append(" ");
|
||||
_builder.append("* <pre>{@code ");
|
||||
_builder.newLine();
|
||||
_builder.append(" ");
|
||||
_builder.append("* Contexts:");
|
||||
_builder.newLine();
|
||||
_builder.append(" ");
|
||||
|
@ -1021,6 +1024,9 @@ public class SerializerFragment2 extends AbstractStubGeneratingFragment {
|
|||
}
|
||||
_builder.newLineIfNotEmpty();
|
||||
_builder.append(" ");
|
||||
_builder.append("* }</pre>");
|
||||
_builder.newLine();
|
||||
_builder.append(" ");
|
||||
_builder.append("*/");
|
||||
_builder.newLine();
|
||||
_builder.append("protected void sequence_");
|
||||
|
|
Loading…
Reference in a new issue