Search in sources :

Example 31 with Parameter

use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.

the class TerminalRulesTestLanguageSemanticSequencer 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 == TerminalRulesTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case TerminalRulesTestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Model(org.eclipse.xtext.parser.terminalrules.terminalRulesTestLanguage.Model) Parameter(org.eclipse.xtext.Parameter) EPackage(org.eclipse.emf.ecore.EPackage)

Example 32 with Parameter

use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.

the class AbstractBacktrackingBug325745TestLanguageSemanticSequencer 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 == BacktrackingBug325745TestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case BacktrackingBug325745TestLanguagePackage.DATA_TYPE:
                sequence_DataType(context, (DataType) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.ELEMENT:
                sequence_Element(context, (Element) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.EXPRESSION:
                sequence_Expression(context, (Expression) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.SIMPLE_TERM:
                sequence_SimpleTerm(context, (SimpleTerm) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) SimpleTerm(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.SimpleTerm) Expression(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.Expression) Element(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.Element) Model(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.Model) Parameter(org.eclipse.xtext.Parameter) DataType(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.DataType) EPackage(org.eclipse.emf.ecore.EPackage)

Example 33 with Parameter

use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.

the class ExUnorderedGroupsTestLanguageSemanticSequencer 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 == UnorderedGroupsTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case UnorderedGroupsTestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.NESTED_MODEL:
                sequence_NestedModel(context, (NestedModel) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.UNORDERED_SERIALIZATION:
                sequence_UnorderedSerialization(context, (UnorderedSerialization) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Model(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) Parameter(org.eclipse.xtext.Parameter) UnorderedSerialization(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) EPackage(org.eclipse.emf.ecore.EPackage)

Example 34 with Parameter

use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.

the class SimpleBacktrackingBug325745TestLanguageSemanticSequencer 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 == BacktrackingBug325745TestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case BacktrackingBug325745TestLanguagePackage.DATA_TYPE:
                sequence_DataType(context, (DataType) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.ELEMENT:
                sequence_Element(context, (Element) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.EXPRESSION:
                sequence_Expression(context, (Expression) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case BacktrackingBug325745TestLanguagePackage.SIMPLE_TERM:
                sequence_SimpleTerm(context, (SimpleTerm) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) SimpleTerm(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.SimpleTerm) Expression(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.Expression) Element(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.Element) Model(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.Model) Parameter(org.eclipse.xtext.Parameter) DataType(org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.DataType) EPackage(org.eclipse.emf.ecore.EPackage)

Example 35 with Parameter

use of org.eclipse.xtext.Parameter 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));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) UnaryPostOpExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.UnaryPostOpExpression) Action(org.eclipse.xtext.Action) AtExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.AtExpression) CallNamedFunction(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CallNamedFunction) AliasedRequiredCapability(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.AliasedRequiredCapability) ClosureTypeRef(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ClosureTypeRef) OrExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.OrExpression) Unit(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Unit) WithExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.WithExpression) UnaryPreOpExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.UnaryPreOpExpression) EPackage(org.eclipse.emf.ecore.EPackage) DefValue(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.DefValue) Function(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Function) CallFunction(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CallFunction) CallNamedFunction(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CallNamedFunction) AndExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.AndExpression) AssignmentExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.AssignmentExpression) WithContextExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.WithContextExpression) ValueLiteral(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ValueLiteral) CreateExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CreateExpression) CallFunction(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CallFunction) ParameterDeclaration(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ParameterDeclaration) UnaryOpExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.UnaryOpExpression) ChainedExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ChainedExpression) BinaryOpExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.BinaryOpExpression) GuardExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.GuardExpression) FeatureExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.FeatureExpression) SimpleTypeRef(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.SimpleTypeRef) VariableExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.VariableExpression) CachedExpression(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CachedExpression) AliasedRequiredCapability(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.AliasedRequiredCapability) RequiredCapability(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.RequiredCapability) ProvidedCapability(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ProvidedCapability) ClosureParameter(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ClosureParameter) Model(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Model) ClosureParameter(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ClosureParameter) Parameter(org.eclipse.xtext.Parameter) ParameterList(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.ParameterList) CallFeature(org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.CallFeature)

Aggregations

Parameter (org.eclipse.xtext.Parameter)146 ParserRule (org.eclipse.xtext.ParserRule)137 Action (org.eclipse.xtext.Action)127 EPackage (org.eclipse.emf.ecore.EPackage)123 NamedArgument (org.eclipse.xtext.NamedArgument)7 EClass (org.eclipse.emf.ecore.EClass)6 ISerializationContext (org.eclipse.xtext.serializer.ISerializationContext)6 AbstractElement (org.eclipse.xtext.AbstractElement)5 AbstractRule (org.eclipse.xtext.AbstractRule)5 RuleCall (org.eclipse.xtext.RuleCall)5 EObject (org.eclipse.emf.ecore.EObject)4 ParserRuleParameters (org.eclipse.xtext.parser.parameters.parametersTestLanguage.ParserRuleParameters)4 Scenario (org.eclipse.xtext.parser.parameters.parametersTestLanguage.Scenario)4 ImmutableSet (com.google.common.collect.ImmutableSet)3 Group (org.eclipse.xtext.Group)3 ConditionEvaluator (org.eclipse.xtext.xtext.ConditionEvaluator)3 Set (java.util.Set)2 Assignment (org.eclipse.xtext.Assignment)2 EnumRule (org.eclipse.xtext.EnumRule)2 Grammar (org.eclipse.xtext.Grammar)2