com.dailystudio.devbricksx.ksp.processors.StepsSymbolProcessor.kt Maven / Gradle / Ivy
package com.dailystudio.devbricksx.ksp.processors
import com.dailystudio.devbricksx.ksp.processors.step.ProcessStep
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.google.devtools.ksp.symbol.KSAnnotated
abstract class StepsSymbolProcessor (environment: SymbolProcessorEnvironment)
: BaseSymbolProcessor(environment) {
override fun process(resolver: Resolver): List {
warn("kotlin version: ${KotlinVersion.CURRENT}")
for (step in steps) {
step.runStep(resolver)?.let {
for (r in it) {
writeToFile(resolver, r)
}
}
}
return emptyList()
}
protected abstract val steps: Array
}