MissedFork.chain: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/missed_fork.bend as MissedFork Lines 403-418 of bend-lint-rules@0.2.0.0/performance/missed_fork.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/missed_fork.bend&start_line=403&end_line=418 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # The findings about the runs of lets that follow each other from `node`, a let, after `run`: each next let is the rest # of block of the one before, while its call uses no binder of the run. def chain(node: Lint.Node, +owner: Owner, run: Run) -> List<&2, Lint.Finding>: match node: case Lint.Node{Lint.Destructure{q}, n, s, Con{binder, Con{value, Con{+rest, Nil{}}}}, f}: chain( rest, owner, Run.add( bound(Lint.Node{Lint.Destructure{q}, n, s, [binder, value, rest], f}, owner), owner, run ) ) case _: Run.finding.end(run, owner) Uses (9): 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=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-rules@0.2.0.0/performance/missed_fork.bend&name=Owner https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/missed_fork.bend&name=Run https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/missed_fork.bend&name=Run.add https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/missed_fork.bend&name=Run.finding.end https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/missed_fork.bend&name=bound