Skip to content

Commit 1209bd0

Browse files
committed
Cleanup references to DynamicTuple
1 parent d9f4dde commit 1209bd0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

library/src-3.x/scala/Tuple.scala

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sealed trait Tuple extends Any {
1111
inline def toArray: Array[Object] =
1212
inline constValueOpt[BoundedSize[this.type]] match {
1313
case Some(0) =>
14-
scala.runtime.DynamicTuple.empty$Array
14+
DynamicTuple.empty$Array
1515
case Some(1) =>
1616
val t = asInstanceOf[Tuple1[Object]]
1717
Array(t._1)
@@ -29,7 +29,7 @@ sealed trait Tuple extends Any {
2929
case Some(n) =>
3030
asInstanceOf[TupleXXL].elems
3131
case None =>
32-
runtime.DynamicTuple.dynamicToArray(this)
32+
DynamicTuple.dynamicToArray(this)
3333
}
3434

3535
inline def *: [H, This >: this.type <: Tuple] (x: H): H *: This = {
@@ -51,7 +51,7 @@ sealed trait Tuple extends Any {
5151
case Some(n) =>
5252
knownTupleFromArray[H *: this.type](DynamicTuple.cons$Array(x, toArray))
5353
case _ =>
54-
runtime.DynamicTuple.dynamic_*:[This, H](this, x)
54+
DynamicTuple.dynamic_*:[This, H](this, x)
5555
}
5656
}
5757

@@ -90,15 +90,15 @@ sealed trait Tuple extends Any {
9090
if (constValue[BoundedSize[that.type]] == 0) this.asInstanceOf[Result]
9191
else knownTupleFromArray[Result](this.toArray ++ that.toArray)
9292
case None =>
93-
runtime.DynamicTuple.dynamic_++[This, that.type](this, that)
93+
DynamicTuple.dynamic_++[This, that.type](this, that)
9494
}
9595
}
9696

9797
inline def size[This >: this.type <: Tuple]: Size[This] = {
9898
type Result = Size[This]
9999
inline constValueOpt[BoundedSize[this.type]] match {
100100
case Some(n) => n.asInstanceOf[Result]
101-
case _ => runtime.DynamicTuple.dynamicSize(this)
101+
case _ => DynamicTuple.dynamicSize(this)
102102
}
103103
}
104104

@@ -178,7 +178,7 @@ object Tuple {
178178
case xs: Array[Object] => xs
179179
case xs => xs.map(_.asInstanceOf[Object])
180180
}
181-
runtime.DynamicTuple.dynamicFromArray[Tuple](xs2)
181+
DynamicTuple.dynamicFromArray[Tuple](xs2)
182182
}
183183

184184
}
@@ -201,13 +201,13 @@ sealed trait NonEmptyTuple extends Tuple {
201201
case Some(4) =>
202202
val t = asInstanceOf[Tuple4[_, _, _, _]]
203203
t._1
204-
case Some(n) if n > 4 && n <= scala.runtime.DynamicTuple.MaxSpecialized =>
204+
case Some(n) if n > 4 && n <= DynamicTuple.MaxSpecialized =>
205205
asInstanceOf[Product].productElement(0)
206-
case Some(n) if n > scala.runtime.DynamicTuple.MaxSpecialized =>
206+
case Some(n) if n > DynamicTuple.MaxSpecialized =>
207207
val t = asInstanceOf[TupleXXL]
208208
t.elems(0)
209209
case None =>
210-
scala.runtime.DynamicTuple.dynamicHead[this.type](this)
210+
DynamicTuple.dynamicHead[this.type](this)
211211
}
212212
resVal.asInstanceOf[Result]
213213
}
@@ -232,14 +232,14 @@ sealed trait NonEmptyTuple extends Tuple {
232232
case Some(n) if n > 5 =>
233233
knownTupleFromArray[Result](toArray.tail)
234234
case None =>
235-
runtime.DynamicTuple.dynamicTail[This](this)
235+
DynamicTuple.dynamicTail[This](this)
236236
}
237237
}
238238

239239
inline def fallbackApply(n: Int) =
240240
inline constValueOpt[n.type] match {
241241
case Some(n: Int) => error("index out of bounds: ", n)
242-
case None => runtime.DynamicTuple.dynamicApply[this.type, n.type](this, n)
242+
case None => DynamicTuple.dynamicApply[this.type, n.type](this, n)
243243
}
244244

245245
inline def apply[This >: this.type <: NonEmptyTuple](n: Int): Elem[This, n.type] = {
@@ -275,13 +275,13 @@ sealed trait NonEmptyTuple extends Tuple {
275275
case Some(3) => t._4.asInstanceOf[Result]
276276
case _ => fallbackApply(n).asInstanceOf[Result]
277277
}
278-
case Some(s) if s > 4 && s <= scala.runtime.DynamicTuple.MaxSpecialized =>
278+
case Some(s) if s > 4 && s <= DynamicTuple.MaxSpecialized =>
279279
val t = asInstanceOf[Product]
280280
inline constValueOpt[n.type] match {
281281
case Some(n) if n >= 0 && n < s => t.productElement(n).asInstanceOf[Result]
282282
case _ => fallbackApply(n).asInstanceOf[Result]
283283
}
284-
case Some(s) if s > scala.runtime.DynamicTuple.MaxSpecialized =>
284+
case Some(s) if s > DynamicTuple.MaxSpecialized =>
285285
val t = asInstanceOf[TupleXXL]
286286
inline constValueOpt[n.type] match {
287287
case Some(n) if n >= 0 && n < s => t.elems(n).asInstanceOf[Result]

0 commit comments

Comments
 (0)