def silenced

bolt@1.27.0.0 · src/noqa.bend:235

import bolt@1.27.0.0/src/noqa.bend as Noqa
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy

235# a mark of the file at the path, on the line, names the code
236def silenced(ms: List<&2, Marks>, +path: String, +line: U32, +code: String) -> Bool:
237  match ms:
238    case Nil{}:
239      False{}
240    case Con{Marks{p, mks}, rest}:
241      Lazy.or_else(Lazy.and_then(String.eq(p, path), _u => on_line(mks, line, code)),
242        _v => silenced(rest, path, line, code))

Uses (9)

Used by (1)