From 9d1b4bfd96d351f3c05aeb258a708e7486f5f390 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Wed, 29 Oct 2014 13:31:56 +0100 Subject: Print whole TreeTransform name in Ycheck and Xprint --- src/dotty/tools/dotc/core/Contexts.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dotty/tools/dotc/core/Contexts.scala') diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala index 3b14872b7..de6b0cabf 100644 --- a/src/dotty/tools/dotc/core/Contexts.scala +++ b/src/dotty/tools/dotc/core/Contexts.scala @@ -472,6 +472,10 @@ object Contexts { /** The standard definitions */ val definitions = new Definitions + + def squashed(p: Phase): Phase = { + squashedPhases.find(_.period.containsPhaseId(p.id)).getOrElse(NoPhase) + } } /** The essential mutable state of a context base, collected into a common class */ -- cgit v1.2.3