Printable idea sheet
analysis_barrel
reqlan rq/extension/language/support/language-server-rust.rq:156
Katz 0.041
The open-buffer analysis of language_server_rust is a barrel module.
`crates/reqlan-lsp/src/analysis.rs` declares the feature modules and re-exports their surface. It holds no feature logic.
Each language feature is one module under `crates/reqlan-lsp/src/analysis/`:
- `model`: the parsed open document, its parse inputs, and its name, reference, and token stores.
- `text`: span and text primitives shared by all features.
- `refs`: the walk over parsed references.
- `tokens`: semantic token collection and encoding.
- `paths`: authored path location and neighbor file queries.
- `diagnostics`: parse, reference, and import errors.
- `links`: document links.
- `definition`: go-to-definition targets.
- `hover`: hover hits.
- `references`: highlights, find-references, and rename edits.
- `completion`: attribute key and value completion.
- `inlays`: inbound referencer hints.
- `selection`: expand selection over the parse tree.
- `sites`: file, wildcard, and search site payloads for host commands.
The barrel is the only surface: other modules import from `crate::analysis`, not from the feature modules.
Feature modules share no state beyond the document model.
Each feature module carries `rq:...` backlinks to the ideas it implements; the barrel header carries the links for the whole concern.
Related: language_server_rust, open_file_algorithm.
- implementation
- analysis.rs, model.rs, text.rs, refs.rs, tokens.rs, paths.rs, diagnostics.rs, links.rs, definition.rs, hover.rs, references.rs, completion.rs, inlays.rs, selection.rs, sites.rs
Interactive page: analysis_barrel