use of org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.DefValue in project xtext-core by eclipse.
the class ExBeeLangTestLanguageSemanticSequencer 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 == BeeLangTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BeeLangTestLanguagePackage.ALIASED_REQUIRED_CAPABILITY:
sequence_AliasedRequiredCapability(context, (AliasedRequiredCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.AND_EXPRESSION:
sequence_AndExpression(context, (AndExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.ASSIGNMENT_EXPRESSION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_AssignmentExpression(context, (AssignmentExpression) semanticObject);
return;
} else if (rule == grammarAccess.getInitializationExpressionRule()) {
sequence_InitializationExpression(context, (AssignmentExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.AT_EXPRESSION:
sequence_InfixExpression(context, (AtExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.BINARY_OP_EXPRESSION:
sequence_AdditiveExpression_MultiplicativeExpression_RelationalExpression_SetExpression(context, (BinaryOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.CACHED_EXPRESSION:
sequence_CachedExpression(context, (CachedExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_FEATURE:
sequence_InfixExpression(context, (CallFeature) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_FUNCTION:
sequence_CallExpression(context, (CallFunction) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_NAMED_FUNCTION:
sequence_OperationCall(context, (CallNamedFunction) semanticObject);
return;
case BeeLangTestLanguagePackage.CHAINED_EXPRESSION:
if (rule == grammarAccess.getBlockExpressionWithoutBracketsRule()) {
sequence_BlockExpressionWithoutBrackets(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getOneOrManyExpressionsRule()) {
sequence_BlockExpression_BlockExpressionWithoutBrackets(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getBlockExpressionRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_BlockExpression(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getInitializationBlockExpressionRule()) {
sequence_InitializationBlockExpression(context, (ChainedExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.CLOSURE_PARAMETER:
sequence_ClosureParameter(context, (ClosureParameter) semanticObject);
return;
case BeeLangTestLanguagePackage.CLOSURE_TYPE_REF:
sequence_ClosureTypeRef(context, (ClosureTypeRef) semanticObject);
return;
case BeeLangTestLanguagePackage.CREATE_EXPRESSION:
sequence_ConstructorCallExpression(context, (CreateExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.DEF_VALUE:
if (rule == grammarAccess.getValDeclarationRule()) {
sequence_ValDeclaration(context, (DefValue) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule()) {
sequence_ValDeclaration_VarDeclaration(context, (DefValue) semanticObject);
return;
} else if (rule == grammarAccess.getVarDeclarationRule()) {
sequence_VarDeclaration(context, (DefValue) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.FEATURE_EXPRESSION:
if (rule == grammarAccess.getFeatureOfThisRule()) {
sequence_FeatureOfThis(context, (FeatureExpression) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_InfixExpression(context, (FeatureExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.FUNCTION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getLiteralRule() || rule == grammarAccess.getLiteralFunctionRule() || rule == grammarAccess.getClosureExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_ClosureExpression(context, (Function) semanticObject);
return;
} else if (rule == grammarAccess.getFunctionRule()) {
sequence_Function(context, (Function) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.GUARD_EXPRESSION:
sequence_GuardExpression(context, (GuardExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BeeLangTestLanguagePackage.OR_EXPRESSION:
sequence_OrExpression(context, (OrExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER:
sequence_Parameter(context, (org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Parameter) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER_DECLARATION:
sequence_ParameterDeclaration(context, (ParameterDeclaration) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER_LIST:
sequence_ParameterList(context, (ParameterList) semanticObject);
return;
case BeeLangTestLanguagePackage.PROVIDED_CAPABILITY:
sequence_ProvidedCapability(context, (ProvidedCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.REQUIRED_CAPABILITY:
sequence_RequiredCapability(context, (RequiredCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.SIMPLE_TYPE_REF:
sequence_SimpleTypeRef(context, (SimpleTypeRef) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_OP_EXPRESSION:
sequence_UnaryExpression(context, (UnaryOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_POST_OP_EXPRESSION:
sequence_PostopExpression(context, (UnaryPostOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_PRE_OP_EXPRESSION:
sequence_PreopExpression(context, (UnaryPreOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNIT:
sequence_Unit(context, (Unit) semanticObject);
return;
case BeeLangTestLanguagePackage.VALUE_LITERAL:
sequence_ValueLiteral(context, (ValueLiteral) semanticObject);
return;
case BeeLangTestLanguagePackage.VARIABLE_EXPRESSION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_KeywordVariables_Value(context, (VariableExpression) semanticObject);
return;
} else if (rule == grammarAccess.getKeywordVariablesRule()) {
sequence_KeywordVariables(context, (VariableExpression) semanticObject);
return;
} else if (rule == grammarAccess.getValueRule()) {
sequence_Value(context, (VariableExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.WITH_CONTEXT_EXPRESSION:
sequence_WithContextExpression(context, (WithContextExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.WITH_EXPRESSION:
sequence_WithExpression(context, (WithExpression) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.DefValue in project xtext-core by eclipse.
the class BeeLangTestLanguageSemanticSequencer 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 == BeeLangTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BeeLangTestLanguagePackage.ALIASED_REQUIRED_CAPABILITY:
sequence_AliasedRequiredCapability(context, (AliasedRequiredCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.AND_EXPRESSION:
sequence_AndExpression(context, (AndExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.ASSIGNMENT_EXPRESSION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_AssignmentExpression(context, (AssignmentExpression) semanticObject);
return;
} else if (rule == grammarAccess.getInitializationExpressionRule()) {
sequence_InitializationExpression(context, (AssignmentExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.AT_EXPRESSION:
sequence_InfixExpression(context, (AtExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.BINARY_OP_EXPRESSION:
sequence_AdditiveExpression_MultiplicativeExpression_RelationalExpression_SetExpression(context, (BinaryOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.CACHED_EXPRESSION:
sequence_CachedExpression(context, (CachedExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_FEATURE:
sequence_InfixExpression(context, (CallFeature) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_FUNCTION:
sequence_CallExpression(context, (CallFunction) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_NAMED_FUNCTION:
sequence_OperationCall(context, (CallNamedFunction) semanticObject);
return;
case BeeLangTestLanguagePackage.CHAINED_EXPRESSION:
if (rule == grammarAccess.getBlockExpressionWithoutBracketsRule()) {
sequence_BlockExpressionWithoutBrackets(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getOneOrManyExpressionsRule()) {
sequence_BlockExpression_BlockExpressionWithoutBrackets(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getBlockExpressionRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_BlockExpression(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getInitializationBlockExpressionRule()) {
sequence_InitializationBlockExpression(context, (ChainedExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.CLOSURE_PARAMETER:
sequence_ClosureParameter(context, (ClosureParameter) semanticObject);
return;
case BeeLangTestLanguagePackage.CLOSURE_TYPE_REF:
sequence_ClosureTypeRef(context, (ClosureTypeRef) semanticObject);
return;
case BeeLangTestLanguagePackage.CREATE_EXPRESSION:
sequence_ConstructorCallExpression(context, (CreateExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.DEF_VALUE:
if (rule == grammarAccess.getValDeclarationRule()) {
sequence_ValDeclaration(context, (DefValue) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule()) {
sequence_ValDeclaration_VarDeclaration(context, (DefValue) semanticObject);
return;
} else if (rule == grammarAccess.getVarDeclarationRule()) {
sequence_VarDeclaration(context, (DefValue) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.FEATURE_EXPRESSION:
if (rule == grammarAccess.getFeatureOfThisRule()) {
sequence_FeatureOfThis(context, (FeatureExpression) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_InfixExpression(context, (FeatureExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.FUNCTION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getLiteralRule() || rule == grammarAccess.getLiteralFunctionRule() || rule == grammarAccess.getClosureExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_ClosureExpression(context, (Function) semanticObject);
return;
} else if (rule == grammarAccess.getFunctionRule()) {
sequence_Function(context, (Function) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.GUARD_EXPRESSION:
sequence_GuardExpression(context, (GuardExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BeeLangTestLanguagePackage.OR_EXPRESSION:
sequence_OrExpression(context, (OrExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER:
sequence_Parameter(context, (org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Parameter) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER_DECLARATION:
sequence_ParameterDeclaration(context, (ParameterDeclaration) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER_LIST:
sequence_ParameterList(context, (ParameterList) semanticObject);
return;
case BeeLangTestLanguagePackage.PROVIDED_CAPABILITY:
sequence_ProvidedCapability(context, (ProvidedCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.REQUIRED_CAPABILITY:
sequence_RequiredCapability(context, (RequiredCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.SIMPLE_TYPE_REF:
sequence_SimpleTypeRef(context, (SimpleTypeRef) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_OP_EXPRESSION:
sequence_UnaryExpression(context, (UnaryOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_POST_OP_EXPRESSION:
sequence_PostopExpression(context, (UnaryPostOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_PRE_OP_EXPRESSION:
sequence_PreopExpression(context, (UnaryPreOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNIT:
sequence_Unit(context, (Unit) semanticObject);
return;
case BeeLangTestLanguagePackage.VALUE_LITERAL:
sequence_ValueLiteral(context, (ValueLiteral) semanticObject);
return;
case BeeLangTestLanguagePackage.VARIABLE_EXPRESSION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_KeywordVariables_Value(context, (VariableExpression) semanticObject);
return;
} else if (rule == grammarAccess.getKeywordVariablesRule()) {
sequence_KeywordVariables(context, (VariableExpression) semanticObject);
return;
} else if (rule == grammarAccess.getValueRule()) {
sequence_Value(context, (VariableExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.WITH_CONTEXT_EXPRESSION:
sequence_WithContextExpression(context, (WithContextExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.WITH_EXPRESSION:
sequence_WithExpression(context, (WithExpression) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.DefValue in project xtext-core by eclipse.
the class SimpleBeeLangTestLanguageSemanticSequencer 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 == BeeLangTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BeeLangTestLanguagePackage.ALIASED_REQUIRED_CAPABILITY:
sequence_AliasedRequiredCapability(context, (AliasedRequiredCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.AND_EXPRESSION:
sequence_AndExpression(context, (AndExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.ASSIGNMENT_EXPRESSION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_AssignmentExpression(context, (AssignmentExpression) semanticObject);
return;
} else if (rule == grammarAccess.getInitializationExpressionRule()) {
sequence_InitializationExpression(context, (AssignmentExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.AT_EXPRESSION:
sequence_InfixExpression(context, (AtExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.BINARY_OP_EXPRESSION:
sequence_AdditiveExpression_MultiplicativeExpression_RelationalExpression_SetExpression(context, (BinaryOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.CACHED_EXPRESSION:
sequence_CachedExpression(context, (CachedExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_FEATURE:
sequence_InfixExpression(context, (CallFeature) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_FUNCTION:
sequence_CallExpression(context, (CallFunction) semanticObject);
return;
case BeeLangTestLanguagePackage.CALL_NAMED_FUNCTION:
sequence_OperationCall(context, (CallNamedFunction) semanticObject);
return;
case BeeLangTestLanguagePackage.CHAINED_EXPRESSION:
if (rule == grammarAccess.getBlockExpressionWithoutBracketsRule()) {
sequence_BlockExpressionWithoutBrackets(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getOneOrManyExpressionsRule()) {
sequence_BlockExpression_BlockExpressionWithoutBrackets(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getBlockExpressionRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_BlockExpression(context, (ChainedExpression) semanticObject);
return;
} else if (rule == grammarAccess.getInitializationBlockExpressionRule()) {
sequence_InitializationBlockExpression(context, (ChainedExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.CLOSURE_PARAMETER:
sequence_ClosureParameter(context, (ClosureParameter) semanticObject);
return;
case BeeLangTestLanguagePackage.CLOSURE_TYPE_REF:
sequence_ClosureTypeRef(context, (ClosureTypeRef) semanticObject);
return;
case BeeLangTestLanguagePackage.CREATE_EXPRESSION:
sequence_ConstructorCallExpression(context, (CreateExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.DEF_VALUE:
if (rule == grammarAccess.getValDeclarationRule()) {
sequence_ValDeclaration(context, (DefValue) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule()) {
sequence_ValDeclaration_VarDeclaration(context, (DefValue) semanticObject);
return;
} else if (rule == grammarAccess.getVarDeclarationRule()) {
sequence_VarDeclaration(context, (DefValue) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.FEATURE_EXPRESSION:
if (rule == grammarAccess.getFeatureOfThisRule()) {
sequence_FeatureOfThis(context, (FeatureExpression) semanticObject);
return;
} else if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_InfixExpression(context, (FeatureExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.FUNCTION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getLiteralRule() || rule == grammarAccess.getLiteralFunctionRule() || rule == grammarAccess.getClosureExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_ClosureExpression(context, (Function) semanticObject);
return;
} else if (rule == grammarAccess.getFunctionRule()) {
sequence_Function(context, (Function) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.GUARD_EXPRESSION:
sequence_GuardExpression(context, (GuardExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BeeLangTestLanguagePackage.OR_EXPRESSION:
sequence_OrExpression(context, (OrExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER:
sequence_Parameter(context, (org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Parameter) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER_DECLARATION:
sequence_ParameterDeclaration(context, (ParameterDeclaration) semanticObject);
return;
case BeeLangTestLanguagePackage.PARAMETER_LIST:
sequence_ParameterList(context, (ParameterList) semanticObject);
return;
case BeeLangTestLanguagePackage.PROVIDED_CAPABILITY:
sequence_ProvidedCapability(context, (ProvidedCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.REQUIRED_CAPABILITY:
sequence_RequiredCapability(context, (RequiredCapability) semanticObject);
return;
case BeeLangTestLanguagePackage.SIMPLE_TYPE_REF:
sequence_SimpleTypeRef(context, (SimpleTypeRef) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_OP_EXPRESSION:
sequence_UnaryExpression(context, (UnaryOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_POST_OP_EXPRESSION:
sequence_PostopExpression(context, (UnaryPostOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNARY_PRE_OP_EXPRESSION:
sequence_PreopExpression(context, (UnaryPreOpExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.UNIT:
sequence_Unit(context, (Unit) semanticObject);
return;
case BeeLangTestLanguagePackage.VALUE_LITERAL:
sequence_ValueLiteral(context, (ValueLiteral) semanticObject);
return;
case BeeLangTestLanguagePackage.VARIABLE_EXPRESSION:
if (rule == grammarAccess.getTopLevelExpressionRule() || rule == grammarAccess.getExpressionRule() || rule == grammarAccess.getAssignmentExpressionRule() || action == grammarAccess.getAssignmentExpressionAccess().getAssignmentExpressionLeftExprAction_1_0() || rule == grammarAccess.getCachedExpressionRule() || rule == grammarAccess.getOrExpressionRule() || action == grammarAccess.getOrExpressionAccess().getOrExpressionLeftExprAction_1_0() || rule == grammarAccess.getAndExpressionRule() || action == grammarAccess.getAndExpressionAccess().getAndExpressionLeftExprAction_1_0() || rule == grammarAccess.getRelationalExpressionRule() || action == grammarAccess.getRelationalExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getAdditiveExpressionRule() || action == grammarAccess.getAdditiveExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getMultiplicativeExpressionRule() || action == grammarAccess.getMultiplicativeExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getSetExpressionRule() || action == grammarAccess.getSetExpressionAccess().getBinaryOpExpressionLeftExprAction_1_0() || rule == grammarAccess.getUnaryOrInfixExpressionRule() || rule == grammarAccess.getPostopExpressionRule() || action == grammarAccess.getPostopExpressionAccess().getUnaryPostOpExpressionExprAction_1_0() || rule == grammarAccess.getInfixExpressionRule() || action == grammarAccess.getInfixExpressionAccess().getCallFeatureFuncExprAction_1_0_0() || action == grammarAccess.getInfixExpressionAccess().getAtExpressionObjExprAction_1_1_0() || action == grammarAccess.getInfixExpressionAccess().getFeatureExpressionObjExprAction_1_2_0() || rule == grammarAccess.getCallExpressionRule() || action == grammarAccess.getCallExpressionAccess().getCallFunctionFuncExprAction_1_0() || rule == grammarAccess.getPrimaryExpressionRule() || rule == grammarAccess.getOneOrManyExpressionsRule() || rule == grammarAccess.getParanthesizedExpressionRule()) {
sequence_KeywordVariables_Value(context, (VariableExpression) semanticObject);
return;
} else if (rule == grammarAccess.getKeywordVariablesRule()) {
sequence_KeywordVariables(context, (VariableExpression) semanticObject);
return;
} else if (rule == grammarAccess.getValueRule()) {
sequence_Value(context, (VariableExpression) semanticObject);
return;
} else
break;
case BeeLangTestLanguagePackage.WITH_CONTEXT_EXPRESSION:
sequence_WithContextExpression(context, (WithContextExpression) semanticObject);
return;
case BeeLangTestLanguagePackage.WITH_EXPRESSION:
sequence_WithExpression(context, (WithExpression) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations