dotty.tools.dotc.reporting

StoreReporter

Related Doc: package reporting

class StoreReporter extends Reporter

This class implements a Reporter that stores all messages

Beware that this reporter can leak memory, and force messages in two scenarios:

- During debugging config.Printers.typr is set from noPrinter to new Printer, which forces the message - The reporter is not flushed and the message containers capture a Context (about 4MB)

Linear Supertypes
Reporter, ReporterResult, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StoreReporter
  2. Reporter
  3. ReporterResult
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StoreReporter(outer: Reporter)

Type Members

  1. type ErrorHandler = (MessageContainer) ⇒ (Context) ⇒ Unit

    Definition Classes
    Reporter

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def allErrors: List[Error]

    Definition Classes
    Reporter
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def countString(n: Int, elements: String): String

    Returns a string meaning "n elements".

    Returns a string meaning "n elements".

    Attributes
    protected
    Definition Classes
    Reporter
  8. def doReport(m: MessageContainer)(implicit ctx: Context): Unit

    Report a diagnostic

    Report a diagnostic

    Definition Classes
    StoreReporterReporter
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. var errorCount: Int

    Definition Classes
    Reporter → ReporterResult
  12. def errorsReported: Boolean

    Have errors been reported by this reporter, or in the case where this is a StoreReporter, by an outer reporter?

    Have errors been reported by this reporter, or in the case where this is a StoreReporter, by an outer reporter?

    Definition Classes
    StoreReporterReporter
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flush()(implicit ctx: Context): Unit

    Issue all error messages in this reporter to next outer one, or make sure they are written.

    Issue all error messages in this reporter to next outer one, or make sure they are written.

    Definition Classes
    StoreReporterReporter
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hasErrors(): Boolean

    Definition Classes
    Reporter → ReporterResult
  17. def hasPending: Boolean

    Does this reporter contain not yet reported errors or warnings?

    Does this reporter contain not yet reported errors or warnings?

    Definition Classes
    StoreReporterReporter
  18. def hasWarnings(): Boolean

    Definition Classes
    Reporter → ReporterResult
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. def incomplete(m: MessageContainer)(implicit ctx: Context): Unit

    Definition Classes
    Reporter
  21. def isHidden(m: MessageContainer)(implicit ctx: Context): Boolean

    Should this diagnostic not be reported at all?

    Should this diagnostic not be reported at all?

    Definition Classes
    Reporter
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def isReportedFeatureUseSite(featureTrait: Symbol): Boolean

    Definition Classes
    Reporter
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def printSummary(implicit ctx: Context): Unit

    Print the summary of warnings and errors

    Print the summary of warnings and errors

    Definition Classes
    Reporter
  28. def report(m: MessageContainer)(implicit ctx: Context): Unit

    Definition Classes
    Reporter
  29. def reportNewFeatureUseSite(featureTrait: Symbol): Unit

    Definition Classes
    Reporter
  30. def summary: String

    Summary of warnings and errors

    Summary of warnings and errors

    Definition Classes
    Reporter
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def truncationOK: Boolean

    Definition Classes
    Reporter
  34. val unreportedWarnings: HashMap[String, Int]

    Definition Classes
    Reporter
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. var warningCount: Int

    Definition Classes
    Reporter → ReporterResult
  39. def withIncompleteHandler[T](handler: ErrorHandler)(op: ⇒ T): T

    Definition Classes
    Reporter
  40. def withoutTruncating[T](body: ⇒ T): T

    Definition Classes
    Reporter

Inherited from Reporter

Inherited from ReporterResult

Inherited from AnyRef

Inherited from Any

Ungrouped