Exemple #1
0
        public static JsVariableDeclaration Declare(params JsVariableDeclarator[] declarators)
        {
            var result = new JsVariableDeclaration();

            result.Declarations.AddRange(declarators);
            return(result);
        }
Exemple #2
0
        public static JsForStatement For(JsVariableDeclaration declaration, JsExpression condition, params JsExpression[] incrementors)
        {
            var forStatement = new JsForStatement(declaration, condition);

            forStatement.Incrementors.AddRange(incrementors);
            return(forStatement);
        }
Exemple #3
0
 public JsForStatement(JsVariableDeclaration declaration, JsExpression condition) : this()
 {
     Declaration = declaration;
     Condition   = condition;
 }
Exemple #4
0
 public static void Local(this JsBlockStatement blockStatement, JsVariableDeclaration declaration)
 {
     blockStatement.Add(Local(declaration));
 }
Exemple #5
0
 public static JsForInStatement ForIn(JsVariableDeclaration declaration, JsExpression target)
 {
     return(new JsForInStatement(declaration, target));
 }
Exemple #6
0
 public static JsLocalVariableDeclaration Local(JsVariableDeclaration declaration)
 {
     return(new JsLocalVariableDeclaration(declaration));
 }