pub struct ModuleInfo {Show 29 fields
pub file_id: FileId,
pub exports: Vec<ExportInfo>,
pub imports: Vec<ImportInfo>,
pub re_exports: Vec<ReExportInfo>,
pub dynamic_imports: Vec<DynamicImportInfo>,
pub dynamic_import_patterns: Vec<DynamicImportPattern>,
pub require_calls: Vec<RequireCallInfo>,
pub member_accesses: Vec<MemberAccess>,
pub whole_object_uses: Vec<String>,
pub has_cjs_exports: bool,
pub has_angular_component_template_url: bool,
pub content_hash: u64,
pub suppressions: Vec<Suppression>,
pub unknown_suppression_kinds: Vec<UnknownSuppressionKind>,
pub unused_import_bindings: Vec<String>,
pub type_referenced_import_bindings: Vec<String>,
pub value_referenced_import_bindings: Vec<String>,
pub line_offsets: Vec<u32>,
pub complexity: Vec<FunctionComplexity>,
pub flag_uses: Vec<FlagUse>,
pub class_heritage: Vec<ClassHeritageInfo>,
pub local_type_declarations: Vec<LocalTypeDeclaration>,
pub public_signature_type_references: Vec<PublicSignatureTypeReference>,
pub namespace_object_aliases: Vec<NamespaceObjectAlias>,
pub iconify_prefixes: Vec<String>,
pub auto_import_candidates: Vec<String>,
pub directives: Vec<String>,
pub security_sinks: Vec<SinkSite>,
pub security_sinks_skipped: u32,
}Expand description
Extracted module information from a single file.
Fields§
§file_id: FileIdUnique identifier for this file.
exports: Vec<ExportInfo>All export declarations in this module.
imports: Vec<ImportInfo>All import declarations in this module.
re_exports: Vec<ReExportInfo>All re-export declarations (e.g., export { foo } from './bar').
dynamic_imports: Vec<DynamicImportInfo>All dynamic import() calls with string literal sources.
dynamic_import_patterns: Vec<DynamicImportPattern>Dynamic import patterns.
require_calls: Vec<RequireCallInfo>All require() calls.
member_accesses: Vec<MemberAccess>Static member access expressions (e.g., Status.Active).
whole_object_uses: Vec<String>Identifiers used in whole-object access patterns.
has_cjs_exports: boolWhether this module uses CommonJS exports.
has_angular_component_template_url: boolWhether this module declares an Angular component templateUrl.
content_hash: u64xxh3 hash of the file content for incremental caching.
suppressions: Vec<Suppression>Inline suppression directives parsed from comments.
unknown_suppression_kinds: Vec<UnknownSuppressionKind>Suppression tokens that did not parse to any known IssueKind.
Surfaced as StaleSuppression findings via find_stale so users see
typos or obsolete kind names instead of having the entire marker
silently discarded. See issue #449.
unused_import_bindings: Vec<String>Local names of import bindings that are never referenced in this file.
Populated via oxc_semantic scope analysis. Used at graph-build time
to skip adding references for imports whose binding is never read,
improving unused-export detection precision.
type_referenced_import_bindings: Vec<String>Local import bindings that are referenced from TypeScript type positions.
Used to distinguish value-namespace and type-namespace references when a
module exports both const X and type X.
value_referenced_import_bindings: Vec<String>Local import bindings referenced from runtime/value positions.
line_offsets: Vec<u32>Pre-computed byte offsets where each line starts.
complexity: Vec<FunctionComplexity>Per-function complexity metrics.
flag_uses: Vec<FlagUse>Feature flag use sites.
class_heritage: Vec<ClassHeritageInfo>Heritage metadata for exported classes that declare implements.
local_type_declarations: Vec<LocalTypeDeclaration>Local type-capable declarations.
public_signature_type_references: Vec<PublicSignatureTypeReference>Type references in exported public signatures.
namespace_object_aliases: Vec<NamespaceObjectAlias>Aliases of namespace imports re-exported through an object literal.
iconify_prefixes: Vec<String>Deduped Iconify collection prefixes found in static icon props.
auto_import_candidates: Vec<String>Bare identifiers that may be resolved by framework auto-imports.
directives: Vec<String>File-level string directives in source order (e.g. "use client",
"use server", "use strict"). Captured from Program::directives.
Consumed by the security client-server-leak detector to identify
React Server Component client boundaries.
security_sinks: Vec<SinkSite>Captured non-literal security sink sites (category-blind). Consumed by
the catalogue-driven tainted_sink detector. Captured only by JS/TS
extraction; empty for CSS/MDX/etc. See security_matchers.toml.
security_sinks_skipped: u32Count of sink-shaped nodes whose callee could not be flattened to a static path (dynamic dispatch, computed members, aliased bindings). Surfaced in-band so an empty catalogue result with a non-zero count is not a clean bill.
Trait Implementations§
Source§impl Clone for ModuleInfo
impl Clone for ModuleInfo
Source§fn clone(&self) -> ModuleInfo
fn clone(&self) -> ModuleInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ModuleInfo
impl RefUnwindSafe for ModuleInfo
impl Send for ModuleInfo
impl Sync for ModuleInfo
impl Unpin for ModuleInfo
impl UnsafeUnpin for ModuleInfo
impl UnwindSafe for ModuleInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more