struct

Codespan::Reporting::Diagnostic

Inherits Struct < Value < Object

Constructors

error
Source
help
Source
new(severity : Severity, code : String | Nil = nil, message : String = "", labels : Array(Label) = [] of Label, notes : Array(String) = [] of String)
Source
note
Source
warning
Source

Instance methods

code
Source
labels
Source
message
Source
notes
Source
severity
Source
with_code(code) : Diagnostic
Source
with_label(label : Label) : Diagnostic
Source
with_labels(labels : Array(Label)) : Diagnostic
Source
with_message(message) : Diagnostic
Source
with_note(note) : Diagnostic
Source
with_notes(notes : Array(String)) : Diagnostic
Source