def completions.go
bolt@1.27.0.0 · src/lsp/proto.bend:242
import bolt@1.27.0.0/src/lsp/proto.bend as Proto
import Base
import emerging-ezjson@1.2.0.0/src/value.bend as J
import bolt@1.27.0.0/src/syntax/outline.bend as Outline
import bolt@1.27.0.0/src/lsp/enc.bend as Enc
242def completions.go(
243 items: List<&2, Outline.Item>,
244 +cc: Enc.Cols,
245 +line: U32,
246 +start: U32,
247 +col: U32
248) -> List<&2, J.Json>:
249 match items:
250 case Nil{}:
251 Nil{}
252 case Con{item, t}:
253 completion(cc, item, line, start, col) <> completions.go(t, cc, line, start, col)