[FIR] Consolidate SYNTAX and SYNTAX_WITH_MESSAGE diagnostics
This commit is contained in:
committed by
Space Team
parent
871a148529
commit
bdf0b41026
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user