From 09d02bd3670b947da147aec40835822d894b17b0 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 17 Mar 2014 22:25:47 +0100 Subject: Allow MiniPhase to be DenotTransformer All MiniPhases now as are full-fledged phases, and are given their own periods and can register DenotTransformers. MiniPhases belonging to same group(list) will be squashed to single phase. --- src/dotty/tools/dotc/core/DenotTransformers.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/DenotTransformers.scala') diff --git a/src/dotty/tools/dotc/core/DenotTransformers.scala b/src/dotty/tools/dotc/core/DenotTransformers.scala index be85b5877..e1ee355d8 100644 --- a/src/dotty/tools/dotc/core/DenotTransformers.scala +++ b/src/dotty/tools/dotc/core/DenotTransformers.scala @@ -21,7 +21,7 @@ object DenotTransformers { trait DenotTransformer extends Phase { /** The last phase during which the transformed denotations are valid */ - def lastPhaseId(implicit ctx: Context) = ctx.nextTransformerId(id + 1) + def lastPhaseId(implicit ctx: Context) = ctx.nextDenotTransformerId(id + 1) /** The validity period of the transformer in the given context */ def validFor(implicit ctx: Context): Period = -- cgit v1.2.3