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