public IfStatement(Expression test, Node thenPart, Node elsePart, Location location) : base(location) { this.test = test; this.thenPart = thenPart; this.elsePart = elsePart; }
public IfExpression(Expression test, Node thenPart, Node elsePart, Location location) : base(location) { ifStatement = new IfStatement(test, thenPart, elsePart, location); }
public NodeList(Node first) { this.first = first; }
public virtual void Append(Node node) { if (first == null) { first = node; } else { first.Append(node); } }
public virtual void Reset() { current = null; }
public NodeList() { first = null; }
public virtual bool MoveNext() { if (current == null) { if (first == null) return false; current = first; return true; } if (current.Next == null) return false; current = current.Next; return true; }
public NodeEnumerator(Node node) { first = node; current = null; }
public virtual void Insert(Node node) { node.Next = Next; Next = node; }
public virtual void Append(Node node) { Last.Next = node; }
public virtual void AddChild(Node node) { children.Append(node); }