(
file_path: &str,
target_symbol: &str,
transformation: ASTTransformation,
)
| 11 | |
| 12 | impl 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, |
nothing calls this directly
no outgoing calls
no test coverage detected