diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-26 08:17:38 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-27 15:49:02 +0200 |
commit | 1839c1b5528e706c280e7d81031499f3d46826ec (patch) | |
tree | 565ba4bcfe78515f79c73a02ba386aa4ce1fb7e0 /src/compiler | |
parent | 95fd70ed1d2a3f4688c10a0e44509631d93d9afd (diff) | |
download | scala-1839c1b5528e706c280e7d81031499f3d46826ec.tar.gz scala-1839c1b5528e706c280e7d81031499f3d46826ec.tar.bz2 scala-1839c1b5528e706c280e7d81031499f3d46826ec.zip |
merges macros.CapturedVariables into macros.Universe
Back then we didn't have a notion of a macro-specific universe,
so I had to expose these methods in Context.
Now we have our very own macros.Universe, so capturing methods
have landed there.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/macros/runtime/CapturedVariables.scala | 15 | ||||
-rw-r--r-- | src/compiler/scala/reflect/macros/runtime/Context.scala | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/compiler/scala/reflect/macros/runtime/CapturedVariables.scala b/src/compiler/scala/reflect/macros/runtime/CapturedVariables.scala deleted file mode 100644 index 78fb7100b0..0000000000 --- a/src/compiler/scala/reflect/macros/runtime/CapturedVariables.scala +++ /dev/null @@ -1,15 +0,0 @@ -package scala.reflect.macros -package runtime - -trait CapturedVariables { - self: Context => - - import mirror._ - import universe._ - - def captureVariable(vble: Symbol): Unit = universe.captureVariable(vble) - - def referenceCapturedVariable(vble: Symbol): Tree = universe.referenceCapturedVariable(vble) - - def capturedVariableType(vble: Symbol): Type = universe.capturedVariableType(vble) -}
\ No newline at end of file diff --git a/src/compiler/scala/reflect/macros/runtime/Context.scala b/src/compiler/scala/reflect/macros/runtime/Context.scala index 1c6313c930..aa5dfc47b2 100644 --- a/src/compiler/scala/reflect/macros/runtime/Context.scala +++ b/src/compiler/scala/reflect/macros/runtime/Context.scala @@ -5,7 +5,6 @@ import scala.tools.nsc.Global abstract class Context extends scala.reflect.macros.Context with Aliases - with CapturedVariables with Infrastructure with Enclosures with Names |