@@ -686,11 +686,11 @@ object Denotations {
686686
687687 private def updateValidity ()(using Context ): this .type = {
688688 assert(
689- currentRunId >= validFor.runId
689+ ctx.runId >= validFor.runId
690690 || ctx.settings.YtestPickler .value // mixing test pickler with debug printing can travel back in time
691691 || ctx.mode.is(Mode .Printing ) // no use to be picky when printing error messages
692692 || symbol.isOneOf(ValidForeverFlags ),
693- s " denotation $this invalid in run ${currentRunId }. ValidFor: $validFor" )
693+ s " denotation $this invalid in run ${ctx.runId }. ValidFor: $validFor" )
694694 var d : SingleDenotation = this
695695 while ({
696696 d.validFor = Period (currentPeriod.runId, d.validFor.firstPhaseId, d.validFor.lastPhaseId)
@@ -720,7 +720,7 @@ object Denotations {
720720 case _ =>
721721 }
722722 if (! symbol.exists) return updateValidity()
723- if (! coveredInterval.containsPhaseId(currentPhaseId )) return NoDenotation
723+ if (! coveredInterval.containsPhaseId(ctx.phaseId )) return NoDenotation
724724 if (ctx.debug) traceInvalid(this )
725725 staleSymbolError
726726 }
@@ -842,7 +842,7 @@ object Denotations {
842842 }
843843
844844 private def demandOutsideDefinedMsg (using Context ): String =
845- s " demanding denotation of $this at phase ${currentPhase}( ${currentPhaseId }) outside defined interval: defined periods are ${definedPeriodsString}"
845+ s " demanding denotation of $this at phase ${currentPhase}( ${ctx.phaseId }) outside defined interval: defined periods are ${definedPeriodsString}"
846846
847847 /** Install this denotation to be the result of the given denotation transformer.
848848 * This is the implementation of the same-named method in SymDenotations.
@@ -851,16 +851,16 @@ object Denotations {
851851 */
852852 protected def installAfter (phase : DenotTransformer )(using Context ): Unit = {
853853 val targetId = phase.next.id
854- if (currentPhaseId != targetId) atPhase(phase.next)(installAfter(phase))
854+ if (ctx.phaseId != targetId) atPhase(phase.next)(installAfter(phase))
855855 else {
856856 val current = symbol.current
857857 // println(s"installing $this after $phase/${phase.id}, valid = ${current.validFor}")
858858 // printPeriods(current)
859- this .validFor = Period (currentRunId , targetId, current.validFor.lastPhaseId)
859+ this .validFor = Period (ctx.runId , targetId, current.validFor.lastPhaseId)
860860 if (current.validFor.firstPhaseId >= targetId)
861861 current.replaceWith(this )
862862 else {
863- current.validFor = Period (currentRunId , current.validFor.firstPhaseId, targetId - 1 )
863+ current.validFor = Period (ctx.runId , current.validFor.firstPhaseId, targetId - 1 )
864864 insertAfter(current)
865865 }
866866 }
@@ -1071,7 +1071,7 @@ object Denotations {
10711071 class ErrorDenotation (using Context ) extends NonSymSingleDenotation (NoSymbol , NoType , NoType ) {
10721072 override def exists : Boolean = false
10731073 override def hasUniqueSym : Boolean = false
1074- validFor = Period .allInRun(currentRunId )
1074+ validFor = Period .allInRun(ctx.runId )
10751075 protected def newLikeThis (s : Symbol , i : Type , pre : Type ): SingleDenotation =
10761076 this
10771077 }
0 commit comments