def check.go

bolt@1.27.0.0 · src/rules/pedantic/strict.bend:118

import bolt@1.27.0.0/src/rules/pedantic/strict.bend as Strict
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

118def check.go(ds: List<&2, Calls.Def>, +path: String, acc: List<&2, List<&2, F.Finding>>) -> List<&2, F.Finding>:
119  match ds:
120    case Nil{}:
121      List.concat(&2, F.Finding, List.reverse(&2, List<&2, F.Finding>, acc))
122    case Con{Calls.Def{+name, +sig, body}, rest}:
123      check.go(rest, path,
124        Lazy.stop(List<&2, F.Finding>, Calls.exempt(path, sig), [],
125          _u => walk(body, name, path, False{}, False{})) <> acc)

Uses (10)

Used by (1)