1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QQUICKLITERALBINDINGCHECK_H
5#define QQUICKLITERALBINDINGCHECK_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qglobal.h>
19#include <QtCore/qstring.h>
20#include <private/qqmljsliteralbindingcheck_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QQmlJSImportVisitor;
25class QQmlJSTypeResolver;
26
27class QQuickLiteralBindingCheck: public LiteralBindingCheckBase
28{
29public:
30 using LiteralBindingCheckBase::LiteralBindingCheckBase;
31
32 void onBinding(
33 const QQmlSA::Element &element, const QString &propertyName,
34 const QQmlSA::Binding &binding, const QQmlSA::Element &bindingScope,
35 const QQmlSA::Element &value) override;
36
37 QQmlJSStructuredTypeError check(const QString &typeName, const QString &value) const override;
38};
39
40QT_END_NAMESPACE
41
42#endif // QQUICKLITERALBINDINGCHECK_H
43

source code of qtdeclarative/src/plugins/qmllint/quick/qquickliteralbindingcheck_p.h