def lines

bolt@1.27.0.0 · src/rules/suspicious/unused.bend:19

import bolt@1.27.0.0/src/rules/suspicious/unused.bend as Unused
import 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)

Uses (3)

Used by (1)