@@ -71,7 +71,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
71
71
case _ => false
72
72
def asExpr : scala.quoted.Expr [Any ] =
73
73
if self.isExpr then
74
- new scala.quoted.internal. Expr (self, QuoteContextImpl .this .hashCode)
74
+ new dotty.tools.dotc.quoted. ExprImpl (self, QuoteContextImpl .this .hashCode)
75
75
else self match
76
76
case TermTypeTest (self) => throw new Exception (" Expected an expression. This is a partially applied Term. Try eta-expanding the term first." )
77
77
case _ => throw new Exception (" Expected a Term but was: " + self)
@@ -315,11 +315,11 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
315
315
object TermMethodsImpl extends TermMethods :
316
316
extension (self : Term ):
317
317
def seal : scala.quoted.Expr [Any ] =
318
- if self.isExpr then new scala.quoted.internal. Expr (self, QuoteContextImpl .this .hashCode)
318
+ if self.isExpr then new dotty.tools.dotc.quoted. ExprImpl (self, QuoteContextImpl .this .hashCode)
319
319
else throw new Exception (" Cannot seal a partially applied Term. Try eta-expanding the term first." )
320
320
321
321
def sealOpt : Option [scala.quoted.Expr [Any ]] =
322
- if self.isExpr then Some (new scala.quoted.internal. Expr (self, QuoteContextImpl .this .hashCode))
322
+ if self.isExpr then Some (new dotty.tools.dotc.quoted. ExprImpl (self, QuoteContextImpl .this .hashCode))
323
323
else None
324
324
325
325
def tpe : TypeRepr = self.tpe
@@ -1002,7 +1002,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
1002
1002
1003
1003
object TypeTree extends TypeTreeModule :
1004
1004
def of [T <: AnyKind ](using tp : scala.quoted.Type [T ]): TypeTree =
1005
- tp.asInstanceOf [scala.quoted.internal. Type ].typeTree
1005
+ tp.asInstanceOf [dotty.tools.dotc.quoted. TypeImpl ].typeTree
1006
1006
end TypeTree
1007
1007
1008
1008
object TypeTreeMethodsImpl extends TypeTreeMethods :
@@ -1571,7 +1571,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
1571
1571
1572
1572
object TypeRepr extends TypeReprModule :
1573
1573
def of [T <: AnyKind ](using tp : scala.quoted.Type [T ]): TypeRepr =
1574
- tp.asInstanceOf [scala.quoted.internal. Type ].typeTree.tpe
1574
+ tp.asInstanceOf [dotty.tools.dotc.quoted. TypeImpl ].typeTree.tpe
1575
1575
def typeConstructorOf (clazz : Class [? ]): TypeRepr =
1576
1576
if (clazz.isPrimitive)
1577
1577
if (clazz == classOf [Boolean ]) dotc.core.Symbols .defn.BooleanType
@@ -1608,7 +1608,7 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
1608
1608
def seal : scala.quoted.Type [_] = self.asType
1609
1609
1610
1610
def asType : scala.quoted.Type [? ] =
1611
- new scala.quoted.internal. Type (Inferred (self), QuoteContextImpl .this .hashCode)
1611
+ new dotty.tools.dotc.quoted. TypeImpl (Inferred (self), QuoteContextImpl .this .hashCode)
1612
1612
1613
1613
def =:= (that : TypeRepr ): Boolean = self =:= that
1614
1614
def <:< (that : TypeRepr ): Boolean = self <:< that
@@ -2623,11 +2623,11 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext, scala.intern
2623
2623
2624
2624
def unpickleExpr [T ](pickled : String | List [String ], typeHole : (Int , Seq [Any ]) => scala.quoted.Type [? ], termHole : (Int , Seq [Any ], scala.quoted.QuoteContext ) => scala.quoted.Expr [? ]): scala.quoted.Expr [T ] =
2625
2625
val tree = PickledQuotes .unpickleTerm(pickled, typeHole, termHole)(using reflect.rootContext)
2626
- new scala.quoted.internal. Expr (tree, hash).asInstanceOf [scala.quoted.Expr [T ]]
2626
+ new dotty.tools.dotc.quoted. ExprImpl (tree, hash).asInstanceOf [scala.quoted.Expr [T ]]
2627
2627
2628
2628
def unpickleType [T <: AnyKind ](pickled : String | List [String ], typeHole : (Int , Seq [Any ]) => scala.quoted.Type [? ], termHole : (Int , Seq [Any ], scala.quoted.QuoteContext ) => scala.quoted.Expr [? ]): scala.quoted.Type [T ] =
2629
2629
val tree = PickledQuotes .unpickleTypeTree(pickled, typeHole, termHole)(using reflect.rootContext)
2630
- new scala.quoted.internal. Type (tree, hash).asInstanceOf [scala.quoted.Type [T ]]
2630
+ new dotty.tools.dotc.quoted. TypeImpl (tree, hash).asInstanceOf [scala.quoted.Type [T ]]
2631
2631
2632
2632
object ExprMatch extends ExprMatchModule :
2633
2633
def unapply [TypeBindings <: Tuple , Tup <: Tuple ](scrutinee : scala.quoted.Expr [Any ])(using pattern : scala.quoted.Expr [Any ]): Option [Tup ] =
0 commit comments