C# Class Rubberduck.Refactorings.ExtractMethod.ExtractMethodRefactoring

A refactoring that extracts a method (procedure or function) out of a selection in the active code pane and replaces the selected code with a call to the extracted method.
Inheritance: IRefactoring
Afficher le fichier Open project: retailcoder/Rubberduck Class Usage Examples

Méthodes publiques

Méthode Description
ExtractMethodRefactoring ( IRefactoringPresenterFactory factory, IActiveCodePaneEditor editor ) : System
GetExtractedMethod ( ExtractMethodModel model ) : string
Refactor ( ) : void
Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
Refactor ( QualifiedSelection target ) : void

Private Methods

Méthode Description
ExtractMethod ( ExtractMethodModel model ) : void
GetMethodCall ( ExtractMethodModel model ) : string
OnInvalidSelection ( ) : void

Method Details

ExtractMethodRefactoring() public méthode

public ExtractMethodRefactoring ( IRefactoringPresenterFactory factory, IActiveCodePaneEditor editor ) : System
factory IRefactoringPresenterFactory
editor IActiveCodePaneEditor
Résultat System

GetExtractedMethod() public static méthode

public static GetExtractedMethod ( ExtractMethodModel model ) : string
model ExtractMethodModel
Résultat string

Refactor() public méthode

public Refactor ( ) : void
Résultat void

Refactor() public méthode

public Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
target Rubberduck.Parsing.Symbols.Declaration
Résultat void

Refactor() public méthode

public Refactor ( QualifiedSelection target ) : void
target Rubberduck.VBEditor.QualifiedSelection
Résultat void