Skip to content

Commit 0fadbe3

Browse files
committed
transformInfo -> transformNonSymInfo
1 parent e93f8ab commit 0fadbe3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ object DenotTransformers {
6161
trait SymTransformer extends DenotTransformer {
6262

6363
/** 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
6565

6666
def transformSym(sym: SymDenotation)(implicit ctx: Context): SymDenotation
6767

6868
def transform(ref: SingleDenotation)(implicit ctx: Context): SingleDenotation = ref match {
6969
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))
7171
}
7272
}
7373

compiler/src/dotty/tools/dotc/transform/ElimOpaque.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ElimOpaque extends MiniPhase with SymTransformer {
2727
// base types of opaque aliases change
2828
override def changesBaseTypes = true
2929

30-
override def transformInfo(tp: Type, sym: Symbol)(implicit ctx: Context): Type =
30+
override def transformNonSymInfo(tp: Type, sym: Symbol)(implicit ctx: Context): Type =
3131
if (sym.isOpaqueHelper) TypeAlias(tp.extractOpaqueAlias) else tp
3232

3333
def transformSym(sym: SymDenotation)(implicit ctx: Context): SymDenotation =

0 commit comments

Comments
 (0)