C# Class JsonFx.Compilation.MergeResourceCodeProvider

Inheritance: JsonFx.Compilation.ResourceCodeProvider
显示文件 Open project: pocket-playlab/jsonfx-v1 Class Usage Examples

Public Methods

Method Description
JoinAlternates ( string full, string compact ) : string
SplitAlternates ( string original, string &full, string &compact ) : void

Protected Methods

Method Description
GenerateCodeExtensions ( IResourceBuildHelper helper, CodeTypeDeclaration resourceType ) : void
ProcessExternalResource ( IResourceBuildHelper helper, string url, string &preProcessed, string &compacted, List errors ) : void
ProcessResource ( IResourceBuildHelper helper, string virtualPath, string sourceText, string &resource, string &compacted, List errors ) : void
ResetCodeProvider ( ) : void
SetBaseClass ( CodeTypeDeclaration resourceType ) : void

Private Methods

Method Description
ProcessEmbeddedResource ( IResourceBuildHelper helper, string source, string &preProcessed, string &compacted, List errors ) : void
ProcessPrecompiled ( IResourceBuildHelper helper, string file ) : IOptimizedResult
ScrubResourceName ( string resource ) : string

Method Details

GenerateCodeExtensions() protected method

protected GenerateCodeExtensions ( IResourceBuildHelper helper, CodeTypeDeclaration resourceType ) : void
helper IResourceBuildHelper
resourceType System.CodeDom.CodeTypeDeclaration
return void

JoinAlternates() public static method

public static JoinAlternates ( string full, string compact ) : string
full string
compact string
return string

ProcessExternalResource() protected method

protected ProcessExternalResource ( IResourceBuildHelper helper, string url, string &preProcessed, string &compacted, List errors ) : void
helper IResourceBuildHelper
url string
preProcessed string
compacted string
errors List
return void

ProcessResource() protected method

protected ProcessResource ( IResourceBuildHelper helper, string virtualPath, string sourceText, string &resource, string &compacted, List errors ) : void
helper IResourceBuildHelper
virtualPath string
sourceText string
resource string
compacted string
errors List
return void

ResetCodeProvider() protected method

protected ResetCodeProvider ( ) : void
return void

SetBaseClass() protected method

protected SetBaseClass ( CodeTypeDeclaration resourceType ) : void
resourceType System.CodeDom.CodeTypeDeclaration
return void

SplitAlternates() public static method

public static SplitAlternates ( string original, string &full, string &compact ) : void
original string
full string
compact string
return void