Esempio n. 1
0
		public virtual void VisitContainer(ContainerBlock block)
		{
			foreach (Block child in block.Children)
			{
				ICSharpBlock visitable = child as ICSharpBlock;
				if (visitable != null)
				{
					visitable.AcceptVisitor(this);
				}
			}
		}
Esempio n. 2
0
		public virtual void VisitContainerRecursive(ContainerBlock block)
		{
			foreach (Block child in block.Children)
			{
				ICSharpBlock visitable = child as ICSharpBlock;
				if (visitable != null)
				{
					visitable.AcceptVisitor(this);
				}
				else
				{
					ContainerBlock container = child as ContainerBlock;
					if (container != null)
					{
						VisitContainerRecursive(container);
					}
				}
			}
		}