Converted CallResolverUtil to kotlin
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ import org.jetbrains.kotlin.js.translate.general.Translation
|
||||
import org.jetbrains.kotlin.js.translate.reference.CallArgumentTranslator
|
||||
import org.jetbrains.kotlin.js.translate.utils.AnnotationsUtils
|
||||
import org.jetbrains.kotlin.psi.Call.CallType
|
||||
import org.jetbrains.kotlin.resolve.calls.CallResolverUtil
|
||||
import org.jetbrains.kotlin.resolve.calls.callResolverUtil.isInvokeCallOnVariable
|
||||
import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall
|
||||
import org.jetbrains.kotlin.resolve.calls.model.VariableAsFunctionResolvedCall
|
||||
import org.jetbrains.kotlin.resolve.calls.tasks.ExplicitReceiverKind
|
||||
@@ -102,7 +102,7 @@ private fun translateCall(context: TranslationContext,
|
||||
}
|
||||
|
||||
val call = resolvedCall.getCall()
|
||||
if (call.getCallType() == CallType.INVOKE && !CallResolverUtil.isInvokeCallOnVariable(call)) {
|
||||
if (call.getCallType() == CallType.INVOKE && !isInvokeCallOnVariable(call)) {
|
||||
val explicitReceiversForInvoke = computeExplicitReceiversForInvoke(context, resolvedCall, explicitReceivers)
|
||||
return translateFunctionCall(context, resolvedCall, explicitReceiversForInvoke)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user