def by_name
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
221# the file's items and constructors, keyed by name, in source order
222def by_name(binds: List<&2, Bind.Bind>) -> Index:
223 match binds:
224 case Nil{}:
225 INone{}
226 case Con{Bind.Bind{name, line, col, kind, _note}, rest}:
227 by_name.one(name, line, col, kind, by_name(rest))