def at_b

bolt@1.27.0.0 · src/rules/suspicious/prefix.bend:246

import bolt@1.27.0.0/src/rules/suspicious/prefix.bend as Prefix
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

246# a token of kind k0 and text t0, then these: the literal-first shape?
247def at_b(k0: Lex.TokKind, +t0: String, toks: List<&2, Lex.Tok>) -> Maybe<&2, String>:
248  match toks:
249    case Con{Lex.Tok{k1, +t1, l1, c1}, Con{Lex.Tok{k2, +t2, l2, c2}, Con{Lex.Tok{k3, +t3, l3, c3},
250      Con{Lex.Tok{k4, +t4, l4, c4}, Con{Lex.Tok{k5, +t5, l5, c5}, r5}}}}}:
251      at_b.go(head_b(k0, t0, t1, k2, t3, t4, t5), r5, t2)
252    case other:
253      None{}

Uses (7)

Used by (1)