com.faendir.kotlin.autodsl.ksp.KspProcessor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of processor Show documentation
Show all versions of processor Show documentation
Auto-generates DSL for your Kotlin projects using annotations.
The newest version!
package com.faendir.kotlin.autodsl.ksp
import com.faendir.kotlin.autodsl.DslGenerator
import com.google.devtools.ksp.processing.CodeGenerator
import com.google.devtools.ksp.processing.KSPLogger
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.symbol.KSAnnotated
class KspProcessor(private val kotlinVersion: KotlinVersion, private val out: CodeGenerator, private val logger: KSPLogger) : SymbolProcessor {
override fun process(resolver: Resolver): List =
DslGenerator(kotlinVersion, KspLogger(logger), KspCodeWriter(out), KspSourceInfoResolver(resolver)).process()
}