From b4598b4a7826b76cc6405b448b50d6c20f7a5732 Mon Sep 17 00:00:00 2001 From: Den Shabalin Date: Thu, 8 Aug 2013 18:55:05 +0200 Subject: SI-7331 remove all the wrapping code from toolbox Change toolbox parsing to use `parseStats` parser entry point instead of current code-wrappign technique that makes positions much less useful to end users. There is also no need to create a compiler `Run` for parsing. --- test/files/run/t7331a.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/files/run/t7331a.scala (limited to 'test/files/run/t7331a.scala') diff --git a/test/files/run/t7331a.scala b/test/files/run/t7331a.scala new file mode 100644 index 0000000000..1851945e63 --- /dev/null +++ b/test/files/run/t7331a.scala @@ -0,0 +1,10 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.{currentMirror => cm} +import scala.tools.reflect.ToolBox + +object Test extends App { + val tb = cm.mkToolBox() + val tree = tb.parse("x") + println(tree.pos) + println(tree.pos.source.content.length) +} \ No newline at end of file -- cgit v1.2.3