Search in sources :

Example 11 with TypingStrategy

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

the class VersionedParameterizedTypeRefStructuralImpl method getTypingStrategy.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public TypingStrategy getTypingStrategy() {
    TypingStrategy _definedTypingStrategy = this.getDefinedTypingStrategy();
    boolean _tripleEquals = (_definedTypingStrategy == TypingStrategy.DEFAULT);
    if (_tripleEquals) {
        return TypingStrategy.STRUCTURAL;
    } else {
        return this.getDefinedTypingStrategy();
    }
}
Also used : TypingStrategy(org.eclipse.n4js.ts.types.TypingStrategy)

Example 12 with TypingStrategy

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

the class ThisTypeRefStructuralImpl method getTypingStrategy.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public TypingStrategy getTypingStrategy() {
    TypingStrategy _definedTypingStrategy = this.getDefinedTypingStrategy();
    boolean _tripleEquals = (_definedTypingStrategy == TypingStrategy.DEFAULT);
    if (_tripleEquals) {
        return TypingStrategy.NOMINAL;
    }
    return this.getDefinedTypingStrategy();
}
Also used : TypingStrategy(org.eclipse.n4js.ts.types.TypingStrategy)

Example 13 with TypingStrategy

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

the class ThisTypeRefStructuralImpl method getTypeRefAsString.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public String getTypeRefAsString() {
    TypingStrategy _typingStrategy = this.getTypingStrategy();
    String _plus = (_typingStrategy + "this");
    String _modifiersAsString = this.getModifiersAsString();
    return (_plus + _modifiersAsString);
}
Also used : TypingStrategy(org.eclipse.n4js.ts.types.TypingStrategy)

Example 14 with TypingStrategy

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

the class ThisTypeRefStructuralImpl method setDefinedTypingStrategy.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setDefinedTypingStrategy(TypingStrategy newDefinedTypingStrategy) {
    TypingStrategy oldDefinedTypingStrategy = definedTypingStrategy;
    definedTypingStrategy = newDefinedTypingStrategy == null ? DEFINED_TYPING_STRATEGY_EDEFAULT : newDefinedTypingStrategy;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, TypeRefsPackage.THIS_TYPE_REF_STRUCTURAL__DEFINED_TYPING_STRATEGY, oldDefinedTypingStrategy, definedTypingStrategy));
}
Also used : TypingStrategy(org.eclipse.n4js.ts.types.TypingStrategy) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 15 with TypingStrategy

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

the class VersionedParameterizedTypeRefStructural_IMImpl method getTypingStrategy.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public TypingStrategy getTypingStrategy() {
    TypingStrategy _definedTypingStrategy = this.getDefinedTypingStrategy();
    boolean _tripleEquals = (_definedTypingStrategy == TypingStrategy.DEFAULT);
    if (_tripleEquals) {
        return TypingStrategy.STRUCTURAL;
    } else {
        return this.getDefinedTypingStrategy();
    }
}
Also used : TypingStrategy(org.eclipse.n4js.ts.types.TypingStrategy)

Aggregations

TypingStrategy (org.eclipse.n4js.ts.types.TypingStrategy)21 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)6 TStructuralType (org.eclipse.n4js.ts.types.TStructuralType)6 Type (org.eclipse.n4js.ts.types.Type)5 TypeArgument (org.eclipse.n4js.ts.typeRefs.TypeArgument)4 TypeVariableMapping (org.eclipse.n4js.ts.typeRefs.TypeVariableMapping)4 TStructMember (org.eclipse.n4js.ts.types.TStructMember)4 Function1 (org.eclipse.xtext.xbase.lib.Functions.Function1)4 TN4Classifier (org.eclipse.n4js.ts.types.TN4Classifier)2 ParameterizedTypeRef (org.eclipse.n4js.ts.typeRefs.ParameterizedTypeRef)1