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

com.antwerkz.critter.kotlin.KotlinParser.kt Maven / Gradle / Ivy

There is a newer version: 3.0.5
Show newest version
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