QmlCompiler: Clarify code in StoreNameSloppy
In StoreNameSloppy we don't need to generalize the type in the way we have to do it in SetLookup. We can just throw whatever we got at it. Change-Id: I154abc31326c52f1f9ac07f26f67ba14a8b1bf24 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
e297a825c3
commit
fa3157ce6a
|
@ -635,9 +635,7 @@ void QQmlJSCodeGenerator::generate_StoreNameSloppy(int nameIndex)
|
|||
INJECT_TRACE_INFO(generate_StoreNameSloppy);
|
||||
|
||||
const QString name = m_jsUnitGenerator->stringForIndex(nameIndex);
|
||||
const QQmlJSRegisterContent specific = m_typeResolver->scopedType(m_function->qmlScope, name);
|
||||
const QQmlJSRegisterContent type = specific.storedIn(
|
||||
m_typeResolver->genericType(specific.storedType()));
|
||||
const QQmlJSRegisterContent type = m_typeResolver->scopedType(m_function->qmlScope, name);
|
||||
Q_ASSERT(type.isProperty());
|
||||
|
||||
switch (type.variant()) {
|
||||
|
|
Loading…
Reference in New Issue