Hello, I'd like to check class names, their supert...
# compiler
g
Hello, I'd like to check class names, their supertype & imports they use and depending on some conditions throw an compilation error with an appropriate message. What should I use to do that? Does
AnalysisHandlerExtension
fit this use case? Any examples?
s
You can use DeclarationChecker for this, if my memory serves me right, I think there are a few examples in Kotlin codebase, e.g. serialization plugin
g
Thanks I'll have a look there