Skip to content

Commit fab2d30

Browse files
committed
Kotlin: Make emitDiagnostic private
1 parent 847ecd1 commit fab2d30

File tree

1 file changed

+1
-1
lines changed
  • java/kotlin-extractor/src/main/kotlin/utils

1 file changed

+1
-1
lines changed

java/kotlin-extractor/src/main/kotlin/utils/Logger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ open class LoggerBase(val logCounter: LogCounter) {
141141
emitDiagnostic(tw, severity, diagnosticLocStr, msg, fullMsg, locationString, mkLocationId)
142142
}
143143

144-
fun emitDiagnostic(tw: TrapWriter, severity: Severity, diagnosticLocStr: String, msg: String, fullMsg: String, locationString: String? = null, mkLocationId: () -> Label<DbLocation> = { tw.unknownLocation }) {
144+
private fun emitDiagnostic(tw: TrapWriter, severity: Severity, diagnosticLocStr: String, msg: String, fullMsg: String, locationString: String? = null, mkLocationId: () -> Label<DbLocation> = { tw.unknownLocation }) {
145145
val locStr = if (locationString == null) "" else "At " + locationString + ": "
146146
val kind = if (severity <= Severity.WarnHigh) "WARN" else "ERROR"
147147
val logMessage = LogMessage(kind, "Diagnostic($diagnosticLocStr): $locStr$fullMsg")

0 commit comments

Comments
 (0)