use of org.eclipse.xtext.testlanguages.partialParserTestLanguage.FirstConcrete in project xtext-core by eclipse.
the class PartialParserTestLanguageSemanticSequencer 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 == PartialParserTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case PartialParserTestLanguagePackage.ABSTRACT_CHILDREN:
sequence_AbstractChildren(context, (AbstractChildren) semanticObject);
return;
case PartialParserTestLanguagePackage.CHILD:
sequence_Child(context, (Child) semanticObject);
return;
case PartialParserTestLanguagePackage.CHILDREN:
sequence_Children(context, (Children) semanticObject);
return;
case PartialParserTestLanguagePackage.FIRST_CONCRETE:
sequence_FirstConcrete(context, (FirstConcrete) semanticObject);
return;
case PartialParserTestLanguagePackage.NAMED:
sequence_Named(context, (Named) semanticObject);
return;
case PartialParserTestLanguagePackage.NESTED:
sequence_Nested(context, (Nested) semanticObject);
return;
case PartialParserTestLanguagePackage.SECOND_CONCRETE:
sequence_SecondConcrete(context, (SecondConcrete) semanticObject);
return;
case PartialParserTestLanguagePackage.SOME_CONTAINER:
sequence_SomeContainer(context, (SomeContainer) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations