def check.broken

bolt@1.27.0.0 · src/rules/style/wrap.bend:61

import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrap
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy

61# the header already breaks across lines: some token of it is a newline
62def check.broken(toks: List<&2, Lex.Tok>) -> Bool:
63  match toks:
64    case Nil{}:
65      False{}
66    case Con{Lex.Tok{kk, _tx, _ln, _cl}, rest}:
67      Lazy.or_else(Lex.is_nl(kk), _u => check.broken(rest))

Uses (5)

Used by (1)