def declared.key

bolt@1.27.0.0 · src/syntax/bind.bend:106

import bolt@1.27.0.0/src/syntax/bind.bend as Bind
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

106# a keyword leaf? its kind is read, never its text
107def declared.key(nn: Tree.Node) -> Bool:
108  match nn:
109    case Tree.Leaf{Lex.Tok{k, t, l, c}}:
110      declared.is_key(k)
111    case other:
112      False{}

Uses (4)

Used by (1)