@@ -13,16 +13,16 @@ import BCodeHelpers.InvokeStyle
1313
1414import dotty .tools .dotc .ast .tpd
1515import dotty .tools .dotc .CompilationUnit
16- import dotty .tools .dotc .core .Constants ._
16+ import dotty .tools .dotc .core .Constants .*
1717import dotty .tools .dotc .core .Flags .{Label => LabelFlag , _ }
18- import dotty .tools .dotc .core .Types ._
18+ import dotty .tools .dotc .core .Types .*
1919import dotty .tools .dotc .core .StdNames .{nme , str }
20- import dotty .tools .dotc .core .Symbols ._
20+ import dotty .tools .dotc .core .Symbols .*
2121import dotty .tools .dotc .transform .Erasure
22- import dotty .tools .dotc .transform .SymUtils ._
23- import dotty .tools .dotc .util .Spans ._
24- import dotty .tools .dotc .core .Contexts ._
25- import dotty .tools .dotc .core .Phases ._
22+ import dotty .tools .dotc .transform .SymUtils .*
23+ import dotty .tools .dotc .util .Spans .*
24+ import dotty .tools .dotc .core .Contexts .*
25+ import dotty .tools .dotc .core .Phases .*
2626import dotty .tools .dotc .core .Decorators .em
2727import dotty .tools .dotc .report
2828
@@ -33,13 +33,13 @@ import dotty.tools.dotc.report
3333 *
3434 */
3535trait BCodeBodyBuilder extends BCodeSkelBuilder {
36- // import global._
37- // import definitions._
38- import tpd ._
36+ // import global.*
37+ // import definitions.*
38+ import tpd .*
3939 import int .{_ , given }
4040 import DottyBackendInterface .symExtensions
41- import bTypes ._
42- import coreBTypes ._
41+ import bTypes .*
42+ import coreBTypes .*
4343
4444 protected val primitives : DottyPrimitives
4545
@@ -126,7 +126,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
126126 assert(resKind.isNumericType || (resKind == BOOL ),
127127 s " $resKind is not a numeric or boolean type [operation: ${fun.symbol}] " )
128128
129- import ScalaPrimitivesOps ._
129+ import ScalaPrimitivesOps .*
130130
131131 args match {
132132 // unary operation
@@ -179,7 +179,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
179179 def genArrayOp (tree : Tree , code : Int , expectedType : BType ): BType = tree match {
180180
181181 case Apply (DesugaredSelect (arrayObj, _), args) =>
182- import ScalaPrimitivesOps ._
182+ import ScalaPrimitivesOps .*
183183 val k = tpeTK(arrayObj)
184184 genLoad(arrayObj, k)
185185 val elementType = typeOfArrayOp.getOrElse[bTypes.BType ](code, abort(s " Unknown operation on arrays: $tree code: $code" ))
@@ -262,7 +262,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
262262
263263 val code = primitives.getPrimitive(tree, receiver.tpe)
264264
265- import ScalaPrimitivesOps ._
265+ import ScalaPrimitivesOps .*
266266
267267 if (isArithmeticOp(code)) genArithmeticOp(tree, code)
268268 else if (code == CONCAT ) genStringConcat(tree)
@@ -1267,7 +1267,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
12671267
12681268 /* Generate coercion denoted by "code" */
12691269 def genCoercion (code : Int ): Unit = {
1270- import ScalaPrimitivesOps ._
1270+ import ScalaPrimitivesOps .*
12711271 (code : @ switch) match {
12721272 case B2B | S2S | C2C | I2I | L2L | F2F | D2D => ()
12731273 case _ =>
@@ -1443,7 +1443,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
14431443 val mdescr = bmType.descriptor
14441444
14451445 val isInterface = isEmittedInterface(receiverClass)
1446- import InvokeStyle ._
1446+ import InvokeStyle .*
14471447 if (style == Super ) {
14481448 if (isInterface && ! method.is(JavaDefined )) {
14491449 val args = new Array [BType ](bmType.argumentTypes.length + 1 )
@@ -1497,7 +1497,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
14971497 } else if (tk.isRef) { // REFERENCE(_) | ARRAY(_)
14981498 bc.emitIF_ACMP(op, success)
14991499 } else {
1500- import Primitives ._
1500+ import Primitives .*
15011501 def useCmpG = if (negated) op == GT || op == GE else op == LT || op == LE
15021502 (tk : @ unchecked) match {
15031503 case LONG => emit(asm.Opcodes .LCMP )
@@ -1512,7 +1512,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
15121512
15131513 /* Emits code to compare (and consume) stack-top and zero using the 'op' operator */
15141514 private def genCZJUMP (success : asm.Label , failure : asm.Label , op : TestOp , tk : BType , targetIfNoJump : asm.Label , negated : Boolean = false ): Unit = {
1515- import Primitives ._
1515+ import Primitives .*
15161516 if (targetIfNoJump == success) genCZJUMP(failure, success, op.negate(), tk, targetIfNoJump, negated = ! negated)
15171517 else {
15181518 if (tk.isIntSizedType) { // BOOL, BYTE, CHAR, SHORT, or INT
0 commit comments