def as_items

bolt@1.27.0.0 · src/lsp/nav.bend:378

import bolt@1.27.0.0/src/lsp/nav.bend as Nav
import Base
import bolt@1.27.0.0/src/syntax/outline.bend as Outline
import bolt@1.27.0.0/src/syntax/bind.bend as Bind
import bolt@1.27.0.0/src/lsp/proto.bend as Proto

378# a binder as a candidate: its note stands for a signature
379def as_items(ls: List<&2, Bind.Bind>) -> List<&2, Outline.Item>:
380  match ls:
381    case Nil{}:
382      Nil{}
383    case Con{Bind.Bind{name, line, col, kind, note}, t}:
384      Outline.Item{Outline.ILocal{}, name, line, note, Proto.kind_name(kind), ""} <> as_items(t)

Uses (5)

Used by (1)