FIR LT: extract syntax diagnostic info from error element

#KT-56701 fixed
This commit is contained in:
Ilya Chernikov
2023-02-15 18:52:09 +01:00
committed by Space Team
parent e39eb62e6e
commit 27db8ce1bb
8 changed files with 33 additions and 2 deletions
@@ -14,5 +14,8 @@ import org.jetbrains.kotlin.fir.checkers.generator.diagnostics.model.DiagnosticL
object SYNTAX_DIAGNOSTIC_LIST : DiagnosticList("FirSyntaxErrors") {
val Syntax by object : DiagnosticGroup("Syntax") {
val SYNTAX by error<PsiElement>()
val SYNTAX_WITH_MESSAGE by error<PsiElement>() {
parameter<String>("message")
}
}
}