def line.of

bolt@1.27.0.0 · src/syntax/tree.bend:68

import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

68def line.of(mm: Maybe<&2, Lex.Tok>) -> U32:
69  match mm:
70    case None{}:
71      0
72    case Some{Lex.Tok{k, t, l, c}}:
73      l

Uses (3)

Used by (2)