QmlJS: fix reformatting of required properties

Fixes: QTCREATORBUG-24376
Change-Id: I9ebe66f881575ce8e58cee46d34c3ff8da55ef9c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Fawzi Mohamed
2020-09-29 13:11:20 +02:00
parent 2ee1af2032
commit 89c8021c5c
2 changed files with 12 additions and 7 deletions

View File

@@ -632,6 +632,8 @@ protected:
bool visit(UiPublicMember *ast) override
{
if (ast->type == UiPublicMember::Property) {
if (ast->isRequired)
out("required ", ast->requiredToken);
if (ast->isDefaultMember)
out("default ", ast->defaultToken);
else if (ast->isReadonlyMember)