def finish

bolt@1.27.0.0 · src/syntax/lex.bend:315

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

315# the tokens once the chars are over, the last one flushed
316def finish(st: St) -> List<&2, Tok>:
317  St{mode, kind, line, col, sl, sc, buf, toks} = st
318  List.reverse(&2, Tok, flush(kind, sl, sc, buf, toks))

Uses (5)

Used by (1)