LoopInvariantCall.branch: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/loop_invariant_call.bend as LoopInvariantCall Lines 185-193 of bend-lint-rules@0.2.0.0/performance/loop_invariant_call.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/loop_invariant_call.bend&start_line=185&end_line=193 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # The branch a node below `path` is in: the innermost case above it, or the definition's body (the last of `path`). def branch(path: List<&2, Lint.Above>, last: Maybe<&2, Lint.Node>) -> Maybe<&2, Lint.Node>: match path: case Nil{}: last case Con{Lint.Above{Lint.Node{Lint.Case{}, n, s, k, f}, at}, rest}: Some{Lint.Node{Lint.Case{}, n, s, k, f}} case Con{Lint.Above{p, at}, rest}: branch(rest, Some{p}) Uses (5): 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=bend-lint-api@0.2.0.0/linter/lint.bend&name=Above 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