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