Represents information about what control effects a do block has.
- breaks : Bool
The
doblock maybreak. - continues : Bool
The
doblock maycontinue. - returnsEarly : Bool
The
doblock mayreturnearly. - numRegularExits : Nat
The number of regular exit paths the
doblock has. Corresponds to the number of jumps to an ambient join point. - reassigns : NameSet
The variables that are reassigned in the
doblock.
Instances For
Equations
Instances For
@[implicit_reducible]
Equations
Equations
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
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[reducible, inline]
A handler for inferring ControlInfo from a doElem syntax. Register with @[doElem_control_info parserName].
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implemented_by Lean.Elab.Do.mkControlInfoElemAttributeUnsafe]
Registers a ControlInfo inference handler for the given doElem syntax node kind.
A handler should have type ControlInfoHandler (i.e. TSyntax \doElem → TermElabM ControlInfo). For pure handlers, use fun stx => return ControlInfo.pure`.
partial def
Lean.Elab.Do.InferControlInfo.ofOptionSeq
(stx? : Option (TSyntax `Lean.Parser.Term.doSeq))
: