def lone
import bolt@1.27.0.0/src/rules/suspicious/concat.bend as Concatimport 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
42# a chain that is exactly one lowercase name: its token
43def lone(nn: Tree.Node) -> Maybe<&2, Lex.Tok>:
44 match nn:
45 case Tree.NCons{h, Tree.NNil{}}:
46 lone.name(h)
47 case other:
48 None{}