/// <summary> /// Visits the children. /// </summary> /// <returns>The children.</returns> /// <param name="visitor">Visitor.</param> public override void VisitChildren(AstVisitor visitor) { Items.ForEach(node => node.Visit(visitor)); }
/// <summary> /// Visit the specified visitor. /// </summary> /// <param name="visitor">Visitor.</param> public override void Visit(AstVisitor visitor) { visitor.Accept(this); }
/// <summary> /// Visit the children of the specified visitor. /// </summary> /// <returns>The children.</returns> /// <param name="visitor">Visitor.</param> public virtual void VisitChildren(AstVisitor visitor) { }
/// <summary> /// Visit the specified visitor. /// </summary> /// <param name="visitor">Visitor.</param> public abstract void Visit(AstVisitor visitor);
/// <summary> /// Visits the children. /// </summary> /// <returns>The children.</returns> /// <param name="visitor">Visitor.</param> public override void VisitChildren(AstVisitor visitor) { Children.ForEach(child => child.Visit(visitor)); }
public override void VisitChildren(AstVisitor visitor) { Condition.Visit(visitor); Left.Visit(visitor); Right.Visit(visitor); }