public record Diagnostic
extends Record
A format-neutral view of a Message: what it says and, when known, the source and position it applies to. ErrorFormat renders its non-default layouts from this, so a new layout needs no change to the message classes (GROOVY-12312).
file - the source unit name, or null when the message has noneline - the 1-based line, or -1 when the message has no positioncolumn - the 1-based column, or -1 when unknowntext - the message text, which may span several lines