@@ -243,7 +243,7 @@ object SymDenotations {
243243 myFlags |= Touched
244244
245245 // completions.println(s"completing ${this.debugString}")
246- try completer.complete( this )( using ctx.withPhase(validFor.firstPhaseId ))
246+ try atPhase(validFor.firstPhaseId)(completer.complete( this ))
247247 catch {
248248 case ex : CyclicReference =>
249249 println(s " error while completing ${this .debugString}" )
@@ -257,7 +257,7 @@ object SymDenotations {
257257 else {
258258 if (myFlags.is(Touched )) throw CyclicReference (this )
259259 myFlags |= Touched
260- completer.complete( this )( using ctx.withPhase(validFor.firstPhaseId ))
260+ atPhase(validFor.firstPhaseId)(completer.complete( this ))
261261 }
262262
263263 protected [dotc] def info_= (tp : Type ): Unit = {
@@ -847,13 +847,12 @@ object SymDenotations {
847847 isClass && derivesFrom(defn.JavaSerializableClass )
848848
849849 /** Is this symbol a class that extends `AnyVal`? */
850- final def isValueClass (using Context ): Boolean = {
850+ final def isValueClass (using Context ): Boolean =
851851 val di = initial
852- di.isClass &&
853- di.derivesFrom(defn. AnyValClass )( using ctx.withPhase(di.validFor.firstPhaseId ))
852+ di.isClass
853+ && atPhase( di.validFor.firstPhaseId)(di.derivesFrom(defn. AnyValClass ))
854854 // We call derivesFrom at the initial phase both because AnyVal does not exist
855855 // after Erasure and to avoid cyclic references caused by forcing denotations
856- }
857856
858857 /** Is this symbol a class of which `null` is a value? */
859858 final def isNullableClass (using Context ): Boolean =
@@ -2200,7 +2199,7 @@ object SymDenotations {
22002199 * `phase.next`, install a new denotation with a cloned scope in `phase.next`.
22012200 */
22022201 def ensureFreshScopeAfter (phase : DenotTransformer )(using Context ): Unit =
2203- if (ctx.phaseId != phase.next.id) ensureFreshScopeAfter (phase)( using ctx.withPhase (phase.next ))
2202+ if (ctx.phaseId != phase.next.id) atPhase (phase.next)(ensureFreshScopeAfter (phase))
22042203 else {
22052204 val prevClassInfo = atPhase(phase) {
22062205 current.asInstanceOf [ClassDenotation ].classInfo
0 commit comments