implement basic type annotations (not yet used or declarable)

This commit is contained in:
Alex Zenla
2025-07-20 00:52:24 -07:00
parent a48fac4581
commit 5ac70d800e
25 changed files with 161 additions and 28 deletions

View File

@ -118,7 +118,7 @@ class FfiNativeProvider : ExpandedNativeProvider, NativeProvider {
val buffer = HeapInvocationBuffer(context)
val useFunctionArguments = functionArgumentSpecs ?: functionArguments.map {
ArgumentSpec(symbol = Symbol(""), multiple = false)
ArgumentSpec(symbol = Symbol(""), typeSpec = null, multiple = false)
}
for ((index, spec) in useFunctionArguments.withIndex()) {

View File

@ -147,11 +147,13 @@ class JavaAutogen(val javaClass: Class<*>) {
arguments = parameterNames.map {
ArgumentSpec(
symbol = Symbol(it),
multiple = false
multiple = false,
typeSpec = null,
)
},
nativeFunctionDescriptor = asNative(functionDefinition),
block = null
block = null,
returnType = null,
)
private fun asNative(functionDefinition: JavaFunctionDefinition): NativeFunctionDescriptor =