def h.fmap.empty

yaml-for-bend@0.1.1.0 · parse.bend:566

import yaml-for-bend@0.1.1.0/parse.bend as Parse
import Base
import yaml-for-bend@0.1.1.0/token.bend as T

566# After a key with no KeyTok: a ":" on a later line is still its value (a
567# flow mapping's key may run over lines), else the value is empty.
568def h.fmap.empty(+m: T.Mark, +t: T.Token, +ps: Ps) -> PStep:
569  when(PStep, tok.is(t, VALUE()), u => PGo{take(goto(ps, SFMapAfterValue{m, tok.end(t)}))},
570    u => PGo{empty(goto(ps, SFMapKey{m, False{}}), tok.start(t))})

Uses (14)

Used by (1)