@@ -699,41 +699,6 @@ class TypeAccess extends @typeaccess, TypeExpr, TypeRef {
699699 */
700700 TypeName getTypeName ( ) { ast_node_symbol ( this , result ) }
701701
702- override predicate hasQualifiedName ( string globalName ) {
703- this .getTypeName ( ) .hasQualifiedName ( globalName )
704- or
705- exists ( LocalTypeAccess local | local = this |
706- not exists ( local .getLocalTypeName ( ) ) and // Without a local type name, the type is looked up in the global scope.
707- globalName = local .getName ( )
708- )
709- }
710-
711- override predicate hasQualifiedName ( string moduleName , string exportedName ) {
712- this .getTypeName ( ) .hasQualifiedName ( moduleName , exportedName )
713- or
714- exists ( ImportDeclaration imprt , ImportSpecifier spec |
715- moduleName = getImportName ( imprt ) and
716- spec = imprt .getASpecifier ( )
717- |
718- spec .getImportedName ( ) = exportedName and
719- this = spec .getLocal ( ) .( TypeDecl ) .getLocalTypeName ( ) .getAnAccess ( )
720- or
721- ( spec instanceof ImportNamespaceSpecifier or spec instanceof ImportDefaultSpecifier ) and
722- this =
723- spec .getLocal ( ) .( LocalNamespaceDecl ) .getLocalNamespaceName ( ) .getAMemberAccess ( exportedName )
724- )
725- or
726- exists ( ImportEqualsDeclaration imprt |
727- moduleName = getImportName ( imprt .getImportedEntity ( ) ) and
728- this =
729- imprt
730- .getIdentifier ( )
731- .( LocalNamespaceDecl )
732- .getLocalNamespaceName ( )
733- .getAMemberAccess ( exportedName )
734- )
735- }
736-
737702 override string getAPrimaryQlClass ( ) { result = "TypeAccess" }
738703}
739704
@@ -823,14 +788,6 @@ class GenericTypeExpr extends @generic_typeexpr, TypeExpr {
823788 /** Gets the number of type arguments. This is always at least one. */
824789 int getNumTypeArgument ( ) { result = count ( this .getATypeArgument ( ) ) }
825790
826- override predicate hasQualifiedName ( string globalName ) {
827- this .getTypeAccess ( ) .hasQualifiedName ( globalName )
828- }
829-
830- override predicate hasQualifiedName ( string moduleName , string exportedName ) {
831- this .getTypeAccess ( ) .hasQualifiedName ( moduleName , exportedName )
832- }
833-
834791 override string getAPrimaryQlClass ( ) { result = "GenericTypeExpr" }
835792}
836793
0 commit comments