topLevelTypeName

fun topLevelTypeName(alwaysQualify: Boolean = this.alwaysQualify): DeclaredTypeName

Returns the top type in this nesting group. Equivalent to chained calls to DeclaredTypeName.enclosingTypeName until the result's enclosing type is null.