use of org.eclipse.xtext.parsetree.reconstr.complexrewritetest.TrickyC in project xtext-core by eclipse.
the class C3Impl method basicSetZ.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetZ(TrickyC newZ, NotificationChain msgs) {
TrickyC oldZ = z;
z = newZ;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComplexrewritetestPackage.C3__Z, oldZ, newZ);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.parsetree.reconstr.complexrewritetest.TrickyC in project xtext-core by eclipse.
the class ComplexReconstrTestLanguageSemanticSequencer 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 == ComplexrewritetestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case ComplexrewritetestPackage.ADD:
sequence_Op_Parens(context, (Add) semanticObject);
return;
case ComplexrewritetestPackage.ATOM:
if (rule == grammarAccess.getAtomRule()) {
sequence_Atom(context, (Atom) semanticObject);
return;
} else if (rule == grammarAccess.getRootRule() || rule == grammarAccess.getOpRule() || action == grammarAccess.getOpAccess().getAddAddOperandsAction_1_0_0() || action == grammarAccess.getOpAccess().getMinusMinusOperandsAction_1_1_0() || rule == grammarAccess.getTermRule() || rule == grammarAccess.getParensRule()) {
sequence_Atom_Parens(context, (Atom) semanticObject);
return;
} else
break;
case ComplexrewritetestPackage.C1:
sequence_TrickyC(context, (C1) semanticObject);
return;
case ComplexrewritetestPackage.C2:
sequence_TrickyC(context, (C2) semanticObject);
return;
case ComplexrewritetestPackage.C3:
sequence_TrickyC(context, (C3) semanticObject);
return;
case ComplexrewritetestPackage.MINUS:
sequence_Op_Parens(context, (Minus) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_B:
sequence_TrickyB(context, (TrickyB) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_C:
sequence_TrickyC(context, (TrickyC) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_D:
sequence_TrickyD(context, (TrickyD) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_E:
sequence_TrickyE(context, (TrickyE) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_F:
sequence_TrickyF(context, (TrickyF) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_G:
sequence_TrickyG(context, (TrickyG) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_G1:
sequence_TrickyG1(context, (TrickyG1) semanticObject);
return;
case ComplexrewritetestPackage.TRICKY_G2:
sequence_TrickyG2(context, (TrickyG2) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.parsetree.reconstr.complexrewritetest.TrickyC in project xtext-core by eclipse.
the class C1Impl method basicSetX.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetX(TrickyC newX, NotificationChain msgs) {
TrickyC oldX = x;
x = newX;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComplexrewritetestPackage.C1__X, oldX, newX);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.parsetree.reconstr.complexrewritetest.TrickyC in project xtext-core by eclipse.
the class C2Impl method basicSetY.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetY(TrickyC newY, NotificationChain msgs) {
TrickyC oldY = y;
y = newY;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComplexrewritetestPackage.C2__Y, oldY, newY);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations