String typeNameQualifiedByEnclosingClass ( TSTypeSyntax syntax ) { if ( syntax instanceof TSEnclosedTypeSyntax ) { return ( ( TSEnclosedTypeSyntax ) syntax ) . typeNameQualifiedByEnclosedType ( ) ; } else { return syntax . typeName ( ) ; } }
Returns the type name prefaced with the enclosing class name if there was one .