C# Class Rubberduck.Refactorings.MoveCloserToUsage.MoveCloserToUsageRefactoring

Inheritance: IRefactoring
Mostra file Open project: retailcoder/Rubberduck Class Usage Examples

Public Methods

Method Description
MoveCloserToUsageRefactoring ( RubberduckParserState parseResult, IActiveCodePaneEditor editor, IMessageBox messageBox ) : System
Refactor ( ) : void
Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
Refactor ( QualifiedSelection selection ) : void

Private Methods

Method Description
GetBeginningOfInstructionSelection ( Rubberduck.Parsing.Symbols.Declaration target, Rubberduck.VBEditor.Selection referenceSelection ) : Rubberduck.VBEditor.Selection
GetDeclarationString ( Rubberduck.Parsing.Symbols.Declaration target ) : string
InsertDeclaration ( Rubberduck.Parsing.Symbols.Declaration target ) : void
MoveCloserToUsage ( Rubberduck.Parsing.Symbols.Declaration target ) : void
RemoveExtraComma ( string str, int numParams, int indexRemoved ) : string
RemoveVariable ( Rubberduck.Parsing.Symbols.Declaration target ) : void
TargetIsReferencedFromMultipleMethods ( Rubberduck.Parsing.Symbols.Declaration target ) : bool

Method Details

MoveCloserToUsageRefactoring() public method

public MoveCloserToUsageRefactoring ( RubberduckParserState parseResult, IActiveCodePaneEditor editor, IMessageBox messageBox ) : System
parseResult Rubberduck.Parsing.VBA.RubberduckParserState
editor IActiveCodePaneEditor
messageBox IMessageBox
return System

Refactor() public method

public Refactor ( ) : void
return void

Refactor() public method

public Refactor ( Rubberduck.Parsing.Symbols.Declaration target ) : void
target Rubberduck.Parsing.Symbols.Declaration
return void

Refactor() public method

public Refactor ( QualifiedSelection selection ) : void
selection Rubberduck.VBEditor.QualifiedSelection
return void