Diagnostic¶
See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnostic
Constructors¶
create¶
new ref create(
range': LspPositionRange val,
severity': I64 val,
message': String val)
: Diagnostic ref^
Parameters¶
- range': LspPositionRange val
- severity': I64 val
- message': String val
Returns¶
- Diagnostic ref^
from_error¶
Parameters¶
- err: Error val
Returns¶
- Diagnostic val^
Public fields¶
let range: LspPositionRange val¶
let severity: I64 val¶
let message: String val¶
let related_information: Array[DiagnosticRelatedInformation val] ref¶
Public Functions¶
to_json¶
fun box to_json()
: (F64 val | I64 val | Bool val |
None val | String val | JsonArray val |
JsonObject val)