def found

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

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

23# an item, when there is one, in a document
24def found(mm: Maybe<&2, Outline.Item>, uri: String) -> Maybe<&2, Found>:
25  match mm:
26    case None{}:
27      None{}
28    case Some{item}:
29      Some{Found{uri, item}}

Uses (4)

Used by (2)