use of org.eclipse.xtext.grammarinheritance.foo.CallExtendedParserRule in project xtext-core by eclipse.
the class ConcreteTestLanguageSemanticSequencer 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 == AmetamodelPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case AmetamodelPackage.AMODEL:
if (rule == grammarAccess.getAbstractCallExtendedParserRuleRule()) {
sequence_AbstractCallExtendedParserRule(context, (AModel) semanticObject);
return;
} else if (rule == grammarAccess.getAbstractCallOverridenParserRuleRule()) {
sequence_AbstractCallOverridenParserRule(context, (AModel) semanticObject);
return;
} else
break;
case AmetamodelPackage.ATYPE:
if (rule == grammarAccess.getInheritedParserRuleRule()) {
sequence_InheritedParserRule(context, (AType) semanticObject);
return;
} else if (rule == grammarAccess.getOverridableParserRuleRule()) {
sequence_OverridableParserRule(context, (AType) semanticObject);
return;
} else
break;
}
else if (epackage == FooPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case FooPackage.ATYPE2:
sequence_OverridableParserRule2(context, (AType2) semanticObject);
return;
case FooPackage.CALL_EXTENDED_PARSER_RULE:
sequence_CallExtendedParserRule(context, (CallExtendedParserRule) semanticObject);
return;
case FooPackage.CALL_OVERRIDEN_PARSER_RULE:
sequence_CallOverridenParserRule(context, (CallOverridenParserRule) semanticObject);
return;
case FooPackage.CONCRETE_PARSER_RULE:
sequence_ConcreteParserRule(context, (ConcreteParserRule) semanticObject);
return;
case FooPackage.SUBRULE1:
sequence_Subrule1(context, (Subrule1) semanticObject);
return;
case FooPackage.SUBRULE2:
sequence_Subrule2(context, (Subrule2) semanticObject);
return;
case FooPackage.SUBRULE3:
sequence_Subrule3(context, (Subrule3) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations