public static JsTryStatement Finally(this JsTryStatement tryStatement) { tryStatement.Finally = new JsBlockStatement(); return(tryStatement); }
public static JsTryStatement Catch(this JsTryStatement tryStatement, JsCatchClause catchClause) { tryStatement.Catch = catchClause; return(tryStatement); }
public static JsTryStatement Catch(this JsTryStatement tryStatement, JsVariableDeclarator declaration) { tryStatement.Catch = Catch(declaration); return(tryStatement); }
public static JsTryStatement Try() { var result = new JsTryStatement(); return(result); }