com.antwerkz.critter.kotlin.KotlinParser.kt Maven / Gradle / Ivy
package com.antwerkz.critter.kotlin
import com.antwerkz.kibble.Kibble
import com.antwerkz.kibble.KibbleContext
import com.antwerkz.kibble.classes
import java.io.File
class KotlinParser(val context: KotlinContext) {
private val kibbleContext = KibbleContext()
fun parse(file: File) {
val fileSpec = Kibble.parse(file.absolutePath)
return fileSpec.classes.forEach {
context.add(KotlinClass(context, fileSpec, it, file))
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy