@@ -435,18 +435,6 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
435
435
internal.QuotedType_unseal (tpe)
436
436
}
437
437
438
- extension TermToQuotedOps on (term : Term ) {
439
- /** Convert `Term` to an `quoted.Expr[Any]` */
440
- def seal (using ctx : Context ): scala.quoted.Expr [Any ] =
441
- internal.QuotedExpr_seal (term)
442
- }
443
-
444
- extension TypeToQuotedOps on (tpe : Type ) {
445
- /** Convert `Type` to an `quoted.Type[_]` */
446
- def seal (using ctx : Context ): scala.quoted.Type [_] =
447
- internal.QuotedType_seal (tpe)
448
- }
449
-
450
438
// ////////////
451
439
// CONTEXTS //
452
440
// ////////////
@@ -646,6 +634,11 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
646
634
// ----- Terms ----------------------------------------------------
647
635
648
636
extension TermOps on (self : Term ) {
637
+
638
+ /** Convert `Term` to an `quoted.Expr[Any]` */
639
+ def seal (using ctx : Context ): scala.quoted.Expr [Any ] =
640
+ internal.QuotedExpr_seal (self)
641
+
649
642
def tpe (using ctx : Context ): Type = internal.Term_tpe (self)
650
643
def underlyingArgument (using ctx : Context ): Term = internal.Term_underlyingArgument (self)
651
644
def underlying (using ctx : Context ): Term = internal.Term_underlying (self)
@@ -1619,6 +1612,10 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
1619
1612
1620
1613
extension TypeOps on (self : Type ) {
1621
1614
1615
+ /** Convert `Type` to an `quoted.Type[_]` */
1616
+ def seal (using ctx : Context ): scala.quoted.Type [_] =
1617
+ internal.QuotedType_seal (self)
1618
+
1622
1619
/** Is `self` type the same as `that` type?
1623
1620
* This is the case iff `self <:< that` and `that <:< self`.
1624
1621
*/
0 commit comments