DiagnosticsSuite

Diagnostics Suite

Complements DiagnosticsBuffer with additional query functionality. Represents a collection of diagnostics that are related and can be summarized.

Inheritors

Properties

Link copied to clipboard
abstract val count: UInt

Count of diagnostics included in this suite of results.

Link copied to clipboard
open val fatal: Boolean

Whether this suite represents a fatal failure.

Link copied to clipboard
abstract val severity: Severity

Maximum severity level of reported diagnostics.

Functions

Link copied to clipboard
abstract fun all(): Sequence<DiagnosticInfo>

Return a sequence of all reported diagnostic info records for the lifetime of this buffer.

Link copied to clipboard
abstract fun clear()

Clear all held diagnostics.

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun dirty(lang: String? = null): Boolean

Indicate whether this buffer has received diagnostics of type lang, or of any type if null is provided.

Link copied to clipboard
abstract fun query(consume: Boolean = false, criteria: Predicate<DiagnosticInfo>): Sequence<DiagnosticInfo>

Return a sequence of all reported diagnostic info records for the lifetime of this buffer that match the given criteria.

abstract fun query(lang: String, tool: String? = null, consume: Boolean = false): Sequence<DiagnosticInfo>

Return a sequence of all reported diagnostic info records for the lifetime of this buffer that match the given language and/or tool.