Hi, I updated a compiler plugin to Kotlin 2.2.O an...
# compiler
x
Hi, I updated a compiler plugin to Kotlin 2.2.O and saw that the `FirExpressionChecker`'s
check
method is marked as Deprecated, but I can't see any info on what is recommend to use instead. Is there an official suggestion to get the same effect in a
FirAdditionalCheckersExtension
?
d
The signature of the check method was changed from
Copy code
abstract fun check(expression: E, context: CheckerContext, reporter: DiagnosticReporter)
to
Copy code
context(context: CheckerContext, reporter: DiagnosticReporter)
abstract fun check(expression: E)
And in some release we kept the old declaration for compatibility. So you'll need to just update your checkers to override the contextual one.
x
Oh nice, thanks a lot 🙂