From 636f5da8839873a554a89781f954b14aaa62fbae Mon Sep 17 00:00:00 2001 From: Pavel Kirpichenkov Date: Tue, 22 Oct 2019 14:51:04 +0300 Subject: [PATCH] [Minor] Inline and drop reduntant isCallableReflectionType property --- .../src/org/jetbrains/kotlin/builtins/functionTypes.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/descriptors/src/org/jetbrains/kotlin/builtins/functionTypes.kt b/core/descriptors/src/org/jetbrains/kotlin/builtins/functionTypes.kt index bf5428e07cd..5f99db4edd3 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/builtins/functionTypes.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/builtins/functionTypes.kt @@ -59,9 +59,6 @@ val KotlinType.isFunctionType: Boolean val KotlinType.isSuspendFunctionType: Boolean get() = constructor.declarationDescriptor?.getFunctionalClassKind() == FunctionClassDescriptor.Kind.SuspendFunction -val KotlinType.isCallableReflectionType: Boolean - get() = ReflectionTypes.isKCallableType(this) - val KotlinType.isKSuspendFunctionType: Boolean get() = constructor.declarationDescriptor?.getFunctionalClassKind() == FunctionClassDescriptor.Kind.KSuspendFunction @@ -144,7 +141,7 @@ fun KotlinType.getValueParameterTypesFromFunctionType(): List { } fun KotlinType.getAllParameterProjectionsFromCallableReflectionType(): List { - assert(isCallableReflectionType) { "Not a callable reflection type: $this" } + assert(ReflectionTypes.isKCallableType(this)) { "Not a callable reflection type: $this" } val arguments = arguments val last = arguments.size - 1 assert(last >= 0) { "Unexpected number of type arguments in type: $this" }