def leaves

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

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

Uses (5)

Used by (2)