forked from qt-creator/qt-creator
qmljs: update parser
Update the qtcreator qmljs parser to the one of Qt 5.12. It supports EcmaScript 7. Task-number: QTCREATORBUG-20341 Change-Id: I0d1cff71402ba17e22cde6b46c65614e162280de Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
This commit is contained in:
@@ -134,8 +134,8 @@ protected:
|
||||
for (FormalParameterList *it = ast->formals; it; it = it->next) {
|
||||
if (it != ast->formals)
|
||||
entry.displayName += QLatin1String(", ");
|
||||
if (!it->name.isEmpty())
|
||||
entry.displayName += it->name.toString();
|
||||
if (!it->element->bindingIdentifier.isEmpty())
|
||||
entry.displayName += it->element->bindingIdentifier.toString();
|
||||
}
|
||||
entry.displayName += QLatin1Char(')');
|
||||
entry.symbolName = entry.displayName;
|
||||
@@ -214,8 +214,8 @@ protected:
|
||||
for (FormalParameterList *it = funcExpr->formals; it; it = it->next) {
|
||||
if (it != funcExpr->formals)
|
||||
entry.displayName += QLatin1String(", ");
|
||||
if (!it->name.isEmpty())
|
||||
entry.displayName += it->name.toString();
|
||||
if (!it->element->bindingIdentifier.isEmpty())
|
||||
entry.displayName += it->element->bindingIdentifier.toString();
|
||||
}
|
||||
entry.displayName += QLatin1Char(')');
|
||||
entry.symbolName = entry.displayName;
|
||||
|
||||
Reference in New Issue
Block a user