pub struct DeadCodeAnalysisArtifacts {
pub results: AnalysisResults,
pub timings: Option<PipelineTimings>,
pub graph: Option<RetainedModuleGraph>,
pub modules: Option<Vec<ModuleInfo>>,
pub files: Option<Vec<DiscoveredFile>>,
pub script_used_packages: FxHashSet<String>,
pub trace_provenance: TraceProvenance,
pub file_hashes: FxHashMap<PathBuf, u64>,
}Expand description
Typed dead-code analysis result with all reusable pipeline artifacts.
Fields§
§results: AnalysisResultsFindings across all dead-code categories.
timings: Option<PipelineTimings>Per-phase pipeline timings, when the run measured them.
graph: Option<RetainedModuleGraph>Retained module graph for downstream passes (health, trace, impact).
modules: Option<Vec<ModuleInfo>>Parsed modules retained for reuse, when the caller asked for them.
files: Option<Vec<DiscoveredFile>>Discovered files retained for reuse, when the caller asked for them.
script_used_packages: FxHashSet<String>Package names referenced from package.json scripts, which keeps those dependencies from being reported unused.
trace_provenance: TraceProvenanceWhich configs name which files and dependency names, for the trace output.
file_hashes: FxHashMap<PathBuf, u64>Per-file source content hashes for cache invalidation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeadCodeAnalysisArtifacts
impl RefUnwindSafe for DeadCodeAnalysisArtifacts
impl Send for DeadCodeAnalysisArtifacts
impl Sync for DeadCodeAnalysisArtifacts
impl Unpin for DeadCodeAnalysisArtifacts
impl UnsafeUnpin for DeadCodeAnalysisArtifacts
impl UnwindSafe for DeadCodeAnalysisArtifacts
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more