@@ -72,7 +72,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
7272 lineNumber(tree)
7373
7474 tree match {
75- case Assign (lhs @ SelectBI (qual, _), rhs) =>
75+ case Assign (lhs @ DesugaredSelect (qual, _), rhs) =>
7676 val isStatic = lhs.symbol.isStaticMember
7777 if (! isStatic) { genLoadQualifier(lhs) }
7878 genLoad(rhs, symInfoTK(lhs.symbol))
@@ -107,7 +107,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
107107
108108 /* Generate code for primitive arithmetic operations. */
109109 def genArithmeticOp (tree : Tree , code : Int ): BType = tree match {
110- case Apply (fun @ SelectBI (larg, _), args) =>
110+ case Apply (fun @ DesugaredSelect (larg, _), args) =>
111111 var resKind = tpeTK(larg)
112112
113113 assert(resKind.isNumericType || (resKind == BOOL ),
@@ -163,7 +163,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
163163 /* Generate primitive array operations. */
164164 def genArrayOp (tree : Tree , code : Int , expectedType : BType ): BType = tree match {
165165
166- case Apply (SelectBI (arrayObj, _), args) =>
166+ case Apply (DesugaredSelect (arrayObj, _), args) =>
167167 import ScalaPrimitivesOps ._
168168 val k = tpeTK(arrayObj)
169169 genLoad(arrayObj, k)
@@ -225,7 +225,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
225225 }
226226
227227 def genPrimitiveOp (tree : Apply , expectedType : BType ): BType = tree match {
228- case Apply (fun @ SelectBI (receiver, _), _) =>
228+ case Apply (fun @ DesugaredSelect (receiver, _), _) =>
229229 val sym = tree.symbol
230230
231231 val code = primitives.getPrimitive(tree, receiver.tpe)
@@ -330,7 +330,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
330330 }
331331 val (fun, args) = call match {
332332 case Apply (fun, args) => (fun, args)
333- case t @ SelectBI (_, _) => (t, Nil )
333+ case t @ DesugaredSelect (_, _) => (t, Nil )
334334 case t @ Ident (_) => (t, Nil )
335335 }
336336
@@ -341,7 +341,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
341341 // but I was able to derrive it by reading
342342 // AbstractValidatingLambdaMetafactory.validateMetafactoryArgs
343343
344- val SelectBI (prefix, _) = fun
344+ val DesugaredSelect (prefix, _) = fun
345345 genLoad(prefix)
346346 }
347347
@@ -365,11 +365,11 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
365365 else classBTypeFromSymbol(claszSymbol)
366366 }
367367
368- case SelectBI (Ident (nme.EMPTY_PACKAGE ), module) =>
368+ case DesugaredSelect (Ident (nme.EMPTY_PACKAGE ), module) =>
369369 assert(tree.symbol.is(Flags .Module ), s " Selection of non-module from empty package: $tree sym: ${tree.symbol} at: ${tree.span}" )
370370 genLoadModule(tree)
371371
372- case SelectBI (qualifier, _) =>
372+ case DesugaredSelect (qualifier, _) =>
373373 val sym = tree.symbol
374374 generatedType = symInfoTK(sym)
375375 val qualSafeToElide = tpd.isIdempotentExpr(qualifier)
@@ -426,7 +426,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
426426 generatedType = UNIT
427427 genStat(tree)
428428
429- case av @ ArrayValueBI (_, _) =>
429+ case av @ ArrayValue (_, _) =>
430430 generatedType = genArrayValue(av)
431431
432432 case mtch @ Match (_, _) =>
@@ -622,7 +622,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
622622 }
623623
624624 def genTypeApply (t : TypeApply ): BType = t match {
625- case TypeApply (fun@ SelectBI (obj, _), targs) =>
625+ case TypeApply (fun@ DesugaredSelect (obj, _), targs) =>
626626
627627 val sym = fun.symbol
628628 val cast =
@@ -690,7 +690,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
690690 lineNumber(app)
691691 app match {
692692 case Apply (_, args) if app.symbol eq defn.newArrayMethod =>
693- val List (elemClaz, Literal (c : Constant ), ArrayValueBI (_, dims)) = args
693+ val List (elemClaz, Literal (c : Constant ), ArrayValue (_, dims)) = args
694694
695695 generatedType = toTypeKind(c.typeValue)
696696 mkArrayConstructorCall(generatedType.asArrayBType, app, dims)
@@ -699,7 +699,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
699699 if (t.symbol ne defn.Object_synchronized ) genTypeApply(t)
700700 else genSynchronized(app, expectedType)
701701
702- case Apply (fun @ SelectBI (Super (_, _), _), args) =>
702+ case Apply (fun @ DesugaredSelect (Super (_, _), _), args) =>
703703 def initModule (): Unit = {
704704 // we initialize the MODULE$ field immediately after the super ctor
705705 if (! isModuleInitialized &&
@@ -731,7 +731,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
731731 // thought to return an instance of what they construct,
732732 // we have to 'simulate' it by DUPlicating the freshly created
733733 // instance (on JVM, <init> methods return VOID).
734- case Apply (fun @ SelectBI (New (tpt), nme.CONSTRUCTOR ), args) =>
734+ case Apply (fun @ DesugaredSelect (New (tpt), nme.CONSTRUCTOR ), args) =>
735735 val ctor = fun.symbol
736736 assert(ctor.isClassConstructor, s " 'new' call to non-constructor: ${ctor.name}" )
737737
@@ -781,9 +781,9 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
781781 if (invokeStyle.hasInstance) genLoadQualifier(fun)
782782 genLoadArguments(args, paramTKs(app))
783783
784- val SelectBI (qual, _) = fun // fun is a Select, also checked in genLoadQualifier
784+ val DesugaredSelect (qual, _) = fun // fun is a Select, also checked in genLoadQualifier
785785 val isArrayClone = fun match {
786- case SelectBI (qual, nme.clone_) if qual.tpe.widen.isInstanceOf [JavaArrayType ] => true
786+ case DesugaredSelect (qual, nme.clone_) if qual.tpe.widen.isInstanceOf [JavaArrayType ] => true
787787 case _ => false
788788 }
789789 if (isArrayClone) {
@@ -826,9 +826,8 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
826826 generatedType
827827 } // end of genApply()
828828
829- private def genArrayValue (av : tpd.JavaSeqLiteral ): BType = av match {
830- case ArrayValueBI (tpt, elems) =>
831- val ArrayValueBI (tpt, elems) = av
829+ private def genArrayValue (av : tpd.JavaSeqLiteral ): BType = {
830+ val ArrayValue (tpt, elems) = av
832831
833832 lineNumber(av)
834833 genArray(elems, tpt)
@@ -1013,7 +1012,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
10131012 def genLoadQualifier (tree : Tree ): Unit = {
10141013 lineNumber(tree)
10151014 tree match {
1016- case SelectBI (qualifier, _) => genLoad(qualifier)
1015+ case DesugaredSelect (qualifier, _) => genLoad(qualifier)
10171016 case t : Ident => // dotty specific
10181017 desugarIdentBI(t) match {
10191018 case Some (sel) => genLoadQualifier(sel)
@@ -1191,7 +1190,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
11911190 * It turns a chained call like "a".+("b").+("c") into a list of arguments.
11921191 */
11931192 def liftStringConcat (tree : Tree ): List [Tree ] = tree match {
1194- case tree @ Apply (fun @ SelectBI (larg, method), rarg) =>
1193+ case tree @ Apply (fun @ DesugaredSelect (larg, method), rarg) =>
11951194 if (isPrimitive(fun) &&
11961195 primitives.getPrimitive(tree, larg.tpe) == ScalaPrimitivesOps .CONCAT )
11971196 liftStringConcat(larg) ::: rarg
@@ -1303,7 +1302,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
13031302 import ScalaPrimitivesOps .{ ZNOT , ZAND , ZOR , EQ }
13041303
13051304 // lhs and rhs of test
1306- lazy val SelectBI (lhs, _) = fun
1305+ lazy val DesugaredSelect (lhs, _) = fun
13071306 val rhs = if (args.isEmpty) tpd.EmptyTree else args.head // args.isEmpty only for ZNOT
13081307
13091308 def genZandOrZor (and : Boolean ): Unit = {
0 commit comments