def passed

bend-lint-rules@0.2.0.0 · performance/loop_invariant_call.bend:86

import bend-lint-rules@0.2.0.0/performance/loop_invariant_call.bend as LoopInvariantCall
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

86# Whether the argument at `at` of each of `calls` is the variable of `b`.
87def passed(calls: List<&2, List<&2, Lint.Node>>, +at: Nat, +b: U32, ok: Bool) -> Bool:
88  match calls ok:
89    case _ False{}:
90      False{}
91    case Nil{} True{}:
92      True{}
93    case Con{args, rest} True{}:
94      passed(rest, at, b, passed.at(List.get(&2, Lint.Node, args, at), b))

Uses (7)

Used by (1)