Skip to content

Commit 3515354

Browse files
committed
Rename more ctx fields
1 parent 0a3f889 commit 3515354

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4811,7 +4811,7 @@ object Types {
48114811
}
48124812
}
48134813

4814-
abstract class TypeMap(implicit protected val ctx: Context)
4814+
abstract class TypeMap(implicit protected val mapCtx: Context)
48154815
extends VariantTraversal with (Type => Type) { thisMap =>
48164816

48174817
protected def stopAtStatic: Boolean = true
@@ -4858,7 +4858,7 @@ object Types {
48584858
def mapOver(tp: Type): Type = {
48594859
record(s"mapOver ${getClass}")
48604860
record("mapOver total")
4861-
implicit val ctx = this.ctx
4861+
implicit val ctx = this.mapCtx
48624862
tp match {
48634863
case tp: NamedType =>
48644864
if (stopAtStatic && tp.symbol.isStatic || (tp.prefix `eq` NoPrefix)) tp
@@ -4968,7 +4968,7 @@ object Types {
49684968

49694969
private def treeTypeMap = new TreeTypeMap(typeMap = this)
49704970

4971-
def mapOver(syms: List[Symbol]): List[Symbol] = ctx.mapSymbols(syms, treeTypeMap)
4971+
def mapOver(syms: List[Symbol]): List[Symbol] = mapCtx.mapSymbols(syms, treeTypeMap)
49724972

49734973
def mapOver(scope: Scope): Scope = {
49744974
val elems = scope.toList
@@ -5271,7 +5271,7 @@ object Types {
52715271

52725272
// ----- TypeAccumulators ----------------------------------------------------
52735273

5274-
abstract class TypeAccumulator[T](implicit protected val ctx: Context)
5274+
abstract class TypeAccumulator[T](implicit protected val accCtx: Context)
52755275
extends VariantTraversal with ((T, Type) => T) {
52765276

52775277
protected def stopAtStatic: Boolean = true

compiler/src/dotty/tools/dotc/typer/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ trait ImplicitRunInfo {
528528
* abstract types are eliminated.
529529
*/
530530
object liftToAnchors extends TypeMap {
531-
override implicit protected val ctx: Context = liftingCtx
531+
override implicit protected val mapCtx: Context = liftingCtx
532532
override def stopAtStatic = true
533533

534534
def apply(tp: Type) = tp.widenDealias match {

0 commit comments

Comments
 (0)