use of org.eclipse.xtext.testlanguages.referenceGrammar.Familie in project xtext-core by eclipse.
the class ReferenceGrammarTestLanguageSemanticSequencer 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 == ReferenceGrammarPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case ReferenceGrammarPackage.ERWACHSENER:
sequence_Erwachsener(context, (Erwachsener) semanticObject);
return;
case ReferenceGrammarPackage.FAMILIE:
sequence_Familie(context, (Familie) semanticObject);
return;
case ReferenceGrammarPackage.FARBE:
sequence_Farbe(context, (Farbe) semanticObject);
return;
case ReferenceGrammarPackage.KIND:
sequence_Kind(context, (Kind) semanticObject);
return;
case ReferenceGrammarPackage.SPIELPLATZ:
sequence_Spielplatz(context, (Spielplatz) semanticObject);
return;
case ReferenceGrammarPackage.SPIELZEUG:
sequence_Spielzeug(context, (Spielzeug) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations