def at

bolt@1.27.0.0 · src/rules/suspicious/fromrev.bend:27

import bolt@1.27.0.0/src/rules/suspicious/fromrev.bend as Fromrev
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

27# a token of text tt, then these: do the four open the shape?
28def at(+tt: String, toks: List<&2, Lex.Tok>) -> Bool:
29  match toks:
30    case Con{Lex.Tok{k1, +aa, l1, c1}, Con{Lex.Tok{k2, +bb, l2, c2}, Con{Lex.Tok{k3, +dd, l3, c3}, rest}}}:
31      shape(tt, aa, bb, dd)
32    case other:
33      False{}

Uses (5)

Used by (1)