dotty.tools.dotc.reporting.TestReporter.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala3-compiler_3 Show documentation
Show all versions of scala3-compiler_3 Show documentation
scala3-compiler-bootstrapped
package dotty.tools
package dotc
package reporting
import scala.language.unsafeNulls
import collection.mutable
import Diagnostic.*
/** A re-usable Reporter used in Contexts#test */
class TestingReporter extends StoreReporter(null, fromTyperState = false):
infos = new mutable.ListBuffer[Diagnostic]
override def hasUnreportedErrors: Boolean = infos.exists(_.isInstanceOf[Error])
def reset(): Unit = infos.clear()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy