@@ -101,20 +101,6 @@ private string getTypeArgumentsNames(ConstructedGeneric cg) {
101101 result = strictconcat ( Type t , int i | t = cg .getTypeArgument ( i ) | t .getName ( ) , "," order by i )
102102}
103103
104- bindingset [ t]
105- private string getFullName ( Type t ) {
106- exists ( string qualifier , string name |
107- t .hasQualifiedName ( qualifier , name ) and
108- result = getQualifiedName ( qualifier , name )
109- )
110- }
111-
112- /** Gets the concatenation of the `getFullName` of type arguments. */
113- language [ monotonicAggregates]
114- private string getTypeArgumentsQualifiedNames ( ConstructedGeneric cg ) {
115- result = strictconcat ( Type t , int i | t = cg .getTypeArgument ( i ) | getFullName ( t ) , "," order by i )
116- }
117-
118104/**
119105 * An unbound generic type. This is a generic type with type parameters
120106 * (for example `List<T>`) or elided type parameters (for example `List<>`).
@@ -161,19 +147,6 @@ class UnboundGenericType extends ValueOrRefType, UnboundGeneric {
161147 final override string getName ( ) {
162148 result = this .getUndecoratedName ( ) + "<" + getTypeParameterCommas ( this ) + ">"
163149 }
164-
165- final override predicate hasQualifiedName ( string qualifier , string name ) {
166- exists ( string name0 | name = name0 + "<" + getTypeParameterCommas ( this ) + ">" |
167- exists ( string enclosing |
168- this .getDeclaringType ( ) .hasQualifiedName ( qualifier , enclosing ) and
169- name0 = enclosing + "+" + this .getUndecoratedName ( )
170- )
171- or
172- not exists ( this .getDeclaringType ( ) ) and
173- qualifier = this .getNamespace ( ) .getFullName ( ) and
174- name0 = this .getUndecoratedName ( )
175- )
176- }
177150}
178151
179152/**
@@ -240,11 +213,6 @@ class TypeParameter extends DotNet::TypeParameter, Type, @type_parameter {
240213 /** Gets the generic that defines this type parameter. */
241214 UnboundGeneric getGeneric ( ) { type_parameters ( this , _, result , _) }
242215
243- final override predicate hasQualifiedName ( string qualifier , string name ) {
244- qualifier = "" and
245- name = this .getName ( )
246- }
247-
248216 override string getAPrimaryQlClass ( ) { result = "TypeParameter" }
249217}
250218
@@ -440,19 +408,6 @@ class ConstructedType extends ValueOrRefType, ConstructedGeneric {
440408 final override string getName ( ) {
441409 result = this .getUndecoratedName ( ) + "<" + getTypeArgumentsNames ( this ) + ">"
442410 }
443-
444- override predicate hasQualifiedName ( string qualifier , string name ) {
445- exists ( string name0 | name = name0 + "<" + getTypeArgumentsQualifiedNames ( this ) + ">" |
446- exists ( string enclosing |
447- this .getDeclaringType ( ) .hasQualifiedName ( qualifier , enclosing ) and
448- name0 = enclosing + "+" + this .getUndecoratedName ( )
449- )
450- or
451- not exists ( this .getDeclaringType ( ) ) and
452- qualifier = this .getNamespace ( ) .getFullName ( ) and
453- name0 = this .getUndecoratedName ( )
454- )
455- }
456411}
457412
458413/**
@@ -624,11 +579,6 @@ class ConstructedMethod extends Method, ConstructedGeneric {
624579 result = this .getUndecoratedName ( ) + "<" + getTypeArgumentsNames ( this ) + ">"
625580 }
626581
627- override predicate hasQualifiedName ( string namespace , string type , string name ) {
628- this .getDeclaringType ( ) .hasQualifiedName ( namespace , type ) and
629- name = this .getUndecoratedName ( ) + "<" + getTypeArgumentsQualifiedNames ( this ) + ">"
630- }
631-
632582 final override string getUndecoratedName ( ) { methods ( this , result , _, _, _) }
633583}
634584
0 commit comments