def stmts

bolt@1.27.0.0 · src/syntax/tree.bend:353

import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import 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

Uses (3)

Used by (1)