All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tambapps.marcel.compiler.extensions.MethodVisitorExtensions.kt Maven / Gradle / Ivy

package com.tambapps.marcel.compiler.extensions

import com.tambapps.marcel.semantic.method.JavaMethod
import org.objectweb.asm.MethodVisitor
import org.objectweb.asm.Opcodes

fun MethodVisitor.visitMethodInsn(javaMethod: JavaMethod) {
  visitMethodInsn(javaMethod.invokeCode, javaMethod.ownerClass.internalName, javaMethod.name, javaMethod.descriptor, javaMethod.ownerClass.isInterface)
}
fun MethodVisitor.visitSuperMethodInsn(javaMethod: JavaMethod) {
  visitMethodInsn(Opcodes.INVOKESPECIAL, javaMethod.ownerClass.internalName, javaMethod.name, javaMethod.descriptor, javaMethod.ownerClass.isInterface)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy