AbstractReporter

dotty.tools.dotc.reporting.AbstractReporter

This class mixes in a few standard traits, so that it is easier to extend from Java.

Attributes

Graph
Supertypes
class Reporter
trait ReporterResult
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

def addUnreported(key: String, n: Int): Unit

Attributes

Inherited from:
Reporter

All errors reported by this reporter (ignoring outer reporters)

All errors reported by this reporter (ignoring outer reporters)

Attributes

Inherited from:
Reporter
def doReport(dia: Diagnostic)(using Context): Unit

Report a diagnostic

Report a diagnostic

Attributes

Inherited from:
Reporter

The number of errors reported by this reporter (ignoring outer reporters)

The number of errors reported by this reporter (ignoring outer reporters)

Attributes

Inherited from:
Reporter

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?

Attributes

Inherited from:
Reporter
def explanation(m: Message)(using Context): String

Explanation rendered under "Explanation" header

Explanation rendered under "Explanation" header

Attributes

Inherited from:
MessageRendering
def flush()(using Context): Unit

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

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

Attributes

Inherited from:
Reporter

Have errors been reported by this reporter (ignoring outer reporters)?

Have errors been reported by this reporter (ignoring outer reporters)?

Attributes

Inherited from:
Reporter

Were sticky errors reported? Overridden in StoreReporter.

Were sticky errors reported? Overridden in StoreReporter.

Attributes

Inherited from:
Reporter

Does this reporter contain errors that have yet to be reported by its outer reporter ? Note: this is always false when there is no outer reporter.

Does this reporter contain errors that have yet to be reported by its outer reporter ? Note: this is always false when there is no outer reporter.

Attributes

Inherited from:
Reporter

Does this reporter contain any message that have yet to be reported by its outer reporter ? This includes any warning stored in unreportedWarnings which need to be propagated to get an accurate count of unreported warnings in the outer reporter.

Does this reporter contain any message that have yet to be reported by its outer reporter ? This includes any warning stored in unreportedWarnings which need to be propagated to get an accurate count of unreported warnings in the outer reporter.

Attributes

Inherited from:
Reporter

Have warnings been reported by this reporter (ignoring outer reporters)?

Have warnings been reported by this reporter (ignoring outer reporters)?

Attributes

Inherited from:
Reporter
def incomplete(dia: Diagnostic)(using Context): Unit

Attributes

Inherited from:
Reporter

List of all the inline calls that surround the position

List of all the inline calls that surround the position

Attributes

Inherited from:
MessageRendering
override def isHidden(dia: Diagnostic)(using Context): Boolean

Hides non-sensical messages, unless we haven't reported any error yet or -Yshow-suppressed-errors is set.

Hides non-sensical messages, unless we haven't reported any error yet or -Yshow-suppressed-errors is set.

Attributes

Definition Classes
Inherited from:
HideNonSensicalMessages

Attributes

Inherited from:
Reporter

Attributes

Inherited from:
Reporter

Issue the diagnostic, ignoring -Wconf and @nowarn configurations, but still honouring -nowarn, -Werror, and conditional warnings.

Issue the diagnostic, ignoring -Wconf and @nowarn configurations, but still honouring -nowarn, -Werror, and conditional warnings.

Attributes

Inherited from:
Reporter
override def markReported(dia: Diagnostic)(using Context): Unit

Attributes

Definition Classes
Inherited from:
UniqueMessagePositions

The whole message rendered from msg

The whole message rendered from msg

Attributes

Inherited from:
MessageRendering

If this reporter buffers messages, all buffered messages, otherwise Nil

If this reporter buffers messages, all buffered messages, otherwise Nil

Attributes

Inherited from:
Reporter
protected def posFileStr(pos: SourcePosition): String

The source file path, line and column numbers from the given SourcePosition

The source file path, line and column numbers from the given SourcePosition

Attributes

Inherited from:
MessageRendering
def printSummary()(using Context): Unit

Print the summary of warnings and errors

Print the summary of warnings and errors

Attributes

Inherited from:
Reporter

If this reporter buffers messages, remove and return all buffered messages.

If this reporter buffers messages, remove and return all buffered messages.

Attributes

Inherited from:
Reporter
def report(dia: Diagnostic)(using Context): Unit

Attributes

Inherited from:
Reporter
def reportNewFeatureUseSite(featureTrait: Symbol): Unit

Attributes

Inherited from:
Reporter

Run op and return true if errors were reported by this reporter.

Run op and return true if errors were reported by this reporter.

Attributes

Inherited from:
Reporter
def stripColor(str: String): String

Remove ANSI coloring from str, useful for getting real length of strings

Remove ANSI coloring from str, useful for getting real length of strings

Attributes

Returns

string stripped of ANSI escape codes

Inherited from:
MessageRendering

Attributes

Inherited from:
Reporter

Summary of warnings and errors

Summary of warnings and errors

Attributes

Inherited from:
Reporter

Attributes

Inherited from:
Reporter

The number of warnings reported by this reporter (ignoring outer reporters)

The number of warnings reported by this reporter (ignoring outer reporters)

Attributes

Inherited from:
Reporter
def withIncompleteHandler[T](handler: ErrorHandler)(op: => T): T

Attributes

Inherited from:
Reporter
def withoutTruncating[T](body: => T): T

Attributes

Inherited from:
Reporter

Inherited fields

Attributes

Inherited from:
Reporter