DiagnosticUnit

protected abstract class DiagnosticUnit<T> : Function1<T, DiagnosticPass.Diagnostic?> , Predicate<T>

Base class for implementing one specific diagnostic check.

The difference between this and DiagnosticPass is that diagnostic passes represent a category of diagnostics, whereas this represents one particular check (usually implemented using one boolean expression).

Parameters

T

The type of input this diagnostic unit requires as input.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun and(p0: Predicate<in T>): Predicate<T>
Link copied to clipboard
abstract operator fun invoke(p1: T): DiagnosticPass.Diagnostic?
Link copied to clipboard
open fun negate(): Predicate<T>
Link copied to clipboard
open fun or(p0: Predicate<in T>): Predicate<T>
Link copied to clipboard
override fun test(t: T): Boolean