def completion.kind

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

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

211# LSP's CompletionItemKind: function 3, module 9, enum member 20, constant 21,
212# struct 22
213def completion.kind(kk: Outline.ItemKind) -> U32:
214  match kk:
215    case Outline.IImport{}:
216      9
217    case Outline.IDef{}:
218      3
219    case Outline.ILaw{}:
220      21
221    case Outline.IType{}:
222      22
223    case Outline.ICtor{}:
224      20
225    case Outline.ILocal{}:
226      6

Uses (2)

Used by (1)