@@ -92,7 +92,7 @@ class Definitions {
9292 * ContextFunctionN traits follow this template:
9393 *
9494 * 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
9696 * }
9797 *
9898 * ErasedFunctionN traits follow this template:
@@ -104,7 +104,7 @@ class Definitions {
104104 * ErasedContextFunctionN traits follow this template:
105105 *
106106 * 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
108108 * }
109109 *
110110 * ErasedFunctionN and ErasedContextFunctionN erase to Function0.
@@ -439,7 +439,7 @@ class Definitions {
439439
440440 @ tu lazy val CollectionSeqType : TypeRef = ctx.requiredClassRef(" scala.collection.Seq" )
441441 @ 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
443443 @ tu lazy val Seq_apply : Symbol = SeqClass .requiredMethod(nme.apply)
444444 @ tu lazy val Seq_head : Symbol = SeqClass .requiredMethod(nme.head)
445445 @ tu lazy val Seq_drop : Symbol = SeqClass .requiredMethod(nme.drop)
@@ -448,7 +448,7 @@ class Definitions {
448448 @ tu lazy val Seq_toSeq : Symbol = SeqClass .requiredMethod(nme.toSeq)
449449
450450 @ 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
452452 @ tu lazy val Array_apply : Symbol = ArrayClass .requiredMethod(nme.apply)
453453 @ tu lazy val Array_update : Symbol = ArrayClass .requiredMethod(nme.update)
454454 @ tu lazy val Array_length : Symbol = ArrayClass .requiredMethod(nme.length)
@@ -458,10 +458,10 @@ class Definitions {
458458 @ tu lazy val ArrayModule : Symbol = ctx.requiredModule(" scala.Array" )
459459
460460 @ 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
463463 @ 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
465465 @ tu lazy val Boolean_! : Symbol = BooleanClass .requiredMethod(nme.UNARY_! )
466466 @ tu lazy val Boolean_&& : Symbol = BooleanClass .requiredMethod(nme.ZAND ) // ### harmonize required... calls
467467 @ tu lazy val Boolean_|| : Symbol = BooleanClass .requiredMethod(nme.ZOR )
@@ -477,13 +477,13 @@ class Definitions {
477477 }).symbol
478478
479479 @ 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
481481 @ 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
483483 @ 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
485485 @ 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
487487 @ tu lazy val Int_- : Symbol = IntClass .requiredMethod(nme.MINUS , List (IntType ))
488488 @ tu lazy val Int_+ : Symbol = IntClass .requiredMethod(nme.PLUS , List (IntType ))
489489 @ tu lazy val Int_/ : Symbol = IntClass .requiredMethod(nme.DIV , List (IntType ))
@@ -492,19 +492,19 @@ class Definitions {
492492 @ tu lazy val Int_>= : Symbol = IntClass .requiredMethod(nme.GE , List (IntType ))
493493 @ tu lazy val Int_<= : Symbol = IntClass .requiredMethod(nme.LE , List (IntType ))
494494 @ 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
496496 @ tu lazy val Long_+ : Symbol = LongClass .requiredMethod(nme.PLUS , List (LongType ))
497497 @ tu lazy val Long_* : Symbol = LongClass .requiredMethod(nme.MUL , List (LongType ))
498498 @ tu lazy val Long_/ : Symbol = LongClass .requiredMethod(nme.DIV , List (LongType ))
499499
500500 @ 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
502502 @ 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
504504
505505 @ 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" )
508508
509509 @ tu lazy val BoxedBooleanClass : ClassSymbol = ctx.requiredClass(" java.lang.Boolean" )
510510 @ tu lazy val BoxedByteClass : ClassSymbol = ctx.requiredClass(" java.lang.Byte" )
@@ -574,9 +574,9 @@ class Definitions {
574574 // in scalac modified to have Any as parent
575575
576576 @ 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
578578 @ 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
580580
581581 @ tu lazy val JavaEnumClass : ClassSymbol = {
582582 val cls = ctx.requiredClass(" java.lang.Enum" )
0 commit comments