com.prezi.spaghetti.kotlin.impl.KotlinModuleInitializerGeneratorVisitor.groovy Maven / Gradle / Ivy
The newest version!
package com.prezi.spaghetti.kotlin.impl
import com.prezi.spaghetti.ast.ModuleNode
import com.prezi.spaghetti.kotlin.AbstractKotlinGeneratorVisitor
import static com.prezi.spaghetti.kotlin.KotlinJavaScriptBundleProcessor.KOTLIN_MODULE_VAR
class KotlinModuleInitializerGeneratorVisitor extends AbstractKotlinGeneratorVisitor {
@Override
String visitModuleNode(ModuleNode node) {
"""native public var ${KOTLIN_MODULE_VAR}:Any = noImpl
fun main(__args:Array) {
${KOTLIN_MODULE_VAR} = __${node.alias}Proxy()
}
"""
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy