File tree 2 files changed +6
-14
lines changed
compiler/test/dotty/tools
2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,7 @@ extends Reporter with UniqueMessagePositions with HideNonSensicalMessages with M
28
28
private [this ] var _didCrash = false
29
29
final def compilerCrashed : Boolean = _didCrash
30
30
31
- final def flushToFile (): Unit =
32
- _messageBuf
33
- .iterator
34
- .map(_.replaceAll(" \u001b\\ [.*?m" , " " ))
35
- .foreach(filePrintln)
36
-
37
- final def flushToStdErr (): Unit =
38
- _messageBuf
39
- .iterator
40
- .foreach(System .err.println)
41
-
42
- final def inlineInfo (pos : SourcePosition ): String =
31
+ protected final def inlineInfo (pos : SourcePosition ): String =
43
32
if (pos.exists) {
44
33
if (pos.outer.exists)
45
34
s " \n inlined at ${pos.outer}: \n " + inlineInfo(pos.outer)
Original file line number Diff line number Diff line change @@ -131,11 +131,14 @@ final class SummaryReport extends SummaryReporting {
131
131
if (cleanUps.nonEmpty) cleanUps.foreach(_.apply())
132
132
}
133
133
134
+ private def removeColors (msg : String ): String =
135
+ msg.replaceAll(" \u001b\\ [.*?m" , " " )
136
+
134
137
def echoToLog (msg : String ): Unit =
135
- TestReporter .logPrintln(msg)
138
+ TestReporter .logPrintln(removeColors( msg) )
136
139
137
140
def echoToLog (it : Iterator [String ]): Unit = {
138
- it.foreach(TestReporter .logPrint)
141
+ it.foreach(msg => TestReporter .logPrint(removeColors(msg)) )
139
142
TestReporter .logFlush()
140
143
}
141
144
}
You can’t perform that action at this time.
0 commit comments