C# Class RazorPad.UI.Editors.Folding.HtmlFoldParser

Inheritance: IFoldParser
Exibir arquivo Open project: RazorPad/RazorPad

Public Methods

Method Description
GetFolds ( string html ) : IEnumerable
HtmlFoldParser ( IRazorHtmlReaderFactory htmlReaderFactory ) : System.Collections.Generic

Private Methods

Method Description
AddFoldForCompletedElement ( ) : void
AddFoldIfEndElementOnDifferentLineToStartElement ( HtmlElementFold fold ) : void
ClearPreviousFolds ( ) : void
CreateHtmlReader ( string html ) : RazorHtmlReader
GetHtmlFolds ( ) : void
GetRazorFolds ( ) : void
IsMultiLineBlock ( System.Web.Razor.Parser.SyntaxTree.SyntaxTreeNode node ) : bool
SaveFoldStartOnStack ( ) : void
SaveRazorFoldsStartOnStack ( IEnumerable nodes ) : void
SortFoldsByStartOffset ( ) : void

Method Details

GetFolds() public method

public GetFolds ( string html ) : IEnumerable
html string
return IEnumerable

HtmlFoldParser() public method

public HtmlFoldParser ( IRazorHtmlReaderFactory htmlReaderFactory ) : System.Collections.Generic
htmlReaderFactory IRazorHtmlReaderFactory
return System.Collections.Generic