Exemplo n.º 1
0
 public static JsTryStatement Finally(this JsTryStatement tryStatement)
 {
     tryStatement.Finally = new JsBlockStatement();
     return(tryStatement);
 }
Exemplo n.º 2
0
 public static JsTryStatement Catch(this JsTryStatement tryStatement, JsCatchClause catchClause)
 {
     tryStatement.Catch = catchClause;
     return(tryStatement);
 }
Exemplo n.º 3
0
 public static JsTryStatement Catch(this JsTryStatement tryStatement, JsVariableDeclarator declaration)
 {
     tryStatement.Catch = Catch(declaration);
     return(tryStatement);
 }
Exemplo n.º 4
0
        public static JsTryStatement Try()
        {
            var result = new JsTryStatement();

            return(result);
        }