Search in sources :

Example 1 with SymbolTableEntryOriginal

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

the class DelegatingGetterDeclarationImpl method setDelegationTarget.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDelegationTarget(SymbolTableEntryOriginal newDelegationTarget) {
    SymbolTableEntryOriginal oldDelegationTarget = delegationTarget;
    delegationTarget = newDelegationTarget;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ImPackage.DELEGATING_GETTER_DECLARATION__DELEGATION_TARGET, oldDelegationTarget, delegationTarget));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) SymbolTableEntryOriginal(org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)

Example 2 with SymbolTableEntryOriginal

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

the class DelegatingMethodDeclarationImpl method setDelegationBaseType.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDelegationBaseType(SymbolTableEntryOriginal newDelegationBaseType) {
    SymbolTableEntryOriginal oldDelegationBaseType = delegationBaseType;
    delegationBaseType = newDelegationBaseType;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ImPackage.DELEGATING_METHOD_DECLARATION__DELEGATION_BASE_TYPE, oldDelegationBaseType, delegationBaseType));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) SymbolTableEntryOriginal(org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)

Example 3 with SymbolTableEntryOriginal

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

the class DelegatingMemberImpl method setDelegationBaseType.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDelegationBaseType(SymbolTableEntryOriginal newDelegationBaseType) {
    SymbolTableEntryOriginal oldDelegationBaseType = delegationBaseType;
    delegationBaseType = newDelegationBaseType;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ImPackage.DELEGATING_MEMBER__DELEGATION_BASE_TYPE, oldDelegationBaseType, delegationBaseType));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) SymbolTableEntryOriginal(org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)

Example 4 with SymbolTableEntryOriginal

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

the class DelegatingSetterDeclarationImpl method setDelegationTarget.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDelegationTarget(SymbolTableEntryOriginal newDelegationTarget) {
    SymbolTableEntryOriginal oldDelegationTarget = delegationTarget;
    delegationTarget = newDelegationTarget;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ImPackage.DELEGATING_SETTER_DECLARATION__DELEGATION_TARGET, oldDelegationTarget, delegationTarget));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) SymbolTableEntryOriginal(org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)

Example 5 with SymbolTableEntryOriginal

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

the class StringLiteralForSTEImpl method getValueAsString.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public String getValueAsString() {
    boolean _isUseExportedName = this.isUseExportedName();
    if (_isUseExportedName) {
        final SymbolTableEntry e = this.getEntry();
        if ((e instanceof SymbolTableEntryOriginal)) {
            return ((SymbolTableEntryOriginal) e).exportedName();
        }
    }
    SymbolTableEntry _entry = this.getEntry();
    String _name = null;
    if (_entry != null) {
        _name = _entry.getName();
    }
    return _name;
}
Also used : SymbolTableEntry(org.eclipse.n4js.transpiler.im.SymbolTableEntry) SymbolTableEntryOriginal(org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)

Aggregations

SymbolTableEntryOriginal (org.eclipse.n4js.transpiler.im.SymbolTableEntryOriginal)11 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)8 SymbolTableEntry (org.eclipse.n4js.transpiler.im.SymbolTableEntry)2 ImportSpecifier (org.eclipse.n4js.n4JS.ImportSpecifier)1