aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser
diff options
context:
space:
mode:
authorDmitrii Akshintsev <dmitrii.akshintsev@qt.io>2024-02-07 14:41:24 +0100
committerDmitrii Akshintsev <dmitrii.akshintsev@qt.io>2024-03-13 13:30:37 +0000
commitb5b1e67a08839d64016c07409cd6e1d00402eabf (patch)
tree95231d0b53eb65f558d47de942334dd81f6af319 /src/qml/parser
parentad83c1b0de461350614ca40d7ce3c5ec88493de7 (diff)
QQMLJSAST Change traversal order for ExportDeclaration
It is not clear whether there are special corner cases when it's important to traverse first FromClause instead of ExportClause. However the order of traversing ExportClause will make it simpler for the formatting usecase when there is a need to format an export statement: `export ExportClause FromClause` Change-Id: I43bfbe7737bd925d55df3f05de72445d6d16aa6d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/parser')
-rw-r--r--src/qml/parser/qqmljsast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/parser/qqmljsast.cpp b/src/qml/parser/qqmljsast.cpp
index a45d4cbd1b..8f13ad193e 100644
--- a/src/qml/parser/qqmljsast.cpp
+++ b/src/qml/parser/qqmljsast.cpp
@@ -1158,8 +1158,8 @@ void ExportClause::accept0(BaseVisitor *visitor)
void ExportDeclaration::accept0(BaseVisitor *visitor)
{
if (visitor->visit(this)) {
- accept(fromClause, visitor);
accept(exportClause, visitor);
+ accept(fromClause, visitor);
accept(variableStatementOrDeclaration, visitor);
}