pub struct EntryEffectRecord { /* private fields */ }Expand description
Which entries of one config list had an effect in the latest pass.
The stage that decides the effect (source discovery for ignorePatterns,
entry point discovery for entry) runs before the dead-code envelope is
built and does not return its answer to that point. It writes the answer
here, and the envelope reads it through the resolved config.
Each pass replaces the whole answer. It never clears it first, so two passes over the same config that run at the same time cannot leave a half-written answer.
Implementations§
Source§impl EntryEffectRecord
impl EntryEffectRecord
Sourcepub fn record(&self, effective: Vec<bool>)
pub fn record(&self, effective: Vec<bool>)
Store the answer of one pass: one flag per config entry, in config
order, true when the entry had an effect.
Sourcepub fn ineffective<'a>(&self, entries: &'a [String]) -> Vec<&'a str>
pub fn ineffective<'a>(&self, entries: &'a [String]) -> Vec<&'a str>
The entries of entries that had no effect in the latest pass, in
config order. Empty when no pass recorded an answer, or when the
answer has another length than entries.