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;
}
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));
}
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;
}
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;
}
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;
}
Aggregations