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
파일 보기 프로젝트 열기: retailcoder/Rubberduck 1 사용 예제들

공개 메소드들

메소드 설명
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