示例#1
0
        /// <summary>
        /// See <see cref="Visitor.VisitContainer"/>.
        /// </summary>
        protected override void VisitContainer(Container container)
        {
            if (delegates.VisitContainer != null)
                delegates.VisitContainer(container);

            base.VisitContainer(container);
        }
示例#2
0
 protected override void VisitContainer(Container container)
 {
     base.VisitContainer(container);
     ContainerCount++;
 }
示例#3
0
 /// <summary>
 /// Visits any container element.
 /// </summary>
 /// <remarks>
 /// This method is called for all of the <see cref="Container"/>-derived 
 /// types.
 /// </remarks>
 protected virtual void VisitContainer(Container container)
 {
     VisitElement(container);
     foreach (var element in container.Elements)
     {
         element.Accept(this);
     }
 }