The hierarchy of Lean snapshot types
Snapshot after elaboration of the entire command.
- cmdState : Elab.Command.State
Resulting elaboration state.
Instances For
Equations
- Lean.Language.Lean.instToSnapshotTreeCommandFinishedSnapshot = { toSnapshotTree := fun (s : Lean.Language.Lean.CommandFinishedSnapshot) => { element := s.toSnapshot, children := #[] } }
State after a command has been parsed.
- stx : Syntax
Syntax tree of the command.
- parserState : Parser.ModuleParserState
Resulting parser state.
- elabSnap : SnapshotTask DynamicSnapshot
Snapshot for incremental reporting and reuse during elaboration, type dependent on specific elaborator.
- finishedSnap : SnapshotTask CommandFinishedSnapshot
State after processing is finished.
- reportSnap : SnapshotTask SnapshotTree
Additional, untyped snapshots used for reporting, not reuse.
- tacticCache : IO.Ref Elab.Tactic.Cache
Cache for
save
; to be replaced with incrementality. - nextCmdSnap? : Option (SnapshotTask CommandParsedSnapshot)
Next command, unless this is a terminal command.
Instances For
State after successful importing.
- cmdState : Elab.Command.State
The resulting initial elaboration state.
- firstCmdSnap : SnapshotTask CommandParsedSnapshot
First command task (there is always at least a terminal command).
Instances For
State after the module header has been processed including imports.
- result? : Option HeaderProcessedState
State after successful importing.
Instances For
Equations
- One or more equations did not get rendered due to their size.
State after successfully parsing the module header.
- parserState : Parser.ModuleParserState
Resulting parser state.
- processedSnap : SnapshotTask HeaderProcessedSnapshot
Header processing task.
Instances For
State after the module header has been parsed.
- ictx : Parser.InputContext
Parser input context supplied by the driver, stored here for incremental parsing.
- stx : Syntax
Resulting syntax tree.
- result? : Option HeaderParsedState
State after successful parsing.
- cancelTk? : Option IO.CancelToken
Cancellation token for interrupting processing of this run.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Shortcut accessor to the final header state, if successful.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Initial snapshot of the Lean language processor: a "header parsed" snapshot.