File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
src/main/kotlin/com/compiler/server/compiler/components Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -64,17 +64,25 @@ fun <T> CLICompiler<*>.tryCompilation(inputDirectory: Path, inputFiles: List<Pat
64
64
message : String ,
65
65
location : CompilerMessageSourceLocation ?
66
66
): String {
67
- val textInterval = location?.let {
68
- TextInterval (
69
- start = TextInterval .TextPosition (minusOne(location.line), minusOne(location.column)),
70
- end = TextInterval .TextPosition (minusOne(location.lineEnd), minusOne(location.columnEnd))
71
- )
67
+ when {
68
+ // suppress -XXLanguage:+ExplicitBackingFields
69
+ severity == STRONG_WARNING && message.contains(" ExplicitBackingFields" ) ->
70
+ return " "
72
71
}
72
+
73
73
val messageSeverity: ProjectSeveriry = when (severity) {
74
74
EXCEPTION , ERROR -> ProjectSeveriry .ERROR
75
75
STRONG_WARNING , WARNING -> ProjectSeveriry .WARNING
76
76
INFO , LOGGING , OUTPUT -> return " "
77
77
}
78
+
79
+ val textInterval = location?.let {
80
+ TextInterval (
81
+ start = TextInterval .TextPosition (minusOne(location.line), minusOne(location.column)),
82
+ end = TextInterval .TextPosition (minusOne(location.lineEnd), minusOne(location.columnEnd))
83
+ )
84
+ }
85
+
78
86
val errorFilePath = location?.path?.let (::Path )?.outputFilePathString() ? : defaultFileName
79
87
80
88
val className = if (! message.startsWith(UNRESOLVED_REFERENCE_PREFIX ) && severity == ERROR ) " red_wavy_line" else messageSeverity.name
You can’t perform that action at this time.
0 commit comments