def resolve

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

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
import bolt@1.27.0.0/src/lsp/files/service.bend as F
import bolt@1.27.0.0/src/lsp/docs.bend as Docs
import bolt@1.27.0.0/src/lsp/proto.bend as Proto

95# the item a name in a document names
96def resolve(~fs: F.Files, +docs: List<&2, Docs.Doc>, +uri: String, name: String) -> IO(Maybe<&2, Found>):
97  do IO<Maybe<&2, Found>>:
98    text : String <- load(~fs, docs, uri, Proto.path(uri))
99    among(~fs, Outline.items(text), docs, uri, name)

Uses (12)

Used by (2)