diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-25 09:45:24 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-25 11:32:45 +0200 |
commit | d00fbd043e53913bc64148f3207571d85f661a30 (patch) | |
tree | d3c95888c28544852027a765584cd2aef10749fe /src/qml/qml/qqmlrewrite_p.h | |
parent | 70dee431e82aa4596aa993570120ab9afc7b608b (diff) |
Don't rewrite the body of function expressions
That is, don't look inside function expressions when rewriting
bindings as closures.
Task-number: QTBUG-25901
Change-Id: Ia4b99d3c58c4482e9505cf2461bd14942a9a00ca
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlrewrite_p.h')
-rw-r--r-- | src/qml/qml/qqmlrewrite_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlrewrite_p.h b/src/qml/qml/qqmlrewrite_p.h index 064398115a..9fcc9896e6 100644 --- a/src/qml/qml/qqmlrewrite_p.h +++ b/src/qml/qml/qqmlrewrite_p.h @@ -120,6 +120,9 @@ protected: virtual bool visit(AST::CaseBlock *ast); + virtual bool visit(AST::FunctionExpression *ast); + virtual bool visit(AST::FunctionDeclaration *ast); + private: int _inLoop; }; |