@@ -58,11 +58,6 @@ class JSCodeGen()(implicit ctx: Context) {
58
58
private val positionConversions = new JSPositions ()(ctx)
59
59
import positionConversions .{pos2irPos , implicitPos2irPos }
60
60
61
- private val elimRepeatedPhase =
62
- ctx.phaseOfClass(classOf [dotty.tools.dotc.transform.ElimRepeated ])
63
- private val elimErasedValueTypePhase =
64
- ctx.phaseOfClass(classOf [dotty.tools.dotc.transform.ElimErasedValueType ])
65
-
66
61
// Some state --------------------------------------------------------------
67
62
68
63
private val currentClassSym = new ScopedVar [Symbol ]
@@ -1743,7 +1738,7 @@ class JSCodeGen()(implicit ctx: Context) {
1743
1738
if (isStat) {
1744
1739
boxedResult
1745
1740
} else {
1746
- val tpe = ctx.atPhase(elimErasedValueTypePhase) { implicit ctx =>
1741
+ val tpe = ctx.atPhase(ctx. elimErasedValueTypePhase) { implicit ctx =>
1747
1742
sym.info.finalResultType
1748
1743
}
1749
1744
unbox(boxedResult, tpe)
@@ -2208,12 +2203,12 @@ class JSCodeGen()(implicit ctx: Context) {
2208
2203
def paramNamesAndTypes (implicit ctx : Context ): List [(Names .TermName , Type )] =
2209
2204
sym.info.paramNamess.flatten.zip(sym.info.paramTypess.flatten)
2210
2205
2211
- val wereRepeated = ctx.atPhase(elimRepeatedPhase) { implicit ctx =>
2206
+ val wereRepeated = ctx.atPhase(ctx. elimRepeatedPhase) { implicit ctx =>
2212
2207
for ((name, tpe) <- paramNamesAndTypes)
2213
2208
yield (name -> tpe.isRepeatedParam)
2214
2209
}.toMap
2215
2210
2216
- val paramTypes = ctx.atPhase(elimErasedValueTypePhase) { implicit ctx =>
2211
+ val paramTypes = ctx.atPhase(ctx. elimErasedValueTypePhase) { implicit ctx =>
2217
2212
paramNamesAndTypes
2218
2213
}.toMap
2219
2214
0 commit comments