@[reducible, inline]
Equations
Instances For
We adopt the convention that zero-based UTF-16 positions as sent by LSP clients
are represented by Lsp.Position
while internally we mostly use String.Pos
UTF-8
offsets. For diagnostics, one-based Lean.Position
s are used internally.
character
is accepted liberally: actual character := min(line length, character)
Instances For
Equations
Equations
- Lean.Lsp.instOrdPosition = { compare := Lean.Lsp.ordPosition✝ }
Equations
Equations
- Lean.Lsp.instToJsonPosition = { toJson := Lean.Lsp.toJsonPosition✝ }
Equations
- Lean.Lsp.instFromJsonPosition = { fromJson? := Lean.Lsp.fromJsonPosition✝ }
Equations
- Lean.Lsp.instReprPosition = { reprPrec := Lean.Lsp.reprPosition✝ }
Equations
- Lean.Lsp.instBEqRange = { beq := Lean.Lsp.beqRange✝ }
Equations
- Lean.Lsp.instHashableRange = { hash := Lean.Lsp.hashRange✝ }
Equations
- Lean.Lsp.instToJsonRange = { toJson := Lean.Lsp.toJsonRange✝ }
Equations
- Lean.Lsp.instFromJsonRange = { fromJson? := Lean.Lsp.fromJsonRange✝ }
Equations
- Lean.Lsp.instOrdRange = { compare := Lean.Lsp.ordRange✝ }
Equations
- Lean.Lsp.instReprRange = { reprPrec := Lean.Lsp.reprRange✝ }