ListIndexLoop.Walker.helpers: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/list_index_loop.bend as ListIndexLoop Lines 94-114 of bend-lint-rules@0.2.0.0/performance/list_index_loop.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/list_index_loop.bend&start_line=94&end_line=114 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint import bend-lint-api@0.2.0.0/shared/lists.bend as Lists import bend-lint-api@0.2.0.0/shared/names.bend as Names # The definitions among `nodes` that give a parameter to a Base walker, as walkers, onto `out`. def Walker.helpers( nodes: List<&2, Lint.Node>, out: List<&2, Names.Named> ) -> List<&2, Names.Named>: match nodes: case Nil{}: out case Con{Lint.Node{Lint.Definition{t, u}, n, s, k, f}, rest}: +owner = {Lint.Node{Lint.Definition{t, u}, n, s, k, f}: Lint.Node} Walker.helpers( rest, Lists.onto( &2, Names.Named, Lint.visit(~Lint.Node, ~Names.Named, ~Walker.visit, owner, [owner]), out ) ) case Con{node, rest}: Walker.helpers(rest, out) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Syntax https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=visit https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/lists.bend&name=onto https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/names.bend&name=Named https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/list_index_loop.bend&name=Walker https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/list_index_loop.bend&name=Walker.visit