def lines
import bolt@1.27.0.0/src/rules/suspicious/unused.bend as Unusedimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
19# the lines of these tokens, onto acc
20def lines(ts: List<&2, Lex.Tok>, acc: List<&2, U32>) -> List<&2, U32>:
21 match ts:
22 case Nil{}:
23 acc
24 case Con{Lex.Tok{k, t, l, c}, rest}:
25 l <> lines(rest, acc)