Skip to content

Diagnostic

[Source]

See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnostic

class ref Diagnostic

Constructors

create

[Source]

new ref create(
  range': LspPositionRange val,
  severity': I64 val,
  message': String val)
: Diagnostic ref^

Parameters

Returns


from_error

[Source]

new val from_error(
  err: Error val)
: Diagnostic val^

Parameters

Returns


Public fields

let range: LspPositionRange val

[Source]


let severity: I64 val

[Source]


let message: String val

[Source]


[Source]


Public Functions

to_json

[Source]

fun box to_json()
: (F64 val | I64 val | Bool val | 
    None val | String val | JsonArray val | 
    JsonObject val)

Returns