ffi: autogen java bindings (very wip)

This commit is contained in:
2023-09-07 01:51:50 -07:00
parent 540826fb6e
commit a2f2252965
7 changed files with 131 additions and 6 deletions

View File

@ -131,6 +131,9 @@ class Printer(buffer: StringBuilder) : NodeVisitor<Unit> {
}
override fun visitFunctionDefinition(node: FunctionDefinition) {
if (node.modifiers.export) {
append("export ")
}
append("func ")
visit(node.symbol)
append("(")