def when

bend-lint-pack@0.1.1.0 · common.bend:71

import bend-lint-pack@0.1.1.0/common.bend as Common
import Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint

71# One diagnostic when `hit`, else none.
72def when(hit: Bool, d: Lint.Diag) -> List<&2, Lint.Diag>:
73  match hit:
74    case True{}:
75      [d]
76    case False{}:
77      []

Uses (3)

Used by (5)