JS backend: make CallTranslator more comfortable to use from java
This commit is contained in:
+3
@@ -31,9 +31,12 @@ import org.jetbrains.kotlin.resolve.calls.model.VariableAsFunctionResolvedCall
|
|||||||
import org.jetbrains.kotlin.resolve.calls.tasks.ExplicitReceiverKind.NO_EXPLICIT_RECEIVER
|
import org.jetbrains.kotlin.resolve.calls.tasks.ExplicitReceiverKind.NO_EXPLICIT_RECEIVER
|
||||||
import org.jetbrains.kotlin.resolve.scopes.receivers.ExpressionReceiver
|
import org.jetbrains.kotlin.resolve.scopes.receivers.ExpressionReceiver
|
||||||
import org.jetbrains.kotlin.resolve.scopes.receivers.ReceiverValue
|
import org.jetbrains.kotlin.resolve.scopes.receivers.ReceiverValue
|
||||||
|
import kotlin.platform.platformStatic
|
||||||
import kotlin.test.assertNotNull
|
import kotlin.test.assertNotNull
|
||||||
|
|
||||||
object CallTranslator {
|
object CallTranslator {
|
||||||
|
jvmOverloads
|
||||||
|
platformStatic
|
||||||
fun translate(context: TranslationContext,
|
fun translate(context: TranslationContext,
|
||||||
resolvedCall: ResolvedCall<out FunctionDescriptor>,
|
resolvedCall: ResolvedCall<out FunctionDescriptor>,
|
||||||
extensionOrDispatchReceiver: JsExpression? = null
|
extensionOrDispatchReceiver: JsExpression? = null
|
||||||
|
|||||||
Reference in New Issue
Block a user