def marks

bolt@1.27.0.0 · src/noqa.bend:196

import bolt@1.27.0.0/src/noqa.bend as Noqa
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

196# the marks among the tokens, in order
197def marks(toks: List<&2, Lex.Tok>) -> List<&2, Mark>:
198  match toks:
199    case Nil{}:
200      Nil{}
201    case Con{t, rest}:
202      List.append(&2, Mark, mark.of(t), marks(rest))

Uses (5)

Used by (1)