diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-26 10:54:03 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-27 15:53:18 +0200 |
commit | ee1ca007c73d941c88c893637263b7d4b5fc842e (patch) | |
tree | 91045ea53ba1aa2949fb0459112873667c1d7de9 /src/compiler | |
parent | 7e5646388243522bef8f4a1a1e255c7d8e30236d (diff) | |
download | scala-ee1ca007c73d941c88c893637263b7d4b5fc842e.tar.gz scala-ee1ca007c73d941c88c893637263b7d4b5fc842e.tar.bz2 scala-ee1ca007c73d941c88c893637263b7d4b5fc842e.zip |
moves Context.ParseError outside the cake
I did this for ReificationError a long time ago. Must've probably forgot
to do the same for ParseError.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/macros/runtime/Parsers.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/scala/reflect/macros/runtime/Parsers.scala b/src/compiler/scala/reflect/macros/runtime/Parsers.scala index 5096526fdb..ab9b94ec9f 100644 --- a/src/compiler/scala/reflect/macros/runtime/Parsers.scala +++ b/src/compiler/scala/reflect/macros/runtime/Parsers.scala @@ -10,6 +10,7 @@ trait Parsers { def parse(code: String): Tree = // todo. provide decent implementation + // see `Typers.typedUseCase` for details try { import scala.reflect.runtime.{universe => ru} val parsed = ru.rootMirror.mkToolBox().parse(code) @@ -17,9 +18,7 @@ trait Parsers { importer.importTree(parsed) } catch { case ToolBoxError(msg, cause) => + // todo. provide a position throw new ParseError(universe.NoPosition, msg) } - - case class ParseError(val pos: Position, val msg: String) extends Throwable(msg) - object ParseError extends ParseErrorExtractor } |