C# Class CSharpMinifier.Minifier

Mostra file Open project: KvanTTT/CSharp-Minifier Class Usage Examples

Public Properties

Property Type Description
ParserTempFileName string

Public Methods

Method Description
GetLeafNodeString ( AstNode node ) : string
IsIntegerNumber ( object value ) : bool
Minifier ( MinifierOptions options = null, string ignoredIdentifiers = null, string ignoredComments = null ) : System
Minify ( ) : string
MinifyFiles ( string csFiles ) : string
MinifyFromString ( string csharpCode ) : string

Private Methods

Method Description
CompileAndAcceptVisitor ( DepthFirstAstVisitor visitor ) : void
CompileAndResolve ( ) : void
CompressLocals ( ) : void
CompressMembers ( ) : void
CompressMixed ( ) : void
CompressTypes ( ) : void
ConvertEnumToInts ( ) : void
GetIndent ( AstNode node, StringBuilder line ) : string
GetResolvedNodes ( ResolveResultType type, AstNode node ) : List
GetStringWithoutSpaces ( ) : string
GetStringWithoutSpaces ( AstNode node ) : string
GetStringWithoutSpaces ( IEnumerable nodes ) : string
GetUsingsAndRemoveUsingsAndNamespaces ( AstNode node, List usings, List types ) : void
GetUsingsAndRemoveUsingsAndNamespaces ( SyntaxTree tree, List usings, List types ) : void
RemoveCommentsAndRegions ( ) : void
RemoveCommentsAndRegions ( AstNode node ) : void
RemoveSpacesAndAppend ( AstNode node, StringBuilder line, StringBuilder result ) : void
RenameNode ( AstNode node, string newName ) : void
RenameOrRemoveNodes ( Dictionary substitution, bool removeOneRefNodes, bool rename ) : void
RenameOrRemoveNodes ( List substitution, bool removeOneRefNodes, bool rename ) : void
TraverseNodes ( AstNode node ) : void
UpdateSyntaxTree ( ) : void

Method Details

GetLeafNodeString() public static method

public static GetLeafNodeString ( AstNode node ) : string
node AstNode
return string

IsIntegerNumber() public static method

public static IsIntegerNumber ( object value ) : bool
value object
return bool

Minifier() public method

public Minifier ( MinifierOptions options = null, string ignoredIdentifiers = null, string ignoredComments = null ) : System
options MinifierOptions
ignoredIdentifiers string
ignoredComments string
return System

Minify() public method

public Minify ( ) : string
return string

MinifyFiles() public method

public MinifyFiles ( string csFiles ) : string
csFiles string
return string

MinifyFromString() public method

public MinifyFromString ( string csharpCode ) : string
csharpCode string
return string

Property Details

ParserTempFileName public_oe static_oe property

public static string ParserTempFileName
return string