Skip to content

Commit 5ba6e13

Browse files
committed
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.
1 parent 6926e8d commit 5ba6e13

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/reflect/scala/reflect/macros/Parsers.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ package macros
88
* A slice of [[scala.reflect.macros.BlackboxContext the Scala macros context]] that
99
* exposes functions to parse strings with Scala code into trees.
1010
*/
11-
@deprecated("Use quasiquotes instead", "2.11.0")
1211
trait Parsers {
1312
self: BlackboxContext =>
1413

1514
/** Parses a string with a Scala expression into an abstract syntax tree.
1615
* Only works for expressions, i.e. parsing a package declaration will fail.
1716
* @throws [[scala.reflect.macros.ParseException]]
1817
*/
19-
@deprecated("Use quasiquotes instead", "2.11.0")
2018
def parse(code: String): Tree
2119
}
2220

2321
/** Indicates an error during [[scala.reflect.macros.Parsers#parse]].
2422
*/
25-
@deprecated("Use quasiquotes instead", "2.11.0")
2623
case class ParseException(pos: scala.reflect.api.Position, msg: String) extends Exception(msg)

0 commit comments

Comments
 (0)