QmlJS: Fix code re-formatter for arrays

Task-number: QTCREATORBUG-22026
Change-Id: Iae9e53b149ebfbbe904fc1aef8408b1f6f852a13
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2019-04-03 15:10:05 +02:00
committed by Tim Jenssen
parent 57495d421c
commit b7753ac86a

View File

@@ -921,12 +921,11 @@ protected:
bool visit(PatternElement *ast) override
{
if (!ast->isVariableDeclaration())
return false;
out(ast->identifierToken);
if (ast->initializer) {
out(" = ");
if (ast->isVariableDeclaration())
out(" = ");
accept(ast->initializer);
}
return false;