@@ -116,23 +116,23 @@ class UnboundGenericType extends ValueOrRefType, UnboundGeneric {
116116 }
117117
118118 override string toStringWithTypes ( ) {
119- result = this .getNameWithoutBrackets ( ) + "<" + this .typeParametersToString ( ) + ">"
119+ result = this .getUndecoratedName ( ) + "<" + this .typeParametersToString ( ) + ">"
120120 }
121121
122122 final override string getName ( ) {
123- result = this .getNameWithoutBrackets ( ) + "<" + this .getTypeParameterCommas ( ) + ">"
123+ result = this .getUndecoratedName ( ) + "<" + this .getTypeParameterCommas ( ) + ">"
124124 }
125125
126126 final override predicate hasQualifiedName ( string qualifier , string name ) {
127127 exists ( string name0 | name = name0 + "<" + this .getTypeParameterCommas ( ) + ">" |
128128 exists ( string enclosing |
129129 this .getDeclaringType ( ) .hasQualifiedName ( qualifier , enclosing ) and
130- name0 = enclosing + "+" + this .getNameWithoutBrackets ( )
130+ name0 = enclosing + "+" + this .getUndecoratedName ( )
131131 )
132132 or
133133 not exists ( this .getDeclaringType ( ) ) and
134134 qualifier = this .getNamespace ( ) .getQualifiedName ( ) and
135- name0 = this .getNameWithoutBrackets ( )
135+ name0 = this .getUndecoratedName ( )
136136 )
137137 }
138138}
@@ -348,8 +348,8 @@ class UnboundGenericDelegateType extends DelegateType, UnboundGenericType {
348348
349349 override string toStringWithTypes ( ) {
350350 result =
351- getNameWithoutBrackets ( ) + "<" + this .typeParametersToString ( ) + ">(" +
352- parameterTypesToString ( ) + ")"
351+ getUndecoratedName ( ) + "<" + this .typeParametersToString ( ) + ">(" + parameterTypesToString ( ) +
352+ ")"
353353 }
354354}
355355
@@ -400,29 +400,23 @@ class ConstructedType extends ValueOrRefType, ConstructedGeneric {
400400 }
401401
402402 final override string toStringWithTypes ( ) {
403- exists ( string undecorated |
404- types ( this , _, undecorated ) and
405- result = undecorated + "<" + this .getTypeArgumentsString ( ) + ">"
406- )
403+ result = this .getUndecoratedName ( ) + "<" + this .getTypeArgumentsString ( ) + ">"
407404 }
408405
409406 final override string getName ( ) {
410- exists ( string undecorated |
411- types ( this , _, undecorated ) and
412- result = undecorated + "<" + this .getTypeArgumentsNames ( ) + ">"
413- )
407+ result = this .getUndecoratedName ( ) + "<" + this .getTypeArgumentsNames ( ) + ">"
414408 }
415409
416410 final override predicate hasQualifiedName ( string qualifier , string name ) {
417411 exists ( string name0 | name = name0 + "<" + this .getTypeArgumentsQualifiedNames ( ) + ">" |
418412 exists ( string enclosing |
419413 this .getDeclaringType ( ) .hasQualifiedName ( qualifier , enclosing ) and
420- name0 = enclosing + "+" + this .getNameWithoutBrackets ( )
414+ name0 = enclosing + "+" + this .getUndecoratedName ( )
421415 )
422416 or
423417 not exists ( this .getDeclaringType ( ) ) and
424418 qualifier = this .getNamespace ( ) .getQualifiedName ( ) and
425- name0 = this .getNameWithoutBrackets ( )
419+ name0 = this .getUndecoratedName ( )
426420 )
427421 }
428422}
0 commit comments