summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/macros/Universe.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-12 16:05:24 -0800
committerPaul Phillips <paulp@improving.org>2012-12-19 11:51:54 -0800
commit9e88ddf82e2d8aa779aab46aec284d5566deac14 (patch)
tree34bd76cde8ab906d36970a69ac73310d412193b8 /src/reflect/scala/reflect/macros/Universe.scala
parent7c23d525ccb413d8ff3e4cc6b442e7e864608609 (diff)
downloadscala-9e88ddf82e2d8aa779aab46aec284d5566deac14.tar.gz
scala-9e88ddf82e2d8aa779aab46aec284d5566deac14.tar.bz2
scala-9e88ddf82e2d8aa779aab46aec284d5566deac14.zip
Eliminating var-like setter tpe_= on Tree.
Deprecated tpe_= on Tree, which is redundant with and less useful than setType. To provide a small layer of insulation from the direct nulling out of mutable fields used to signal the typer, added def clearType() which is merely tree.tpe = null but is shamefaced about the null and var-settings parts like a respectable method should be.
Diffstat (limited to 'src/reflect/scala/reflect/macros/Universe.scala')
-rw-r--r--src/reflect/scala/reflect/macros/Universe.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflect/scala/reflect/macros/Universe.scala b/src/reflect/scala/reflect/macros/Universe.scala
index 4e76f7c408..31f3192a85 100644
--- a/src/reflect/scala/reflect/macros/Universe.scala
+++ b/src/reflect/scala/reflect/macros/Universe.scala
@@ -114,7 +114,7 @@ abstract class Universe extends scala.reflect.api.Universe {
def setPos(newpos: Position): Tree
/** Sets the `tpe` of the tree. Returns `Unit`. */
- def tpe_=(t: Type): Unit
+ @deprecated("Use setType", "2.11.0") def tpe_=(t: Type): Unit
/** Sets the `tpe` of the tree. Returns the tree itself. */
def setType(tp: Type): Tree
@@ -238,4 +238,4 @@ abstract class Universe extends scala.reflect.api.Universe {
/** The AST that corresponds to this compilation unit. */
def body: Tree
}
-} \ No newline at end of file
+}