コード例 #1
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];
		}
コード例 #2
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]);
 }
コード例 #3
0
		void GetHtmlFoldingRegions (List<FoldingRegion> foldingRegions)
		{
			if (htmlParsedDocument != null) {
				var cuVisitor = new CompilationUnitVisitor (foldingRegions);
				htmlParsedDocument.AcceptVisit (cuVisitor);
			}
		}