@@ -4811,7 +4811,7 @@ object Types {
4811
4811
}
4812
4812
}
4813
4813
4814
- abstract class TypeMap (implicit protected val ctx : Context )
4814
+ abstract class TypeMap (implicit protected val mapCtx : Context )
4815
4815
extends VariantTraversal with (Type => Type ) { thisMap =>
4816
4816
4817
4817
protected def stopAtStatic : Boolean = true
@@ -4858,7 +4858,7 @@ object Types {
4858
4858
def mapOver (tp : Type ): Type = {
4859
4859
record(s " mapOver ${getClass}" )
4860
4860
record(" mapOver total" )
4861
- implicit val ctx = this .ctx
4861
+ implicit val ctx = this .mapCtx
4862
4862
tp match {
4863
4863
case tp : NamedType =>
4864
4864
if (stopAtStatic && tp.symbol.isStatic || (tp.prefix `eq` NoPrefix )) tp
@@ -4968,7 +4968,7 @@ object Types {
4968
4968
4969
4969
private def treeTypeMap = new TreeTypeMap (typeMap = this )
4970
4970
4971
- def mapOver (syms : List [Symbol ]): List [Symbol ] = ctx .mapSymbols(syms, treeTypeMap)
4971
+ def mapOver (syms : List [Symbol ]): List [Symbol ] = mapCtx .mapSymbols(syms, treeTypeMap)
4972
4972
4973
4973
def mapOver (scope : Scope ): Scope = {
4974
4974
val elems = scope.toList
@@ -5271,7 +5271,7 @@ object Types {
5271
5271
5272
5272
// ----- TypeAccumulators ----------------------------------------------------
5273
5273
5274
- abstract class TypeAccumulator [T ](implicit protected val ctx : Context )
5274
+ abstract class TypeAccumulator [T ](implicit protected val accCtx : Context )
5275
5275
extends VariantTraversal with ((T , Type ) => T ) {
5276
5276
5277
5277
protected def stopAtStatic : Boolean = true
0 commit comments