Minor. Rename FunctionClassDescriptor#functionKind -> functionTypeKind

This commit is needed for the following commit.
There we will restore the compatibility API with Android IDEA plugin
This commit is contained in:
Stanislav Erokhin
2023-02-08 11:52:39 +01:00
committed by Space Team
parent a14f3c8cc2
commit bec9ad0f6b
8 changed files with 21 additions and 21 deletions
@@ -22,14 +22,14 @@ object SuspendFunctionAsSupertypeChecker : DeclarationChecker {
val functionalSupertypes = descriptor.getAllSuperClassifiers().filterIsInstance<FunctionClassDescriptor>().toList()
if (functionalSupertypes.none {
it.functionKind == FunctionTypeKind.SuspendFunction ||
it.functionKind == FunctionTypeKind.KSuspendFunction
it.functionTypeKind == FunctionTypeKind.SuspendFunction ||
it.functionTypeKind == FunctionTypeKind.KSuspendFunction
}
) return
if (functionalSupertypes.any {
it.functionKind == FunctionTypeKind.Function ||
it.functionKind == FunctionTypeKind.KFunction
it.functionTypeKind == FunctionTypeKind.Function ||
it.functionTypeKind == FunctionTypeKind.KFunction
}
) {
val reportOn = (declaration as? KtClassOrObject)?.getSuperTypeList() ?: declaration