Skip to content

LspPosition

[Source]

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

class val LspPosition

Constructors

create

[Source]

new val create(
  line': USize val,
  character': USize val)
: LspPosition val^

Parameters

Returns


from_ast_pos

[Source]

new val from_ast_pos(
  position: Position val)
: LspPosition val^

Parameters

Returns


Public Functions

to_json

[Source]

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

Returns