diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-03-22 16:04:03 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-04-27 08:11:16 +0000 |
commit | e07a03365ad07cd4294f487b15a57f31bd0a3d40 (patch) | |
tree | 7954c244860da7e424513f967cea91a93ab7172a /src/qml/parser/qqmljsastvisitor_p.h | |
parent | 837dd08f65588f7f248150c0cacd1e3ef6c4e91f (diff) |
Rename Array/ObjectLiteral to Array/ObjectPattern in the AST
To get a consistent representation in the AST, we need to unify
the AST that is generated by theObjectLiterals, ObjectBindingPattern
and ObjectAssignmentPattern rules in the grammar. Like this we
can avoid having to reparse part of the source code, and instead
replace this with consistency checks once we know which of the
three grammars are supposed to apply.
Change-Id: Ib90f521f9595db6bcad446e40de9b912bab3da7c
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/parser/qqmljsastvisitor_p.h')
-rw-r--r-- | src/qml/parser/qqmljsastvisitor_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/parser/qqmljsastvisitor_p.h b/src/qml/parser/qqmljsastvisitor_p.h index 14b5aa135f..a8534ca684 100644 --- a/src/qml/parser/qqmljsastvisitor_p.h +++ b/src/qml/parser/qqmljsastvisitor_p.h @@ -137,11 +137,11 @@ public: virtual bool visit(RegExpLiteral *) { return true; } virtual void endVisit(RegExpLiteral *) {} - virtual bool visit(ArrayLiteral *) { return true; } - virtual void endVisit(ArrayLiteral *) {} + virtual bool visit(ArrayPattern *) { return true; } + virtual void endVisit(ArrayPattern *) {} - virtual bool visit(ObjectLiteral *) { return true; } - virtual void endVisit(ObjectLiteral *) {} + virtual bool visit(ObjectPattern *) { return true; } + virtual void endVisit(ObjectPattern *) {} virtual bool visit(ElementList *) { return true; } virtual void endVisit(ElementList *) {} |