diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Contexts.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Contexts.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Contexts.scala b/src/dotty/tools/dotc/core/Contexts.scala index 0d6e341a6..38784ec0c 100644 --- a/src/dotty/tools/dotc/core/Contexts.scala +++ b/src/dotty/tools/dotc/core/Contexts.scala @@ -325,6 +325,7 @@ object Contexts { def withProperty(prop: (String, Any)): this.type = withMoreProperties(moreProperties + prop) def withPhase(pid: PhaseId): this.type = withPeriod(Period(runId, pid)) + def withPhase(phase: Phase): this.type = withPhase(phase.id) def withSetting[T](setting: Setting[T], value: T): this.type = withSettings(setting.updateIn(sstate, value)) @@ -361,7 +362,6 @@ object Contexts { * compiler run. */ class ContextBase extends ContextState - with DenotTransformers.DenotTransformerBase with Denotations.DenotationsBase with Phases.PhasesBase { @@ -460,6 +460,9 @@ object Contexts { /** Phases by id */ private[core] var phases: Array[Phase] = _ + /** Next denotation transformer id */ + private[core] var nextTransformerId: Array[Int] = _ + // Printers state /** Number of recursive invocations of a show method on cuyrrent stack */ private[dotc] var toTextRecursions = 0 |