diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-07 13:09:55 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-07 13:09:55 +0100 |
commit | b6326af94d255cb96b997680baec5ae38c4db4c7 (patch) | |
tree | c22dedadb5170ec3a211c2eae88313ddd0080d02 /src/compiler/scala/reflect/macros/contexts | |
parent | f7870863c28d163d1016418783a1169fbd6022d0 (diff) | |
download | scala-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/macros/contexts')
-rw-r--r-- | src/compiler/scala/reflect/macros/contexts/Typers.scala | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compiler/scala/reflect/macros/contexts/Typers.scala b/src/compiler/scala/reflect/macros/contexts/Typers.scala index cd3db74016..c06ab60e52 100644 --- a/src/compiler/scala/reflect/macros/contexts/Typers.scala +++ b/src/compiler/scala/reflect/macros/contexts/Typers.scala @@ -46,8 +46,6 @@ trait Typers { universe.analyzer.inferImplicit(tree, viewTpe, true, callsiteTyper.context, silent, withMacrosDisabled, pos, (pos, msg) => throw TypecheckException(pos, msg)) } - def resetAllAttrs(tree: Tree): Tree = universe.resetAllAttrs(universe.duplicateAndKeepPositions(tree)) - def resetLocalAttrs(tree: Tree): Tree = universe.resetLocalAttrs(universe.duplicateAndKeepPositions(tree)) def untypecheck(tree: Tree): Tree = universe.resetLocalAttrs(universe.duplicateAndKeepPositions(tree)) |