All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dotty.tools.dotc.reporting.TestReporter.scala Maven / Gradle / Ivy

There is a newer version: 3.6.4-RC1-bin-20241220-0bfa1af-NIGHTLY
Show newest version
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