use of org.eclipse.xtext.parser.antlr.bug378967Test.AfterObj in project xtext-core by eclipse.
the class Bug378967TestLanguageSemanticSequencer 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 == Bug378967TestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug378967TestPackage.AFTER_OBJ:
sequence_AfterObj(context, (AfterObj) semanticObject);
return;
case Bug378967TestPackage.ROOT:
sequence_Root(context, (Root) semanticObject);
return;
case Bug378967TestPackage.RULE1:
sequence_Rule1(context, (Rule1) semanticObject);
return;
case Bug378967TestPackage.RULE2:
sequence_Rule2(context, (Rule2) semanticObject);
return;
case Bug378967TestPackage.RULE3:
sequence_Rule3(context, (Rule3) semanticObject);
return;
case Bug378967TestPackage.RULE4:
sequence_Rule4(context, (Rule4) semanticObject);
return;
case Bug378967TestPackage.SOBJ:
sequence_SObj(context, (SObj) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.parser.antlr.bug378967Test.AfterObj in project xtext-core by eclipse.
the class Rule4Impl method basicSetAfter.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetAfter(AfterObj newAfter, NotificationChain msgs) {
AfterObj oldAfter = after;
after = newAfter;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug378967TestPackage.RULE4__AFTER, oldAfter, newAfter);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations