def key.parts

bolt@1.27.0.0 · src/lsp/checker/names.bend:34

import bolt@1.27.0.0/src/lsp/checker/names.bend as Names
import Base
import bolt@1.27.0.0/src/syntax/outline.bend as Outline

34# an item's key, among the file's items
35def key.parts(items: List<&2, Outline.Item>, +name: String, parts: List<&2, String>) -> String:
36  match parts:
37    case Con{+head, Con{rr, more}}:
38      key.of(Outline.import_path(items, head), name, String.join(rr <> more, "."))
39    case other:
40      name

Uses (6)

Used by (1)