abstract class Reporter
extends ReporterResult

This interface provides methods to issue information, warning and error messages.

Constructors

Reporter ( )

Members

type ErrorHandler = MessageContainer => Context => Unit
[+] private var _truncationOK : Boolean

Whether very long lines can be truncated. This exists so important debugging information (like printing the classpath) is not rendered invisible due to...

Whether very long lines can be truncated. This exists so important debugging information (like printing the classpath) is not rendered invisible due to the max message length.

var errorCount : Int
private var errors : List [ Error ]
private var incompleteHandler : ErrorHandler
private var reportedFeaturesUseSites : Set [ Symbol ]
val unreportedWarnings : HashMap [ String, Int ]
var warningCount : Int
[+] private def _truncationOK_= ( x$1: Boolean ) : Unit

Whether very long lines can be truncated. This exists so important debugging information (like printing the classpath) is not rendered invisible due to...

Whether very long lines can be truncated. This exists so important debugging information (like printing the classpath) is not rendered invisible due to the max message length.

def allErrors : List [ Error ]
protected def countString ( n: Int , elements: String ) : String

Returns a string meaning "n elements".

Returns a string meaning "n elements".

def doReport ( m: MessageContainer ) ( implicit ctx: Context ) : Unit

Report a diagnostic

Report a diagnostic

def errorCount_= ( x$1: Int ) : Unit
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?

private def errors_= ( x$1: List [ Error ] ) : Unit
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.

def hasErrors : Boolean
def hasPending : Boolean

Does this reporter contain not yet reported errors or warnings?

Does this reporter contain not yet reported errors or warnings?

def hasWarnings : Boolean
def incomplete ( m: MessageContainer ) ( implicit ctx: Context ) : Unit
private def incompleteHandler_= ( x$1: ErrorHandler ) : Unit
def isHidden ( m: MessageContainer ) ( implicit ctx: Context ) : Boolean

Should this diagnostic not be reported at all?

Should this diagnostic not be reported at all?

def isReportedFeatureUseSite ( featureTrait: Symbol ) : Boolean
def printSummary ( implicit ctx: Context ) : Unit

Print the summary of warnings and errors

Print the summary of warnings and errors

def removeBufferedMessages ( implicit ctx: Context ) : List [ MessageContainer ]

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

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

def report ( m: MessageContainer ) ( implicit ctx: Context ) : Unit
def reportNewFeatureUseSite ( featureTrait: Symbol ) : Unit
def summary : String

Summary of warnings and errors

Summary of warnings and errors

def truncationOK : Boolean
def warningCount_= ( x$1: Int ) : Unit
def withIncompleteHandler ( handler: ErrorHandler ) ( op: => T ) : T
def withoutTruncating ( body: => T ) : T