Skip to main content

Module extract

Module extract 

Source
Expand description

Re-exports from fallow-extract.

All parsing/extraction logic has been moved to the fallow-extract crate. This module provides backwards-compatible re-exports so that fallow_core::extract::* paths continue to resolve.

Modules§

astro
Astro component frontmatter extraction.
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.
visitor
Oxc AST visitor for extracting imports, exports, re-exports, and member accesses.

Structs§

DynamicImportInfo
A dynamic import() call.
DynamicImportPattern
A dynamic import with a pattern that can be partially resolved (e.g., template literals).
ExportInfo
An export declaration.
ImportInfo
An import declaration.
MemberAccess
A static member access expression (e.g., Status.Active, MyClass.create()).
MemberInfo
A member of an enum or class.
ModuleInfo
Extracted module information from a single file.
ParseResult
Result of parsing all files, including incremental cache statistics.
ReExportInfo
A re-export declaration.
RequireCallInfo
A require() call.

Enums§

ExportName
Export identifier.
ImportedName
How a symbol is imported.
MemberKind
The kind of member.

Functions§

extract_astro_frontmatter
Extract frontmatter from an Astro component.
extract_css_module_exports
Extract class names from a CSS module file as named exports.
extract_mdx_statements
Extract import/export statements from MDX content.
extract_sfc_scripts
Extract all <script> blocks from a Vue/Svelte SFC source string.
is_sfc_file
Check if a file path is a Vue or Svelte SFC (.vue or .svelte).
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.