public IEnumerable <Error> Populate(RootNode node, List <Error> errors) { var visitor = new PageInfoVisitor(this, errors); node.AcceptVisit(visitor); return(visitor.Errors); }
void GetHtmlFoldingRegions(List <FoldingRegion> foldingRegions) { if (htmlParsedDocument != null) { var cuVisitor = new CompilationUnitVisitor(foldingRegions); htmlParsedDocument.AcceptVisit(cuVisitor); } }
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]); }