Inheritance: ICloneable, IEnumerable
Beispiel #1
0
 public IfStatement(Expression test,
                    Node thenPart,
                    Node elsePart,
                    Location location)
     : base(location)
 {
     this.test = test;
     this.thenPart = thenPart;
     this.elsePart = elsePart;
 }
Beispiel #2
0
 public IfExpression(Expression test,
                     Node thenPart,
                     Node elsePart,
                     Location location)
     : base(location)
 {
     ifStatement = new IfStatement(test, thenPart, elsePart, location);
 }
Beispiel #3
0
 public NodeList(Node first)
 {
     this.first = first;
 }
Beispiel #4
0
 public virtual void Append(Node node)
 {
     if (first == null) {
         first = node;
     }
     else {
         first.Append(node);
     }
 }
Beispiel #5
0
 public virtual void Reset()
 {
     current = null;
 }
Beispiel #6
0
 public NodeList()
 {
     first = null;
 }
Beispiel #7
0
 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;
 }
Beispiel #8
0
 public NodeEnumerator(Node node)
 {
     first = node;
     current = null;
 }
Beispiel #9
0
 public virtual void Insert(Node node)
 {
     node.Next = Next;
     Next = node;
 }
Beispiel #10
0
 public virtual void Append(Node node)
 {
     Last.Next = node;
 }
Beispiel #11
0
 public virtual void AddChild(Node node)
 {
     children.Append(node);
 }