Skip to main content

Module analyzer

Module analyzer 

Source
Expand description

Orchestrates the full LSP session

Structs§

Definition
Contains source definition location mappings returned by an LSP textDocument/definition call.
Method
Represents a method extracted from a rust-analyzer completion list.

Functions§

find_rust_analyzer
Locates the rust-analyzer binary.
parse_definition
Normalizes the location array or object mapping payload returned by the LSP server into a Definition.
parse_methods
Filters, sanitizes, and deduplicates the raw JSON arrays returned by the LSP completion query.
query_definition
Queries rust-analyzer for the precise upstream source file declaration layout of a specific method.
query_methods
Queries rust-analyzer for all available methods on a given type type expression.