use of org.eclipse.xtext.generator.ecore.subPackage.SubMain in project xtext-core by eclipse.
the class SubTestLanguageSemanticSequencer 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 == SubPackagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case SubPackagePackage.ANOTHER_SUPER_MAIN:
sequence_AnotherSuperMain(context, (AnotherSuperMain) semanticObject);
return;
case SubPackagePackage.SUB_MAIN:
sequence_SubMain(context, (SubMain) semanticObject);
return;
}
else if (epackage == SuperPackagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case SuperPackagePackage.SUPER_MAIN:
sequence_SuperMain(context, (SuperMain) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations