summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/runtime/package.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-07-21 10:04:56 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-08-02 15:51:04 +0200
commitf126f40b8c83be96404fc5fbd50b26b694bb9e86 (patch)
tree077e33161c2a1152a9d7319d92e017dc7e443d2f /src/reflect/scala/reflect/runtime/package.scala
parent280c4906d18fd827e2c934af49e253064ac753ef (diff)
downloadscala-f126f40b8c83be96404fc5fbd50b26b694bb9e86.tar.gz
scala-f126f40b8c83be96404fc5fbd50b26b694bb9e86.tar.bz2
scala-f126f40b8c83be96404fc5fbd50b26b694bb9e86.zip
prepares our macro defs for refactoring (Step II)
Since the previous commit the compiler doesn't need any help to find out that fast-tracked macros are macros. Hence I'm replacing their RHSes with the universal ??? body. This way macro definitions defined in scala (for example, tag materialization macros or certain string formatters) won't stand in the way of the changes to the macro system.
Diffstat (limited to 'src/reflect/scala/reflect/runtime/package.scala')
-rw-r--r--src/reflect/scala/reflect/runtime/package.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/reflect/scala/reflect/runtime/package.scala b/src/reflect/scala/reflect/runtime/package.scala
index a5809a2629..2d48b9a5bf 100644
--- a/src/reflect/scala/reflect/runtime/package.scala
+++ b/src/reflect/scala/reflect/runtime/package.scala
@@ -1,7 +1,5 @@
package scala.reflect
-import language.experimental.macros
-
package object runtime {
// type is api.JavaUniverse because we only want to expose the `scala.reflect.api.*` subset of reflection
@@ -9,7 +7,8 @@ package object runtime {
// [Eugene++ to Martin] removed `mirrorOfLoader`, because one can use `universe.runtimeMirror` instead
- def currentMirror: universe.Mirror = macro Macros.currentMirror
+ // implementation magically hardwired to the `currentMirror` method below
+ def currentMirror: universe.Mirror = ??? // macro
}
package runtime {