Module analysis

Source
Expand description

Semantic static and dynamic analysis of the source code.

Re-exports§

pub use call::*;
pub use completion::*;
pub use code_action::*;
pub use color_expr::*;
pub use doc_highlight::*;
pub use link_expr::*;
pub use stats::*;
pub use definition::*;
pub use signature::*;
pub use semantic_tokens::*;

Modules§

call
Hybrid analysis for function calls.
code_action
Provides code actions for the document.
color_expr
Analyze color expressions in a source file.
completion
Provides completions for the document.
definition
Linked definition analysis
doc_highlight
Analyze related expressions to highlight in a source file.
link_expr
Analyze link expressions in a source file.
semantic_tokens
Semantic tokens (highlighting) support for LSP.
signature
Analysis of function signatures.
stats
Statistics about the analyzers

Structs§

Analysis
The analysis data holds globally.
AnalysisGlobalCaches
A global (compiler server spanned) cache for all level of analysis results of a module.
AnalysisGlobalWorkers
Shared workers to limit resource usage
AnalysisLocalCaches
A local (lsp request spanned) cache for all level of analysis results of a module.
AnalysisRevCache
A revision-managed (per input change) cache for all level of analysis results of a module.
AnalysisRevLock
A lock for revision.
LocalContext
The local context for analyzers. In addition to the shared context, it also holds mutable local caches.
LocalContextGuard
The local context guard that performs gc once dropped.
LspQuerySnapshot
A snapshot for LSP queries.
ModuleAnalysisLocalCache
A local cache for module-level analysis results of a module.
RateLimiter
A rate limiter on some (cpu-heavy) action
SearchCtx
The context for searching in the workspace.
SharedContext
The shared analysis context for analyzers.

Traits§

LspWorldExt
Extension trait for typst::World.
PeriscopeProvider
The periscope provider.