Inline TypeCheckerContext::anySupertype
This method is a hot spot, since it's may be called several times during one isSubtypeOf call and it contains two lambdas, so it's worth inlining it
This commit is contained in:
@@ -65,7 +65,7 @@ open class TypeCheckerContext(val errorTypeEqualsToAnything: Boolean, val allowe
|
|||||||
supertypesLocked = false
|
supertypesLocked = false
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun anySupertype(
|
internal inline fun anySupertype(
|
||||||
start: SimpleType,
|
start: SimpleType,
|
||||||
predicate: (SimpleType) -> Boolean,
|
predicate: (SimpleType) -> Boolean,
|
||||||
supertypesPolicy: (SimpleType) -> SupertypesPolicy
|
supertypesPolicy: (SimpleType) -> SupertypesPolicy
|
||||||
|
|||||||
Reference in New Issue
Block a user