def declared.is_name
import bolt@1.27.0.0/src/syntax/bind.bend as Bindimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
70# a name that can be declared: plain, capitalized or dotted
71def declared.is_name(kk: Lex.TokKind) -> Bool:
72 match kk:
73 case Lex.TName{}:
74 True{}
75 case Lex.TUpper{}:
76 True{}
77 case Lex.TDotted{}:
78 True{}
79 case other:
80 False{}