@@ -27,7 +27,7 @@ import transform.TypeUtils._
2727
2828import scala .annotation .internal .sharable
2929
30- trait SymDenotations { this : Context =>
30+ trait SymDenotations { thisCtx : Context =>
3131 import SymDenotations ._
3232
3333 /** Factory method for SymDenotion creation. All creations
@@ -53,9 +53,9 @@ trait SymDenotations { this: Context =>
5353 if (denot.isOneOf(ValidForeverFlags ) || denot.isRefinementClass || denot.isImport) true
5454 else {
5555 val initial = denot.initial
56- val firstPhaseId = initial.validFor.firstPhaseId.max(ctx .typerPhase.id)
57- if ((initial ne denot) || ctx .phaseId != firstPhaseId)
58- ctx .withPhase(firstPhaseId).stillValidInOwner(initial)
56+ val firstPhaseId = initial.validFor.firstPhaseId.max(thisCtx .typerPhase.id)
57+ if ((initial ne denot) || thisCtx .phaseId != firstPhaseId)
58+ thisCtx .withPhase(firstPhaseId).stillValidInOwner(initial)
5959 else
6060 stillValidInOwner(denot)
6161 }
@@ -78,15 +78,15 @@ trait SymDenotations { this: Context =>
7878 def traceInvalid (denot : Denotation ): Boolean = {
7979 def show (d : Denotation ) = s " $d# ${d.symbol.id}"
8080 def explain (msg : String ) = {
81- println(s " ${show(denot)} is invalid at ${this .period} because $msg" )
81+ println(s " ${show(denot)} is invalid at ${thisCtx .period} because $msg" )
8282 false
8383 }
8484 denot match {
8585 case denot : SymDenotation =>
8686 def explainSym (msg : String ) = explain(s " $msg\n defined = ${denot.definedPeriodsString}" )
8787 if (denot.isOneOf(ValidForeverFlags ) || denot.isRefinementClass) true
8888 else {
89- implicit val ctx = this
89+ implicit val ctx = thisCtx
9090 val initial = denot.initial
9191 if ((initial ne denot) || ctx.phaseId != initial.validFor.firstPhaseId)
9292 ctx.withPhase(initial.validFor.firstPhaseId).traceInvalid(initial)
@@ -116,7 +116,7 @@ trait SymDenotations { this: Context =>
116116 /** Possibly accept stale symbol with warning if in IDE */
117117 def acceptStale (denot : SingleDenotation ): Boolean =
118118 staleOK && {
119- ctx .debugwarn(denot.staleSymbolMsg)
119+ thisCtx .debugwarn(denot.staleSymbolMsg)
120120 true
121121 }
122122}
0 commit comments