@@ -762,7 +762,7 @@ object SymDenotations {
762762
763763 /** Is this symbol a class of which `null` is a value? */
764764 final def isNullableClass (using Context ): Boolean =
765- if (ctx.explicitNulls && ! currentPhase .erasedTypes) symbol == defn.NullClass || symbol == defn.AnyClass
765+ if (ctx.explicitNulls && ! ctx.phase .erasedTypes) symbol == defn.NullClass || symbol == defn.AnyClass
766766 else isNullableClassAfterErasure
767767
768768 /** Is this symbol a class of which `null` is a value after erasure?
@@ -849,7 +849,7 @@ object SymDenotations {
849849 || this .is(Protected ) &&
850850 ( superAccess
851851 || pre.isInstanceOf [ThisType ]
852- || currentPhase .erasedTypes
852+ || ctx.phase .erasedTypes
853853 || isProtectedAccessOK
854854 )
855855 )
@@ -1325,7 +1325,7 @@ object SymDenotations {
13251325 final def accessBoundary (base : Symbol )(using Context ): Symbol =
13261326 if (this .is(Private )) owner
13271327 else if (this .isAllOf(StaticProtected )) defn.RootClass
1328- else if (privateWithin.exists && ! currentPhase .erasedTypes) privateWithin
1328+ else if (privateWithin.exists && ! ctx.phase .erasedTypes) privateWithin
13291329 else if (this .is(Protected )) base
13301330 else defn.RootClass
13311331
@@ -1451,7 +1451,7 @@ object SymDenotations {
14511451 val initFlags1 = (if (initFlags != UndefinedFlags ) initFlags else this .flags)
14521452 val info1 = if (info != null ) info else this .info
14531453 if (currentlyAfterTyper && changedClassParents(info, info1, completersMatter = false ))
1454- assert(currentPhase. changesParents, i " undeclared parent change at ${currentPhase } for $this, was: $info, now: $info1" )
1454+ assert(ctx.phase. changesParents, i " undeclared parent change at ${ctx.phase } for $this, was: $info, now: $info1" )
14551455 val privateWithin1 = if (privateWithin != null ) privateWithin else this .privateWithin
14561456 val annotations1 = if (annotations != null ) annotations else this .annotations
14571457 val rawParamss1 = if rawParamss != null then rawParamss else this .rawParamss
@@ -2592,7 +2592,7 @@ object SymDenotations {
25922592 private var cache : SimpleIdentityMap [NameFilter , Set [Name ]] = SimpleIdentityMap .Empty
25932593
25942594 final def isValid (using Context ): Boolean =
2595- cache != null && isValidAt(currentPhase )
2595+ cache != null && isValidAt(ctx.phase )
25962596
25972597 private var locked = false
25982598
@@ -2634,7 +2634,7 @@ object SymDenotations {
26342634 private var locked = false
26352635 private var provisional = false
26362636
2637- final def isValid (using Context ): Boolean = valid && isValidAt(currentPhase )
2637+ final def isValid (using Context ): Boolean = valid && isValidAt(ctx.phase )
26382638
26392639 def invalidate (): Unit =
26402640 if (valid && ! locked) {
0 commit comments