forked from qt-creator/qt-creator
QmlJs: fixed a regression in reformatter.
The commit b26920c3a3 introduced a bug
in reformatting properties lacking an object initializer.
Change-Id: I30f9c9c8a005660e7af4a6c97d0b1ff1be461548
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -554,6 +554,8 @@ protected:
|
|||||||
accept(ast->statement);
|
accept(ast->statement);
|
||||||
} else if (ast->binding) {
|
} else if (ast->binding) {
|
||||||
accept(ast->binding);
|
accept(ast->binding);
|
||||||
|
} else {
|
||||||
|
out(ast->identifierToken);
|
||||||
}
|
}
|
||||||
} else { // signal
|
} else { // signal
|
||||||
out("signal ");
|
out("signal ");
|
||||||
|
|||||||
Reference in New Issue
Block a user