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;
}
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));
}
Aggregations