use of org.eclipse.xtext.testlanguages.testLang.ReducibleComposite in project xtext-core by eclipse.
the class TestLanguageSemanticSequencer 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 == TestLangPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case TestLangPackage.CHOICE_ELEMENT:
sequence_ChoiceRule(context, (ChoiceElement) semanticObject);
return;
case TestLangPackage.MODEL:
sequence_EntryRule(context, (Model) semanticObject);
return;
case TestLangPackage.REDUCIBLE_COMPOSITE:
sequence_ReducibleRule(context, (ReducibleComposite) semanticObject);
return;
case TestLangPackage.TERMINAL_ELEMENT:
sequence_TerminalRule(context, (TerminalElement) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations