diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-01-05 00:31:58 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-01-09 08:10:47 +0100 |
commit | fa4531e9f28a0e49fdb63406307826c57b19f4bb (patch) | |
tree | bf7cb3cd635624c4a1e085b8c2dddf4eaef8e88c /test | |
parent | 66acf364ae3003dd1abb4eeb8759afc6e12aa1a1 (diff) | |
download | scala-fa4531e9f28a0e49fdb63406307826c57b19f4bb.tar.gz scala-fa4531e9f28a0e49fdb63406307826c57b19f4bb.tar.bz2 scala-fa4531e9f28a0e49fdb63406307826c57b19f4bb.zip |
refactors handling of macros in repl
Macros now have a dedicated member handler, so that the logic of their
processing doesn't get mixed up with vanilla DefHandler.
I've also factored out an abstract MacroHandler to provides a basis
to build the upcoming type macro handler upon.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/macro-repl-dontexpand.check | 2 | ||||
-rw-r--r-- | test/files/run/t6381.check | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/macro-repl-dontexpand.check b/test/files/run/macro-repl-dontexpand.check index 628a9146c4..99b70ea3dc 100644 --- a/test/files/run/macro-repl-dontexpand.check +++ b/test/files/run/macro-repl-dontexpand.check @@ -7,6 +7,6 @@ scala> def bar(c: scala.reflect.macros.Context) = ??? bar: (c: scala.reflect.macros.Context)Nothing scala> def foo = macro bar -foo: Any +defined term macro foo: Any scala> diff --git a/test/files/run/t6381.check b/test/files/run/t6381.check index b51cfd0398..5070b67e46 100644 --- a/test/files/run/t6381.check +++ b/test/files/run/t6381.check @@ -9,7 +9,7 @@ scala> def pos_impl(c: reflect.macros.Context): c.Expr[String] = pos_impl: (c: scala.reflect.macros.Context)c.Expr[String] scala> def pos = macro pos_impl -pos: String +defined term macro pos: String scala> pos res0: String = class scala.reflect.internal.util.RangePosition |