C# Class Rubberduck.SmartIndenter.Indenter

Inheritance: IIndenter
Exibir arquivo Open project: retailcoder/Rubberduck

Public Methods

Method Description
Indent ( VBComponent component, bool reportProgress = true, int linesAlreadyRebuilt ) : void
Indent ( VBComponent component, string procedureName, Selection selection, bool reportProgress = true, int linesAlreadyRebuilt ) : void
Indent ( VBProject project ) : void
Indent ( string codeLines, string moduleName, bool reportProgress = true, int linesAlreadyRebuilt ) : void
IndentCurrentModule ( ) : void
IndentCurrentProcedure ( ) : void
Indenter ( VBE vbe, Func settings ) : System

Private Methods

Method Description
CheckLine ( IIndenterSettings settings, string code, bool &noIndent, int &ins, int &outs, bool &atProcedureStart, bool &atFirstProcLine, bool &insideIf ) : void
FindFirstSpecialItemOrDefault ( string line, int &from ) : string
FunctionAlign ( IIndenterSettings settings, string line, bool firstLine, int &paramOffset ) : int
GetSelection ( CodePane codePane ) : Selection
HasCode ( CodeModule module ) : bool
HasCode ( CodeModule module, int &lineCount ) : bool
OnReportProgress ( string moduleName, int progress, int max ) : void
ResolveLineNumber ( string &currentLine, string &originalLine, string &lineNumber ) : int

Method Details

Indent() public method

public Indent ( VBComponent component, bool reportProgress = true, int linesAlreadyRebuilt ) : void
component VBComponent
reportProgress bool
linesAlreadyRebuilt int
return void

Indent() public method

public Indent ( VBComponent component, string procedureName, Selection selection, bool reportProgress = true, int linesAlreadyRebuilt ) : void
component VBComponent
procedureName string
selection Selection
reportProgress bool
linesAlreadyRebuilt int
return void

Indent() public method

public Indent ( VBProject project ) : void
project VBProject
return void

Indent() public method

public Indent ( string codeLines, string moduleName, bool reportProgress = true, int linesAlreadyRebuilt ) : void
codeLines string
moduleName string
reportProgress bool
linesAlreadyRebuilt int
return void

IndentCurrentModule() public method

public IndentCurrentModule ( ) : void
return void

IndentCurrentProcedure() public method

public IndentCurrentProcedure ( ) : void
return void

Indenter() public method

public Indenter ( VBE vbe, Func settings ) : System
vbe VBE
settings Func
return System