Search in sources :

Example 1 with Named

use of org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named in project xtext-core by eclipse.

the class ElementImpl method basicSetFirst.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFirst(Named newFirst, NotificationChain msgs) {
    Named oldFirst = first;
    first = newFirst;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug317840TestLanguagePackage.ELEMENT__FIRST, oldFirst, newFirst);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Named(org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 2 with Named

use of org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named in project xtext-core by eclipse.

the class Bug317840TestLanguageSemanticSequencer 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 == Bug317840TestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case Bug317840TestLanguagePackage.ELEMENT:
                sequence_Element(context, (Element) semanticObject);
                return;
            case Bug317840TestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case Bug317840TestLanguagePackage.NAMED:
                sequence_Named(context, (Named) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Named(org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named) Action(org.eclipse.xtext.Action) Element(org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Element) Model(org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Model) Parameter(org.eclipse.xtext.Parameter) EPackage(org.eclipse.emf.ecore.EPackage)

Example 3 with Named

use of org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named in project xtext-core by eclipse.

the class ElementImpl method basicSetSecond.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetSecond(Named newSecond, NotificationChain msgs) {
    Named oldSecond = second;
    second = newSecond;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug317840TestLanguagePackage.ELEMENT__SECOND, oldSecond, newSecond);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Named(org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

Named (org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named)3 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 EPackage (org.eclipse.emf.ecore.EPackage)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 Element (org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Element)1 Model (org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Model)1