Skip to content

Commit 266caf5

Browse files
committed
fixup imports
1 parent 4e2762a commit 266caf5

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

src/dotty/tools/dotc/backend/jvm/BCodeBodyBuilder.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ abstract class BCodeBodyBuilder extends BCodeSkelBuilder {
440440
}
441441

442442
case Literal(value) =>
443-
import dotty.tools.dotc.core.Constants._
443+
import core.Constants._
444444
if (value.tag != UnitTag) (value.tag, expectedType) match {
445445
case (IntTag, LONG ) => bc.lconst(value.longValue); generatedType = LONG
446446
case (FloatTag, DOUBLE) => bc.dconst(value.doubleValue); generatedType = DOUBLE
@@ -518,7 +518,7 @@ abstract class BCodeBodyBuilder extends BCodeSkelBuilder {
518518
*/
519519
def genConstant(const: Constant): Unit = {
520520

521-
import dotty.tools.dotc.core.Constants._
521+
import core.Constants._
522522

523523
(const.tag: @switch) match {
524524

@@ -913,7 +913,7 @@ abstract class BCodeBodyBuilder extends BCodeSkelBuilder {
913913
}
914914

915915
/* Generate code that loads args into label parameters. */
916-
def genLoadLabelArguments(args: List[Tree], lblDef: LabelDef, gotoPos: dotty.tools.dotc.util.Positions.Position): Unit = {
916+
def genLoadLabelArguments(args: List[Tree], lblDef: LabelDef, gotoPos: util.Positions.Position): Unit = {
917917

918918
val aps = {
919919
val params: List[Symbol] = lblDef.params.map(_.symbol)
@@ -1027,7 +1027,7 @@ abstract class BCodeBodyBuilder extends BCodeSkelBuilder {
10271027
def genCallMethod(method: Symbol,
10281028
style: InvokeStyle,
10291029
hostClass0: Symbol = null,
1030-
pos: dotty.tools.dotc.util.Positions.Position = dotty.tools.dotc.util.Positions.NoPosition) {
1030+
pos: util.Positions.Position = util.Positions.NoPosition) {
10311031

10321032
val siteSymbol = claszSymbol
10331033
val hostSymbol = if (hostClass0 == null) method.owner else hostClass0;

src/dotty/tools/dotc/backend/jvm/BCodeGlue.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ abstract class BCodeGlue {
621621
*
622622
* must-single-thread
623623
*/
624-
def brefType(iname: String): BType = { brefType(dotty.tools.dotc.core.Names.typeName(iname.toCharArray(), 0, iname.length())) }
624+
def brefType(iname: String): BType = {
625+
brefType(core.Names.typeName(iname.toCharArray(), 0, iname.length()))
626+
}
625627

626628
/*
627629
* Creates a BType token for the TypeName received as argument.

src/dotty/tools/dotc/backend/jvm/BCodeHelpers.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ abstract class BCodeHelpers extends BCodeTypes with BytecodeWriters {
142142
*/
143143
object isJavaEntryPoint {
144144

145-
import dotty.tools.dotc.core.Types.{MethodType, PolyType}
145+
import core.Types.{MethodType, PolyType}
146146

147147
/*
148148
* must-single-thread
149149
*/
150150
def apply(sym: Symbol, ctx: Context): Boolean = {
151-
def fail(msg: String, pos: dotty.tools.dotc.util.Positions.Position = sym.pos) = {
151+
def fail(msg: String, pos: util.Positions.Position = sym.pos) = {
152152
ctx.warning(sym.pos,
153153
sym.name +
154154
s" has a main method with parameter type Array[String], but ${sym.fullName('.')} will not be a runnable program.\n Reason: $msg"
@@ -512,7 +512,7 @@ abstract class BCodeHelpers extends BCodeTypes with BytecodeWriters {
512512
}
513513
}
514514

515-
import dotty.tools.dotc.core.Types.{ThisType, ConstantType, TypeRef, ClassInfo}
515+
import core.Types.{ThisType, ConstantType, TypeRef, ClassInfo}
516516

517517
// Call to .normalize fixes #3003 (follow type aliases). Otherwise, primitiveOrArrayOrRefType() would return ObjectReference.
518518
t match {
@@ -667,7 +667,7 @@ abstract class BCodeHelpers extends BCodeTypes with BytecodeWriters {
667667
(arg: @unchecked) match {
668668

669669
case LiteralAnnotArg(const) =>
670-
import dotty.tools.dotc.core.Constants._
670+
import core.Constants._
671671
if (const.isNonUnitAnyVal) { av.visit(name, const.value) }
672672
else {
673673
(const.tag: @switch) match {

src/dotty/tools/dotc/backend/jvm/icodes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ object icodes {
150150
/** Call through super[mix].
151151
* On JVM, translated to `invokespecial`.
152152
*/
153-
case class SuperCall(mix: dotty.tools.dotc.core.Names.TermName) extends InvokeStyle {
153+
case class SuperCall(mix: core.Names.TermName) extends InvokeStyle {
154154
override def isSuper = true
155155
override def toString(): String = { "super(" + mix + ")" }
156156
}

0 commit comments

Comments
 (0)