Skip to content

Commit f5ffa99

Browse files
committed
Update uses of Expr.ofSeq
1 parent 154069d commit f5ffa99

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ private def showMeExpr(sc: Expr[StringContext], argsExpr: Expr[Seq[Any]])(using
714714
case None => qctx.error(s"could not find implicit for ${showTp.show}", arg); '{???}
715715
}
716716
}
717-
val newArgsExpr = Expr.ofSeq(argShowedExprs)
717+
val newArgsExpr = Exprs(argShowedExprs)
718718
'{ $sc.s($newArgsExpr: _*) }
719719
case _ =>
720720
// `new StringContext(...).showMeExpr(args: _*)` not an explicit `showMeExpr"..."`

tests/run-macros/i7008/macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ def mcrProxy(expr: Expr[Boolean])(using QuoteContext): Expr[Unit] = {
1414

1515
def mcrImpl[T](func: Expr[Seq[Box[T]] => Unit], expr: Expr[T])(using ctx: QuoteContext, tt: Type[T]): Expr[Unit] = {
1616
import ctx.tasty._
17-
val arg = Expr.ofSeq(Seq('{(Box($expr))}))
17+
val arg = Exprs(Seq('{(Box($expr))}))
1818
Expr.betaReduce(func)(arg)
1919
}

tests/run-macros/string-context-implicits/Macro_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private def showMeExpr(sc: Expr[StringContext], argsExpr: Expr[Seq[Any]])(using
1414
case None => qctx.error(s"could not find implicit for ${showTp.show}", arg); '{???}
1515
}
1616
}
17-
val newArgsExpr = Expr.ofSeq(argShowedExprs)
17+
val newArgsExpr = Exprs(argShowedExprs)
1818
'{ $sc.s($newArgsExpr: _*) }
1919
case _ =>
2020
// `new StringContext(...).showMeExpr(args: _*)` not an explicit `showMeExpr"..."`

tests/run-macros/tasty-simplified/quoted_1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ object Macros {
1919
}
2020

2121
val tps = unpackTuple(typeOf[T])
22-
Expr.ofSeq(tps.map(x => Expr(x.show)))
22+
Exprs(tps.map(x => Expr(x.show)))
2323
}
2424
}

0 commit comments

Comments
 (0)