@@ -71,17 +71,11 @@ class Declaration extends NamedElement, @declaration {
7171
7272 override string toString ( ) { result = this .getName ( ) }
7373
74- deprecated override predicate hasQualifiedName ( string qualifier , string name ) {
75- QualifiedName< QualifiedNameInput > :: hasQualifiedName ( this , qualifier , name )
76- }
77-
7874 override predicate hasFullyQualifiedName ( string qualifier , string name ) {
7975 QualifiedName< FullyQualifiedNameInput > :: hasQualifiedName ( this , qualifier , name )
8076 }
8177
8278 /**
83- * DEPRECATED: Use `getFullyQualifiedNameWithTypes` instead.
84- *
8579 * Gets the fully qualified name of this declaration, including types, for example
8680 * the fully qualified name with types of `M` on line 3 is `N.C.M(int, string)` in
8781 *
@@ -93,33 +87,13 @@ class Declaration extends NamedElement, @declaration {
9387 * }
9488 * ```
9589 */
96- deprecated string getQualifiedNameWithTypes ( ) {
97- exists ( string qual |
98- qual = this .getDeclaringType ( ) .getQualifiedName ( ) and
90+ deprecated string getFullyQualifiedNameWithTypes ( ) {
91+ exists ( string fullqual , string qual , string name |
92+ this .getDeclaringType ( ) .hasFullyQualifiedName ( qual , name ) and
93+ fullqual = getQualifiedName ( qual , name ) and
9994 if this instanceof NestedType
100- then result = qual + "+" + this .toStringWithTypes ( )
101- else result = qual + "." + this .toStringWithTypes ( )
102- )
103- }
104-
105- /**
106- * Gets the fully qualified name of this declaration, including types, for example
107- * the fully qualified name with types of `M` on line 3 is `N.C.M(int, string)` in
108- *
109- * ```csharp
110- * namespace N {
111- * class C {
112- * void M(int i, string s) { }
113- * }
114- * }
115- * ```
116- */
117- string getFullyQualifiedNameWithTypes ( ) {
118- exists ( string qual |
119- qual = this .getDeclaringType ( ) .getFullyQualifiedName ( ) and
120- if this instanceof NestedType
121- then result = qual + "+" + this .toStringWithTypes ( )
122- else result = qual + "." + this .toStringWithTypes ( )
95+ then result = fullqual + "+" + this .toStringWithTypes ( )
96+ else result = fullqual + "." + this .toStringWithTypes ( )
12397 )
12498 }
12599
@@ -263,17 +237,6 @@ class Member extends Modifiable, @member {
263237 /** Gets an access to this member. */
264238 MemberAccess getAnAccess ( ) { result .getTarget ( ) = this }
265239
266- /**
267- * DEPRECATED: Use `hasFullyQualifiedName` instead.
268- *
269- * Holds if this member has name `name` and is defined in type `type`
270- * with namespace `namespace`.
271- */
272- cached
273- deprecated final predicate hasQualifiedName ( string namespace , string type , string name ) {
274- QualifiedName< QualifiedNameInput > :: hasQualifiedName ( this , namespace , type , name )
275- }
276-
277240 /**
278241 * Holds if this member has name `name` and is defined in type `type`
279242 * with namespace `namespace`.
0 commit comments