@@ -92,7 +92,7 @@ class Definitions {
92
92
* ContextFunctionN traits follow this template:
93
93
*
94
94
* trait ContextFunctionN[T0,...,T{N-1}, R] extends Object {
95
- * def apply(given $x0: T0, ..., $x{N_1}: T{N-1}): R
95
+ * def apply(using $x0: T0, ..., $x{N_1}: T{N-1}): R
96
96
* }
97
97
*
98
98
* ErasedFunctionN traits follow this template:
@@ -104,7 +104,7 @@ class Definitions {
104
104
* ErasedContextFunctionN traits follow this template:
105
105
*
106
106
* trait ErasedContextFunctionN[T0,...,T{N-1}, R] extends Object {
107
- * def apply (given erased $x0: T0, ..., $x{N_1}: T{N-1}): R
107
+ * def apply(using erased $x0: T0, ..., $x{N_1}: T{N-1}): R
108
108
* }
109
109
*
110
110
* ErasedFunctionN and ErasedContextFunctionN erase to Function0.
@@ -439,7 +439,7 @@ class Definitions {
439
439
440
440
@ tu lazy val CollectionSeqType : TypeRef = ctx.requiredClassRef(" scala.collection.Seq" )
441
441
@ tu lazy val SeqType : TypeRef = ctx.requiredClassRef(" scala.collection.immutable.Seq" )
442
- def SeqClass (given Context ): ClassSymbol = SeqType .symbol.asClass
442
+ def SeqClass (using Context ): ClassSymbol = SeqType .symbol.asClass
443
443
@ tu lazy val Seq_apply : Symbol = SeqClass .requiredMethod(nme.apply)
444
444
@ tu lazy val Seq_head : Symbol = SeqClass .requiredMethod(nme.head)
445
445
@ tu lazy val Seq_drop : Symbol = SeqClass .requiredMethod(nme.drop)
@@ -448,7 +448,7 @@ class Definitions {
448
448
@ tu lazy val Seq_toSeq : Symbol = SeqClass .requiredMethod(nme.toSeq)
449
449
450
450
@ tu lazy val ArrayType : TypeRef = ctx.requiredClassRef(" scala.Array" )
451
- def ArrayClass (given Context ): ClassSymbol = ArrayType .symbol.asClass
451
+ def ArrayClass (using Context ): ClassSymbol = ArrayType .symbol.asClass
452
452
@ tu lazy val Array_apply : Symbol = ArrayClass .requiredMethod(nme.apply)
453
453
@ tu lazy val Array_update : Symbol = ArrayClass .requiredMethod(nme.update)
454
454
@ tu lazy val Array_length : Symbol = ArrayClass .requiredMethod(nme.length)
@@ -458,10 +458,10 @@ class Definitions {
458
458
@ tu lazy val ArrayModule : Symbol = ctx.requiredModule(" scala.Array" )
459
459
460
460
@ tu lazy val UnitType : TypeRef = valueTypeRef(" scala.Unit" , java.lang.Void .TYPE , UnitEnc , nme.specializedTypeNames.Void )
461
- def UnitClass (given Context ): ClassSymbol = UnitType .symbol.asClass
462
- def UnitModuleClass (given Context ): Symbol = UnitType .symbol.asClass.linkedClass
461
+ def UnitClass (using Context ): ClassSymbol = UnitType .symbol.asClass
462
+ def UnitModuleClass (using Context ): Symbol = UnitType .symbol.asClass.linkedClass
463
463
@ tu lazy val BooleanType : TypeRef = valueTypeRef(" scala.Boolean" , java.lang.Boolean .TYPE , BooleanEnc , nme.specializedTypeNames.Boolean )
464
- def BooleanClass (given Context ): ClassSymbol = BooleanType .symbol.asClass
464
+ def BooleanClass (using Context ): ClassSymbol = BooleanType .symbol.asClass
465
465
@ tu lazy val Boolean_! : Symbol = BooleanClass .requiredMethod(nme.UNARY_! )
466
466
@ tu lazy val Boolean_&& : Symbol = BooleanClass .requiredMethod(nme.ZAND ) // ### harmonize required... calls
467
467
@ tu lazy val Boolean_|| : Symbol = BooleanClass .requiredMethod(nme.ZOR )
@@ -477,13 +477,13 @@ class Definitions {
477
477
}).symbol
478
478
479
479
@ tu lazy val ByteType : TypeRef = valueTypeRef(" scala.Byte" , java.lang.Byte .TYPE , ByteEnc , nme.specializedTypeNames.Byte )
480
- def ByteClass (given Context ): ClassSymbol = ByteType .symbol.asClass
480
+ def ByteClass (using Context ): ClassSymbol = ByteType .symbol.asClass
481
481
@ tu lazy val ShortType : TypeRef = valueTypeRef(" scala.Short" , java.lang.Short .TYPE , ShortEnc , nme.specializedTypeNames.Short )
482
- def ShortClass (given Context ): ClassSymbol = ShortType .symbol.asClass
482
+ def ShortClass (using Context ): ClassSymbol = ShortType .symbol.asClass
483
483
@ tu lazy val CharType : TypeRef = valueTypeRef(" scala.Char" , java.lang.Character .TYPE , CharEnc , nme.specializedTypeNames.Char )
484
- def CharClass (given Context ): ClassSymbol = CharType .symbol.asClass
484
+ def CharClass (using Context ): ClassSymbol = CharType .symbol.asClass
485
485
@ tu lazy val IntType : TypeRef = valueTypeRef(" scala.Int" , java.lang.Integer .TYPE , IntEnc , nme.specializedTypeNames.Int )
486
- def IntClass (given Context ): ClassSymbol = IntType .symbol.asClass
486
+ def IntClass (using Context ): ClassSymbol = IntType .symbol.asClass
487
487
@ tu lazy val Int_- : Symbol = IntClass .requiredMethod(nme.MINUS , List (IntType ))
488
488
@ tu lazy val Int_+ : Symbol = IntClass .requiredMethod(nme.PLUS , List (IntType ))
489
489
@ tu lazy val Int_/ : Symbol = IntClass .requiredMethod(nme.DIV , List (IntType ))
@@ -492,19 +492,19 @@ class Definitions {
492
492
@ tu lazy val Int_>= : Symbol = IntClass .requiredMethod(nme.GE , List (IntType ))
493
493
@ tu lazy val Int_<= : Symbol = IntClass .requiredMethod(nme.LE , List (IntType ))
494
494
@ tu lazy val LongType : TypeRef = valueTypeRef(" scala.Long" , java.lang.Long .TYPE , LongEnc , nme.specializedTypeNames.Long )
495
- def LongClass (given Context ): ClassSymbol = LongType .symbol.asClass
495
+ def LongClass (using Context ): ClassSymbol = LongType .symbol.asClass
496
496
@ tu lazy val Long_+ : Symbol = LongClass .requiredMethod(nme.PLUS , List (LongType ))
497
497
@ tu lazy val Long_* : Symbol = LongClass .requiredMethod(nme.MUL , List (LongType ))
498
498
@ tu lazy val Long_/ : Symbol = LongClass .requiredMethod(nme.DIV , List (LongType ))
499
499
500
500
@ tu lazy val FloatType : TypeRef = valueTypeRef(" scala.Float" , java.lang.Float .TYPE , FloatEnc , nme.specializedTypeNames.Float )
501
- def FloatClass (given Context ): ClassSymbol = FloatType .symbol.asClass
501
+ def FloatClass (using Context ): ClassSymbol = FloatType .symbol.asClass
502
502
@ tu lazy val DoubleType : TypeRef = valueTypeRef(" scala.Double" , java.lang.Double .TYPE , DoubleEnc , nme.specializedTypeNames.Double )
503
- def DoubleClass (given Context ): ClassSymbol = DoubleType .symbol.asClass
503
+ def DoubleClass (using Context ): ClassSymbol = DoubleType .symbol.asClass
504
504
505
505
@ tu lazy val BoxedUnitClass : ClassSymbol = ctx.requiredClass(" scala.runtime.BoxedUnit" )
506
- def BoxedUnit_UNIT (given Context ): TermSymbol = BoxedUnitClass .linkedClass.requiredValue(" UNIT" )
507
- def BoxedUnit_TYPE (given Context ): TermSymbol = BoxedUnitClass .linkedClass.requiredValue(" TYPE" )
506
+ def BoxedUnit_UNIT (using Context ): TermSymbol = BoxedUnitClass .linkedClass.requiredValue(" UNIT" )
507
+ def BoxedUnit_TYPE (using Context ): TermSymbol = BoxedUnitClass .linkedClass.requiredValue(" TYPE" )
508
508
509
509
@ tu lazy val BoxedBooleanClass : ClassSymbol = ctx.requiredClass(" java.lang.Boolean" )
510
510
@ tu lazy val BoxedByteClass : ClassSymbol = ctx.requiredClass(" java.lang.Byte" )
@@ -574,9 +574,9 @@ class Definitions {
574
574
// in scalac modified to have Any as parent
575
575
576
576
@ tu lazy val ThrowableType : TypeRef = ctx.requiredClassRef(" java.lang.Throwable" )
577
- def ThrowableClass (given Context ): ClassSymbol = ThrowableType .symbol.asClass
577
+ def ThrowableClass (using Context ): ClassSymbol = ThrowableType .symbol.asClass
578
578
@ tu lazy val SerializableType : TypeRef = JavaSerializableClass .typeRef
579
- def SerializableClass (given Context ): ClassSymbol = SerializableType .symbol.asClass
579
+ def SerializableClass (using Context ): ClassSymbol = SerializableType .symbol.asClass
580
580
581
581
@ tu lazy val JavaEnumClass : ClassSymbol = {
582
582
val cls = ctx.requiredClass(" java.lang.Enum" )
0 commit comments