def check.role

bolt@1.27.0.0 · src/rules/suspicious/empty.bend:368

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

368# the rule, told the file's role (src/role.bend): a law or proof file is
369# skipped
370def check.role(rr: Role.Role, ss: Src.Src) -> List<&2, F.Finding>:
371  Src.Src{path, text, toks, tree, bound, items} = ss
372  Lazy.stop(List<&2, F.Finding>, Role.is_law_file(rr), [], _u => walk(T.sig(toks), path, False{}))

Uses (9)

Used by (1)