Skip to main content

plan_mutations_for_session

Function plan_mutations_for_session 

Source
pub fn plan_mutations_for_session(
    session: &AnalysisSession,
    request: &MutationPlanRequest,
) -> Result<MutationPlan, MutationPlanError>
Expand description

Runs the dead-code analysis of session with complexity and the graph, then builds the mutation plan.

The framework config exports come from the plugin used-export rules of the session, the same rules that the unused-export analysis reads. The plugin stage runs one more time for them.

ยงErrors

Returns an error when the analysis or the plugin stage fails.