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.