peerType

fun peerType(name: String, alwaysQualify: Boolean = this.alwaysQualify): DeclaredTypeName

Returns a type that shares the same enclosing package or type. If this type is enclosed by another type, this is equivalent to enclosingTypeName().nestedType(name). Otherwise it is equivalent to get(packageName(), name).