diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-09-16 11:06:40 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-10-10 13:25:33 +0200 |
commit | fb4f8ce66c406bfb6376396ea0521df063b883e9 (patch) | |
tree | 35d8bee0bc52accfa56066b17a59696d024602bc /src/dotty | |
parent | f8456fc71e0fba8c92eb2069a7abc872a59c2567 (diff) | |
download | dotty-fb4f8ce66c406bfb6376396ea0521df063b883e9.tar.gz dotty-fb4f8ce66c406bfb6376396ea0521df063b883e9.tar.bz2 dotty-fb4f8ce66c406bfb6376396ea0521df063b883e9.zip |
Rename `ConsoleReporter` => `FancyConsoleReporter`
Diffstat (limited to 'src/dotty')
-rw-r--r-- | src/dotty/tools/dotc/Compiler.scala | 2 | ||||
-rw-r--r-- | src/dotty/tools/dotc/core/Contexts.scala | 2 | ||||
-rw-r--r-- | src/dotty/tools/dotc/repl/CompilingInterpreter.scala | 4 | ||||
-rw-r--r-- | src/dotty/tools/dotc/reporting/FancyConsoleReporter.scala (renamed from src/dotty/tools/dotc/reporting/ConsoleReporter.scala) | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala index 178cba7c4..fb9ce83fc 100644 --- a/src/dotty/tools/dotc/Compiler.scala +++ b/src/dotty/tools/dotc/Compiler.scala @@ -8,7 +8,7 @@ import Symbols._ import Types._ import Scopes._ import typer.{FrontEnd, Typer, ImportInfo, RefChecks} -import reporting.{Reporter, ConsoleReporter} +import reporting.{Reporter, FancyConsoleReporter} import Phases.Phase import transform._ import transform.TreeTransforms.{TreeTransform, TreeTransformer} diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala index 5c9fdaf88..d1447a98f 100644 --- a/src/dotty/tools/dotc/core/Contexts.scala +++ b/src/dotty/tools/dotc/core/Contexts.scala @@ -501,7 +501,7 @@ object Contexts { outer = NoContext period = InitialPeriod mode = Mode.None - typerState = new TyperState(new ConsoleReporter()) + typerState = new TyperState(new FancyConsoleReporter()) printerFn = new RefinedPrinter(_) owner = NoSymbol sstate = settings.defaultState diff --git a/src/dotty/tools/dotc/repl/CompilingInterpreter.scala b/src/dotty/tools/dotc/repl/CompilingInterpreter.scala index 163bbea16..ec2c167ce 100644 --- a/src/dotty/tools/dotc/repl/CompilingInterpreter.scala +++ b/src/dotty/tools/dotc/repl/CompilingInterpreter.scala @@ -16,7 +16,7 @@ import scala.collection.mutable.{ListBuffer, HashSet, ArrayBuffer} //import ast.parser.SyntaxAnalyzer import io.{PlainFile, VirtualDirectory} import scala.reflect.io.{PlainDirectory, Directory} -import reporting.{ConsoleReporter, Reporter} +import reporting.{FancyConsoleReporter, Reporter} import core.Flags import util.{SourceFile, NameTransformer} import io.ClassPath @@ -117,7 +117,7 @@ class CompilingInterpreter( } } - private def newReporter = new ConsoleReporter(Console.in, out) { + private def newReporter = new FancyConsoleReporter(Console.in, out) { override def printMessage(msg: String) = { if (!delayOutput) { out.print(/*clean*/(msg) + "\n") diff --git a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala b/src/dotty/tools/dotc/reporting/FancyConsoleReporter.scala index 5db549b7b..57f9998a2 100644 --- a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala +++ b/src/dotty/tools/dotc/reporting/FancyConsoleReporter.scala @@ -14,7 +14,7 @@ import printing.SyntaxHighlighting._ * This class implements a Reporter that displays messages on a text * console. */ -class ConsoleReporter( +class FancyConsoleReporter( reader: BufferedReader = Console.in, writer: PrintWriter = new PrintWriter(Console.err, true)) extends Reporter with UniqueMessagePositions with HideNonSensicalMessages { |