diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-04 14:59:47 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-21 13:30:38 +0000 |
commit | 77c22af561f49bc6a78010564d33fc86eb831519 (patch) | |
tree | 6e4c09c7f833d994c085dba8c08d6e117be6a23b /src/qml/parser/qqmljsast_p.h | |
parent | 3adc6dcf5ea078c9a365a63fb99f7869fd070cc2 (diff) |
Fix handling of elisions in destructuring expressions
We need to iterator over elisions at the end, as those could
trigger side effects by calling iterator.next()
Change-Id: Ieb5fa3562b6e60fdf179fa228510b2eeaaf9da30
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/parser/qqmljsast_p.h')
-rw-r--r-- | src/qml/parser/qqmljsast_p.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/qml/parser/qqmljsast_p.h b/src/qml/parser/qqmljsast_p.h index 91d6410132..2d4d5662bd 100644 --- a/src/qml/parser/qqmljsast_p.h +++ b/src/qml/parser/qqmljsast_p.h @@ -542,18 +542,10 @@ class QML_PARSER_EXPORT ArrayPattern : public Pattern public: QQMLJS_DECLARE_AST_NODE(ArrayPattern) - ArrayPattern(Elision *e) - : elision(e) - { kind = K; } - ArrayPattern(PatternElementList *elts) : elements(elts) { kind = K; } - ArrayPattern(PatternElementList *elts, Elision *e) - : elements(elts), elision(e) - { kind = K; } - void accept0(Visitor *visitor) override; SourceLocation firstSourceLocation() const override @@ -568,7 +560,6 @@ public: // attributes PatternElementList *elements = nullptr; - Elision *elision = nullptr; SourceLocation lbracketToken; SourceLocation commaToken; SourceLocation rbracketToken; |