def AaItB.flush

bend-osdev-apparmor@0.1.0.0 · parse.bend:134

import bend-osdev-apparmor@0.1.0.0/parse.bend as Parse
import Base
import bend-osdev-apparmor@0.1.0.0/token.bend as T
import bend-osdev-apparmor@0.1.0.0/error.bend as E

134# the pending tokens become an item: 0 a statement, 1 a block opening, 2 an assignment
135def AaItB.flush(b: AaItB, kind: Nat, line: U32) -> AaItB:
136  match b:
137    case AaItB{+f, m, pe, pd, out}:
138      AaItB{f, AaImNorm{}, Nil{}, pd, Con{AaItB.flush.item(kind, T.AaTok.rev_onto(pe, Nil{}), E.AaSrc{f, line}), out}}

Uses (8)

Used by (3)