Search in sources :

Example 6 with SymbolTableEntry

use of org.eclipse.n4js.transpiler.im.SymbolTableEntry in project n4js by eclipse.

the class ParameterizedPropertyAccessExpression_IMImpl method getPropertyName.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public String getPropertyName() {
    String _xifexpression = null;
    boolean _isAnyPlusAccess = this.isAnyPlusAccess();
    if (_isAnyPlusAccess) {
        _xifexpression = this.getNameOfAnyPlusProperty();
    } else {
        final SymbolTableEntry e = this.getRewiredTarget();
        if ((e instanceof SymbolTableEntryOriginal)) {
            final String exName = ((SymbolTableEntryOriginal) e).exportedName();
            if ((exName != null)) {
                return exName;
            } else {
                SymbolTableEntry _property_IM = this.getProperty_IM();
                String _name = null;
                if (_property_IM != null) {
                    _name = _property_IM.getName();
                }
                return _name;
            }
        } else {
            SymbolTableEntry _property_IM_1 = this.getProperty_IM();
            String _name_1 = null;
            if (_property_IM_1 != null) {
                _name_1 = _property_IM_1.getName();
            }
            return _name_1;
        }
    }
    return _xifexpression;
}
Also used : SymbolTableEntry(org.eclipse.n4js.transpiler.im.SymbolTableEntry) SymbolTableEntryOriginal(org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)

Example 7 with SymbolTableEntry

use of org.eclipse.n4js.transpiler.im.SymbolTableEntry in project n4js by eclipse.

the class ParameterizedPropertyAccessExpression_IMImpl method basicSetRewiredTarget.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetRewiredTarget(SymbolTableEntry newRewiredTarget, NotificationChain msgs) {
    SymbolTableEntry oldRewiredTarget = rewiredTarget;
    rewiredTarget = newRewiredTarget;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ImPackage.PARAMETERIZED_PROPERTY_ACCESS_EXPRESSION_IM__REWIRED_TARGET, oldRewiredTarget, newRewiredTarget);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : SymbolTableEntry(org.eclipse.n4js.transpiler.im.SymbolTableEntry) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 8 with SymbolTableEntry

use of org.eclipse.n4js.transpiler.im.SymbolTableEntry in project n4js by eclipse.

the class IdentifierRef_IMImpl method basicSetRewiredTarget.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetRewiredTarget(SymbolTableEntry newRewiredTarget, NotificationChain msgs) {
    SymbolTableEntry oldRewiredTarget = rewiredTarget;
    rewiredTarget = newRewiredTarget;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ImPackage.IDENTIFIER_REF_IM__REWIRED_TARGET, oldRewiredTarget, newRewiredTarget);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : SymbolTableEntry(org.eclipse.n4js.transpiler.im.SymbolTableEntry) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

SymbolTableEntry (org.eclipse.n4js.transpiler.im.SymbolTableEntry)8 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)5 SymbolTableEntryOriginal (org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)2 IdentifierRef_IM (org.eclipse.n4js.transpiler.im.IdentifierRef_IM)1