Fuel.check.go: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/pedantic/fuel.bend as Fuel Lines 167-178 of bolt@1.27.0.0/src/rules/pedantic/fuel.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/pedantic/fuel.bend&start_line=167&end_line=178 import Base import bolt@1.27.0.0/src/finding.bend as F import bolt@1.27.0.0/src/syntax/tree.bend as Tree import bolt@1.27.0.0/src/syntax/bind.bend as Bind # each top-level statement, walked as its own def def check.go(root: Tree.Node, +fs: List<&2, Fuel>, +path: String) -> List<&2, F.Finding>: match root: case Tree.NCons{Tree.Stmt{kind, +kids, body}, rest}: +self = own(Bind.declared(kids)) +head = calls(kids, fs, self, path) +inner = calls(body, fs, self, path) List.concat(&2, F.Finding, [head, inner, check.go(rest, fs, path)]) case Tree.NCons{h, rest}: check.go(rest, fs, path) case other: Nil{} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.concat 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/finding.bend&name=Finding https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/pedantic/fuel.bend&name=Fuel https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/pedantic/fuel.bend&name=calls https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/pedantic/fuel.bend&name=own 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