Code clean

This commit is contained in:
Mikhael Bogdanov
2018-01-10 12:46:38 +01:00
parent 9d7eca1376
commit c1a1a7f9fb
@@ -21,7 +21,6 @@ import org.jetbrains.kotlin.codegen.Callable
import org.jetbrains.kotlin.codegen.CallableMethod
import org.jetbrains.kotlin.ir.expressions.IrExpression
import org.jetbrains.kotlin.ir.expressions.IrMemberAccessExpression
import org.jetbrains.kotlin.resolve.jvm.AsmTypes
import org.jetbrains.kotlin.resolve.jvm.jvmSignature.JvmMethodSignature
import org.jetbrains.org.objectweb.asm.Type
import org.jetbrains.org.objectweb.asm.commons.Method
@@ -29,18 +28,17 @@ import org.jetbrains.org.objectweb.asm.commons.Method
abstract class IntrinsicMethod {
open fun toCallable(
expression: IrMemberAccessExpression,
signature: JvmMethodSignature,
context: JvmBackendContext
expression: IrMemberAccessExpression,
signature: JvmMethodSignature,
context: JvmBackendContext
): IrIntrinsicFunction {
TODO()
}
open fun toCallable(method: CallableMethod): Callable {
open fun toCallable(method: CallableMethod): Callable {
throw UnsupportedOperationException("Not implemented")
}
companion object {
fun calcReceiverType(call: IrMemberAccessExpression, context: JvmBackendContext): Type {
return context.state.typeMapper.mapType(call.dispatchReceiver?.type ?: call.extensionReceiver!!.type)