You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -376,7 +376,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
376
376
defshouldEmitJumpAfterLabels=true
377
377
378
378
defdumpClasses:Option[String] =
379
-
if(ctx.settings.Ydumpclasses.isDefault) None
379
+
if(ctx.settings.Ydumpclasses.isDefault) None
380
380
elseSome(ctx.settings.Ydumpclasses.value)
381
381
382
382
defmainClass:Option[String] =
@@ -423,7 +423,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
423
423
caseTermRef(prefix: ThisType, name) =>
424
424
Some(tpd.This(prefix.cls).select(i.symbol))
425
425
caseTermRef(NoPrefix, name) =>
426
-
if(i.symbol is Flags.Method) Some(This(i.symbol.enclosingClass).select(i.symbol)) // workaround #342 todo: remove after fixed
426
+
if(i.symbol is Flags.Method) Some(This(i.symbol.enclosingClass).select(i.symbol)) // workaround #342 todo: remove after fixed
427
427
elseNone
428
428
case _ =>None
429
429
}
@@ -663,7 +663,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
663
663
defcompanionSymbol:Symbol=if (sym is Flags.Module) companionClass else companionModule
664
664
defmoduleClass:Symbol= toDenot(sym).moduleClass
665
665
defenclosingClassSym:Symbol= {
666
-
if(this.isClass) {
666
+
if(this.isClass) {
667
667
valct= ctx.withPhase(ctx.flattenPhase.prev)
668
668
toDenot(sym)(ct).owner.enclosingClass(ct)
669
669
}
@@ -792,7 +792,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
792
792
t.info match {
793
793
794
794
case _ =>
795
-
if(!t.symbol.isClass) nonClassTypeRefToBType(t.symbol) // See comment on nonClassTypeRefToBType
795
+
if(!t.symbol.isClass) nonClassTypeRefToBType(t.symbol) // See comment on nonClassTypeRefToBType
796
796
else primitiveOrClassToBType(t.symbol) // Common reference to a type such as scala.Int or java.lang.String
797
797
}
798
798
caseTypes.ClassInfo(_, sym, _, _, _) => primitiveOrClassToBType(sym) // We get here, for example, for genLoadModule, which invokes toTypeKind(moduleClassSymbol.info)
@@ -942,7 +942,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
0 commit comments