File tree Expand file tree Collapse file tree 3 files changed +1
-9
lines changed
compiler/src/dotty/tools/dotc/tastyreflect Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -1901,11 +1901,6 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
1901
1901
def QuotedType_unseal (self : scala.quoted.Type [? ])(using ctx : Context ): TypeTree =
1902
1902
PickledQuotes .quotedTypeToTree(self)
1903
1903
1904
- /** Convert `Type` to an `quoted.Type[?]` */
1905
- def QuotedType_seal (self : Type )(using ctx : Context ): scala.quoted.Type [? ] = {
1906
- val dummySpan = ctx.owner.span // FIXME
1907
- new scala.internal.quoted.Type (tpd.TypeTree (self).withSpan(dummySpan), compilerId)
1908
- }
1909
1904
1910
1905
// ///////////////
1911
1906
// DEFINITIONS //
Original file line number Diff line number Diff line change @@ -1619,7 +1619,7 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
1619
1619
1620
1620
/** Convert `Type` to an `quoted.Type[_]` */
1621
1621
def seal (using ctx : Context ): scala.quoted.Type [_] =
1622
- internal.QuotedType_seal ( self)
1622
+ new scala. internal.quoted. Type ( Inferred ( self), internal.compilerId )
1623
1623
1624
1624
/** Is `self` type the same as `that` type?
1625
1625
* This is the case iff `self <:< that` and `that <:< self`.
Original file line number Diff line number Diff line change @@ -1446,9 +1446,6 @@ trait CompilerInterface {
1446
1446
/** View this expression `quoted.Type[T]` as a `TypeTree` */
1447
1447
def QuotedType_unseal (self : scala.quoted.Type [_])(using ctx : Context ): TypeTree
1448
1448
1449
- /** Convert `Type` to an `quoted.Type[_]` */
1450
- def QuotedType_seal (self : Type )(using ctx : Context ): scala.quoted.Type [_]
1451
-
1452
1449
1453
1450
// ///////////////
1454
1451
// DEFINITIONS //
You can’t perform that action at this time.
0 commit comments