aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/FrontEnd.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-01-04 22:33:14 +0100
committerMartin Odersky <odersky@gmail.com>2014-01-04 22:33:14 +0100
commit0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30 (patch)
tree9d7c06876b8c7d697d2f40645306b13a4c97c771 /src/dotty/tools/dotc/typer/FrontEnd.scala
parentb85d7e2cbd1f4df217db544a467607a73e05eddc (diff)
downloaddotty-0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30.tar.gz
dotty-0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30.tar.bz2
dotty-0aa4d2ce10dcf872c16ed4a5ecb7cd6a2b8c9b30.zip
Output cleanups
Diffstat (limited to 'src/dotty/tools/dotc/typer/FrontEnd.scala')
-rw-r--r--src/dotty/tools/dotc/typer/FrontEnd.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/typer/FrontEnd.scala b/src/dotty/tools/dotc/typer/FrontEnd.scala
index 3908205e4..25c9de717 100644
--- a/src/dotty/tools/dotc/typer/FrontEnd.scala
+++ b/src/dotty/tools/dotc/typer/FrontEnd.scala
@@ -5,6 +5,7 @@ import core._
import Phases._
import Contexts._
import parsing.Parsers.Parser
+import config.Printers._
class FrontEnd extends Phase {
@@ -13,19 +14,19 @@ class FrontEnd extends Phase {
def parse(implicit ctx: Context) = {
val unit = ctx.compilationUnit
unit.untpdTree = new Parser(unit.source).parse()
- println("parsed:\n"+unit.untpdTree.show)
+ typr.println("parsed:\n"+unit.untpdTree.show)
}
def enterSyms(implicit ctx: Context) = {
val unit = ctx.compilationUnit
ctx.typer.index(unit.untpdTree)
- println("entered:\n"+unit.source)
+ typr.println("entered: "+unit.source)
}
def typeCheck(implicit ctx: Context) = {
val unit = ctx.compilationUnit
unit.tpdTree = ctx.typer.typedExpr(unit.untpdTree)
- println("typed:\n"+unit.source)
+ typr.println("typed: "+unit.source)
}
override def runOn(units: List[CompilationUnit])(implicit ctx: Context): Unit = {