Skip to main content

apply_edit

Function apply_edit 

Source
pub fn apply_edit(prog: &Program, edit: &Edit) -> Program
Expand description

Apply a structural edit to a program, returning a new program.

This does not modify the original — projectional authoring treats the AST as immutable structure; edits produce new structure.