DeadAccumulator.params: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/dead_accumulator.bend as DeadAccumulator Lines 91-123 of bend-lint-rules@0.2.0.0/performance/dead_accumulator.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/dead_accumulator.bend&start_line=91&end_line=123 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 # The findings about the parameters among `nodes`, a definition's, onto `out`; `at` is the place of the first. def params( nodes: List<&2, Lint.Node>, +loop: Lint.Node, +target: String, +name: String, +at: U32, out: List<&2, Lint.Finding> ) -> List<&2, Lint.Finding>: match nodes: case Nil{}: out case Con{Lint.Node{Lint.Parameter{b, q}, pn, ps, pk, pf}, rest}: params( rest, loop, target, name, (at + 1: U32), Lists.onto( &2, Lint.Finding, Lint.finding( Lint.Information{}, is_dead(q, Lint.visit(~Owner, ~U32, ~use.visit, Owner{target, at, b}, [loop])), ps, message(pn, name) ), out ) ) case Con{node, rest}: params(rest, loop, target, name, at, out) Uses (15): 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=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Finding 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=Severity 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=finding 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-rules@0.2.0.0/performance/dead_accumulator.bend&name=Owner https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/dead_accumulator.bend&name=is_dead https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/dead_accumulator.bend&name=message https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/dead_accumulator.bend&name=use.visit