def declared.go
import bolt@1.27.0.0/src/syntax/bind.bend as Bindimport Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
90# the item a statement declares: the first name after its keyword
91def declared.go(kids: Tree.Node) -> Maybe<&2, String>:
92 match kids:
93 case Tree.NCons{h, rest}:
94 declared.name(h)
95 case other:
96 None{}