AppendInLoop.argument: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/append_in_loop.bend as AppendInLoop Lines 166-193 of bend-lint-rules@0.2.0.0/performance/append_in_loop.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/append_in_loop.bend&start_line=166&end_line=193 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 an argument of a call of the loop `name`, if it appends; `before` and `after` are the call's other # nodes. def argument( arg: Lint.Node, loop: Loop, name: String, before: List<&2, Lint.Node>, after: List<&2, Lint.Node> ) -> List<&2, Lint.Finding>: match arg: case Lint.Node{ Lint.Application{}, n, Some{span}, Con{Lint.Node{Lint.Reference{callee}, rn, rs, rk, rf}, +parts}, f }: appended( Append.of(callee, Lists.length(&2, Lint.Node, parts)), parts, loop, name, span, before, after ) case _: [] 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=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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=Syntax https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/lists.bend&name=length https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/append_in_loop.bend&name=Append.of https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/append_in_loop.bend&name=Loop https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/append_in_loop.bend&name=appended