- error: Lean.Lsp.DiagnosticSeverity
- warning: Lean.Lsp.DiagnosticSeverity
- information: Lean.Lsp.DiagnosticSeverity
- hint: Lean.Lsp.DiagnosticSeverity
Equations
- Lean.Lsp.instBEqDiagnosticSeverity = { beq := [anonymous] }
Equations
Equations
- Lean.Lsp.instFromJsonDiagnosticSeverity = { fromJson? := fun j => match Lean.Json.getNat? j with | Except.ok 1 => pure Lean.Lsp.DiagnosticSeverity.error | Except.ok 2 => pure Lean.Lsp.DiagnosticSeverity.warning | Except.ok 3 => pure Lean.Lsp.DiagnosticSeverity.information | Except.ok 4 => pure Lean.Lsp.DiagnosticSeverity.hint | x => throw (toString "unknown DiagnosticSeverity '" ++ toString j ++ toString "'") }
Equations
- Lean.Lsp.instToJsonDiagnosticSeverity = { toJson := fun x => match x with | Lean.Lsp.DiagnosticSeverity.error => 1 | Lean.Lsp.DiagnosticSeverity.warning => 2 | Lean.Lsp.DiagnosticSeverity.information => 3 | Lean.Lsp.DiagnosticSeverity.hint => 4 }
- int: Int → Lean.Lsp.DiagnosticCode
- string: String → Lean.Lsp.DiagnosticCode
Equations
- Lean.Lsp.instInhabitedDiagnosticCode = { default := Lean.Lsp.DiagnosticCode.int default }
Equations
- Lean.Lsp.instBEqDiagnosticCode = { beq := [anonymous] }
Equations
- Lean.Lsp.instFromJsonDiagnosticCode = { fromJson? := fun x => match x with | Lean.Json.num { mantissa := i, exponent := 0 } => pure (Lean.Lsp.DiagnosticCode.int i) | Lean.Json.str s => pure (Lean.Lsp.DiagnosticCode.string s) | j => throw (toString "expected string or integer diagnostic code, got '" ++ toString j ++ toString "'") }
Equations
- Lean.Lsp.instToJsonDiagnosticCode = { toJson := fun x => match x with | Lean.Lsp.DiagnosticCode.int i => Lean.Json.num (Lean.JsonNumber.fromInt i) | Lean.Lsp.DiagnosticCode.string s => Lean.Json.str s }
- unnecessary: Lean.Lsp.DiagnosticTag
- deprecated: Lean.Lsp.DiagnosticTag
Equations
Equations
- Lean.Lsp.instBEqDiagnosticTag = { beq := [anonymous] }
Equations
- Lean.Lsp.instFromJsonDiagnosticTag = { fromJson? := fun j => match Lean.Json.getNat? j with | Except.ok 1 => pure Lean.Lsp.DiagnosticTag.unnecessary | Except.ok 2 => pure Lean.Lsp.DiagnosticTag.deprecated | x => throw "unknown DiagnosticTag" }
Equations
- Lean.Lsp.instToJsonDiagnosticTag = { toJson := fun x => match x with | Lean.Lsp.DiagnosticTag.unnecessary => Lean.Json.num (Lean.JsonNumber.fromNat 1) | Lean.Lsp.DiagnosticTag.deprecated => Lean.Json.num (Lean.JsonNumber.fromNat 2) }
- location : Lean.Lsp.Location
- message : String
Equations
Equations
- Lean.Lsp.instToJsonDiagnosticRelatedInformation = { toJson := [anonymous] }
Equations
- Lean.Lsp.instFromJsonDiagnosticRelatedInformation = { fromJson? := [anonymous] }
Equations
- Lean.Lsp.instInhabitedDiagnosticRelatedInformation = { default := { location := default, message := default } }
- range : Lean.Lsp.Range
- fullRange : Lean.Lsp.Range
- severity? : Option Lean.Lsp.DiagnosticSeverity
- code? : Option Lean.Lsp.DiagnosticCode
- source? : Option String
- message : α
- tags? : Option (Array Lean.Lsp.DiagnosticTag)
instance
Lean.Lsp.instToJsonDiagnosticWith
:
{α : Type} → [inst : Lean.ToJson α] → Lean.ToJson (Lean.Lsp.DiagnosticWith α)
Equations
- Lean.Lsp.instToJsonDiagnosticWith = { toJson := [anonymous] }
instance
Lean.Lsp.instBEqDiagnosticWith
:
{α : Type} → [inst : BEq α] → BEq (Lean.Lsp.DiagnosticWith α)
Equations
- Lean.Lsp.instBEqDiagnosticWith = { beq := [anonymous] }
instance
Lean.Lsp.instFromJsonDiagnosticWith
:
{α : Type} → [inst : Lean.FromJson α] → Lean.FromJson (Lean.Lsp.DiagnosticWith α)
Equations
- Lean.Lsp.instFromJsonDiagnosticWith = { fromJson? := [anonymous] }
instance
Lean.Lsp.instInhabitedDiagnosticWith
:
{a : Type} → [inst : Inhabited a] → Inhabited (Lean.Lsp.DiagnosticWith a)
Equations
- Lean.Lsp.instInhabitedDiagnosticWith = { default := { range := default, fullRange := default, severity? := default, code? := default, source? := default, message := default, tags? := default, relatedInformation? := default } }
@[inline]
Equations
- uri : Lean.Lsp.DocumentUri
- version? : Option Int
- diagnostics : Array Lean.Lsp.Diagnostic
Equations
- Lean.Lsp.instInhabitedPublishDiagnosticsParams = { default := { uri := default, version? := default, diagnostics := default } }
Equations
- Lean.Lsp.instFromJsonPublishDiagnosticsParams = { fromJson? := [anonymous] }
Equations
- Lean.Lsp.instBEqPublishDiagnosticsParams = { beq := [anonymous] }
Equations
- Lean.Lsp.instToJsonPublishDiagnosticsParams = { toJson := [anonymous] }