use of org.eclipse.xtext.parsetree.reconstr.serializationerror.TwoRequired in project xtext-core by eclipse.
the class SerializationErrorTestLanguageSemanticSequencer 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 == SerializationerrorPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case SerializationerrorPackage.INDENT:
sequence_Indent(context, (Indent) semanticObject);
return;
case SerializationerrorPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case SerializationerrorPackage.TWO_OPTIONS:
sequence_TwoOptions(context, (TwoOptions) semanticObject);
return;
case SerializationerrorPackage.TWO_REQUIRED:
sequence_TwoRequired(context, (TwoRequired) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.parsetree.reconstr.serializationerror.TwoRequired in project xtext-core by eclipse.
the class IndentImpl method basicSetReq.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetReq(TwoRequired newReq, NotificationChain msgs) {
TwoRequired oldReq = req;
req = newReq;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SerializationerrorPackage.INDENT__REQ, oldReq, newReq);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations