Search in sources :

Example 1 with NVariableAccess

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

the class Expression_VariableNameImpl method basicSetVariable.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetVariable(NVariableAccess newVariable, NotificationChain msgs) {
    NVariableAccess oldVariable = variable;
    variable = newVariable;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug385636Package.EXPRESSION_VARIABLE_NAME__VARIABLE, oldVariable, newVariable);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) NVariableAccess(org.eclipse.xtext.resource.bug385636.NVariableAccess)

Example 2 with NVariableAccess

use of org.eclipse.xtext.resource.bug385636.NVariableAccess 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

NVariableAccess (org.eclipse.xtext.resource.bug385636.NVariableAccess)2 EPackage (org.eclipse.emf.ecore.EPackage)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)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 Program (org.eclipse.xtext.resource.bug385636.Program)1