qmllint: ignore custom parsed list bindings

Amends 56c16d0e97 that only ignores
"normal" bindings from warnings in custom parsed contexts, and also
ignore list bindings from custom parsed contexts.

Pick-to: 6.8 6.7 6.5
Change-Id: I66538ddaac49686a5ad6b6560ddbdbd50bebb717
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Sami Shalayel 2024-09-20 14:23:07 +02:00
parent 2f5336c7d3
commit 11de566dab
1 changed files with 6 additions and 0 deletions

View File

@ -2220,6 +2220,12 @@ void QQmlJSImportVisitor::endVisit(UiArrayBinding *arrayBinding)
const auto propertyName = getScopeName(m_currentScope, QQmlSA::ScopeType::QMLScope);
leaveEnvironment();
if (m_currentScope->isInCustomParserParent()) {
// These warnings do not apply for custom parsers and their children and need to be handled
// on a case by case basis
return;
}
qsizetype i = 0;
for (auto element = arrayBinding->members; element; element = element->next, ++i) {
const auto &type = children[i];