@@ -105,7 +105,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
105
105
case _ => false
106
106
def asExpr : scala.quoted.Expr [Any ] =
107
107
if self.isExpr then
108
- new ExprImpl (self, SpliceScope .getCurrent )
108
+ new ExprImpl (self)
109
109
else self match
110
110
case TermTypeTest (self) => throw new Exception (" Expected an expression. This is a partially applied Term. Try eta-expanding the term first." )
111
111
case _ => throw new Exception (" Expected a Term but was: " + Printer .TreeStructure .show(self))
@@ -377,11 +377,11 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
377
377
given TermMethods : TermMethods with
378
378
extension (self : Term )
379
379
def seal : scala.quoted.Expr [Any ] =
380
- if self.isExpr then new ExprImpl (self, SpliceScope .getCurrent )
380
+ if self.isExpr then new ExprImpl (self)
381
381
else throw new Exception (" Cannot seal a partially applied Term. Try eta-expanding the term first." )
382
382
383
383
def sealOpt : Option [scala.quoted.Expr [Any ]] =
384
- if self.isExpr then Some (new ExprImpl (self, SpliceScope .getCurrent ))
384
+ if self.isExpr then Some (new ExprImpl (self))
385
385
else None
386
386
387
387
def tpe : TypeRepr = self.tpe.widenSkolem
@@ -1722,7 +1722,7 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
1722
1722
def seal : scala.quoted.Type [_] = self.asType
1723
1723
1724
1724
def asType : scala.quoted.Type [? ] =
1725
- new TypeImpl (Inferred (self), SpliceScope .getCurrent )
1725
+ new TypeImpl (Inferred (self))
1726
1726
1727
1727
def =:= (that : TypeRepr ): Boolean = self =:= that
1728
1728
def <:< (that : TypeRepr ): Boolean = self <:< that
@@ -3048,19 +3048,19 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler
3048
3048
3049
3049
def unpickleExpr [T ](pickled : String | List [String ], typeHole : (Int , Seq [Any ]) => scala.quoted.Type [? ], termHole : (Int , Seq [Any ], scala.quoted.Quotes ) => scala.quoted.Expr [? ]): scala.quoted.Expr [T ] =
3050
3050
val tree = PickledQuotes .unpickleTerm(pickled, PickledQuotes .TypeHole .V1 (typeHole), PickledQuotes .ExprHole .V1 (termHole))
3051
- new ExprImpl (tree, SpliceScope .getCurrent ).asInstanceOf [scala.quoted.Expr [T ]]
3051
+ new ExprImpl (tree).asInstanceOf [scala.quoted.Expr [T ]]
3052
3052
3053
3053
def unpickleExprV2 [T ](pickled : String | List [String ], types : Seq [Type [? ]], termHole : Null | ((Int , Seq [Type [? ] | Expr [Any ]], Quotes ) => Expr [? ])): scala.quoted.Expr [T ] =
3054
3054
val tree = PickledQuotes .unpickleTerm(pickled, PickledQuotes .TypeHole .V2 (types), PickledQuotes .ExprHole .V2 (termHole))
3055
- new ExprImpl (tree, SpliceScope .getCurrent ).asInstanceOf [scala.quoted.Expr [T ]]
3055
+ new ExprImpl (tree).asInstanceOf [scala.quoted.Expr [T ]]
3056
3056
3057
3057
def unpickleType [T <: AnyKind ](pickled : String | List [String ], typeHole : (Int , Seq [Any ]) => scala.quoted.Type [? ], termHole : (Int , Seq [Any ], scala.quoted.Quotes ) => scala.quoted.Expr [? ]): scala.quoted.Type [T ] =
3058
3058
val tree = PickledQuotes .unpickleTypeTree(pickled, PickledQuotes .TypeHole .V1 (typeHole))
3059
- new TypeImpl (tree, SpliceScope .getCurrent ).asInstanceOf [scala.quoted.Type [T ]]
3059
+ new TypeImpl (tree).asInstanceOf [scala.quoted.Type [T ]]
3060
3060
3061
3061
def unpickleTypeV2 [T <: AnyKind ](pickled : String | List [String ], types : Seq [Type [? ]]): scala.quoted.Type [T ] =
3062
3062
val tree = PickledQuotes .unpickleTypeTree(pickled, PickledQuotes .TypeHole .V2 (types))
3063
- new TypeImpl (tree, SpliceScope .getCurrent ).asInstanceOf [scala.quoted.Type [T ]]
3063
+ new TypeImpl (tree).asInstanceOf [scala.quoted.Type [T ]]
3064
3064
3065
3065
object ExprMatch extends ExprMatchModule :
3066
3066
def unapply [TypeBindings <: Tuple , Tup <: Tuple ](scrutinee : scala.quoted.Expr [Any ])(using pattern : scala.quoted.Expr [Any ]): Option [Tup ] =
0 commit comments