Nav.at.site: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/nav.bend as Nav Lines 150-168 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=150&end_line=168 import Base import bolt@1.27.0.0/src/syntax/outline.bend as Outline import bolt@1.27.0.0/src/syntax/bind.bend as Bind 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 # a binder of the document is answered from the document, and a use as the # binder resolved it; nothing at all falls back to the word under the cursor # (a half-typed name) def at.site( ~fs: F.Files, site: Maybe<&2, Bind.Site>, binds: List<&2, Bind.Bind>, items: List<&2, Outline.Item>, docs: List<&2, Docs.Doc>, +uri: String, name: String ) -> IO(Maybe<&2, Found>): match site: case Some{Bind.SBind{b}}: IO.pure(Maybe<&2, Found>, Some{Here{uri, b}}) case Some{Bind.SUse{Bind.Use{n, _l, _c, tg}}}: at.target(~fs, tg, n, binds, items, docs, uri) case None{}: resolve(~fs, docs, uri, name) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure 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=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=Found https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/nav.bend&name=at.target https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/nav.bend&name=resolve https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&name=Bind https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&name=Site https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/bind.bend&name=Use https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/outline.bend&name=Item