Expand description
Parsing and extraction engine for fallow codebase intelligence.
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, HTML asset reference extraction, and incremental caching of parse results.
Re-exports§
pub use astro::extract_astro_frontmatter;pub use css::ThemeScan;pub use css::ThemeTokenDef;pub use css::extract_apply_tokens;pub use css::extract_css_module_exports;pub use css::scan_theme_blocks;pub use css_classes::MarkupClassScan;pub use css_classes::MarkupClassToken;pub use css_classes::is_edit_distance_one;pub use css_classes::is_typo_edit;pub use css_classes::scan_markup_class_tokens;pub use css_metrics::compute_css_analytics;pub use glimmer::is_glimmer_file;pub use glimmer::strip_glimmer_templates;pub use mdx::extract_mdx_statements;pub use sfc::extract_sfc_scripts;pub use sfc::extract_sfc_styles;pub use sfc::is_sfc_file;pub use sfc_css::scoped_unused_classes;pub use sfc_css::sfc_virtual_stylesheet;pub use tailwind::TailwindArbitraryUse;pub use tailwind::scan_tailwind_arbitrary_values;
Modules§
- astro
- Astro component frontmatter extraction.
- cache
- Incremental parse cache with bitcode serialization.
- css
- CSS/SCSS file parsing and CSS Module class name extraction.
- css_
classes - Markup CSS-class reference scanning and class-name similarity.
- css_
metrics - Structural CSS analytics computed from the parsed CSS syntax tree.
- flags
- Feature flag detection via lightweight Oxc AST visitor.
- glimmer
- Helpers for Glimmer component files (
.gts/.gjs). - graphql
- GraphQL document parsing.
- html
- HTML file parsing for script, stylesheet, and Angular template references.
- iconify
- Static Iconify icon-string extraction (issue #608).
- inventory
- Function inventory walker for
fallow coverage upload-inventory. - mdx
- MDX import/export statement extraction.
- sfc
- Vue/Svelte Single File Component (SFC) script and style extraction.
- sfc_css
- Dead scoped-CSS class detection for Vue/Svelte single-file components.
- suppress
- Inline suppression comment parsing.
- tailwind
- Tailwind CSS arbitrary-value detection. Tailwind CSS arbitrary-value detection.
- visitor
- Visitor utilities for AST extraction.
Structs§
- Class
Heritage Info - Additional heritage metadata for an exported class.
- Dynamic
Import Info - A dynamic
import()call. - Dynamic
Import Pattern - A dynamic import with a partially resolved pattern.
- Export
Info - An export declaration.
- Import
Info - An import declaration.
- Local
Type Declaration - A module-scope declaration that can be used as a TypeScript type.
- Member
Access - A static member access expression (e.g.,
Status.Active,MyClass.create()). - Member
Info - A member of an enum, class, or namespace.
- Module
Info - Extracted module information from a single file.
- Parse
Result - Result of parsing all files, including incremental cache statistics.
- Public
Signature Type Reference - A reference from an exported symbol’s public signature to a type name.
- 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.
- Visibility
Tag - Visibility tag from JSDoc/TSDoc comments that suppresses unused-export detection.
Constants§
- ANGULAR_
THIS_ SPREAD_ SENTINEL - Sentinel
objectfor aMemberAccessrecorded when a class body spreadsthisinto an object literal ({ ...this }, the Angular “headless pattern” convention that forwards every signal input/output into a behavior pattern). Theunused-component-input/unused-component-outputdetectors treat its presence as a whole-component abstain, since every member is consumed opaquely through the spread. - ANGULAR_
TPL_ SENTINEL - Sentinel value used as the
objectfield inMemberAccessentries produced by the Angular template scanner. The analysis phase checks imports for entries with this sentinel and merges them into the component’sself_accessed_membersset. - FACTORY_
CALL_ SENTINEL - Synthetic member-access object prefix for static-factory call returns.
- FLUENT_
CHAIN_ NEW_ SENTINEL - Synthetic member-access object prefix for fluent chains rooted at a
newexpression. - FLUENT_
CHAIN_ SENTINEL - Synthetic member-access object prefix for fluent-builder chain credit.
- INSTANCE_
EXPORT_ SENTINEL - Synthetic member-access object used to carry exported-instance bindings.
- PLAYWRIGHT_
FIXTURE_ ALIAS_ SENTINEL - Synthetic member-access object prefix for Playwright fixture wrapper aliases.
- PLAYWRIGHT_
FIXTURE_ DEF_ SENTINEL - Synthetic member-access object prefix for typed Playwright fixtures.
- PLAYWRIGHT_
FIXTURE_ TYPE_ SENTINEL - Synthetic member-access object prefix for exported Playwright fixture type aliases.
- PLAYWRIGHT_
FIXTURE_ USE_ SENTINEL - Synthetic member-access object prefix for Playwright fixture member uses.
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, includes complexity).
- parse_
single_ file - Parse a single file and extract module information (without complexity).
- parse_
source_ to_ module - Parse source text into a
ModuleInfo.