C# Class Rubberduck.VBEditor.Extensions.CodeModuleExtensions

VBE CodeModule extension methods.
Mostrar archivo Open project: retailcoder/Rubberduck

Public Methods

Method Description
Clear ( this module ) : void

Deletes all lines from the CodeModule

GetSanitizedCode ( this module ) : string[]

Gets an array of strings where each element is a line of code in the Module, with line numbers stripped and any other pre-processing that needs to be done.

Lines ( this module ) : string

Returns all of the code in a Module as a string.

Private Methods

Method Description
HasNumberedLine ( string codeLine, int &lineNumber ) : bool
StripLineNumbers ( string lines ) : void

Method Details

Clear() public static method

Deletes all lines from the CodeModule
public static Clear ( this module ) : void
module this
return void

GetSanitizedCode() public static method

Gets an array of strings where each element is a line of code in the Module, with line numbers stripped and any other pre-processing that needs to be done.
public static GetSanitizedCode ( this module ) : string[]
module this
return string[]

Lines() public static method

Returns all of the code in a Module as a string.
public static Lines ( this module ) : string
module this
return string