def by_line
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
203# every binder, keyed by its line, in source order
204def by_line(binds: List<&2, Bind.Bind>) -> Index:
205 match binds:
206 case Nil{}:
207 INone{}
208 case Con{Bind.Bind{name, +line, col, kind, _note}, rest}:
209 idx.put(path(depth(), line), by_line(rest), Entry{name, line, col, kind})