summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/macros
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-02-15 01:33:27 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-02-15 09:32:28 +0100
commit25e7274ef7f0ffaf511460c3a130c8064b5d44e2 (patch)
treef6df76e5827a735a69197af385ef01657061242e /src/reflect/scala/reflect/macros
parent6402b576f7567a4d19b4df31e0117462dd6df7d5 (diff)
downloadscala-25e7274ef7f0ffaf511460c3a130c8064b5d44e2.tar.gz
scala-25e7274ef7f0ffaf511460c3a130c8064b5d44e2.tar.bz2
scala-25e7274ef7f0ffaf511460c3a130c8064b5d44e2.zip
exposes Symbol.setOwner
Used by async.
Diffstat (limited to 'src/reflect/scala/reflect/macros')
-rw-r--r--src/reflect/scala/reflect/macros/Universe.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/macros/Universe.scala b/src/reflect/scala/reflect/macros/Universe.scala
index 3906a3388d..08436df5a7 100644
--- a/src/reflect/scala/reflect/macros/Universe.scala
+++ b/src/reflect/scala/reflect/macros/Universe.scala
@@ -59,6 +59,9 @@ abstract class Universe extends scala.reflect.api.Universe {
*/
def removeAttachment[T: ClassTag](symbol: Symbol): symbol.type
+ /** Sets the `owner` of the symbol. */
+ def setOwner(symbol: Symbol, newowner: Symbol): symbol.type
+
/** Sets the `info` of the symbol. */
def setInfo(symbol: Symbol, tpe: Type): symbol.type
@@ -187,6 +190,9 @@ abstract class Universe extends scala.reflect.api.Universe {
/** @see [[internal.removeAttachment]] */
def removeAttachment[A: ClassTag]: T = internal.removeAttachment[A](symbol)
+ /** @see [[internal.setOwner]] */
+ def setOwner(newowner: Symbol): T = internal.setOwner(symbol, newowner)
+
/** @see [[internal.setInfo]] */
def setInfo(tpe: Type): T = internal.setInfo(symbol, tpe)