@@ -77,16 +77,36 @@ class TypeAnnotation extends @type_annotation, NodeInStmtContainer {
7777 TypeAnnotation getAnUnderlyingType ( ) { result = this }
7878
7979 /**
80+ * DEPRECATED. Use `hasUnderlyingType` instead.
81+ *
8082 * Holds if this is a reference to the type with qualified name `globalName` relative to the global scope.
8183 */
82- final predicate hasQualifiedName ( string globalName ) {
84+ deprecated predicate hasQualifiedName ( string globalName ) {
8385 UnderlyingTypes:: nodeHasUnderlyingType ( this , "global" , globalName )
8486 }
8587
8688 /**
89+ * DEPRECATED. Use `hasUnderlyingType` instead.
90+ *
8791 * Holds if this is a reference to the type exported from `moduleName` under the name `exportedName`.
8892 */
89- final predicate hasQualifiedName ( string moduleName , string exportedName ) {
93+ deprecated predicate hasQualifiedName ( string moduleName , string exportedName ) {
94+ UnderlyingTypes:: nodeHasUnderlyingType ( this , moduleName , exportedName )
95+ }
96+
97+ /**
98+ * Holds if this is a reference to the type with qualified name `globalName` relative to the global scope,
99+ * or is declared as a subtype thereof, or is a union or intersection containing such a type.
100+ */
101+ final predicate hasUnderlyingType ( string globalName ) {
102+ UnderlyingTypes:: nodeHasUnderlyingType ( this , "global" , globalName )
103+ }
104+
105+ /**
106+ * Holds if this is a reference to the type exported from `moduleName` under the name `exportedName`,
107+ * or is declared as a subtype thereof, or is a union or intersection containing such a type.
108+ */
109+ final predicate hasUnderlyingType ( string moduleName , string exportedName ) {
90110 UnderlyingTypes:: nodeHasUnderlyingType ( this , moduleName , exportedName )
91111 }
92112
0 commit comments