def leaves
import bolt@1.27.0.0/src/syntax/tree.bend as Treeimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
119# the leaves of a tree, in order: the significant tokens when the tree is faithful
120def leaves(nn: Node) -> List<&2, Lex.Tok>:
121 List.reverse(&2, Lex.Tok, leaves.go(nn, []))