Lines Matching refs:TryStatement
33 …port function transformTryCatchFinally(tryStmt: ts.TryStatement, recorder: Recorder): ts.TryStatem…
79 this.depth = TryStatement.getcurrentTryStatementDepth();
107 export class TryStatement { class
108 private static currentTryStatement: TryStatement | undefined;
110 private outer: TryStatement | undefined;
117 TryStatement.currentTryStatementDepth++;
118 this.outer = TryStatement.currentTryStatement;
139 TryStatement.currentTryStatement = this;
143 TryStatement.currentTryStatementDepth--;
144 TryStatement.currentTryStatement = this.outer;
147 static setCurrentTryStatement(tryStatement: TryStatement | undefined): void {
148 TryStatement.currentTryStatement = tryStatement;
151 static getCurrentTryStatement(): TryStatement {
152 return TryStatement.currentTryStatement;
156 return TryStatement.currentTryStatementDepth;
159 getOuterTryStatement(): TryStatement {
188 protected tryStatement: TryStatement | undefined;
206 constructor(compiler: Compiler, pandaGen: PandaGen, tryStmt: ts.TryStatement) {
211 if ((<ts.TryStatement>this.stmt).finallyBlock) {
212 this.tryStatement = new TryStatement(this.stmt, catchTable, this);
214 this.tryStatement = new TryStatement(this.stmt, catchTable);
217 this.compiler.compileStatement((<ts.TryStatement>this.stmt).tryBlock);
224 if ((<ts.TryStatement>this.stmt).finallyBlock) {
225 this.compiler.compileStatement((<ts.TryStatement>this.stmt).finallyBlock!);
230 let catchClause = (<ts.TryStatement>this.stmt).catchClause;
243 this.compiler.compileStatement((<ts.TryStatement>this.stmt).finallyBlock!);
252 this.compiler.compileStatement((<ts.TryStatement>this.stmt).finallyBlock!);
278 this.tryStatement = new TryStatement(stmt, catchTable, this);
376 export function updateCatchTables(inlinedTry: TryStatement | undefined, targetTry: TryStatement, in…