diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-10 22:25:46 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-11 07:17:26 +0000 |
commit | e203a868470ab2e435111127f00530f4d8cc581d (patch) | |
tree | ff7313f90b62b6953ac8369dbd93600bcbe437ff /src/qml/compiler/qv4compilerscanfunctions.cpp | |
parent | e3b9726483cb7336aa54ae7d9455becbd148b2b6 (diff) |
Unify AST for the different 'for' statements
Change-Id: I70ca83b0ce933d64dad4984a236e48592e989742
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
-rw-r--r-- | src/qml/compiler/qv4compilerscanfunctions.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/qml/compiler/qv4compilerscanfunctions.cpp b/src/qml/compiler/qv4compilerscanfunctions.cpp index ccf7e49e25..31663e2162 100644 --- a/src/qml/compiler/qv4compilerscanfunctions.cpp +++ b/src/qml/compiler/qv4compilerscanfunctions.cpp @@ -321,16 +321,6 @@ bool ScanFunctions::visit(DoWhileStatement *ast) { bool ScanFunctions::visit(ForStatement *ast) { Node::accept(ast->initialiser, this); - Node::accept(ast->condition, this); - Node::accept(ast->expression, this); - - TemporaryBoolAssignment allowFuncDecls(_allowFuncDecls, !_context->isStrict); - Node::accept(ast->statement, this); - - return false; -} - -bool ScanFunctions::visit(LocalForStatement *ast) { Node::accept(ast->declarations, this); Node::accept(ast->condition, this); Node::accept(ast->expression, this); |