chore: add loop prenvention code at do-expander
This commit is contained in:
parent
1a2a089c28
commit
2384826933
1 changed files with 2 additions and 1 deletions
|
|
@ -1451,7 +1451,8 @@ mutual
|
|||
|
||||
partial def doSeqToCode : List Syntax → M CodeBlock
|
||||
| [] => do liftMacroM mkPureUnitAction
|
||||
| doElem::doElems => withRef doElem do
|
||||
| doElem::doElems => withIncRecDepth <| withRef doElem do
|
||||
checkMaxHeartbeats "'do'-expander"
|
||||
match (← liftMacroM <| expandMacro? doElem) with
|
||||
| some doElem => doSeqToCode (doElem::doElems)
|
||||
| none =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue