diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-04 09:06:39 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-04 18:12:57 +0000 |
commit | 798b8d6368dcbcd9b797dad54d87ca0880ad6fb4 (patch) | |
tree | 206dfdead7a6044fbc9b59a4e6c9a0498a38b45a /src/qml/compiler/qv4codegen_p.h | |
parent | d2e7e6ab7fb395e2094295c289a6528ee17f0f0a (diff) |
Unify code paths for the two Foreach variants
They are mostly the same except for initialization.
Change-Id: Idd1c0af1fc4fa3e478aeba7a7d45617949a2f239
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h index e14d6b16e3..d742fe06b7 100644 --- a/src/qml/compiler/qv4codegen_p.h +++ b/src/qml/compiler/qv4codegen_p.h @@ -645,6 +645,9 @@ public: void handleTryCatch(AST::TryStatement *ast); void handleTryFinally(AST::TryStatement *ast); + void foreachBody(const Reference &lhs, AST::Statement *body, const AST::SourceLocation &forToken, const Reference &nextIterObj); + + Reference referenceForName(const QString &name, bool lhs); QQmlRefPointer<QV4::CompiledData::CompilationUnit> generateCompilationUnit(bool generateUnitData = true); |