Config.settings.go: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/config.bend as Config Lines 107-116 of bolt@1.27.0.0/src/config.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/config.bend&start_line=107&end_line=116 import Base import bolt@1.27.0.0/src/syntax/tree.bend as Tree import bolt@1.27.0.0/src/syntax/bind.bend as Bind # every `def x(): "level"` of a tree def settings.go(root: Tree.Node) -> List<&2, Setting>: match root: case Tree.NCons{Tree.Stmt{Tree.SDef{}, +kids, body}, rest}: +ln = Tree.line(kids) List.append(&2, Setting, setting(Bind.declared(kids), first_str(Tree.leaves(body)), ln), settings.go(rest)) case Tree.NCons{_h, rest}: settings.go(rest) case _other: Nil{} Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/config.bend&name=Setting https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/config.bend&name=first_str https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/config.bend&name=setting 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/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=leaves https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=line