Expand description
Symbol lookups for hover and go-to-definition.
Single-file lookups walk the parsed AST. Cross-file lookups (v1.1; LSP
spec §3.4 cross-file requirement) iterate the project’s .bynk sources
to find a declaration in any unit the user might be referencing — used
when the open file lacks the symbol the user clicked on (typically
because the name was imported via uses or made available via
consumes).
Structs§
- Cross
File Symbol - A cross-file declaration lookup result: the URI of the file containing the declaration, the declaration’s source span, and the full source text of that file (returned because callers need it to convert the span to an LSP range and to build hover content).
Functions§
- describe_
agent 🔒 - describe_
capability 🔒 - describe_
firstparty_ 🔒symbol - Describe a symbol declared in the embedded first-party sources — the
bynkandbynk.cloudflareadapters and thebynk.list/bynk.map/bynk.stringstdlib. Hover and completion-doc resolution otherwise walk only the project’s files (walk_bynk_files), so stdlib/surface symbols had no surfaced signature or doc; this is the fallback after the project scan. Any---doc block on a first-party declaration rides along (viadescribe_fn/describe_type/…), once the sources carry one. - describe_
fn 🔒 - describe_
item 🔒 - describe_
provider 🔒 - describe_
service 🔒 - describe_
symbol - Build a Markdown summary of a named declaration suitable for an LSP
hover response. Returns
Noneif no declaration matches. - describe_
symbol_ cross_ file - Markdown hover content for
namefrom any project file other thancurrent_uri, plus the URI of the file that contributed it. ReturnsNoneif the name is not declared anywhere in the project. - describe_
type 🔒 - find_
declaration_ cross_ file - Find
name’s declaration in any project file other thancurrent_uri. Walkssrc_rootrecursively, parses each.bynkfile with recovery, and returns the first hit. ReturnsNoneif the name is not found anywhere in the project. - find_
declaration_ span - Return the source span of the declaration named
namein the given source text. ReturnsNoneif no declaration matches. - type_
ref_ 🔒str - unit_
reference_ 🔒spans - Slice 6b: the
(unit name, name span)of everyuses/consumestarget in the source — the clickable ranges for document links. The link’s target file is resolved by the handler through the unit→source map (ADR 0095); this only finds the spans, so it works on the live buffer regardless of the map. - walk_
bynk_ 🔒files - Recursively collect every
.bynkfile underroot. Returns an empty vector if the root is missing or unreadable.