Skip to content

Commit a4b0e41

Browse files
committed
Adjust Dynamic Tuple
1 parent b5e9e75 commit a4b0e41

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

library/src-bootstrapped/scala/runtime/DynamicTuple.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import scala.Tuple.Tail
77
import scala.Tuple.Elem
88

99
object DynamicTuple {
10-
inline val $MaxSpecialized = 22
11-
inline private val XXL = $MaxSpecialized + 1
10+
inline val MaxSpecialized = 22
11+
inline private val XXL = MaxSpecialized + 1
1212

13-
val $emptyArray = Array[Object]()
13+
val empty$Array = Array[Object]()
1414

15-
def $toArray(xs: Tuple, n: Int) = {
15+
def to$Array(xs: Tuple, n: Int) = {
1616
val arr = new Array[Object](n)
1717
var i = 0
1818
var it = xs.asInstanceOf[Product].productIterator
@@ -23,7 +23,7 @@ object DynamicTuple {
2323
arr
2424
}
2525

26-
def $consArray[H](x: H, elems: Array[Object]): Array[Object] = {
26+
def cons$Array[H](x: H, elems: Array[Object]): Array[Object] = {
2727
val elems1 = new Array[Object](elems.length + 1)
2828
elems1(0) = x.asInstanceOf[Object]
2929
System.arraycopy(elems, 0, elems1, 1, elems.length)
@@ -59,7 +59,7 @@ object DynamicTuple {
5959

6060
def dynamicToArray(self: Tuple): Array[Object] = (self: Any) match {
6161
case self: Unit =>
62-
$emptyArray
62+
empty$Array
6363
case self: Tuple1[_] =>
6464
val t = self.asInstanceOf[Tuple1[Object]]
6565
Array(t._1)
@@ -94,7 +94,7 @@ object DynamicTuple {
9494
case self: Tuple4[_, _, _, _] =>
9595
Tuple5(x, self._1, self._2, self._3, self._4).asInstanceOf[Result]
9696
case _ =>
97-
dynamicFromArray[Result]($consArray(x, dynamicToArray(self)))
97+
dynamicFromArray[Result](cons$Array(x, dynamicToArray(self)))
9898
}
9999
}
100100

0 commit comments

Comments
 (0)