def declared.is_name

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

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

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{}

Uses (2)

Used by (1)