Skip to content

Commit eacd788

Browse files
committed
Remove extra collective extension block
1 parent 0954a07 commit eacd788

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

library/src/scala/tasty/Reflection.scala

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -435,18 +435,6 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
435435
internal.QuotedType_unseal(tpe)
436436
}
437437

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-
450438
//////////////
451439
// CONTEXTS //
452440
//////////////
@@ -646,6 +634,11 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
646634
// ----- Terms ----------------------------------------------------
647635

648636
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+
649642
def tpe(using ctx: Context): Type = internal.Term_tpe(self)
650643
def underlyingArgument(using ctx: Context): Term = internal.Term_underlyingArgument(self)
651644
def underlying(using ctx: Context): Term = internal.Term_underlying(self)
@@ -1619,6 +1612,10 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
16191612

16201613
extension TypeOps on (self: Type) {
16211614

1615+
/** Convert `Type` to an `quoted.Type[_]` */
1616+
def seal(using ctx: Context): scala.quoted.Type[_] =
1617+
internal.QuotedType_seal(self)
1618+
16221619
/** Is `self` type the same as `that` type?
16231620
* This is the case iff `self <:< that` and `that <:< self`.
16241621
*/

0 commit comments

Comments
 (0)