Search in sources :

Example 1 with LocalArgumentsVariable

use of org.eclipse.n4js.n4JS.LocalArgumentsVariable in project n4js by eclipse.

the class FunctionDeclarationImpl method basicSet_lok.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSet_lok(LocalArgumentsVariable new_lok, NotificationChain msgs) {
    LocalArgumentsVariable old_lok = _lok;
    _lok = new_lok;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.FUNCTION_DECLARATION__LOK, old_lok, new_lok);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) LocalArgumentsVariable(org.eclipse.n4js.n4JS.LocalArgumentsVariable)

Example 2 with LocalArgumentsVariable

use of org.eclipse.n4js.n4JS.LocalArgumentsVariable in project n4js by eclipse.

the class FunctionDeclarationImpl method getLocalArgumentsVariable.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LocalArgumentsVariable getLocalArgumentsVariable() {
    LocalArgumentsVariable __lok = this.get_lok();
    boolean _tripleEquals = (__lok == null);
    if (_tripleEquals) {
        final LocalArgumentsVariable newLok = N4JSFactory.eINSTANCE.createLocalArgumentsVariable();
        newLok.setName("arguments");
        final Procedure0 _function = new Procedure0() {

            public void apply() {
                FunctionDeclarationImpl.this.set_lok(newLok);
            }
        };
        EcoreUtilN4.doWithDeliver(false, _function, this);
    }
    return this.get_lok();
}
Also used : Procedure0(org.eclipse.xtext.xbase.lib.Procedures.Procedure0) LocalArgumentsVariable(org.eclipse.n4js.n4JS.LocalArgumentsVariable)

Example 3 with LocalArgumentsVariable

use of org.eclipse.n4js.n4JS.LocalArgumentsVariable in project n4js by eclipse.

the class FunctionOrFieldAccessorImpl method basicSet_lok.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSet_lok(LocalArgumentsVariable new_lok, NotificationChain msgs) {
    LocalArgumentsVariable old_lok = _lok;
    _lok = new_lok;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.FUNCTION_OR_FIELD_ACCESSOR__LOK, old_lok, new_lok);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) LocalArgumentsVariable(org.eclipse.n4js.n4JS.LocalArgumentsVariable)

Example 4 with LocalArgumentsVariable

use of org.eclipse.n4js.n4JS.LocalArgumentsVariable in project n4js by eclipse.

the class PropertyMethodDeclarationImpl method basicSet_lok.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSet_lok(LocalArgumentsVariable new_lok, NotificationChain msgs) {
    LocalArgumentsVariable old_lok = _lok;
    _lok = new_lok;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.PROPERTY_METHOD_DECLARATION__LOK, old_lok, new_lok);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) LocalArgumentsVariable(org.eclipse.n4js.n4JS.LocalArgumentsVariable)

Example 5 with LocalArgumentsVariable

use of org.eclipse.n4js.n4JS.LocalArgumentsVariable in project n4js by eclipse.

the class N4MethodDeclarationImpl method getLocalArgumentsVariable.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LocalArgumentsVariable getLocalArgumentsVariable() {
    LocalArgumentsVariable __lok = this.get_lok();
    boolean _tripleEquals = (__lok == null);
    if (_tripleEquals) {
        final LocalArgumentsVariable newLok = N4JSFactory.eINSTANCE.createLocalArgumentsVariable();
        newLok.setName("arguments");
        final Procedure0 _function = new Procedure0() {

            public void apply() {
                N4MethodDeclarationImpl.this.set_lok(newLok);
            }
        };
        EcoreUtilN4.doWithDeliver(false, _function, this);
    }
    return this.get_lok();
}
Also used : Procedure0(org.eclipse.xtext.xbase.lib.Procedures.Procedure0) LocalArgumentsVariable(org.eclipse.n4js.n4JS.LocalArgumentsVariable)

Aggregations

LocalArgumentsVariable (org.eclipse.n4js.n4JS.LocalArgumentsVariable)10 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)5 Procedure0 (org.eclipse.xtext.xbase.lib.Procedures.Procedure0)5