Nav.candidates.via: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/nav.bend as Nav Lines 401-416 of bolt@1.27.0.0/src/lsp/nav.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/nav.bend&start_line=401&end_line=416 import Base import bolt@1.27.0.0/src/syntax/outline.bend as Outline import bolt@1.27.0.0/src/syntax/word.bend as Word 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/path.bend as Path import bolt@1.27.0.0/src/lsp/proto.bend as Proto # `Alias.re` completes from the file behind the alias; anything else from the # document, its aliases and Base def candidates.via( ~fs: F.Files, imp: Maybe<&2, String>, items: List<&2, Outline.Item>, docs: List<&2, Docs.Doc>, uri: String, +prefix: String, locals: List<&2, Outline.Item> ) -> IO(List<&2, Outline.Item>): match imp: case Some{rel}: starting_in(~fs, docs, Path.join(Path.dir(Proto.path(uri)), rel), Word.rest(prefix), Word.head(prefix) ++ ".") case None{}: unqualified(~fs, items, docs, prefix, locals) Uses (15): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/docs.bend&name=Doc https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/files/service.bend&name=Files https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/nav.bend&name=starting_in https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/nav.bend&name=unqualified https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/path.bend&name=dir https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/path.bend&name=join https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/proto.bend&name=path https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/outline.bend&name=Item https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/word.bend&name=head https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/word.bend&name=rest