def stmts
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport Base
353# how many statements sit open on the stack
354def stmts(stack: List<&2, Frame>) -> Nat:
355 match stack:
356 case Con{FStmt{indent, kids, body}, rest}:
357 Succ{stmts(rest)}
358 case other:
359 0n