Skip to main content

annotate_dead_code_json

Function annotate_dead_code_json 

Source
pub fn annotate_dead_code_json(
    json: &mut Value,
    results: &AnalysisResults,
    root: &Path,
    base: &FxHashSet<String>,
)
Expand description

Insert "introduced": bool into every dead-code finding object in the serialized JSON by re-deriving each key and testing membership against the base snapshot. JSON arrays must be in the same order as the typed results collections they were serialized from.