Diagnostics

Diagnostic

A single diagnostic

Properties:
  • message (String) – The diagnostic message
  • code (String) – A machine-readable diagnostic id; may change between releases
  • category (String) – A description of the category of diagnostic; may change between releases
  • location (Location) –
  • notes (Array[Diagnostic]) –
Location

A single location

Properties:
  • column (Integer) – The 1-based column
  • file (String) – The file that contains the error, relative to the Coco.toml file
  • line (Integer) – The 1-based line
Range

A range in a document. The range is half-open: it includes the start but excludes the end.

Properties:
Root
Properties:diagnostics (Array[Diagnostic]) –
Severity
Enum:error, note, warning