use of org.eclipse.xtext.parsetree.reconstr.complexrewritetest.TrickyD in project xtext-core by eclipse.
the class ComplexReconstrTestLanguageSemanticSequencer 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 == ComplexrewritetestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case ComplexrewritetestPackage.ADD:
sequence_Op_Parens(context, (Add) semanticObject);
return;
case ComplexrewritetestPackage.ATOM:
if (rule == grammarAccess.getAtomRule()) {
sequence_Atom(context, (Atom) semanticObject);
return;
} else if (rule == grammarAccess.getRootRule() || rule == grammarAccess.getOpRule() || action == grammarAccess.getOpAccess().getAddAddOperandsAction_1_0_0() || action == grammarAccess.getOpAccess().getMinusMinusOperandsAction_1_1_0() || rule == grammarAccess.getTermRule() || rule == grammarAccess.getParensRule()) {
sequence_Atom_Parens(context, (Atom) semanticObject);
return;
} else
break;
case ComplexrewritetestPackage.C1:
sequence_TrickyC(context, (C1) semanticObject);
return;
case ComplexrewritetestPackage.C2:
sequence_TrickyC(context, (C2) semanticObject);
return;
case ComplexrewritetestPackage.C3:
sequence_TrickyC(context, (C3) semanticObject);
return;
case ComplexrewritetestPackage.MINUS:
sequence_Op_Parens(context, (Minus) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_B:
sequence_TrickyB(context, (TrickyB) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_C:
sequence_TrickyC(context, (TrickyC) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_D:
sequence_TrickyD(context, (TrickyD) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_E:
sequence_TrickyE(context, (TrickyE) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_F:
sequence_TrickyF(context, (TrickyF) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_G:
sequence_TrickyG(context, (TrickyG) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_G1:
sequence_TrickyG1(context, (TrickyG1) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_G2:
sequence_TrickyG2(context, (TrickyG2) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations