Created
May 5, 2022 08:06
-
-
Save adibfara/e4db810dded897204023a809cc49d08f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.devtools.ksp.processing.Resolver | |
import com.google.devtools.ksp.processing.SymbolProcessor | |
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment | |
import com.google.devtools.ksp.symbol.KSAnnotated | |
class ListedProcessor(private val environment: SymbolProcessorEnvironment): SymbolProcessor { | |
override fun process(resolver: Resolver): List<KSAnnotated> { | |
return emptyList() // we'll return an empty list for now, since we haven't processed anything. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.devtools.ksp.processing.SymbolProcessor | |
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment | |
import com.google.devtools.ksp.processing.SymbolProcessorProvider | |
class ListedProcessorProvider : SymbolProcessorProvider { | |
override fun create(environment: SymbolProcessorEnvironment): SymbolProcessor { | |
return ListedProcessor(environment) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment