Expand description
Parsing and extraction engine for the fallow dead code analyzer.
This crate handles all file parsing: JS/TS via Oxc, Vue/Svelte SFC extraction, Astro frontmatter, MDX import/export extraction, CSS Module class name extraction, and incremental caching of parse results.
Re-exports§
pub use astro::extract_astro_frontmatter;pub use css::extract_css_module_exports;pub use mdx::extract_mdx_statements;pub use sfc::extract_sfc_scripts;pub use sfc::is_sfc_file;
Modules§
- astro
- Astro component frontmatter extraction.
- cache
- Incremental parse cache with bincode serialization.
- css
- CSS/SCSS file parsing and CSS Module class name extraction.
- mdx
- MDX import/export statement extraction.
- sfc
- Vue/Svelte Single File Component (SFC) script extraction.
- suppress
- Inline suppression comment parsing.
- visitor
- Oxc AST visitor for extracting imports, exports, re-exports, and member accesses.
Structs§
- Dynamic
Import Info - A dynamic
import()call. - Dynamic
Import Pattern - A dynamic import with a pattern that can be partially resolved (e.g., template literals).
- Export
Info - An export declaration.
- Import
Info - An import declaration.
- Member
Access - A static member access expression (e.g.,
Status.Active,MyClass.create()). - Member
Info - A member of an enum or class.
- Module
Info - Extracted module information from a single file.
- Parse
Result - Result of parsing all files, including incremental cache statistics.
- ReExport
Info - A re-export declaration.
- Require
Call Info - A
require()call.
Enums§
- Export
Name - Export identifier.
- Imported
Name - How a symbol is imported.
- Member
Kind - The kind of member.
Functions§
- compute_
line_ offsets - Compute a table of line-start byte offsets from source text.
- parse_
all_ files - Parse all files in parallel, extracting imports and exports. Uses the cache to skip reparsing files whose content hasn’t changed.
- parse_
from_ content - Parse from in-memory content (for LSP).
- parse_
single_ file - Parse a single file and extract module information.