fix(library/init/lean/compiler/ir/emitutil): missing FnBody.case
This commit is contained in:
parent
dbe2bebc06
commit
f84ea28923
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ local infix ` >> `:50 := Function.comp
|
|||
partial def collectFnBody : FnBody → Collector
|
||||
| (FnBody.vdecl x t _ b) := collectVar x t >> collectFnBody b
|
||||
| (FnBody.jdecl j xs v b) := collectJP j xs >> collectParams xs >> collectFnBody v >> collectFnBody b
|
||||
| (FnBody.case _ _ alts) := λ s, alts.foldl (λ s alt, collectFnBody alt.body s) s
|
||||
| e := if e.isTerminal then id else collectFnBody e.body
|
||||
|
||||
def collectDecl : Decl → Collector
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue