def put_stmt
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport Base
267# a finished statement lands in the body of the frame below
268def put_stmt(stack: List<&2, Frame>, nn: Node) -> List<&2, Frame>:
269 match stack:
270 case Con{FStmt{indent, kids, body}, rest}:
271 FStmt{indent, kids, NCons{nn, body}} <> rest
272 case Con{FRoot{body}, rest}:
273 FRoot{NCons{nn, body}} <> rest
274 case other:
275 other