def lone_key
import bolt@1.27.0.0/src/rules/table.bend as Tableimport 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
108# the chain is exactly one lowercase name: that use's key
109def lone_key(nn: Tree.Node) -> String:
110 match nn:
111 case Tree.NCons{Tree.Leaf{Lex.Tok{Lex.TName{}, +t, +l, +c}}, Tree.NNil{}}:
112 key(t, l, c)
113 case other:
114 ""