[FIR] Consolidate SYNTAX and SYNTAX_WITH_MESSAGE diagnostics

This commit is contained in:
Kirill Rakhman
2023-04-21 09:58:13 +02:00
committed by Space Team
parent 871a148529
commit bdf0b41026
10 changed files with 32 additions and 40 deletions
@@ -16,6 +16,11 @@ object KtDiagnosticRenderers {
element.toString()
}
val OPTIONAL_COLON_TO_STRING = Renderer { element: Any? ->
val string = element.toString()
if (string.isNotEmpty()) ": $string" else ""
}
val EMPTY = Renderer { _: Any? -> "" }
val VISIBILITY = Renderer { visibility: Visibility ->