topLevelTypeName

fun topLevelTypeName(): DeclaredTypeName

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