public static JsForStatement For(JsVariableDeclaration declaration, JsExpression condition, params JsExpression[] incrementors) { var forStatement = new JsForStatement(declaration, condition); forStatement.Incrementors.AddRange(incrementors); return(forStatement); }
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); }
public static JsForStatement Body(this JsForStatement forStatement, JsStatement body) { forStatement.Body = body; return(forStatement); }