use of org.eclipse.xtext.formatting2.regionaccess.internal.regionaccesstestlanguage.AssignedAction in project xtext-core by eclipse.
the class RegionAccessTestLanguageSemanticSequencer 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 == RegionaccesstestlanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case RegionaccesstestlanguagePackage.ACTION:
sequence_Fragment_Mixed(context, (org.eclipse.xtext.formatting2.regionaccess.internal.regionaccesstestlanguage.Action) semanticObject);
return;
case RegionaccesstestlanguagePackage.ADD:
sequence_Expression(context, (Add) semanticObject);
return;
case RegionaccesstestlanguagePackage.ASSIGNED_ACTION:
sequence_Mixed(context, (AssignedAction) semanticObject);
return;
case RegionaccesstestlanguagePackage.DELEGATE:
sequence_Delegate(context, (Delegate) semanticObject);
return;
case RegionaccesstestlanguagePackage.DELEGATION:
sequence_Delegation(context, (Delegation) semanticObject);
return;
case RegionaccesstestlanguagePackage.MIXED:
sequence_Mixed(context, (Mixed) semanticObject);
return;
case RegionaccesstestlanguagePackage.NAMED:
sequence_Primary(context, (Named) semanticObject);
return;
case RegionaccesstestlanguagePackage.PREFIXED_UNASSIGNED:
sequence_PrefixedUnassigned(context, (PrefixedUnassigned) semanticObject);
return;
case RegionaccesstestlanguagePackage.ROOT:
sequence_Root(context, (Root) semanticObject);
return;
case RegionaccesstestlanguagePackage.ROOT_ACTION:
sequence_Root(context, (RootAction) semanticObject);
return;
case RegionaccesstestlanguagePackage.SIMPLE:
sequence_Simple(context, (Simple) semanticObject);
return;
case RegionaccesstestlanguagePackage.VALUE_LIST:
sequence_ValueList(context, (ValueList) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.formatting2.regionaccess.internal.regionaccesstestlanguage.AssignedAction in project xtext-core by eclipse.
the class RegionAccessBuilderTest method testRef.
@Test
public void testRef() {
StringConcatenation _builder = new StringConcatenation();
_builder.append("6 (foo) action (ref foo) end");
_builder.newLine();
String _trim = _builder.toString().trim();
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append(" ");
_builder_1.append("0 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B AssignedAction Root");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("0 1 S \"6\" Root:\'6\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("1 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B Mixed\'foo\' Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("2 1 S \"(\" Mixed:\'(\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 3 S \"foo\" Mixed:name=ID");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("6 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("6 1 S \")\" Mixed:\')\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E Mixed\'foo\' Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("7 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("8 6 S \"action\" Mixed:\'action\'");
_builder_1.newLine();
_builder_1.append("14 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B Mixed Mixed:body=Mixed path:AssignedAction/body");
_builder_1.newLine();
_builder_1.append("15 1 S \"(\" Mixed:\'(\'");
_builder_1.newLine();
_builder_1.append("16 0 H");
_builder_1.newLine();
_builder_1.append("16 3 S \"ref\" Mixed:\'ref\'");
_builder_1.newLine();
_builder_1.append("19 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append("20 3 S \"foo\" Mixed:ref=[Mixed|ID]");
_builder_1.newLine();
_builder_1.append("23 0 H");
_builder_1.newLine();
_builder_1.append("23 1 S \")\" Mixed:\')\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E Mixed Mixed:body=Mixed path:AssignedAction/body");
_builder_1.newLine();
_builder_1.append("24 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append("25 3 S \"end\" Mixed:\'end\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E AssignedAction Root");
_builder_1.newLine();
_builder_1.append("28 0 H");
_builder_1.newLine();
this.operator_tripleEquals(_trim, _builder_1);
}
use of org.eclipse.xtext.formatting2.regionaccess.internal.regionaccesstestlanguage.AssignedAction in project xtext-core by eclipse.
the class RegionAccessBuilderTest method testAssignmentAction.
@Test
public void testAssignmentAction() {
StringConcatenation _builder = new StringConcatenation();
_builder.append("6 (foo) action");
_builder.newLine();
String _trim = _builder.toString().trim();
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append(" ");
_builder_1.append("0 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B AssignedAction Root");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("0 1 S \"6\" Root:\'6\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("1 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B Mixed\'foo\' Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("2 1 S \"(\" Mixed:\'(\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 3 S \"foo\" Mixed:name=ID");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("6 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("6 1 S \")\" Mixed:\')\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E Mixed\'foo\' Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("7 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("8 6 S \"action\" Mixed:\'action\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E AssignedAction Root");
_builder_1.newLine();
_builder_1.append("14 0 H");
_builder_1.newLine();
this.operator_tripleEquals(_trim, _builder_1);
}
use of org.eclipse.xtext.formatting2.regionaccess.internal.regionaccesstestlanguage.AssignedAction in project xtext-core by eclipse.
the class RegionAccessBuilderTest method testAssignmentActionAction.
@Test
public void testAssignmentActionAction() {
StringConcatenation _builder = new StringConcatenation();
_builder.append("6 (foo) action action");
_builder.newLine();
String _trim = _builder.toString().trim();
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append(" ");
_builder_1.append("0 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B AssignedAction Root");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("0 1 S \"6\" Root:\'6\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("1 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B AssignedAction Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B Mixed\'foo\' Mixed:{AssignedAction.child=} path:AssignedAction/child=AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("2 1 S \"(\" Mixed:\'(\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 3 S \"foo\" Mixed:name=ID");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("6 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("6 1 S \")\" Mixed:\')\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E Mixed\'foo\' Mixed:{AssignedAction.child=} path:AssignedAction/child=AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("7 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("8 6 S \"action\" Mixed:\'action\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E AssignedAction Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append("14 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append("15 6 S \"action\" Mixed:\'action\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E AssignedAction Root");
_builder_1.newLine();
_builder_1.append("21 0 H");
_builder_1.newLine();
this.operator_tripleEquals(_trim, _builder_1);
}
use of org.eclipse.xtext.formatting2.regionaccess.internal.regionaccesstestlanguage.AssignedAction in project xtext-core by eclipse.
the class RegionAccessBuilderTest method testActionActionAction.
@Test
public void testActionActionAction() {
StringConcatenation _builder = new StringConcatenation();
_builder.append("6 () action action");
_builder.newLine();
String _trim = _builder.toString().trim();
StringConcatenation _builder_1 = new StringConcatenation();
_builder_1.append(" ");
_builder_1.append("0 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B AssignedAction Root");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("0 1 S \"6\" Root:\'6\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("1 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B AssignedAction Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("B Action Mixed:{AssignedAction.child=} path:AssignedAction/child=AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("2 1 S \"(\" Mixed:\'(\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 0 H");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("3 1 S \")\" Mixed:\')\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E Action Mixed:{AssignedAction.child=} path:AssignedAction/child=AssignedAction/child");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("4 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("5 6 S \"action\" Mixed:\'action\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E AssignedAction Mixed:{AssignedAction.child=} path:AssignedAction/child");
_builder_1.newLine();
_builder_1.append("11 1 H \" \" Whitespace:TerminalRule\'WS\'");
_builder_1.newLine();
_builder_1.append("12 6 S \"action\" Mixed:\'action\'");
_builder_1.newLine();
_builder_1.append(" ");
_builder_1.append("E AssignedAction Root");
_builder_1.newLine();
_builder_1.append("18 0 H");
_builder_1.newLine();
this.operator_tripleEquals(_trim, _builder_1);
}
Aggregations