def finish
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport Base
420# the tree once the tokens are over: every group and statement closes
421def finish(st: B) -> Node:
422 B{fr, stack} = st
423 +closed = close_all(stack)
424 root(end_n(stmts(closed), closed))