def check.role

bolt@1.27.0.0 · src/rules/style/param.bend:69

import bolt@1.27.0.0/src/rules/style/param.bend as Param
import Base
import bolt@1.27.0.0/src/role.bend as Role
import bolt@1.27.0.0/src/src.bend as Src
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/syntax/bind.bend as Bind
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy

69# the rule, told the file's role (src/role.bend): a proof file is skipped
70def check.role(rr: Role.Role, ss: Src.Src) -> List<&2, F.Finding>:
71  Src.Src{path, text, toks, tree, bound, items} = ss
72  Bind.Bound{binds, uses, scopes} = bound
73  Lazy.stop(List<&2, F.Finding>, Role.is_proof(rr), [], _u => check.go(binds, path))

Uses (8)

Used by (1)