def by_name.one

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

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

211# an item or constructor into the index by its name's key; other binders pass
212def by_name.one(+name: String, line: U32, col: U32, kk: Bind.BindKind, ii: Index) -> Index:
213  match kk:
214    case Bind.KItem{}:
215      idx.put(path(depth(), hash(name, 0)), ii, Entry{name, line, col, Bind.KItem{}})
216    case Bind.KCtor{}:
217      idx.put(path(depth(), hash(name, 0)), ii, Entry{name, line, col, Bind.KCtor{}})
218    case _other:
219      ii

Uses (9)

Used by (1)