C# Class Microsoft.SourceBrowser.HtmlGenerator.TypeScriptSupport

Show file Open project: KirillOsenkov/SourceBrowser Class Usage Examples

Public Methods

Method Description
EnsureFileGeneratedAndGetUrl ( Microsoft.SourceBrowser.HtmlGenerator.AnalyzedFile analysis ) : void
Generate ( IEnumerable typeScriptFiles, string solutionDestinationFolder ) : void
GetDestinationFilePath ( string sourceFilePath ) : string
PrepareRanges ( Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange syntacticRanges, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange semanticRanges, string text ) : Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]
RemoveIntersectingRanges ( string text, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange rangesSortedByStart, int midpoints ) : Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]
RemoveOverlappingRanges ( string text, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange ranges ) : Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]

Private Methods

Method Description
AddAttribute ( StringBuilder sb, string name, string value ) : void
ChooseBetterRange ( Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange left, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange right ) : Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange
Generate ( string sourceFilePath, string destinationHtmlFilePath, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange syntacticRanges, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange semanticRanges ) : void
GenerateCore ( IEnumerable fileNames, string libFile ) : void
GenerateLinks ( Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange range, string destinationHtmlFilePath, int>.Dictionary localSymbolIdMap ) : Microsoft.SourceBrowser.HtmlGenerator.HtmlElementInfo
GenerateRange ( StringBuilder sb, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange range, string destinationFilePath, int>.Dictionary localSymbolIdMap ) : void
GetDisplayName ( string destinationHtmlFilePath ) : string
GetGlyph ( string definitionKind ) : string
GetLocalId ( string symbolId, int>.Dictionary localSymbolIdMap ) : int
GetSpanClass ( string classification ) : string
IsWellFormed ( string searchString ) : bool

Method Details

EnsureFileGeneratedAndGetUrl() public method

public EnsureFileGeneratedAndGetUrl ( Microsoft.SourceBrowser.HtmlGenerator.AnalyzedFile analysis ) : void
analysis Microsoft.SourceBrowser.HtmlGenerator.AnalyzedFile
return void

Generate() public method

public Generate ( IEnumerable typeScriptFiles, string solutionDestinationFolder ) : void
typeScriptFiles IEnumerable
solutionDestinationFolder string
return void

GetDestinationFilePath() public static method

public static GetDestinationFilePath ( string sourceFilePath ) : string
sourceFilePath string
return string

PrepareRanges() public static method

public static PrepareRanges ( Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange syntacticRanges, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange semanticRanges, string text ) : Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]
syntacticRanges Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange
semanticRanges Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange
text string
return Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]

RemoveIntersectingRanges() public static method

public static RemoveIntersectingRanges ( string text, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange rangesSortedByStart, int midpoints ) : Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]
text string
rangesSortedByStart Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange
midpoints int
return Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]

RemoveOverlappingRanges() public static method

public static RemoveOverlappingRanges ( string text, Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange ranges ) : Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]
text string
ranges Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange
return Microsoft.SourceBrowser.HtmlGenerator.ClassifiedRange[]