@@ -3772,20 +3772,20 @@ object Types {
3772
3772
3773
3773
def reduced (implicit ctx : Context ): Type = {
3774
3774
val trackingCtx = ctx.fresh.setTypeComparerFn(new TrackingTypeComparer (_))
3775
- val cmp = trackingCtx.typeComparer.asInstanceOf [TrackingTypeComparer ]
3775
+ val typeComparer = trackingCtx.typeComparer.asInstanceOf [TrackingTypeComparer ]
3776
3776
3777
3777
def reduceSequential (cases : List [Type ])(implicit ctx : Context ): Type = cases match {
3778
3778
case Nil => NoType
3779
3779
case cas :: cases1 =>
3780
- val r = cmp .matchCase(scrutinee, cas, instantiate = true )
3780
+ val r = typeComparer .matchCase(scrutinee, cas, instantiate = true )
3781
3781
if (r.exists) r
3782
3782
else if (cantPossiblyMatch(cas)) reduceSequential(cases1)
3783
3783
else NoType
3784
3784
}
3785
3785
3786
3786
def reduceParallel (implicit ctx : Context ) = {
3787
3787
val applicableBranches = cases
3788
- .map(cmp .matchCase(scrutinee, _, instantiate = true )(trackingCtx))
3788
+ .map(typeComparer .matchCase(scrutinee, _, instantiate = true )(trackingCtx))
3789
3789
.filter(_.exists)
3790
3790
applicableBranches match {
3791
3791
case Nil => NoType
@@ -3815,9 +3815,9 @@ object Types {
3815
3815
3816
3816
def updateReductionContext () = {
3817
3817
reductionContext = new mutable.HashMap
3818
- for (tp <- cmp .footprint)
3818
+ for (tp <- typeComparer .footprint)
3819
3819
reductionContext(tp) = contextInfo(tp)
3820
- typr.println(i " footprint for $this $hashCode: ${cmp .footprint.toList.map(x => (x, contextInfo(x)))}%, % " )
3820
+ typr.println(i " footprint for $this $hashCode: ${typeComparer .footprint.toList.map(x => (x, contextInfo(x)))}%, % " )
3821
3821
}
3822
3822
3823
3823
def upToDate =
0 commit comments