File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ object DenotTransformers {
61
61
trait SymTransformer extends DenotTransformer {
62
62
63
63
/** Tramsform the info of a denotation that is not a Symdenotation */
64
- def transformInfo (tp : Type , sym : Symbol )(implicit ctx : Context ): Type = tp
64
+ def transformNonSymInfo (tp : Type , sym : Symbol )(implicit ctx : Context ): Type = tp
65
65
66
66
def transformSym (sym : SymDenotation )(implicit ctx : Context ): SymDenotation
67
67
68
68
def transform (ref : SingleDenotation )(implicit ctx : Context ): SingleDenotation = ref match {
69
69
case ref : SymDenotation => transformSym(ref)
70
- case _ => ref.derivedSingleDenotation(ref.symbol, transformInfo (ref.info, ref.symbol))
70
+ case _ => ref.derivedSingleDenotation(ref.symbol, transformNonSymInfo (ref.info, ref.symbol))
71
71
}
72
72
}
73
73
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class ElimOpaque extends MiniPhase with SymTransformer {
27
27
// base types of opaque aliases change
28
28
override def changesBaseTypes = true
29
29
30
- override def transformInfo (tp : Type , sym : Symbol )(implicit ctx : Context ): Type =
30
+ override def transformNonSymInfo (tp : Type , sym : Symbol )(implicit ctx : Context ): Type =
31
31
if (sym.isOpaqueHelper) TypeAlias (tp.extractOpaqueAlias) else tp
32
32
33
33
def transformSym (sym : SymDenotation )(implicit ctx : Context ): SymDenotation =
You can’t perform that action at this time.
0 commit comments