peer Type
fun peerType(name: String, alwaysQualify: Boolean = this.alwaysQualify): DeclaredTypeName
Content copied to clipboard
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)
.