def Draft.reasons.step

bend-lint-rules@0.2.0.0 · lib/linter/directives.bend:371

import bend-lint-rules@0.2.0.0/lib/linter/directives.bend as Directives
import Base

371# The reason so far (last first) and those before it (last first), with `word` read: the label starts another.
372def Draft.reasons.step(
373  dash: Bool,
374  word: String,
375  read: List<&2, String> & List<&2, String>
376) -> List<&2, String>
377  & List<&2, String>:
378  match dash read:
379    case True{} Tuple{part, out}:
380      ([], Draft.part(part, out))
381    case False{} Tuple{part, out}:
382      (word <> part, out)

Uses (6)

Used by (1)