mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
|
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::gh_pages / build-gh-pages (push) Waiting to run
This PR adds comprehensive documentation for all public items in `crates/tinymist-query/src/syntax/expr.rs` following Rust documentation conventions. ## Changes Made The following public items now have proper documentation comments: - **`ExprRoute`** type alias - Documents its purpose as a mapping structure for file identifiers to lexical scopes during expression analysis routing - **`expr_of`** function - Describes its role in analyzing expressions within source files and producing expression information including resolves, imports, docstrings, and lexical scoping data - **`ExprWorker`** struct - Explains its functionality as a worker for processing expressions during source file analysis, handling expression checking, scope management, symbol resolution, and docstring collection ## Documentation Style All documentation follows Rust conventions by: - Using third person singular verbs - Focusing on the purpose and functionality rather than implementation details - Providing clear, concise descriptions of what each item does The code has been formatted with `cargo fmt` and compiles successfully after the changes. Fixes #2048. <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
tinymist-query
Note: this crate is under development. it currently doesn't ensure stable APIs, and heavily depending on some unstable crates.
This crate provides a set of APIs to query the information about the source code. Currently it provides:
- language queries defined by the Language Server Protocol.
Documentation
See Crate Docs.
Also see Developer Guide: Tinymist Query.