pub struct RefactoringEngine { /* private fields */ }Expand description
Refactoring engine types: configuration, operations, and results. Unified refactoring engine that coordinates all refactoring operations
Provides a single interface for all types of code transformations, from simple symbol renames to complex workspace restructuring.
Implementations§
Source§impl RefactoringEngine
impl RefactoringEngine
Sourcepub fn new() -> RefactoringEngine
pub fn new() -> RefactoringEngine
Create a new refactoring engine with default configuration
Sourcepub fn with_config(config: RefactoringConfig) -> RefactoringEngine
pub fn with_config(config: RefactoringConfig) -> RefactoringEngine
Create a new refactoring engine with custom configuration
Sourcepub fn refactor(
&mut self,
operation_type: RefactoringType,
files: Vec<PathBuf>,
) -> Result<RefactoringResult, ParseError>
pub fn refactor( &mut self, operation_type: RefactoringType, files: Vec<PathBuf>, ) -> Result<RefactoringResult, ParseError>
Perform a refactoring operation
Sourcepub fn rollback(
&mut self,
operation_id: &str,
) -> Result<RefactoringResult, ParseError>
pub fn rollback( &mut self, operation_id: &str, ) -> Result<RefactoringResult, ParseError>
Rollback a previous refactoring operation
Sourcepub fn get_operation_history(&self) -> &[RefactoringOperation]
pub fn get_operation_history(&self) -> &[RefactoringOperation]
Get list of recent operations
Sourcepub fn clear_history(&mut self) -> Result<BackupCleanupResult, ParseError>
pub fn clear_history(&mut self) -> Result<BackupCleanupResult, ParseError>
Clear operation history and cleanup backups
Sourcepub fn index_file(
&mut self,
path: &Path,
content: &str,
) -> Result<(), ParseError>
pub fn index_file( &mut self, path: &Path, content: &str, ) -> Result<(), ParseError>
Index a file for workspace-aware refactoring operations
Trait Implementations§
Source§impl Default for RefactoringEngine
impl Default for RefactoringEngine
Source§fn default() -> RefactoringEngine
fn default() -> RefactoringEngine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RefactoringEngine
impl !RefUnwindSafe for RefactoringEngine
impl Send for RefactoringEngine
impl Sync for RefactoringEngine
impl Unpin for RefactoringEngine
impl UnsafeUnpin for RefactoringEngine
impl !UnwindSafe for RefactoringEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more