def defines.key

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

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

23# a keyword? a token's kind is read here, its text in the tests beside it
24def defines.key(kk: Lex.TokKind) -> Bool:
25  match kk:
26    case Lex.TKey{}:
27      True{}
28    case other:
29      False{}

Uses (2)

Used by (1)