summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/reify/Reifier.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-02-07 13:09:55 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-02-07 13:09:55 +0100
commitb6326af94d255cb96b997680baec5ae38c4db4c7 (patch)
treec22dedadb5170ec3a211c2eae88313ddd0080d02 /src/compiler/scala/reflect/reify/Reifier.scala
parentf7870863c28d163d1016418783a1169fbd6022d0 (diff)
downloadscala-b6326af94d255cb96b997680baec5ae38c4db4c7.tar.gz
scala-b6326af94d255cb96b997680baec5ae38c4db4c7.tar.bz2
scala-b6326af94d255cb96b997680baec5ae38c4db4c7.zip
further limits discoverability of resetAttrs
This commit removes resetAllAttrs from the public reflection API. This method was previously deprecated, but on a second thought that doesn't do it justice. People should be aware that resetAllAttrs is just wrong, and if they have code that uses it, this code should be rewritten immediately without beating around the bush with deprecations. There's a source-compatible way of achieving that (resetLocalAttrs), so that shouldn't bring much trouble. Secondly, resetAllAttrs in compiler internals becomes deprecated. In subsequent commits I'm going to rewrite the only two locations in the compiler that uses it, and then I think we can remove it from the compiler as well.
Diffstat (limited to 'src/compiler/scala/reflect/reify/Reifier.scala')
-rw-r--r--src/compiler/scala/reflect/reify/Reifier.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/reify/Reifier.scala b/src/compiler/scala/reflect/reify/Reifier.scala
index ad0632f93e..9c3acaad89 100644
--- a/src/compiler/scala/reflect/reify/Reifier.scala
+++ b/src/compiler/scala/reflect/reify/Reifier.scala
@@ -86,7 +86,7 @@ abstract class Reifier extends States
throw new Error("reifee %s of type %s is not supported".format(reifee, if (reifee == null) "null" else reifee.getClass.toString))
}
- // todo. why do we resetAllAttrs?
+ // todo. why do we reset attrs?
//
// typically we do some preprocessing before reification and
// the code emitted/moved around during preprocessing is very hard to typecheck, so we leave it as it is