C# Класс 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.
Наследование: IRefactoring
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExtractMethodRefactoring ( IRefactoringPresenterFactory factory, IActiveCodePaneEditor editor ) : System
GetExtractedMethod ( ExtractMethodModel model ) : string
Refactor ( ) : void
Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
Refactor ( QualifiedSelection target ) : void

Приватные методы

Метод Описание
ExtractMethod ( ExtractMethodModel model ) : void
GetMethodCall ( ExtractMethodModel model ) : string
OnInvalidSelection ( ) : void

Описание методов

ExtractMethodRefactoring() публичный Метод

public ExtractMethodRefactoring ( IRefactoringPresenterFactory factory, IActiveCodePaneEditor editor ) : System
factory IRefactoringPresenterFactory
editor IActiveCodePaneEditor
Результат System

GetExtractedMethod() публичный статический Метод

public static GetExtractedMethod ( ExtractMethodModel model ) : string
model ExtractMethodModel
Результат string

Refactor() публичный Метод

public Refactor ( ) : void
Результат void

Refactor() публичный Метод

public Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
target Rubberduck.Parsing.Symbols.Declaration
Результат void

Refactor() публичный Метод

public Refactor ( QualifiedSelection target ) : void
target Rubberduck.VBEditor.QualifiedSelection
Результат void