def cont.go
bolt@1.27.0.0 · src/rules/suspicious/concat.bend:371
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/rules/calls.bend as Calls
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
371def cont.go(ds: List<&2, Calls.Def>, +path: String, acc: List<&2, List<&2, F.Finding>>) -> List<&2, F.Finding>:
372 match ds:
373 case Nil{}:
374 List.concat(&2, F.Finding, List.reverse(&2, List<&2, F.Finding>, acc))
375 case Con{Calls.Def{name, +sig, +body}, rest}:
376 cont.go(rest, path,
377 Lazy.stop(List<&2, F.Finding>, Calls.exempt(path, sig), [],
378 _u => cwalk(body, conts(sig), accs(sig, body), [], path)) <> acc)