Code clean
This commit is contained in:
+4
-6
@@ -21,7 +21,6 @@ import org.jetbrains.kotlin.codegen.Callable
|
|||||||
import org.jetbrains.kotlin.codegen.CallableMethod
|
import org.jetbrains.kotlin.codegen.CallableMethod
|
||||||
import org.jetbrains.kotlin.ir.expressions.IrExpression
|
import org.jetbrains.kotlin.ir.expressions.IrExpression
|
||||||
import org.jetbrains.kotlin.ir.expressions.IrMemberAccessExpression
|
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.kotlin.resolve.jvm.jvmSignature.JvmMethodSignature
|
||||||
import org.jetbrains.org.objectweb.asm.Type
|
import org.jetbrains.org.objectweb.asm.Type
|
||||||
import org.jetbrains.org.objectweb.asm.commons.Method
|
import org.jetbrains.org.objectweb.asm.commons.Method
|
||||||
@@ -29,18 +28,17 @@ import org.jetbrains.org.objectweb.asm.commons.Method
|
|||||||
abstract class IntrinsicMethod {
|
abstract class IntrinsicMethod {
|
||||||
|
|
||||||
open fun toCallable(
|
open fun toCallable(
|
||||||
expression: IrMemberAccessExpression,
|
expression: IrMemberAccessExpression,
|
||||||
signature: JvmMethodSignature,
|
signature: JvmMethodSignature,
|
||||||
context: JvmBackendContext
|
context: JvmBackendContext
|
||||||
): IrIntrinsicFunction {
|
): IrIntrinsicFunction {
|
||||||
TODO()
|
TODO()
|
||||||
}
|
}
|
||||||
|
|
||||||
open fun toCallable(method: CallableMethod): Callable {
|
open fun toCallable(method: CallableMethod): Callable {
|
||||||
throw UnsupportedOperationException("Not implemented")
|
throw UnsupportedOperationException("Not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun calcReceiverType(call: IrMemberAccessExpression, context: JvmBackendContext): Type {
|
fun calcReceiverType(call: IrMemberAccessExpression, context: JvmBackendContext): Type {
|
||||||
return context.state.typeMapper.mapType(call.dispatchReceiver?.type ?: call.extensionReceiver!!.type)
|
return context.state.typeMapper.mapType(call.dispatchReceiver?.type ?: call.extensionReceiver!!.type)
|
||||||
|
|||||||
Reference in New Issue
Block a user