Search in sources :

Example 1 with AfterObj

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));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Rule4(org.eclipse.xtext.parser.antlr.bug378967Test.Rule4) SObj(org.eclipse.xtext.parser.antlr.bug378967Test.SObj) Root(org.eclipse.xtext.parser.antlr.bug378967Test.Root) AfterObj(org.eclipse.xtext.parser.antlr.bug378967Test.AfterObj) Parameter(org.eclipse.xtext.Parameter) Rule2(org.eclipse.xtext.parser.antlr.bug378967Test.Rule2) Rule3(org.eclipse.xtext.parser.antlr.bug378967Test.Rule3) EPackage(org.eclipse.emf.ecore.EPackage) Rule1(org.eclipse.xtext.parser.antlr.bug378967Test.Rule1)

Example 2 with AfterObj

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;
}
Also used : AfterObj(org.eclipse.xtext.parser.antlr.bug378967Test.AfterObj) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

AfterObj (org.eclipse.xtext.parser.antlr.bug378967Test.AfterObj)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 Root (org.eclipse.xtext.parser.antlr.bug378967Test.Root)1 Rule1 (org.eclipse.xtext.parser.antlr.bug378967Test.Rule1)1 Rule2 (org.eclipse.xtext.parser.antlr.bug378967Test.Rule2)1 Rule3 (org.eclipse.xtext.parser.antlr.bug378967Test.Rule3)1 Rule4 (org.eclipse.xtext.parser.antlr.bug378967Test.Rule4)1 SObj (org.eclipse.xtext.parser.antlr.bug378967Test.SObj)1