Exemple #1
0
 public ZTry(Block body, WithList catchers)
     : this()
 {
     this.body = body;
     this.catchers = catchers;
 }
Exemple #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;
        }
Exemple #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;
 }