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"); } }
public CatchVariableReference(CatchVariable decl) : base() { this.decl = decl; decl.references.push(this); }