diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-08 12:24:03 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-17 15:46:02 +0200 |
commit | 3fd4f47d7609e8818ea97e29e86af8b5ef09be9e (patch) | |
tree | 06245c17382c367997e3582d12a6a35db3399257 /src/reflect/scala/reflect/internal/Reporting.scala | |
parent | 5895e10adb3ec3e711cd48a9d0f0f9095c7f8ab9 (diff) | |
download | scala-3fd4f47d7609e8818ea97e29e86af8b5ef09be9e.tar.gz scala-3fd4f47d7609e8818ea97e29e86af8b5ef09be9e.tar.bz2 scala-3fd4f47d7609e8818ea97e29e86af8b5ef09be9e.zip |
Add errorCount to wean partest off Reporter$Severity
Once a release with this method is out,
move partest to use errorCount and cut ties with the Severity
nested class, so we can move it to the right enclosing class.
Diffstat (limited to 'src/reflect/scala/reflect/internal/Reporting.scala')
-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 |