Ejemplo n.º 1
0
 public ZTry(Block body, WithList catchers)
     : this()
 {
     this.body = body;
     this.catchers = catchers;
 }
Ejemplo n.º 2
0
        private ZTry VisitZTry(ZTry Try)
        {
            Try.Body = this.VisitBlock(Try.Body);

            WithList newCatchers = new WithList();

            for (int i = 0, n = Try.Catchers.Length; i < n; i++)
                newCatchers.Add(this.VisitWith(Try.Catchers[i]));

            Try.Catchers = newCatchers;

            return Try;
        }
Ejemplo n.º 3
0
 public WithList Clone()
 {
     int n = this.length;
     WithList result = new WithList(n);
     result.length = n;
     With[] newElements = result.elements;
     for (int i = 0; i < n; i++)
         newElements[i] = this.elements[i];
     return result;
 }