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 astro::extract_astro_style_regions;pub use astro::extract_astro_template_regions;pub use css::ThemeScan;pub use css::ThemeTokenDef;pub use css::extract_apply_tokens;pub use css::extract_apply_tokens_located;pub use css::extract_css_module_exports;pub use css::extract_css_var_reads_located;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_in_js::CssInJsObjectSheets;pub use css_in_js::CssInJsToken;pub use css_in_js::CssInJsTokenDef;pub use css_in_js::CssInJsTokenOrigin;pub use css_in_js::TokenConsumerHit;pub use css_in_js::css_in_js_object_sheets;pub use css_in_js::css_in_js_theme_consumers;pub use css_in_js::css_in_js_theme_token_defs;pub use css_in_js::css_in_js_token_consumers;pub use css_in_js::css_in_js_token_defs;pub use css_in_js::css_in_js_virtual_stylesheet;pub use css_in_js::panda_style_value_consumers;pub use css_in_js::panda_token_call_consumers;pub use css_metrics::compute_css_analytics;pub use css_metrics::parse_css_color_rgb;pub use glimmer::is_glimmer_file;pub use glimmer::strip_glimmer_templates;pub use mdx::extract_mdx_statements;pub use sfc::SourceRegion;pub use sfc::extract_sfc_scripts;pub use sfc::extract_sfc_styles;pub use sfc::extract_sfc_template_regions;pub use sfc::is_sfc_file;pub use sfc_css::scoped_unused_classes;pub use sfc_css::sfc_preprocessor_virtual_stylesheet;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_
in_ js - CSS-in-JS analytics front-ends (CSS program Phases 3b / 3c / 3d).
- 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§
- Angular
Template Member Access Fact - A member name referenced from an Angular template surface.
- Angular
This Spread Fact - Opaque Angular
{ ...this }forwarding marker. - Class
Heritage Info - Additional heritage metadata for an exported class.
- Dynamic
Custom Element Render Fact - Opaque marker for a dynamic custom-element render site.
- Dynamic
Import Info - A dynamic
import()call. - Dynamic
Import Pattern - A dynamic import with a partially resolved pattern.
- Export
Info - An export declaration.
- Factory
Call Member Access Fact - A member access on a static factory call result.
- Factory
FnMember Access Fact - A member access on a value returned by an imported free-function factory.
- Factory
Return Export - An exported free-function factory proven to return one class instance.
- Fluent
Chain Member Access Fact - A member access on a fluent chain rooted at a static factory call.
- Fluent
Chain NewMember Access Fact - A member access on a fluent chain rooted at a
newexpression. - Import
Info - An import declaration.
- Instance
Export Binding Fact - An exported value whose runtime instance targets a local class or interface.
- 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.
- Playwright
Fixture Alias Fact - A Playwright fixture wrapper alias declared by
mergeTestsor.extend. - Playwright
Fixture Definition Fact - A Playwright fixture definition declared by a typed
test.extend<T>(). - Playwright
Fixture Type Fact - A nested Playwright fixture binding declared by a fixture type alias.
- Playwright
Fixture UseFact - A member access on a Playwright fixture object inside a test callback.
- 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.
- Semantic
Fact - A typed extraction fact for cross-layer analysis.
- Visibility
Tag - Visibility tag from JSDoc/TSDoc comments that suppresses unused-export detection.
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.