Browse files

undeprecates c.parse

We never thought that c.parse is going to be completely subsumed by
quasiquotes, but hoped that the use cases that are going to be lost
aren’t going to be noticed by anyone.

Unfortunately, this isn’t the case, so I’m undeprecating c.parse until
we get a better story for those for whom quasiquotes are not enough.
  • Loading branch information...
1 parent 6926e8d commit 5ba6e13b9ead5b24c046da9a72f6f5cf7d189ad1 @xeno-by xeno-by committed Dec 6, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/reflect/scala/reflect/macros/Parsers.scala
3 src/reflect/scala/reflect/macros/Parsers.scala
@@ -8,19 +8,16 @@ package macros
* A slice of [[scala.reflect.macros.BlackboxContext the Scala macros context]] that
* exposes functions to parse strings with Scala code into trees.
-@deprecated("Use quasiquotes instead", "2.11.0")
trait Parsers {
self: BlackboxContext =>
/** Parses a string with a Scala expression into an abstract syntax tree.
* Only works for expressions, i.e. parsing a package declaration will fail.
* @throws [[scala.reflect.macros.ParseException]]
- @deprecated("Use quasiquotes instead", "2.11.0")
def parse(code: String): Tree
/** Indicates an error during [[scala.reflect.macros.Parsers#parse]].
- @deprecated("Use quasiquotes instead", "2.11.0")
case class ParseException(pos: scala.reflect.api.Position, msg: String) extends Exception(msg)

0 comments on commit 5ba6e13

Please sign in to comment.