def emit.span

yaml-for-bend@0.1.1.0 · scan.bend:390

import yaml-for-bend@0.1.1.0/scan.bend as Scan
import Base
import yaml-for-bend@0.1.1.0/token.bend as T

390# A token from +start+ to +end+.
391def emit.span(st: Sc, tok: T.Tok, start: T.Mark, end: T.Mark) -> Sc:
392  match st:
393    case Sc{cur, ind, inds, flow, allowed, tab, keys, out, n, max}:
394      Sc{cur, ind, inds, flow, allowed, tab, keys, T.Token{tok, start, end} <> out, 1n+n, max}

Uses (6)

Used by (3)