Bind.items: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/syntax/bind.bend as Bind Lines 148-160 of bolt@1.27.0.0/src/syntax/bind.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&start_line=148&end_line=160 import Base import bolt@1.27.0.0/src/syntax/tree.bend as Tree # the defs, laws, types and constructors of a source def items(root: Tree.Node, acc: List<&2, String>) -> List<&2, String>: match root: case Tree.NCons{Tree.Stmt{Tree.SDef{}, kids, body}, rest}: items(rest, push_name(declared(kids), acc)) case Tree.NCons{Tree.Stmt{Tree.SLaw{}, kids, body}, rest}: items(rest, push_name(declared(kids), acc)) case Tree.NCons{Tree.Stmt{Tree.SType{}, kids, body}, rest}: items(rest, ctors(body, push_name(declared(kids), acc))) case Tree.NCons{other, rest}: items(rest, acc) case other: acc Uses (7): 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/bind.bend&name=ctors https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&name=declared https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&name=push_name 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