def h.node.kind
yaml-for-bend@0.1.1.0 · parse.bend:452
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
452def h.node.kind(k: T.Tok, +block: Bool, +indentless: Bool, +anchor: Maybe<&2, String>, +tag: Maybe<&2, Written>, +bare: Bool, +at: T.Mark, +t: T.Token, +ps: Ps) -> PStep:
453 match k:
454 case T.AliasTok{name}:
455 when(PStep, bare, u => PGo{take(emit(pop(ps), AliasEv{name}, at))}, u => node.rest(block, indentless, anchor, tag, bare, at, t, ps))
456 case T.AnchorTok{name}:
457 when(PStep, is_none.s(anchor), u => PGo{take(goto(ps, SNode{block, indentless, Some{name}, tag, Some{at}}))},
458 u => node.rest(block, indentless, anchor, tag, bare, at, t, ps))
459 case T.TagTok{h, s}:
460 when(PStep, is_none.w(tag), u => PGo{take(goto(ps, SNode{block, indentless, anchor, Some{Written{h, s}}, Some{at}}))},
461 u => node.rest(block, indentless, anchor, tag, bare, at, t, ps))
462 case _:
463 node.rest(block, indentless, anchor, tag, bare, at, t, ps)