def declared.go

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

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

Uses (4)

Used by (2)