def quoted.done

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

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

944def quoted.done(q: Qs, +st: Sc, +double: Bool, start: T.Mark) -> Step:
945  match q:
946    case QsDone{cur, acc}:
947      Go{emit(sc.with.cur(st, cur), T.ScalarTok{String.reverse(acc), Bool.pick(T.Style, double, T.Double{}, T.Single{})}, start)}
948    case QsBad{e}:
949      fail.with(st, e)
950    case _:
951      fail(st, "found unexpected end of stream while scanning a quoted scalar", start)

Uses (13)

Used by (1)