moonrockz/gleam-parser/diagnostic does not have a README file
#alias(new, deprecated="Use `Diagnostic(...)` instead")
fn Diagnostic::Diagnostic(code~ : String, severity~ : Severity, title~ : String, message~ : String, span~ : SrcSpan, kind? : String, labels? : Array[Label], text? : String, hint? : String?) -> Diagnostictest {
let d = @diagnostic.Diagnostic(
code="GL-SCAN-001",
severity=Error,
title="Syntax error",
message="I don't know what this character means",
span=@span.SrcSpan::from_ints(2, 3).unwrap(),
)
debug_inspect(d.is_error(), content="true")
debug_inspect(d.labels.length(), content="0")
}fn description(code : String) -> String?Install
Download zipParser and parsing utilities for the Gleam programming language in MoonBit