def hits.cont

bolt@1.27.0.0 · src/rules/suspicious/concat.bend:333

import bolt@1.27.0.0/src/rules/suspicious/concat.bend as Concat
import Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

333# the findings on a continuation call's arguments
334def hits.cont(
335  as: List<&2, Tree.Node>,
336  +accs: List<&2, String>,
337  +lets: List<&2, Let>,
338  +path: String,
339  acc: List<&2, F.Finding>
340) -> List<&2, F.Finding>:
341  match as:
342    case Nil{}:
343      List.reverse(&2, F.Finding, acc)
344    case Con{+a, rest}:
345      hits.cont(rest, accs, lets, path, hit.cont(seen(a, lets), accs, path, acc))

Uses (8)

Used by (1)