diff options
author | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-01 19:25:16 +0100 |
---|---|---|
committer | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-02 18:19:47 +0100 |
commit | ffc3203c3688b6fc5f47f4043bf3a0090de9d985 (patch) | |
tree | e64965cedf021c14144c4f51fb055a60ecf66342 /test/files/scalacheck/quasiquotes/QuasiquoteProperties.scala | |
parent | 1a3de955b824aa4d946467c5b207133b6839b17d (diff) | |
download | scala-ffc3203c3688b6fc5f47f4043bf3a0090de9d985.tar.gz scala-ffc3203c3688b6fc5f47f4043bf3a0090de9d985.tar.bz2 scala-ffc3203c3688b6fc5f47f4043bf3a0090de9d985.zip |
SI-8173 add support for patterns like init :+ last to quasiquotes
Adds support for patterns like:
val q"{ ..$init; $last }" = q"{ a; b; c }"
// init == List(q"a", q"b")
// last == q"c"
Which under the hood get compiled as `:+` patterns:
SyntacticBlock(init :+ last)
Diffstat (limited to 'test/files/scalacheck/quasiquotes/QuasiquoteProperties.scala')
-rw-r--r-- | test/files/scalacheck/quasiquotes/QuasiquoteProperties.scala | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/files/scalacheck/quasiquotes/QuasiquoteProperties.scala b/test/files/scalacheck/quasiquotes/QuasiquoteProperties.scala index e4ee5dfcae..589b8d4d72 100644 --- a/test/files/scalacheck/quasiquotes/QuasiquoteProperties.scala +++ b/test/files/scalacheck/quasiquotes/QuasiquoteProperties.scala @@ -116,10 +116,5 @@ trait Helpers { } } - def annot(name: String): Tree = annot(TypeName(name), Nil) - def annot(name: TypeName): Tree = annot(name, Nil) - def annot(name: String, args: List[Tree]): Tree = annot(TypeName(name), args) - def annot(name: TypeName, args: List[Tree]): Tree = q"new $name(..$args)" - val scalapkg = build.setSymbol(Ident(TermName("scala")), definitions.ScalaPackage) } |