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

Method generate_ast_patch

patch_engine/src/lib.rs:13–25  ·  view source on GitHub ↗
(
        file_path: &str,
        target_symbol: &str,
        transformation: ASTTransformation,
    )

Source from the content-addressed store, hash-verified

11
12impl PatchEngine {
13 pub fn generate_ast_patch(
14 file_path: &str,
15 target_symbol: &str,
16 transformation: ASTTransformation,
17 ) -> CodePatch {
18 CodePatch {
19 file_path: file_path.to_string(),
20 representation: PatchRepresentation::ASTTransform(ASTEdit {
21 target_symbol: target_symbol.to_string(),
22 transformation,
23 }),
24 }
25 }
26
27 pub fn generate_replacement_patch(
28 file_path: &str,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected