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.
- flags
- Feature flag detection via lightweight Oxc AST visitor.
- 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.
- visitor
- Visitor utilities for AST extraction.
Structs§
- 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.
- Markup
Class Scan - The result of scanning one markup source for class references.
- Markup
Class Token - A static class token referenced in markup, with the 1-based line it sits on.
- 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.
- ReExport
Info - A re-export declaration.
- Require
Call Info - A
require()call. - Tailwind
Arbitrary Use - One use of a Tailwind arbitrary-value utility, with the 1-based line it appears on.
- Theme
Scan - Result of scanning a CSS source for Tailwind v4
@themeblocks. - Theme
Token Def - A Tailwind v4
@themetoken definition: the custom-property name WITHOUT the leading--(e.g.color-brand) and its 1-based line in the source.
Enums§
- Export
Name - Export identifier.
- Imported
Name - How a symbol is imported.
- Member
Kind - The kind of member.
- Skipped
Security Callee Expression Kind - Syntactic expression shape for a skipped security callee.
- Skipped
Security Callee Reason - Why a sink-shaped callee could not be flattened into a static catalogue path.
- Visibility
Tag - Visibility tag from JSDoc/TSDoc comments that suppresses unused-export detection.
Constants§
- 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_
css_ analytics - Compute structural CSS analytics for a standard-CSS stylesheet source.
- extract_
apply_ tokens - Extract the utility tokens referenced in
@applydirective bodies across a CSS source (comment / string masked).@apply rounded-card font-bold;yields["rounded-card", "font-bold"]. The leading-!and trailing-!important modifiers and a bare!importanttoken are stripped, so a theme token whose utility is applied only via@applyis credited as used. - 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. - extract_
sfc_ styles - Extract all
<style>blocks from a Vue/Svelte SFC source string. - is_
edit_ distance_ one - True when
aandbdiffer by exactly one single-character edit (one substitution, insertion, or deletion). Equal strings return false. Runs in O(min(len)) without building a full edit-distance matrix. - is_
glimmer_ file - Return
truefor Glimmer source files. - is_
sfc_ file - Check if a file path is a Vue or Svelte SFC (
.vueor.svelte). - is_
typo_ edit - True when
definedis a likely TYPO target fortoken: exactly one edit apart AND that edit is a believable mistake, not a deliberate naming variation. This is stricter thanis_edit_distance_onebecause real codebases are full of one-edit class pairs that are NOT typos: - 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).
- scan_
markup_ class_ tokens - Scan a markup source for static class tokens and a dynamic-construction flag.
- scan_
tailwind_ arbitrary_ values - Scan markup source for Tailwind arbitrary-value utility tokens, one entry per occurrence. The caller must gate this on the project using Tailwind (the token shape is Tailwind-specific but not exclusive).
- scan_
theme_ blocks - Scan a CSS source for Tailwind v4
@themeblocks, returning the defined design tokens plus the custom properties read viavar()inside those blocks. - scoped_
unused_ classes - Returns class names defined in
<style scoped>blocks of an SFC that appear nowhere else in the component (cleanup candidates), sorted. Returns an empty vec when the source has no analyzable scoped block. - sfc_
virtual_ stylesheet - Build a “virtual stylesheet” from an SFC’s plain-CSS
<style>blocks (any scoping). Each block body is placed at its real line in the SFC via blank-line padding, so CSS metric line numbers fromcompute_css_analyticsmap straight back onto the SFC. ReturnsNonewhen the SFC has no plain-CSS<style>block (e.g. onlylang="scss"blocks, which the CSS parser cannot read), so callers run the standard.cssmetric path on Vue/Svelte component styles. - strip_
glimmer_ templates - Strip Glimmer
<template>blocks while preserving byte offsets and line numbers for the JavaScript/TypeScript parser.