Rewalk.names: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk Lines 470-482 of bolt@1.27.0.0/src/rules/pedantic/rewalk.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/pedantic/rewalk.bend&start_line=470&end_line=482 import Base import bolt@1.27.0.0/src/syntax/lex.bend as Lex import bolt@1.27.0.0/src/syntax/tree.bend as Tree # every name under the node def names(nn: Tree.Node, +acc: List<&2, String>) -> List<&2, String>: match nn: case Tree.Leaf{Lex.Tok{Lex.TName{}, +t, l, c}}: t <> acc case Tree.Group{open, kids, close}: names(kids, acc) case Tree.Stmt{kind, kids, body}: names(body, names(kids, acc)) case Tree.NCons{h, rest}: names(rest, names(h, acc)) case other: acc Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=Tok https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=TokKind https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=Node