Пример #1
0
 /// <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));
 }
Пример #2
0
 /// <summary>
 /// Visit the specified visitor.
 /// </summary>
 /// <param name="visitor">Visitor.</param>
 public override void Visit(AstVisitor visitor)
 {
     visitor.Accept(this);
 }
Пример #3
0
 /// <summary>
 /// Visit the children of the specified visitor.
 /// </summary>
 /// <returns>The children.</returns>
 /// <param name="visitor">Visitor.</param>
 public virtual void VisitChildren(AstVisitor visitor)
 {
 }
Пример #4
0
 /// <summary>
 /// Visit the specified visitor.
 /// </summary>
 /// <param name="visitor">Visitor.</param>
 public abstract void Visit(AstVisitor visitor);
Пример #5
0
 /// <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));
 }
Пример #6
0
 public override void VisitChildren(AstVisitor visitor)
 {
     Condition.Visit(visitor);
     Left.Visit(visitor);
     Right.Visit(visitor);
 }