JS checks: Allow blocks after for(var ...).

Also
* check the condition of the 'for(var' statement for assignment
* allow comma expressions in 'for(var'

Reviewed-by: Erik Verbruggen
This commit is contained in:
Christian Kamm
2010-12-06 09:54:10 +01:00
parent 9f1737b452
commit 23d7752815
2 changed files with 14 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ protected:
virtual bool visit(AST::ExpressionStatement *ast);
virtual bool visit(AST::IfStatement *ast);
virtual bool visit(AST::ForStatement *ast);
virtual bool visit(AST::LocalForStatement *ast);
virtual bool visit(AST::WhileStatement *ast);
virtual bool visit(AST::DoWhileStatement *ast);
virtual bool visit(AST::CaseClause *ast);