use of org.eclipse.xtext.parser.antlr.bug289524ExTest.Contained in project xtext-core by eclipse.
the class Bug289524ExTestLanguageSemanticSequencer 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 == Bug289524ExTestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug289524ExTestPackage.CONTAINED:
sequence_Contained(context, (Contained) semanticObject);
return;
case Bug289524ExTestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug289524ExTestPackage.MODEL_ELEMENT:
sequence_ModelElement(context, (ModelElement) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations