Package: org.codehaus.groovy.control.messages

## [Java] Record Diagnostic

- org.codehaus.groovy.control.messages.Diagnostic

-     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).

  Parameters:
    `file` - the source unit name, or `null` when the message has none
    `line` - the 1-based line, or `-1` when the message has no position
    `column` - the 1-based column, or `-1` when unknown
    `text` - the message text, which may span several lines
  Since:
    6.0.0

- - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Record` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`