use of org.eclipse.xtext.parser.terminalrules.bug297105TestLanguage.Expression in project xtext-core by eclipse.
the class Bug297105TestLanguageSemanticSequencer 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 == Bug297105TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug297105TestLanguagePackage.EXPRESSION:
sequence_Expression(context, (Expression) semanticObject);
return;
case Bug297105TestLanguagePackage.INT_LITERAL:
sequence_IntLiteral(context, (IntLiteral) semanticObject);
return;
case Bug297105TestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug297105TestLanguagePackage.REAL_LITERAL:
sequence_RealLiteral(context, (RealLiteral) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations