def of

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

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

54# the names bend gives a file's items, when its text could be read
55def of(mm: Maybe<&2, String>) -> Maybe<&2, List<&2, String>>:
56  match mm:
57    case None{}:
58      None{}
59    case Some{text}:
60      +items = Outline.items(text)
61      Some{keys(items, items, [])}

Uses (5)

Used by (1)