def kind_of_item

bolt@1.27.0.0 · src/lsp/semantic.bend:256

import bolt@1.27.0.0/src/lsp/semantic.bend as Semantic
import 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)

Uses (9)

Used by (1)