Derivation of EvalConfigItem #
This module defines defEvalConfigItem, which derives an EvalConfigItem object for structures.
Its main interface are the command syntaxes defined in Lean.Elab.ConfigEval.Commands.
- exact : EvalConfigItemHandlerKind
Handler is called when its key matches the configuration key exactly. The matched key is not allowed to be
Name.anonymous. - wildcard : EvalConfigItemHandlerKind
Handler is called when its key is a strict prefix of the configuration key. The matched key may be
Name.anonymous.
Instances For
- ref : Syntax
Ref for the key.
- key : Name
The key that's handled. May be anonymous for certain kinds.
- kind : EvalConfigItemHandlerKind
The kind of match this handler is looking for.
- body : Term
A function
fun cfg item => .... Constant to use for terminfo. This is added to the
HandlerTrie.Constant to use for field completion terminfo.
Instances For
Fields to not automatically synthesize handlers for, in addition to those keys already appearing in
handlers.- handlers : Array EvalConfigItemHandler
Explicitly provided handlers.
Instances For
Precompiled version of evalTermOrExprWithElab (α := Bool) that
also makes use of the cached item.bool? value.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Makes an EvalConfigItem for the structure.
Supports structures with no parameters or universes.
Equations
- One or more equations did not get rendered due to their size.