public override IEnumerable<FoldingRegion> GenerateFolds () { if (RootNode != null) { var regions = new List<FoldingRegion> (); var cuVisitor = new CompilationUnitVisitor (regions); RootNode.AcceptVisit (cuVisitor); return regions; } return new FoldingRegion [0]; }
public override IEnumerable <FoldingRegion> GenerateFolds() { if (RootNode != null) { var regions = new List <FoldingRegion> (); var cuVisitor = new CompilationUnitVisitor(regions); RootNode.AcceptVisit(cuVisitor); return(regions); } return(new FoldingRegion [0]); }
void GetHtmlFoldingRegions (List<FoldingRegion> foldingRegions) { if (htmlParsedDocument != null) { var cuVisitor = new CompilationUnitVisitor (foldingRegions); htmlParsedDocument.AcceptVisit (cuVisitor); } }