def from_line.stop

bolt@1.27.0.0 · src/rules/digest.bend:268

import bolt@1.27.0.0/src/rules/digest.bend as Digest
import Base
import bolt@1.27.0.0/src/syntax/outline.bend as Outline

268# does the first item sit on or after a line (from_line stops there)?
269def from_line.stop(items: List<&2, Outline.Item>, +at: U32) -> Bool:
270  match items:
271    case Nil{}:
272      True{}
273    case Con{Outline.Item{kk, nn, +ln, sig, doc, pp}, rest}:
274      U32.is_le(at, ln)

Uses (5)

Used by (2)