A single compiler diagnostic (error or warning) produced by Typst.
Diagnostics appear in the warnings of a successful compile/export (see
AshTypst.CompileResult and AshTypst.BundleResult) and in the diagnostics
of an AshTypst.CompileError.
Fields
:severity—:erroror:warning:message— human-readable description of the problem:span— anAshTypst.Spanlocating the relevant source, ornilwhen the diagnostic is not tied to a source location:trace— a list ofAshTypst.TraceItemdescribing the chain of function calls that led to the diagnostic:hints— a list of strings suggesting how to resolve the problem