summaryrefslogtreecommitdiff
path: root/src/qmldom/qqmldomreformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmldom/qqmldomreformatter.cpp')
-rw-r--r--src/qmldom/qqmldomreformatter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmldom/qqmldomreformatter.cpp b/src/qmldom/qqmldomreformatter.cpp
index bb76f8f772..3dfacfc84e 100644
--- a/src/qmldom/qqmldomreformatter.cpp
+++ b/src/qmldom/qqmldomreformatter.cpp
@@ -301,6 +301,7 @@ protected:
for (PatternPropertyList *it = ast; it; it = it->next) {
PatternProperty *assignment = AST::cast<PatternProperty *>(it->property);
if (assignment) {
+ preVisit(assignment);
bool isStringLike = AST::cast<StringLiteralPropertyName *>(assignment->name)
|| cast<IdentifierPropertyName *>(assignment->name);
if (isStringLike)
@@ -316,6 +317,7 @@ protected:
accept(assignment->initializer);
if (it->next)
newLine();
+ postVisit(assignment);
continue;
}
PatternPropertyList *getterSetter = AST::cast<PatternPropertyList *>(it->next);