MutableReportList

Helper class that allows reports to be added dynamically, as well as counting the number of each severity.

This class is not thread-safe and requires external synchronization.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The number of reports matching ReportLevel.ERROR.

Link copied to clipboard

The number of reports matching ReportLevel.HINT.

Link copied to clipboard

The number of reports matching ReportLevel.INFO.

Link copied to clipboard

The number of reports matching ReportLevel.WARNING.

Functions

Link copied to clipboard
fun add(report: Report)

Adds given report and updates the corresponding severity counter.

Link copied to clipboard
fun clear()

Removes all reports and resets all counters.

Link copied to clipboard

Returns an immutable copy of this report list.