blob: d3aabcff0d6d2d445849a213967fb7e948c6f3bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package scala.reflect
package macros
trait Parsers {
self: Context =>
/** .. */
// todo. distinguish between parsing an expression and parsing arbitrary code
// for example, parsing in expression mode will fail on packages
def parse(code: String): Tree
}
/** Indicates an error during [[scala.reflect.macros.Parsers#Parse]].
*/
case class ParseException(val pos: scala.reflect.api.Position, val msg: String) extends Exception(msg)
|