Dotty Documentation

0.6.0-bin-SNAPSHOT

abstract class Reporter
extends Object with 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 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
[+] def allErrors : List [ Error ]
[+] protected def countString ( n: Int , elements: String ) : String

Returns a string meaning "n elements".

[+] def doReport ( m: MessageContainer ) ( implicit ctx: Context ) : Unit

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?

[+] def flush ( ) ( implicit ctx: Context ) : Unit

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?

[+] def hasWarnings : Boolean
[+] def incomplete ( m: MessageContainer ) ( implicit ctx: Context ) : Unit
[+] def isHidden ( m: MessageContainer ) ( implicit ctx: Context ) : Boolean

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

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

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

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