MCPcopy Create free account
hub / github.com/concensure/Semantic / execute_refactor

Function execute_refactor

refactor_graph/src/lib.rs:438–450  ·  view source on GitHub ↗
(
    repo_root: &Path,
    graph: RefactorGraph,
    options: ExecutionOptions,
)

Source from the content-addressed store, hash-verified

436}
437
438pub fn execute_refactor(
439 repo_root: &Path,
440 graph: RefactorGraph,
441 options: ExecutionOptions,
442) -> Result<RefactorStatus> {
443 let mut executor = RefactorExecutor::new(repo_root.to_path_buf());
444 let id = executor.begin_refactor(&graph)?;
445 let status = executor.apply_nodes(&id, &graph, &options)?;
446 if status.failed_nodes.is_empty() {
447 executor.commit(&id)?;
448 }
449 Ok(status)
450}
451
452#[cfg(test)]
453mod tests {

Callers 4

apply_testsMethod · 0.85
execute_distributedMethod · 0.85

Calls 3

begin_refactorMethod · 0.80
apply_nodesMethod · 0.80
commitMethod · 0.80

Tested by 3

apply_testsMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…