kcl_lib::ast::modify

Function modify_ast_for_sketch

Source
pub async fn modify_ast_for_sketch(
    engine: &Arc<Box<dyn EngineManager>>,
    program: &mut Node<Program>,
    module_id: ModuleId,
    sketch_name: &str,
    plane: PlaneType,
    sketch_id: Uuid,
) -> Result<String, KclError>
Expand description

Update the AST to reflect the new state of the program after something like a move or a new line.