Updating qmljs parser to latest qtdeclarative parser

improves support for string templates, required properties,
and other smaller improvements

Task-number: QTCREATORBUG-21869
Change-Id: Ia2359e1f75d4bd7b9ea4f27a920acd2251e36108
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Fawzi Mohamed
2021-12-03 15:49:28 +01:00
parent 16ced8a7d6
commit 125d7c0cce
25 changed files with 5669 additions and 5969 deletions

View File

@@ -101,8 +101,7 @@ protected:
return text;
}
void accept(AST::Node *node)
{ AST::Node::acceptChild(node, this); }
void accept(AST::Node *node) { AST::Node::accept(node, this); }
using Visitor::visit;
using Visitor::endVisit;
@@ -186,8 +185,7 @@ protected:
return text;
}
void accept(AST::Node *node)
{ AST::Node::acceptChild(node, this); }
void accept(AST::Node *node) { AST::Node::accept(node, this); }
void init(Declaration *decl, AST::UiObjectMember *member)
{

View File

@@ -91,8 +91,7 @@ public:
}
protected:
void accept(AST::Node *node)
{ AST::Node::acceptChild(node, this); }
void accept(AST::Node *node) { AST::Node::accept(node, this); }
using Visitor::visit;
@@ -321,8 +320,7 @@ public:
}
protected:
void accept(AST::Node *node)
{ AST::Node::acceptChild(node, this); }
void accept(AST::Node *node) { AST::Node::accept(node, this); }
using Visitor::visit;
@@ -507,8 +505,7 @@ public:
}
protected:
void accept(AST::Node *node)
{ AST::Node::acceptChild(node, this); }
void accept(AST::Node *node) { AST::Node::accept(node, this); }
using Visitor::visit;
@@ -596,7 +593,7 @@ protected:
bool visit(UiPublicMember *node) override
{
if (containsOffset(node->typeToken)){
if (node->defaultToken.isValid()) {
if (node->defaultToken().isValid()) {
_name = node->memberType->name.toString();
_targetValue = _scopeChain->context()->lookupType(_doc.data(), QStringList(_name));
_scope = nullptr;