def check.go

bolt@1.27.0.0 · src/rules/suspicious/thunk.bend:162

import bolt@1.27.0.0/src/rules/suspicious/thunk.bend as Thunk
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

162def check.go(ds: List<&2, Calls.Def>, +path: String, acc: List<&2, List<&2, F.Finding>>) -> List<&2, F.Finding>:
163  match ds:
164    case Nil{}:
165      List.concat(&2, F.Finding, List.reverse(&2, List<&2, F.Finding>, acc))
166    case Con{Calls.Def{+name, +sig, body}, rest}:
167      check.go(rest, path,
168        Lazy.stop(List<&2, F.Finding>, Calls.exempt(path, sig), [], _u => walk(body, False{}, name, path)) <> acc)

Uses (10)

Used by (1)