def check.role
bolt@1.27.0.0 · src/rules/suspicious/prefix.bend:289
import bolt@1.27.0.0/src/rules/suspicious/prefix.bend as Prefix
import Base
import bolt@1.27.0.0/src/src.bend as Src
import bolt@1.27.0.0/src/role.bend as Role
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/rules/tokens.bend as T
289
290
291def check.role(rr: Role.Role, ss: Src.Src) -> List<&2, F.Finding>:
292 Src.Src{path, text, toks, tree, bound, items} = ss
293 Lazy.stop(List<&2, F.Finding>, Role.is_law_file(rr), [], _u => walk(T.sig(toks), path))