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:
@@ -1852,7 +1852,7 @@ ASTObjectValue::ASTObjectValue(UiQualifiedId *typeName,
|
||||
if (def->type == UiPublicMember::Property && !def->name.isEmpty()) {
|
||||
ASTPropertyReference *ref = new ASTPropertyReference(def, m_doc, valueOwner);
|
||||
m_properties.append(ref);
|
||||
if (def->defaultToken.isValid())
|
||||
if (def->defaultToken().isValid())
|
||||
m_defaultPropertyRef = ref;
|
||||
} else if (def->type == UiPublicMember::Signal && !def->name.isEmpty()) {
|
||||
ASTSignal *ref = new ASTSignal(def, m_doc, valueOwner);
|
||||
@@ -1884,7 +1884,7 @@ void ASTObjectValue::processMembers(MemberProcessor *processor) const
|
||||
{
|
||||
foreach (ASTPropertyReference *ref, m_properties) {
|
||||
uint pFlags = PropertyInfo::Readable;
|
||||
if (!ref->ast()->isReadonlyMember)
|
||||
if (!ref->ast()->isReadonly())
|
||||
pFlags |= PropertyInfo::Writeable;
|
||||
processor->processProperty(ref->ast()->name.toString(), ref, PropertyInfo(pFlags));
|
||||
// ### Should get a different value?
|
||||
|
||||
Reference in New Issue
Block a user