def of_target

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

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

261# the type of a use, from what it refers to
262def of_target(tg: Bind.Target, all: Kinds, name: String, braced: Bool) -> U32:
263  match tg:
264    case Bind.TLocal{tl, tc}:
265      of_maybe_kind(kind_at(all, tl, tc), name)
266    case Bind.TItem{i}:
267      of_maybe_kind(kind_of_item(all, i), name)
268    case other:
269      by_shape(name, braced)

Uses (9)

Used by (1)