def check.go

bolt@1.27.0.0 · src/rules/correctness/pick.bend:109

import bolt@1.27.0.0/src/rules/correctness/pick.bend as Pick
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

109def check.go(ds: List<&2, Calls.Def>, +path: String, acc: List<&2, List<&2, F.Finding>>) -> List<&2, F.Finding>:
110  match ds:
111    case Nil{}:
112      List.concat(&2, F.Finding, List.reverse(&2, List<&2, F.Finding>, acc))
113    case Con{Calls.Def{+name, +sig, body}, rest}:
114      check.go(rest, path,
115        Lazy.stop(List<&2, F.Finding>, Calls.exempt(path, sig), [],
116          _u => picks(body, name, path, False{})) <> acc)

Uses (10)

Used by (1)