Runner for tests/lean/interactive server tests. Put here to avoid repeated elaboration overhead
per test.
- freshPtr : USize
- knownPtrs : Std.TreeMap USize USize compare
Instances For
@[reducible, inline]
Equations
Instances For
def
Lean.Server.Test.Runner.Client.NormalizeM.run
{α : Type}
(x : NormalizeM α)
(s : NormalizeState)
:
α
Equations
- x.run s = StateT.run' x s
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- info : Lsp.RpcRef
- subexprPos : String
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- i.normalize = do let __do_lift ← Lean.Server.Test.Runner.Client.normalizedRef i.info pure { info := __do_lift, subexprPos := i.subexprPos, diffStatus? := i.diffStatus? }
Instances For
- type : Widget.TaggedText SubexprInfo
- val? : Option (Widget.TaggedText SubexprInfo)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- type : Widget.TaggedText SubexprInfo
- ctx : Lsp.RpcRef
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
structure
Lean.Server.Test.Runner.Client.InteractiveGoalextends Lean.Server.Test.Runner.Client.InteractiveGoalCore :
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- goals : Array InteractiveGoal
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- gs.normalize = do let __do_lift ← Array.mapM (fun (x : Lean.Server.Test.Runner.Client.InteractiveGoal) => x.normalize) gs.goals pure { goals := __do_lift }
Instances For
structure
Lean.Server.Test.Runner.Client.InteractiveTermGoalextends Lean.Server.Test.Runner.Client.InteractiveGoalCore :
- range : Lsp.Range
- term : Lsp.RpcRef
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- strict {α β : Type} : α → StrictOrLazy α β
- lazy {α β : Type} : β → StrictOrLazy α β
Instances For
instance
Lean.Server.Test.Runner.Client.instFromJsonStrictOrLazy
{α✝ β✝ : Type}
[FromJson α✝]
[FromJson β✝]
:
FromJson (StrictOrLazy α✝ β✝)
def
Lean.Server.Test.Runner.Client.instFromJsonStrictOrLazy.fromJson
{α✝ β✝ : Type}
[FromJson α✝]
[FromJson β✝]
:
Json → Except String (StrictOrLazy α✝ β✝)
Equations
- One or more equations did not get rendered due to their size.
Instances For
instance
Lean.Server.Test.Runner.Client.instToJsonStrictOrLazy
{α✝ β✝ : Type}
[ToJson α✝]
[ToJson β✝]
:
ToJson (StrictOrLazy α✝ β✝)
def
Lean.Server.Test.Runner.Client.instToJsonStrictOrLazy.toJson
{α✝ β✝ : Type}
[ToJson α✝]
[ToJson β✝]
:
StrictOrLazy α✝ β✝ → Json
Equations
- Lean.Server.Test.Runner.Client.instToJsonStrictOrLazy.toJson (Lean.Server.Test.Runner.Client.StrictOrLazy.strict a) = Lean.Json.mkObj [("strict", Lean.toJson a)]
- Lean.Server.Test.Runner.Client.instToJsonStrictOrLazy.toJson (Lean.Server.Test.Runner.Client.StrictOrLazy.lazy a) = Lean.Json.mkObj [("lazy", Lean.toJson a)]
Instances For
- expr : Widget.TaggedText SubexprInfo → MsgEmbed
- goal : InteractiveGoal → MsgEmbed
- widget (wi : WidgetInstance) (alt : Widget.TaggedText MsgEmbed) : MsgEmbed
- trace (indent : Nat) (cls : Name) (msg : Widget.TaggedText MsgEmbed) (collapsed : Bool) (children : StrictOrLazy (Array (Widget.TaggedText MsgEmbed)) Lsp.RpcRef) : MsgEmbed
Instances For
@[reducible, inline]
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.Test.Runner.Client.normalizeInteractiveDiagnostics
(diags : Array InteractiveDiagnostic)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
- type : Option (Widget.TaggedText SubexprInfo)
- exprExplicit : Option (Widget.TaggedText SubexprInfo)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- kind : GoToKind
- info : Lsp.RpcRef
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- query : String
- msg : Widget.TaggedText MsgEmbed
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
- subexpr (info : SubexprInfo) : HighlightedSubexprInfo
- highlighted : HighlightedSubexprInfo
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lean.Server.Test.Runner.Client.instToJsonHighlightedSubexprInfo.toJson Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.highlighted = Lean.toJson "highlighted"
Instances For
Equations
- Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.highlighted.normalize = pure Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.highlighted
- (Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.subexpr i).normalize = do let __do_lift ← i.normalize pure (Lean.Server.Test.Runner.Client.HighlightedSubexprInfo.subexpr __do_lift)
Instances For
- expr : Widget.TaggedText HighlightedSubexprInfo → HighlightedMsgEmbed
- goal : InteractiveGoal → HighlightedMsgEmbed
- widget (wi : WidgetInstance) (alt : Widget.TaggedText HighlightedMsgEmbed) : HighlightedMsgEmbed
- trace (indent : Nat) (cls : Name) (msg : Widget.TaggedText HighlightedMsgEmbed) (collapsed : Bool) (children : StrictOrLazy (Array (Widget.TaggedText HighlightedMsgEmbed)) Lsp.RpcRef) : HighlightedMsgEmbed
- highlighted : HighlightedMsgEmbed
Instances For
Test-only instances
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.Test.Runner.printOutputLn j = do let __do_lift ← Lean.Server.Test.Runner.patchUris j IO.eprintln __do_lift
Instances For
- uri : Lsp.DocumentUri
- synced : Bool
- lineNo : Nat
- lastActualLineNo : Nat
- pos : Lsp.Position
- method : String
- params : String
- versionNo : Nat
- requestNo : Nat
Instances For
@[reducible, inline]
Equations
Instances For
Equations
- act.run init = discard (StateT.run act init)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.Test.Runner.logResponse
{α : Type u_1}
(method : String)
[ToJson α]
(p : α)
(β : Type := Json)
[FromJson β]
[ToJson β]
(logParam : Bool := true)
:
Equations
- Lean.Server.Test.Runner.logResponse method p β logParam = discard (Lean.Server.Test.Runner.requestWithLoggedResponse method p β logParam)
Instances For
def
Lean.Server.Test.Runner.rpcRequestWithLoggedResponse
{α : Type u_1}
(method : Name)
[ToJson α]
(p : α)
(β : Type)
[FromJson β]
[ToJson β]
(logParam : Bool := true)
(normalize : β → Client.NormalizeM β := pure)
:
RunnerM β
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Server.Test.Runner.logRpcResponse
{α : Type u_1}
(method : Name)
[ToJson α]
(p : α)
(β : Type := Json)
[FromJson β]
[ToJson β]
(logParam : Bool := true)
(normalize : β → Client.NormalizeM β := pure)
:
Equations
- Lean.Server.Test.Runner.logRpcResponse method p β logParam normalize = discard (Lean.Server.Test.Runner.rpcRequestWithLoggedResponse method p β logParam normalize)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Server.Test.Runner.processWaitFor = do let s ← get let __discr ← liftM (Lean.Lsp.Ipc.waitForMessage s.params) have x : Unit := __discr Lean.Server.Test.Runner.setSynced
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.