Search in sources :

Example 16 with TStructuralType

use of org.eclipse.n4js.ts.types.TStructuralType in project n4js by eclipse.

the class BoundThisTypeRefImpl method setStructuralType.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setStructuralType(TStructuralType newStructuralType) {
    TStructuralType oldStructuralType = structuralType;
    structuralType = newStructuralType;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TypeRefsPackage.BOUND_THIS_TYPE_REF__STRUCTURAL_TYPE, oldStructuralType, structuralType));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) TStructuralType(org.eclipse.n4js.ts.types.TStructuralType)

Example 17 with TStructuralType

use of org.eclipse.n4js.ts.types.TStructuralType in project n4js by eclipse.

the class VersionedParameterizedTypeRefStructuralImpl method setStructuralType.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setStructuralType(TStructuralType newStructuralType) {
    TStructuralType oldStructuralType = structuralType;
    structuralType = newStructuralType;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TypeRefsPackage.VERSIONED_PARAMETERIZED_TYPE_REF_STRUCTURAL__STRUCTURAL_TYPE, oldStructuralType, structuralType));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) TStructuralType(org.eclipse.n4js.ts.types.TStructuralType)

Aggregations

TStructuralType (org.eclipse.n4js.ts.types.TStructuralType)17 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)7 TStructMember (org.eclipse.n4js.ts.types.TStructMember)7 ParameterizedTypeRef (org.eclipse.n4js.ts.typeRefs.ParameterizedTypeRef)2 TN4Classifier (org.eclipse.n4js.ts.types.TN4Classifier)2 Type (org.eclipse.n4js.ts.types.Type)2 TypingStrategy (org.eclipse.n4js.ts.types.TypingStrategy)2 BaseTypeRef (org.eclipse.n4js.ts.typeRefs.BaseTypeRef)1 BoundThisTypeRef (org.eclipse.n4js.ts.typeRefs.BoundThisTypeRef)1 ComposedTypeRef (org.eclipse.n4js.ts.typeRefs.ComposedTypeRef)1 ExistentialTypeRef (org.eclipse.n4js.ts.typeRefs.ExistentialTypeRef)1 FunctionTypeRef (org.eclipse.n4js.ts.typeRefs.FunctionTypeRef)1 ParameterizedTypeRefStructural (org.eclipse.n4js.ts.typeRefs.ParameterizedTypeRefStructural)1 StaticBaseTypeRef (org.eclipse.n4js.ts.typeRefs.StaticBaseTypeRef)1 StructuralTypeRef (org.eclipse.n4js.ts.typeRefs.StructuralTypeRef)1 ThisTypeRef (org.eclipse.n4js.ts.typeRefs.ThisTypeRef)1 TypeRef (org.eclipse.n4js.ts.typeRefs.TypeRef)1 TypeTypeRef (org.eclipse.n4js.ts.typeRefs.TypeTypeRef)1 UnknownTypeRef (org.eclipse.n4js.ts.typeRefs.UnknownTypeRef)1 AnyType (org.eclipse.n4js.ts.types.AnyType)1