def defines.named

bolt@1.27.0.0 · src/rules/correctness/put.bend:15

import bolt@1.27.0.0/src/rules/correctness/put.bend as Put
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

15# is the first token `Map.put`?
16def defines.named(toks: List<&2, Lex.Tok>) -> Bool:
17  match toks:
18    case Con{Lex.Tok{k, +t, l, c}, rest}:
19      String.eq(t, "Map.put")
20    case Nil{}:
21      False{}

Uses (4)

Used by (1)