Search in sources :

Example 1 with SymbolTableEntry

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

the class PrettyPrinterSwitch method caseIdentifierRef.

@Override
public Boolean caseIdentifierRef(IdentifierRef original) {
    final IdentifierRef_IM original_IM = (IdentifierRef_IM) original;
    final SymbolTableEntry ste = original_IM.getId_IM();
    write(ste.getName());
    return DONE;
}
Also used : SymbolTableEntry(org.eclipse.n4js.transpiler.im.SymbolTableEntry) IdentifierRef_IM(org.eclipse.n4js.transpiler.im.IdentifierRef_IM)

Example 2 with SymbolTableEntry

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

the class StringLiteralForSTEImpl method setEntry.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setEntry(SymbolTableEntry newEntry) {
    SymbolTableEntry oldEntry = entry;
    entry = newEntry;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ImPackage.STRING_LITERAL_FOR_STE__ENTRY, oldEntry, entry));
}
Also used : SymbolTableEntry(org.eclipse.n4js.transpiler.im.SymbolTableEntry) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 3 with SymbolTableEntry

use of org.eclipse.n4js.transpiler.im.SymbolTableEntry 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)

Example 4 with SymbolTableEntry

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

the class ParameterizedTypeRef_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_TYPE_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)

Example 5 with SymbolTableEntry

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

the class ReferencingElement_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.REFERENCING_ELEMENT_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