Exemplo n.º 1
0
        public static JsVariableDeclaration Declare(params JsVariableDeclarator[] declarators)
        {
            var result = new JsVariableDeclaration();

            result.Declarations.AddRange(declarators);
            return(result);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public JsForStatement(JsVariableDeclaration declaration, JsExpression condition) : this()
 {
     Declaration = declaration;
     Condition   = condition;
 }
Exemplo n.º 4
0
 public static void Local(this JsBlockStatement blockStatement, JsVariableDeclaration declaration)
 {
     blockStatement.Add(Local(declaration));
 }
Exemplo n.º 5
0
 public static JsForInStatement ForIn(JsVariableDeclaration declaration, JsExpression target)
 {
     return(new JsForInStatement(declaration, target));
 }
Exemplo n.º 6
0
 public static JsLocalVariableDeclaration Local(JsVariableDeclaration declaration)
 {
     return(new JsLocalVariableDeclaration(declaration));
 }