DiagnosticsContainer
Diagnostics Container
Simple container type which holds records complying with DiagnosticInfo; functions as both a DiagnosticsReceiver and DiagnosticsBuffer. This container is thread-safe and can be locked to prevent further writes. Under the hood, it uses a simple ConcurrentLinkedQueue and atomics, so it is always safe but not the most performant choice possible.
Generally speaking, diagnostics are reported in cases where the engine intends to crash before continuing (compiler errors, warnings in strict mode).
Types
Functions
Return a sequence of all reported diagnostic info records for the lifetime of this buffer.
Return a sequence of all reported diagnostic info records for the lifetime of this buffer that match the given criteria.
Return a sequence of all reported diagnostic info records for the lifetime of this buffer that match the given language and/or tool.
Report a single diagnostic record to the receiver.
Report an iterable of diagnostic records to the receiver.
Report a sequence of diagnostic records to the receiver.
Report one or more individual diagnostic record(s) to the receiver.