Structured representation of a single diagnostic message returned
by the Quarto parser. Pretty-printed output is generated on demand
by the format()/print() methods (which hand the structured
fields back to the Rust renderer).
Slots
kindOne of
"error","warning","info","note".codeOptional error code (e.g.
"Q-1-1"), orNA.titleBrief title.
problemOptional problem statement as a list
list(format = "plain" | "markdown", text = <chr>), orNULL.detailsList of detail records, each a list with
kind,content(same shape asproblem), and optionallocation.hintsCharacter vector of hint strings.
locationOptional source location, a named list with
file,start_offset,start_row,start_column,end_offset,end_row,end_column.NULLif no location is attached.source_textOriginal input text the parser saw. Carried so the diagnostic can be re-rendered against its source.
source_filenameFilename shown in the rendered output.