Tree.classify: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/syntax/tree.bend as Tree Lines 317-325 of bolt@1.27.0.0/src/syntax/tree.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&start_line=317&end_line=325 import Base import bolt@1.27.0.0/src/syntax/lex.bend as Lex # a statement's kind from its own tokens def classify(kids: Node) -> StmtKind: match kids: case NCons{Leaf{Lex.Tok{Lex.TKey{}, t, l, c}}, rest}: keyword_kind(t) case NCons{Leaf{Lex.Tok{Lex.TAll{}, t, l, c}}, rest}: Bool.pick(StmtKind, arrow(rest), STerm{}, SDef{}) case other: Bool.pick(StmtKind, binds_in(other), SLet{}, STerm{}) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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 https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=StmtKind https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=arrow https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=binds_in https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=keyword_kind