def is_name

bolt@1.27.0.0 · src/syntax/lex.bend:352

import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import 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{}

Uses (2)

Used by (9)