def next_col

bend-lint-rules@0.2.0.0 · layout/format.bend:787

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base

787def next_col(lex: Lex, tail: Maybe<&2, U32>, col: U32, len: U32) -> U32:
788  match lex tail:
789    case Newline{} _:
790      0
791    case _ Some{t}:
792      t
793    case _ None{}:
794      (col + len: U32)

Uses (4)

Used by (1)