@@ -762,7 +762,7 @@ object SymDenotations {
762
762
763
763
/** Is this symbol a class of which `null` is a value? */
764
764
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
766
766
else isNullableClassAfterErasure
767
767
768
768
/** Is this symbol a class of which `null` is a value after erasure?
@@ -849,7 +849,7 @@ object SymDenotations {
849
849
|| this .is(Protected ) &&
850
850
( superAccess
851
851
|| pre.isInstanceOf [ThisType ]
852
- || currentPhase .erasedTypes
852
+ || ctx.phase .erasedTypes
853
853
|| isProtectedAccessOK
854
854
)
855
855
)
@@ -1325,7 +1325,7 @@ object SymDenotations {
1325
1325
final def accessBoundary (base : Symbol )(using Context ): Symbol =
1326
1326
if (this .is(Private )) owner
1327
1327
else if (this .isAllOf(StaticProtected )) defn.RootClass
1328
- else if (privateWithin.exists && ! currentPhase .erasedTypes) privateWithin
1328
+ else if (privateWithin.exists && ! ctx.phase .erasedTypes) privateWithin
1329
1329
else if (this .is(Protected )) base
1330
1330
else defn.RootClass
1331
1331
@@ -1451,7 +1451,7 @@ object SymDenotations {
1451
1451
val initFlags1 = (if (initFlags != UndefinedFlags ) initFlags else this .flags)
1452
1452
val info1 = if (info != null ) info else this .info
1453
1453
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" )
1455
1455
val privateWithin1 = if (privateWithin != null ) privateWithin else this .privateWithin
1456
1456
val annotations1 = if (annotations != null ) annotations else this .annotations
1457
1457
val rawParamss1 = if rawParamss != null then rawParamss else this .rawParamss
@@ -2592,7 +2592,7 @@ object SymDenotations {
2592
2592
private var cache : SimpleIdentityMap [NameFilter , Set [Name ]] = SimpleIdentityMap .Empty
2593
2593
2594
2594
final def isValid (using Context ): Boolean =
2595
- cache != null && isValidAt(currentPhase )
2595
+ cache != null && isValidAt(ctx.phase )
2596
2596
2597
2597
private var locked = false
2598
2598
@@ -2634,7 +2634,7 @@ object SymDenotations {
2634
2634
private var locked = false
2635
2635
private var provisional = false
2636
2636
2637
- final def isValid (using Context ): Boolean = valid && isValidAt(currentPhase )
2637
+ final def isValid (using Context ): Boolean = valid && isValidAt(ctx.phase )
2638
2638
2639
2639
def invalidate (): Unit =
2640
2640
if (valid && ! locked) {
0 commit comments