aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Run.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-10-29 13:31:56 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-10-30 17:22:15 +0100
commit9d1b4bfd96d351f3c05aeb258a708e7486f5f390 (patch)
tree84635418668cb161e51c31cfb320fff0a8793487 /src/dotty/tools/dotc/Run.scala
parent7ebc502c1a6eee7362a5c00a1561c97be10f4845 (diff)
downloaddotty-9d1b4bfd96d351f3c05aeb258a708e7486f5f390.tar.gz
dotty-9d1b4bfd96d351f3c05aeb258a708e7486f5f390.tar.bz2
dotty-9d1b4bfd96d351f3c05aeb258a708e7486f5f390.zip
Print whole TreeTransform name in Ycheck and Xprint
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r--src/dotty/tools/dotc/Run.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala
index 2fbfc3f9b..a9948c54a 100644
--- a/src/dotty/tools/dotc/Run.scala
+++ b/src/dotty/tools/dotc/Run.scala
@@ -3,6 +3,7 @@ package dotc
import core._
import Contexts._, Periods._, Symbols._, Phases._, Decorators._
+import dotty.tools.dotc.transform.TreeTransforms.TreeTransformer
import io.PlainFile
import util.{SourceFile, NoSource, Stats, SimpleMap}
import reporting.Reporter
@@ -60,7 +61,10 @@ class Run(comp: Compiler)(implicit ctx: Context) {
private def printTree(ctx: Context) = {
val unit = ctx.compilationUnit
- println(s"result of $unit after ${ctx.phase.prev}:")
+ val prevPhase = ctx.phase.prev // can be a mini-phase
+ val squahsedPhase = ctx.squashed(prevPhase)
+
+ println(s"result of $unit after ${squahsedPhase}:")
println(unit.tpdTree.show(ctx))
}