diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-04-13 17:02:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 17:02:55 +0200 |
commit | 889ed89312cbe70040df92e84432853d38906308 (patch) | |
tree | a7f0aefe7af524cba9c3863f312afdac2d51d375 /compiler/test/dotty/tools/dotc/reporting | |
parent | 0fe56ea73e6775a315f54772dc6bfb40815c7c98 (diff) | |
parent | 28cbce5a6f00f600225c9b3787b564c39484beba (diff) | |
download | dotty-889ed89312cbe70040df92e84432853d38906308.tar.gz dotty-889ed89312cbe70040df92e84432853d38906308.tar.bz2 dotty-889ed89312cbe70040df92e84432853d38906308.zip |
Merge pull request #2259 from dotty-staging/fix-#2245
Fix #2245: strip colors from strings before writing to file
Diffstat (limited to 'compiler/test/dotty/tools/dotc/reporting')
-rw-r--r-- | compiler/test/dotty/tools/dotc/reporting/TestReporter.scala | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala b/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala index 213181b56..d07d31c74 100644 --- a/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala +++ b/compiler/test/dotty/tools/dotc/reporting/TestReporter.scala @@ -28,18 +28,7 @@ extends Reporter with UniqueMessagePositions with HideNonSensicalMessages with M private[this] var _didCrash = false final def compilerCrashed: Boolean = _didCrash - final def flushToFile(): Unit = - _messageBuf - .iterator - .map(_.replaceAll("\u001b\\[.*?m", "")) - .foreach(filePrintln) - - final def flushToStdErr(): Unit = - _messageBuf - .iterator - .foreach(System.err.println) - - final def inlineInfo(pos: SourcePosition): String = + protected final def inlineInfo(pos: SourcePosition): String = if (pos.exists) { if (pos.outer.exists) s"\ninlined at ${pos.outer}:\n" + inlineInfo(pos.outer) |