@@ -102,6 +102,9 @@ object Splicer {
102102 protected def interpretLiteral (value : Any )(implicit env : Env ): Object =
103103 value.asInstanceOf [Object ]
104104
105+ protected def interpretVarargs (args : List [Object ])(implicit env : Env ): Object =
106+ args.toSeq
107+
105108 protected def interpretTastyContext ()(implicit env : Env ): Object =
106109 new TastyImpl (ctx) {
107110 override def rootPosition : SourcePosition = pos
@@ -240,6 +243,7 @@ object Splicer {
240243 def interpretQuote (tree : tpd.Tree )(implicit env : Env ): Boolean = true
241244 def interpretTypeQuote (tree : tpd.Tree )(implicit env : Env ): Boolean = true
242245 def interpretLiteral (value : Any )(implicit env : Env ): Boolean = true
246+ def interpretVarargs (args : List [Boolean ])(implicit env : Env ): Boolean = args.forall(identity)
243247 def interpretTastyContext ()(implicit env : Env ): Boolean = true
244248 def interpretStaticMethodCall (fn : tpd.Tree , args : => List [Boolean ])(implicit env : Env ): Boolean = args.forall(identity)
245249
@@ -259,6 +263,7 @@ object Splicer {
259263 protected def interpretQuote (tree : Tree )(implicit env : Env ): Result
260264 protected def interpretTypeQuote (tree : Tree )(implicit env : Env ): Result
261265 protected def interpretLiteral (value : Any )(implicit env : Env ): Result
266+ protected def interpretVarargs (args : List [Result ])(implicit env : Env ): Result
262267 protected def interpretTastyContext ()(implicit env : Env ): Result
263268 protected def interpretStaticMethodCall (fn : Tree , args : => List [Result ])(implicit env : Env ): Result
264269 protected def unexpectedTree (tree : Tree )(implicit env : Env ): Result
@@ -293,7 +298,10 @@ object Splicer {
293298
294299 case Inlined (EmptyTree , Nil , expansion) => interpretTree(expansion)
295300
296- case _ => unexpectedTree(tree)
301+ case Typed (SeqLiteral (elems, _), _) => interpretVarargs(elems.map(e => interpretTree(e)))
302+
303+ case _ =>
304+ unexpectedTree(tree)
297305 }
298306
299307 object StaticMethodCall {
0 commit comments