def judged

bend-lint-rules@0.2.0.0 · performance/list_index_loop.bend:254

import bend-lint-rules@0.2.0.0/performance/list_index_loop.bend as ListIndexLoop
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

254# The finding about a call of the walker `walker`, with `args`.
255def judged(
256  walker: Maybe<&2, Walker>,
257  +args: List<&2, Lint.Node>,
258  callee: String,
259  owner: Lint.Node,
260  path: List<&2, Lint.Above>,
261  span: Maybe<&2, Lint.Span>
262) -> List<&2, Lint.Finding>:
263  match walker:
264    case Some{Walker{+at, through}}:
265      judged.list(
266        binder(List.get(&2, Lint.Node, args, at)),
267        Lint.Node.name(List.get(&2, Lint.Node, args, at)),
268        callee,
269        through,
270        owner,
271        path,
272        span
273      )
274    case None{}:
275      []

Uses (12)

Used by (1)