Enables the deferred checks recorded while elaborating Verso docstrings, such as forward references.
Equations
- Lean.Doc.instTypeNamePostponedName = Lean.Doc.inst✝
A syntax kind name that a deferred check will confirm exists.
- name : Name
The kind's name.
Instances For
Equations
- Lean.Doc.instTypeNamePostponedKind = Lean.Doc.inst✝
A handler that carries out a deferred docstring check, given the check's data. Each handler is
expected to be applied to a single type name, rather than be able to handle any Dynamic.
Equations
Instances For
Maps the name of a deferred check's data (the value of Dynamic.typeName) to the declaration of its
DeferredCheckHandler. The data type is the dispatch key, so at most one handler is registered per
type.
Builtin deferred check handlers, for bootstrapping. Maps a check's data type name to its handler, which is available before the defining module is imported.
Adds a builtin deferred check handler.
Should be run during initialization.
Equations
- Lean.Doc.DeferredCheck.addBuiltinHandler key impl = ST.Ref.modify Lean.Doc.DeferredCheck.builtinHandlers fun (x : Lean.NameMap Lean.Doc.DeferredCheckHandler) => x.insert key impl
Instances For
Runs the deferred docstring checks owned by modules satisfying inPackage.
Returns the checks that failed together with the module they belong to and the error that each
produced. #[] indicates success.
Only checks that satisfy shouldCheck are run.
Equations
- One or more equations did not get rendered due to their size.