def is_passed.if

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

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

128# Whether `args`, the arguments of a call of `target` (if `called`), pass the binder `b` unchanged.
129def is_passed.if(called: Bool, args: List<&2, Lint.Node>, b: U32) -> Bool:
130  match called:
131    case True{}:
132      is_passed(args, b, False{})
133    case False{}:
134      False{}

Uses (5)

Used by (1)