diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-01-17 18:34:12 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-01-17 18:34:12 +0100 |
commit | c258ccc9b52c9bfcd47342d3dcf6b58faac8535b (patch) | |
tree | ebfe1666af2c96bcb31fbc7a86ecae79ff7226b5 | |
parent | b7b210db14a2d59730603cc7cbf41c55275a4520 (diff) | |
download | scala-c258ccc9b52c9bfcd47342d3dcf6b58faac8535b.tar.gz scala-c258ccc9b52c9bfcd47342d3dcf6b58faac8535b.tar.bz2 scala-c258ccc9b52c9bfcd47342d3dcf6b58faac8535b.zip |
Don't trace the low-level details of ResetAttrs under -Ydebug
This need for this output is highly situational and since we've
starting using this resettter in case classes and names/defaults,
it is polluting our consoles.
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index cccae0c3a0..24bce0636d 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -194,7 +194,9 @@ trait Trees extends scala.reflect.internal.Trees { self: Global => * (bq:) This transformer has mutable state and should be discarded after use */ private class ResetAttrs(localOnly: Boolean, leaveAlone: Tree => Boolean = null, keepLabels: Boolean = false) { - val debug = settings.debug.value + // this used to be based on -Ydebug, but the need for logging in this code is so situational + // that I've reverted to a hard-coded constant here. + val debug = false val trace = scala.tools.nsc.util.trace when debug val locals = util.HashSet[Symbol](8) |