diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-08-26 13:43:35 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-08-26 13:43:35 +0200 |
commit | 63a087609855c46c8f376bd2271b8a50583d5c62 (patch) | |
tree | 8d578cada1e80ec1c196431f6b953cac1287cd30 /src/reflect | |
parent | 6ec0d70da83255ec4f9d1b81902ee60b0f5c6332 (diff) | |
parent | ca9f64dfa20fb8d5a4c022f6b9fd2f18a8ea1028 (diff) | |
download | scala-63a087609855c46c8f376bd2271b8a50583d5c62.tar.gz scala-63a087609855c46c8f376bd2271b8a50583d5c62.tar.bz2 scala-63a087609855c46c8f376bd2271b8a50583d5c62.zip |
Merge pull request #3886 from adriaanm/report-filter
part 2 of the big error reporting refactoring
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/Reporting.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/Reporting.scala b/src/reflect/scala/reflect/internal/Reporting.scala index 423127803e..f2de83bc5d 100644 --- a/src/reflect/scala/reflect/internal/Reporting.scala +++ b/src/reflect/scala/reflect/internal/Reporting.scala @@ -89,6 +89,9 @@ abstract class Reporter { def count(severity: Severity): Int def resetCount(severity: Severity): Unit + def errorCount: Int = count(ERROR) + def warningCount: Int = count(WARNING) + def hasErrors: Boolean = count(ERROR) > 0 def hasWarnings: Boolean = count(WARNING) > 0 |