def kind_of_item
import bolt@1.27.0.0/src/lsp/semantic.bend as Semanticimport Base
import bolt@1.27.0.0/src/syntax/bind.bend as Bind
256# the kind of an item or constructor of the file, by name
257def kind_of_item(kk: Kinds, +name: String) -> Maybe<&2, Bind.BindKind>:
258 Kinds{_at, named} = kk
259 named.go(idx.find(path(depth(), hash(name, 0)), named), name)