Exemple #1
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 #2
0
        public static JsForStatement For(JsExpression[] initializers, JsExpression condition, params JsExpression[] incrementors)
        {
            var forStatement = new JsForStatement(condition);

            forStatement.Initializers.AddRange(initializers);
            forStatement.Incrementors.AddRange(incrementors);
            return(forStatement);
        }
Exemple #3
0
 public static JsForStatement Body(this JsForStatement forStatement, JsStatement body)
 {
     forStatement.Body = body;
     return(forStatement);
 }