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
- x✝.format = Std.format "[CustomInfo(" ++ Std.format x✝.value.typeName ++ Std.format ")]"
Instances For
Equations
Embeds a CoreM action in IO by supplying the information stored in info.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- info.toPPContext lctx = { env := info.env, mctx := info.mctx, lctx := lctx, opts := info.options, currNamespace := info.currNamespace, openDecls := info.openDecls }
Instances For
Equations
- info.ppSyntax lctx stx = liftM (Lean.ppTerm (info.toPPContext lctx) { raw := stx })
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.PartialTermInfo.format ctx info = Std.format "[PartialTerm] @ " ++ Std.format (Lean.Elab.formatElabInfo✝ ctx info.toElabInfo)
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Lean.Elab.CompletionInfo.format ctx info = pure (Std.format "[Completion] " ++ Std.format info.stx ++ Std.format " @ " ++ Std.format (Lean.Elab.formatStxRange✝ ctx info.stx))
Instances For
Equations
- Lean.Elab.CommandInfo.format ctx info = pure (Std.format "[Command] @ " ++ Std.format (Lean.Elab.formatElabInfo✝ ctx info.toElabInfo))
Instances For
Equations
- Lean.Elab.OptionInfo.format ctx info = pure (Std.format "[Option] " ++ Std.format info.optionName ++ Std.format " @ " ++ Std.format (Lean.Elab.formatStxRange✝ ctx info.stx))
Instances For
Equations
- Lean.Elab.ErrorNameInfo.format ctx info = pure (Std.format "[ErrorName] " ++ Std.format info.errorName ++ Std.format " @ " ++ Std.format (Lean.Elab.formatStxRange✝ ctx info.stx))
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
- info.format = Std.format "[UserWidget] " ++ Std.format info.id ++ Std.format "\n" ++ Std.format (Std.format (StateT.run' info.props { }))
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.FieldRedeclInfo.format ctx info = Std.format "[FieldRedecl] @ " ++ Std.format (Lean.Elab.formatStxRange✝ ctx info.stx)
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.Elab.ChoiceInfo.format ctx info = Std.format "[Choice] @ " ++ Std.format (Lean.Elab.formatElabInfo✝ ctx info.toElabInfo)
Instances For
Equations
- Lean.Elab.DocInfo.format ctx info = Std.format "[Doc] " ++ Std.format info.stx.getKind ++ Std.format " @ " ++ Std.format (Lean.Elab.formatElabInfo✝ ctx info.toElabInfo)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofTacticInfo i) = Lean.Elab.TacticInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofTermInfo i) = Lean.Elab.TermInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofPartialTermInfo i) = pure (Lean.Elab.PartialTermInfo.format ctx i)
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofCommandInfo i) = Lean.Elab.CommandInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofMacroExpansionInfo i) = Lean.Elab.MacroExpansionInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofOptionInfo i) = Lean.Elab.OptionInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofErrorNameInfo i) = Lean.Elab.ErrorNameInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofFieldInfo i) = Lean.Elab.FieldInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofCompletionInfo i) = Lean.Elab.CompletionInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofUserWidgetInfo i) = pure i.format
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofCustomInfo i) = pure (Std.format i)
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofFVarAliasInfo i) = pure i.format
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofFieldRedeclInfo i) = pure (Lean.Elab.FieldRedeclInfo.format ctx i)
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofDelabTermInfo i) = Lean.Elab.DelabTermInfo.format ctx i
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofChoiceInfo i) = pure (Lean.Elab.ChoiceInfo.format ctx i)
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofDocInfo i) = pure (Lean.Elab.DocInfo.format ctx i)
- Lean.Elab.Info.format ctx (Lean.Elab.Info.ofDocElabInfo i) = pure (Lean.Elab.DocElabInfo.format ctx i)
Instances For
Equations
- (Lean.Elab.PartialContextInfo.commandCtx info).format = Std.Format.text "command"
- (Lean.Elab.PartialContextInfo.parentDeclCtx n).format = Std.Format.text (toString "parent[" ++ toString n ++ toString "]")
- (Lean.Elab.PartialContextInfo.autoImplicitCtx implicits).format = Std.Format.text (toString "autoImplicits[" ++ toString implicits ++ toString "]")
Instances For
Returns the current array of InfoTrees and resets it to an empty array.
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.Elab.pushInfoLeaf t = do let __do_lift ← Lean.Elab.getInfoState if __do_lift.enabled = true then Lean.Elab.pushInfoTree (Lean.Elab.InfoTree.node t { }) else pure ()
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
This does the same job as realizeGlobalConstNoOverload; resolving an identifier
syntax to a unique fully resolved name or throwing if there are ambiguities.
But also adds this resolved name to the infotree. This means that when you hover
over a name in the source file you will see the fully resolved name in the hover info.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Similar to realizeGlobalConstNoOverloadWithInfo, except if there are multiple name resolutions then it returns them as a list.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Adds a node containing the InfoTrees generated by x to the InfoTrees in m.
If x succeeds and mkInfo yields an Info, the InfoTrees of x become subtrees of a node
containing the Info produced by mkInfo, which is then added to the InfoTrees in m.
If x succeeds and mkInfo yields an MVarId, the InfoTrees of x are discarded and a hole
node is added to the InfoTrees in m.
If x fails, the InfoTrees of x become subtrees of a node containing the Info produced by
mkInfoOnError, which is then added to the InfoTrees in m.
The InfoTrees in m are reset before x is executed and restored with the addition of a new tree
after x is executed.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Saves the current list of trees t₀, runs x to produce a new tree list t₁ and
runs mkInfoTree t₁ to get n : InfoTree and then restores the trees to be t₀ ++ [n].
Equations
- One or more equations did not get rendered due to their size.
Instances For
Run x as a new child infotree node with header given by mkInfo.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Resets the trees state t₀, runs x to produce a new trees state t₁ and sets the state to be
t₀ ++ (InfoTree.context (PartialContextInfo.commandCtx Γ) <$> t₁) where Γ is the context derived
from the monad state.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Resets the trees state t₀, runs x to produce a new trees state t₁ and sets the state to be
t₀ ++ (InfoTree.context (PartialContextInfo.parentDeclCtx Γ) <$> t₁) where Γ is the parent decl
name provided by MonadParentDecl m.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Resets the trees state t₀, runs x to produce a new trees state t₁ and sets the state to be
t₀ ++ (InfoTree.context (PartialContextInfo.autoImplicitCtx Γ) <$> t₁) where Γ is the set of
auto-implicits provided by MonadAutoImplicits m.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.getInfoHoleIdAssignment? mvarId = do let __do_lift ← Lean.Elab.getInfoState pure __do_lift.assignment[mvarId]
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
Runs x. The last info tree that is pushed while running x is assigned to mvarId. All other
pushed info trees are silently discarded.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.enableInfoTree flag = Lean.Elab.modifyInfoState fun (s : Lean.Elab.InfoState) => { enabled := flag, assignment := s.assignment, lazyAssignment := s.lazyAssignment, trees := s.trees }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.getInfoTrees = do let __do_lift ← Lean.Elab.getInfoState pure __do_lift.trees