@@ -592,7 +592,7 @@ class RefType extends Type, Annotatable, Modifiable, @reftype {
592592 * to the name of the enclosing type, which might be a nested type as well.
593593 */
594594 predicate hasQualifiedName ( string package , string type ) {
595- this .getPackage ( ) .hasName ( package ) and type = this .nestedName ( )
595+ this .getPackage ( ) .hasName ( package ) and type = this .getNestedName ( )
596596 }
597597
598598 /**
@@ -601,7 +601,7 @@ class RefType extends Type, Annotatable, Modifiable, @reftype {
601601 override string getTypeDescriptor ( ) {
602602 result =
603603 "L" + this .getPackage ( ) .getName ( ) .replaceAll ( "." , "/" ) + "/" +
604- this .getSourceDeclaration ( ) .nestedName ( ) + ";"
604+ this .getSourceDeclaration ( ) .getNestedName ( ) + ";"
605605 }
606606
607607 /**
@@ -615,8 +615,8 @@ class RefType extends Type, Annotatable, Modifiable, @reftype {
615615 string getQualifiedName ( ) {
616616 exists ( string pkgName | pkgName = this .getPackage ( ) .getName ( ) |
617617 if pkgName = ""
618- then result = this .nestedName ( )
619- else result = pkgName + "." + this .nestedName ( )
618+ then result = this .getNestedName ( )
619+ else result = pkgName + "." + this .getNestedName ( )
620620 )
621621 }
622622
@@ -627,12 +627,15 @@ class RefType extends Type, Annotatable, Modifiable, @reftype {
627627 * Otherwise the name of the nested type is prefixed with a `$` and appended to
628628 * the name of the enclosing type, which might be a nested type as well.
629629 */
630- string nestedName ( ) {
630+ string getNestedName ( ) {
631631 not this instanceof NestedType and result = this .getName ( )
632632 or
633- this .( NestedType ) .getEnclosingType ( ) .nestedName ( ) + "$" + this .getName ( ) = result
633+ this .( NestedType ) .getEnclosingType ( ) .getNestedName ( ) + "$" + this .getName ( ) = result
634634 }
635635
636+ /** DEPRECATED: Alias for `getNestedName`. */
637+ deprecated string nestedName ( ) { result = this .getNestedName ( ) }
638+
636639 /**
637640 * Gets the source declaration of this type.
638641 *
0 commit comments