summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-08-10 00:56:07 +0000
committerPaul Phillips <paulp@improving.org>2011-08-10 00:56:07 +0000
commitff7416d88b67b26c5f066ef08801517c09bd2859 (patch)
treee33566f785eb9c0377bc30524a1679b00ec8362c /src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala
parent879e5af47db2ae6807aef26dd786e6ea920ac554 (diff)
downloadscala-ff7416d88b67b26c5f066ef08801517c09bd2859.tar.gz
scala-ff7416d88b67b26c5f066ef08801517c09bd2859.tar.bz2
scala-ff7416d88b67b26c5f066ef08801517c09bd2859.zip
Expanded the range of a warning, and made suppr...
Expanded the range of a warning, and made suppressed warnings visible. Modified the positioning of "permanently hidden" errors so that when there is more than one, the later ones are not ignored. Also changed the error suppression code to emit the error anyway if -Ydebug was given (it is prefixed with "[suppressed] ".) Since I can't be the only one who wondered where his errors were vanishing to. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala')
-rw-r--r--src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala b/src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala
index cad69deb7b..2ba8c8eb6b 100644
--- a/src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala
+++ b/src/compiler/scala/tools/nsc/reporters/AbstractReporter.scala
@@ -42,8 +42,13 @@ abstract class AbstractReporter extends Reporter {
val hidden = testAndLog(pos, severity)
if (severity == WARNING && noWarnings) ()
else {
- if (!hidden || isPromptSet) display(pos, msg, severity)
- if (isPromptSet) displayPrompt
+ if (!hidden || isPromptSet)
+ display(pos, msg, severity)
+ else if (settings.debug.value)
+ display(pos, "[ suppressed ] " + msg, severity)
+
+ if (isPromptSet)
+ displayPrompt
}
}
}