예제 #1
0
 public TryStatement(Block tryBody, CatchVariable catchVar, Block catchBody, Block finallyBody) : base()
 {
     this.tryBody     = tryBody;
     this.catchVar    = catchVar;
     this.catchBody   = catchBody;
     this.finallyBody = finallyBody;
     if (this.catchBody == null && this.finallyBody == null)
     {
         throw new Error("try without catch and finally is not allowed");
     }
 }
예제 #2
0
 public CatchVariableReference(CatchVariable decl) : base()
 {
     this.decl = decl;
     decl.references.push(this);
 }