def Walker.helped
bend-lint-rules@0.2.0.0 · performance/list_index_loop.bend:54
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
import bend-lint-api@0.2.0.0/shared/names.bend as Names
54def Walker.helped(
55 walked: Maybe<&2, U32>,
56 through: String,
57 owner: Lint.Node
58) -> List<&2, Names.Named<Walker>>:
59 match walked owner:
60 case Some{b} Lint.Node{Lint.Definition{t, u}, n, s, kids, f}:
61 Walker.at(Lint.parameter(kids, b), t, through)
62 case _ _:
63 []