def is_name
import bolt@1.27.0.0/src/syntax/lex.bend as Leximport Base
352# any identifier: a name, a keyword, a dotted or a capitalized one, `_`
353def is_name(kk: TokKind) -> Bool:
354 match kk:
355 case TName{}:
356 True{}
357 case TUpper{}:
358 True{}
359 case TDotted{}:
360 True{}
361 case TWild{}:
362 True{}
363 case TKey{}:
364 True{}
365 case other:
366 False{}