Example #1
0
 public void VisitNode(INodeVisitor visitor, IList <Node> body, IList <Chunk> chunks)
 {
     if (visitor is ChunkBuilderVisitor)
     {
         var sectionVisitor = new ViewComponentVisitor((ChunkBuilderVisitor)visitor, info);
         sectionVisitor.Accept(body);
         sectionsChunks     = sectionVisitor.Sections;
         sectionsAttributes = sectionVisitor.Attributes;
     }
     else
     {
         visitor.Accept(body);
     }
 }
Example #2
0
 public void VisitNode(INodeVisitor visitor, IList<Node> body, IList<Chunk> chunks)
 {
     if (visitor is ChunkBuilderVisitor)
     {
         var sectionVisitor = new ViewComponentVisitor((ChunkBuilderVisitor)visitor, info);
         sectionVisitor.Accept(body);
         sectionsChunks = sectionVisitor.Sections;
         sectionsAttributes = sectionVisitor.Attributes;
     }
     else
     {
         visitor.Accept(body);
     }
 }