Expand description
File-local context analysis.
aver context is inherently multi-file: a project’s context is the
entry file and its dependency graph. This module provides the
per-file building block. CLI wraps it with dependency traversal;
the playground calls it for a single entry, so the returned
FileContext has depends listed by name but no expanded child
contexts — the caller is responsible for resolving them (or not).
Runtime-neutral: pure computation over parsed items and source text. No filesystem access, no VM, wasm-safe.
Structs§
Functions§
- build_
context_ for_ items - Build the per-file context record from parsed items and source text.
- compute_
memo_ fns - Functions that qualify for auto-memoization: pure, recursive with branching, and all parameter types memo-safe.
- is_
memo_ safe_ type - render_
context_ md - Render a
ContextSummaryas markdown — same shape as the CLI’saver context --mdfor a single-entry project. Playground uses this for the ⬇ Download as .md button so the browser and the CLI emit identical files for identical source. - summarize
- Project a full
FileContextinto a serde-serializable summary.