diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-10-29 13:31:56 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-10-30 17:22:15 +0100 |
commit | 9d1b4bfd96d351f3c05aeb258a708e7486f5f390 (patch) | |
tree | 84635418668cb161e51c31cfb320fff0a8793487 /src/dotty/tools/dotc/core/Contexts.scala | |
parent | 7ebc502c1a6eee7362a5c00a1561c97be10f4845 (diff) | |
download | dotty-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/core/Contexts.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Contexts.scala | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |