Search in sources :

Example 1 with HidingHiddens

use of org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.HidingHiddens in project xtext-core by eclipse.

the class InheritingHiddensImpl method basicSetHidingCalled.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetHidingCalled(HidingHiddens newHidingCalled, NotificationChain msgs) {
    HidingHiddens oldHidingCalled = hidingCalled;
    hidingCalled = newHidingCalled;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, HiddenTerminalsTestLanguagePackage.INHERITING_HIDDENS__HIDING_CALLED, oldHidingCalled, newHidingCalled);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : HidingHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.HidingHiddens) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 2 with HidingHiddens

use of org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.HidingHiddens in project xtext-core by eclipse.

the class HiddenTerminalsTestLanguageSemanticSequencer 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 == HiddenTerminalsTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case HiddenTerminalsTestLanguagePackage.DATATYPE_HIDDENS:
                sequence_DatatypeHiddens(context, (DatatypeHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.HIDING_HIDDENS:
                sequence_HidingHiddens(context, (HidingHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.INHERITING_HIDDENS:
                sequence_InheritingHiddens(context, (InheritingHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.INHERITING_HIDDENS_CALL:
                sequence_InheritingHiddensCall(context, (InheritingHiddensCall) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.OVERRIDING_HIDDENS:
                sequence_OverridingHiddens(context, (OverridingHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.OVERRIDING_HIDDENS_CALL:
                sequence_OverridingHiddensCall(context, (OverridingHiddensCall) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.WITH_HIDDENS:
                sequence_WithHiddens(context, (WithHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.WITHOUT_HIDDENS:
                sequence_WithoutHiddens(context, (WithoutHiddens) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : HidingHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.HidingHiddens) ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) OverridingHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddens) WithoutHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithoutHiddens) EPackage(org.eclipse.emf.ecore.EPackage) WithHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithHiddens) InheritingHiddensCall(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddensCall) InheritingHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddens) OverridingHiddensCall(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddensCall) Parameter(org.eclipse.xtext.Parameter) DatatypeHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.DatatypeHiddens)

Aggregations

HidingHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.HidingHiddens)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 DatatypeHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.DatatypeHiddens)1 InheritingHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddens)1 InheritingHiddensCall (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddensCall)1 OverridingHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddens)1 OverridingHiddensCall (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddensCall)1 WithHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithHiddens)1 WithoutHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithoutHiddens)1