@@ -324,16 +324,6 @@ class Definitions {
324
324
lazy val throwMethod = enterMethod(OpsPackageClass , nme.THROWkw ,
325
325
MethodType (List (ThrowableType ), NothingType ))
326
326
327
- /** Method representing a term quote */
328
- lazy val quoteMethod = enterPolyMethod(OpsPackageClass , nme.QUOTE , 1 ,
329
- pt => MethodType (pt.paramRefs(0 ) :: Nil , QuotedExprType .appliedTo(pt.paramRefs(0 ) :: Nil )),
330
- useCompleter = true )
331
-
332
- /** Method representing a type quote */
333
- lazy val typeQuoteMethod = enterPolyMethod(OpsPackageClass , nme.TYPE_QUOTE , 1 ,
334
- pt => QuotedTypeType .appliedTo(pt.paramRefs(0 ) :: Nil ),
335
- useCompleter = true )
336
-
337
327
lazy val NothingClass : ClassSymbol = enterCompleteClassSymbol(
338
328
ScalaPackageClass , tpnme.Nothing , AbstractFinal , List (AnyClass .typeRef))
339
329
def NothingType = NothingClass .typeRef
@@ -630,6 +620,11 @@ class Definitions {
630
620
lazy val QuotedExprType = ctx.requiredClassRef(" scala.quoted.Expr" )
631
621
def QuotedExprClass (implicit ctx : Context ) = QuotedExprType .symbol.asClass
632
622
623
+ lazy val QuotedExprModuleType = ctx.requiredModuleRef(" scala.quoted.Expr" )
624
+ def QuotedExprModule (implicit ctx : Context ) = QuotedExprModuleType .symbol
625
+ lazy val QuotedExpr_applyR = QuotedExprModule .requiredMethodRef(nme.apply)
626
+ def QuotedExpr_apply (implicit ctx : Context ) = QuotedExpr_applyR .symbol
627
+
633
628
lazy val QuotedExpr_spliceR = QuotedExprClass .requiredMethod(nme.UNARY_~ )
634
629
def QuotedExpr_~ (implicit ctx : Context ) = QuotedExpr_spliceR .symbol
635
630
lazy val QuotedExpr_runR = QuotedExprClass .requiredMethodRef(nme.run)
@@ -644,7 +639,8 @@ class Definitions {
644
639
lazy val QuotedType_spliceR = QuotedTypeClass .requiredType(tpnme.UNARY_~ ).typeRef
645
640
def QuotedType_~ = QuotedType_spliceR .symbol
646
641
647
- lazy val QuotedTypeModule = QuotedTypeClass .companionModule
642
+ lazy val QuotedTypeModuleType = ctx.requiredModuleRef(" scala.quoted.Type" )
643
+ def QuotedTypeModule (implicit ctx : Context ) = QuotedTypeModuleType .symbol
648
644
lazy val QuotedType_applyR = QuotedTypeModule .requiredMethodRef(nme.apply)
649
645
def QuotedType_apply (implicit ctx : Context ) = QuotedType_applyR .symbol
650
646
@@ -1183,7 +1179,7 @@ class Definitions {
1183
1179
1184
1180
/** Lists core methods that don't have underlying bytecode, but are synthesized on-the-fly in every reflection universe */
1185
1181
lazy val syntheticCoreMethods =
1186
- AnyMethods ++ ObjectMethods ++ List (String_+ , throwMethod, quoteMethod, typeQuoteMethod )
1182
+ AnyMethods ++ ObjectMethods ++ List (String_+ , throwMethod)
1187
1183
1188
1184
lazy val reservedScalaClassNames : Set [Name ] = syntheticScalaClasses.map(_.name).toSet
1189
1185
0 commit comments