def AaLex.after_arrow

bend-osdev-apparmor@0.1.0.0 · token.bend:147

import bend-osdev-apparmor@0.1.0.0/token.bend as Token
import Base

147# the last token is the word "->": a '{' after it starts a pattern
148# (change_profile -> {a,b}), not a block
149def AaLex.after_arrow(st: AaLex) -> Bool:
150  match st:
151    case AaLex{m, l, p, out, ok, bad}:
152      match out:
153        case Nil{}:
154          False{}
155        case Con{t, rest}:
156          AaTok.is(t, "->")

Uses (4)

Used by (1)