Rewalk.visit: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk Lines 871-885 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=871&end_line=885 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 # each case arm on its own, so two arms are not one path def visit(nn: Tree.Node, +self: String, +lp: List<&2, String>, +path: String) -> List<&2, F.Finding>: match nn: case Tree.NCons{Tree.Stmt{Tree.SCase{}, kids, +body}, rest}: +here = local(body, self, lp, path) List.concat(&2, F.Finding, [here, visit(body, self, lp, path), visit(rest, self, lp, path)]) case Tree.NCons{Tree.Stmt{kind, +kids, +body}, rest}: List.concat(&2, F.Finding, [visit(kids, self, lp, path), visit(body, self, lp, path), visit(rest, self, lp, path)]) case Tree.NCons{Tree.Group{open, +kids, close}, rest}: List.concat(&2, F.Finding, [visit(kids, self, lp, path), visit(rest, self, lp, path)]) case Tree.NCons{h, rest}: visit(rest, self, lp, path) case other: Nil{} 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=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/rewalk.bend&name=local 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