Search in sources :

Example 1 with Expression_Smaller_Equal

use of org.eclipse.xtext.resource.bug385636.Expression_Smaller_Equal in project xtext-core by eclipse.

the class Bug385636SemanticSequencer 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 == Bug385636Package.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case Bug385636Package.DEFINE_VARIABLE:
                sequence_DefineVariable(context, (DefineVariable) semanticObject);
                return;
            case Bug385636Package.DEFINE_VARIABLES:
                sequence_DefineVariables(context, (DefineVariables) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_EQUAL:
                sequence_Statement(context, (Expression_Equal) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_LARGER_EQUAL:
                sequence_Statement(context, (Expression_Larger_Equal) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_NOT_EQUAL:
                sequence_Statement(context, (Expression_Not_Equal) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_NOT_GREATER:
                sequence_Statement(context, (Expression_Not_Greater) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_NOT_LESS:
                sequence_Statement(context, (Expression_Not_Less) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_SMALLER:
                sequence_Statement(context, (Expression_Smaller) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_SMALLER_EQUAL:
                sequence_Statement(context, (Expression_Smaller_Equal) semanticObject);
                return;
            case Bug385636Package.EXPRESSION_VARIABLE_NAME:
                sequence_Expression_VariableName(context, (Expression_VariableName) semanticObject);
                return;
            case Bug385636Package.NVARIABLE_ACCESS:
                sequence_NVariableAccess(context, (NVariableAccess) semanticObject);
                return;
            case Bug385636Package.PROGRAM:
                sequence_Program(context, (Program) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : Expression_Smaller(org.eclipse.xtext.resource.bug385636.Expression_Smaller) ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Expression_VariableName(org.eclipse.xtext.resource.bug385636.Expression_VariableName) Program(org.eclipse.xtext.resource.bug385636.Program) Expression_Larger_Equal(org.eclipse.xtext.resource.bug385636.Expression_Larger_Equal) DefineVariable(org.eclipse.xtext.resource.bug385636.DefineVariable) Expression_Not_Equal(org.eclipse.xtext.resource.bug385636.Expression_Not_Equal) Expression_Not_Greater(org.eclipse.xtext.resource.bug385636.Expression_Not_Greater) EPackage(org.eclipse.emf.ecore.EPackage) Expression_Smaller_Equal(org.eclipse.xtext.resource.bug385636.Expression_Smaller_Equal) Expression_Not_Less(org.eclipse.xtext.resource.bug385636.Expression_Not_Less) Expression_Equal(org.eclipse.xtext.resource.bug385636.Expression_Equal) Parameter(org.eclipse.xtext.Parameter) DefineVariables(org.eclipse.xtext.resource.bug385636.DefineVariables) NVariableAccess(org.eclipse.xtext.resource.bug385636.NVariableAccess)

Aggregations

EPackage (org.eclipse.emf.ecore.EPackage)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 DefineVariable (org.eclipse.xtext.resource.bug385636.DefineVariable)1 DefineVariables (org.eclipse.xtext.resource.bug385636.DefineVariables)1 Expression_Equal (org.eclipse.xtext.resource.bug385636.Expression_Equal)1 Expression_Larger_Equal (org.eclipse.xtext.resource.bug385636.Expression_Larger_Equal)1 Expression_Not_Equal (org.eclipse.xtext.resource.bug385636.Expression_Not_Equal)1 Expression_Not_Greater (org.eclipse.xtext.resource.bug385636.Expression_Not_Greater)1 Expression_Not_Less (org.eclipse.xtext.resource.bug385636.Expression_Not_Less)1 Expression_Smaller (org.eclipse.xtext.resource.bug385636.Expression_Smaller)1 Expression_Smaller_Equal (org.eclipse.xtext.resource.bug385636.Expression_Smaller_Equal)1 Expression_VariableName (org.eclipse.xtext.resource.bug385636.Expression_VariableName)1 NVariableAccess (org.eclipse.xtext.resource.bug385636.NVariableAccess)1 Program (org.eclipse.xtext.resource.bug385636.Program)1