ConsoleReporter

This class implements a Reporter that displays messages on a text console

class Reporter
trait ReporterResult
class Object
trait Matchable
class Any

Value members

Concrete methods

def doReport(dia: Diagnostic)(using Context): Unit

Prints the message with the given position indication.

Prints the message with the given position indication.

override def flush(using Context): Unit
Definition Classes

Prints the message.

Prints the message.

Inherited methods

All errors reported by this reporter (ignoring outer reporters)

All errors reported by this reporter (ignoring outer reporters)

Inherited from
Reporter
def columnMarker(pos: SourcePosition, offset: Int, diagnosticLevel: String)(using Context): String

The column markers aligned under the error

The column markers aligned under the error

Inherited from
MessageRendering

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

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

Inherited from
Reporter
def errorMsg(pos: SourcePosition, msg: String, offset: Int)(using Context): String

The error message (msg) aligned under pos

The error message (msg) aligned under pos

Returns

aligned error message

Inherited from
MessageRendering

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?

Inherited from
Reporter

Explanation rendered under "Explanation" header

Explanation rendered under "Explanation" header

Inherited from
MessageRendering

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

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

Inherited from
Reporter

Were sticky errors reported? Overridden in StoreReporter.

Were sticky errors reported? Overridden in StoreReporter.

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.

Inherited from
Reporter

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

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

Inherited from
Reporter
def hl(diagnosticLevel: String)(str: String)(using Context): String
Inherited from
MessageRendering
def incomplete(dia: Diagnostic)(using Context): Unit
Inherited from
Reporter
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.

Definition Classes
Inherited from
HideNonSensicalMessages
Inherited from
Reporter
def messageAndPos(msg: Message, pos: SourcePosition, diagnosticLevel: String)(using Context): String

The whole message rendered from msg

The whole message rendered from msg

Inherited from
MessageRendering
def outer(pos: SourcePosition, prefix: String)(using Context): List[String]

When inlining a method call, if there's an error we'd like to get the outer context and the pos at which the call was inlined.

When inlining a method call, if there's an error we'd like to get the outer context and the pos at which the call was inlined.

Returns

a list of strings with inline locations

Inherited from
MessageRendering

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

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

Inherited from
Reporter
def posStr(pos: SourcePosition, diagnosticLevel: String, message: Message)(using Context): String

The separator between errors containing the source file and error type

The separator between errors containing the source file and error type

Returns

separator containing error location and kind

Inherited from
MessageRendering

Print the summary of warnings and errors

Print the summary of warnings and errors

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.

Inherited from
Reporter
def report(dia: Diagnostic)(using Context): Unit
Inherited from
Reporter
def reportNewFeatureUseSite(featureTrait: Symbol): Unit
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.

Inherited from
Reporter
def sourceLines(pos: SourcePosition, diagnosticLevel: String)(using Context): (List[String], List[String], Int)

Get the sourcelines before and after the position, as well as the offset for rendering line numbers

Get the sourcelines before and after the position, as well as the offset for rendering line numbers

Returns

(lines before error, lines after error, line numbers offset)

Inherited from
MessageRendering

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

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

Returns

string stripped of ANSI escape codes

Inherited from
MessageRendering

Summary of warnings and errors

Summary of warnings and errors

Inherited from
Reporter
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)

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

Inherited fields