forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user