use of org.eclipse.xtext.parser.indentation.indentationAwareTestLanguage.ChildList in project xtext-core by eclipse.
the class OtherTreeNodeImpl method basicSetChildList.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetChildList(ChildList newChildList, NotificationChain msgs) {
ChildList oldChildList = childList;
childList = newChildList;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, IndentationAwareTestLanguagePackage.OTHER_TREE_NODE__CHILD_LIST, oldChildList, newChildList);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.parser.indentation.indentationAwareTestLanguage.ChildList in project xtext-core by eclipse.
the class AbstractIndentationAwareTestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == IndentationAwareTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case IndentationAwareTestLanguagePackage.CHILD_LIST:
sequence_ChildList(context, (ChildList) semanticObject);
return;
case IndentationAwareTestLanguagePackage.OTHER_TREE_NODE:
sequence_OtherTreeNode(context, (OtherTreeNode) semanticObject);
return;
case IndentationAwareTestLanguagePackage.TREE:
sequence_Tree(context, (Tree) semanticObject);
return;
case IndentationAwareTestLanguagePackage.TREE_NODE:
sequence_TreeNode(context, (TreeNode) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.parser.indentation.indentationAwareTestLanguage.ChildList in project xtext-core by eclipse.
the class IndentationAwareLanguageTest method asText.
private StringConcatenation asText(final OtherTreeNode treeNode) {
StringConcatenation _builder = new StringConcatenation();
String _name = treeNode.getName();
_builder.append(_name);
_builder.newLineIfNotEmpty();
{
ChildList _childList = treeNode.getChildList();
boolean _tripleNotEquals = (_childList != null);
if (_tripleNotEquals) {
_builder.append("\t");
_builder.append(">");
_builder.newLine();
{
EList<OtherTreeNode> _children = treeNode.getChildList().getChildren();
for (final OtherTreeNode node : _children) {
_builder.append("\t");
_builder.append("\t");
StringConcatenation _asText = this.asText(node);
_builder.append(_asText, "\t\t");
_builder.newLineIfNotEmpty();
}
}
}
}
return _builder;
}
Aggregations