use of org.eclipse.n4js.ts.types.TSetter in project n4js by eclipse.
the class TypeUtils method createTSetter.
/**
* Creates a TSetter. If 'fparName' or 'fparTypeRef' is non-null, a TFormalParameter will be created as well. All
* arguments may be <code>null</code>.
*/
public static TSetter createTSetter(String name, String fparName, TypeRef fparTypeRef) {
final TSetter ph = TypesFactory.eINSTANCE.createTSetter();
ph.setName(name);
if (fparName != null || fparTypeRef != null) {
final TFormalParameter fpar = TypesFactory.eINSTANCE.createTFormalParameter();
fpar.setName(fparName);
fpar.setTypeRef(TypeUtils.copyIfContained(TypeRefsFactory.eINSTANCE.createUnknownTypeRef()));
ph.setFpar(fpar);
}
return ph;
}
use of org.eclipse.n4js.ts.types.TSetter in project n4js by eclipse.
the class SetterDeclarationImpl method setDefinedSetter.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDefinedSetter(TSetter newDefinedSetter) {
TSetter oldDefinedSetter = definedSetter;
definedSetter = newDefinedSetter;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, N4JSPackage.SETTER_DECLARATION__DEFINED_SETTER, oldDefinedSetter, definedSetter));
}
Aggregations