Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmljslookupsignatures_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant
4
5#ifndef QQMLJSLOOKUPSIGNATURES_P_H
6#define QQMLJSLOOKUPSIGNATURES_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17
18#include <QtQml/qqmlprivate.h>
19
20#include <private/qqmljsscope_p.h>
21
22#include <qtqmlcompilerexports.h>
23
25
27{
28public:
29 QQmlJSLookupSignaturesRecorder(const QString &currentFilePath,
30 const QQmlJSTypeResolver *typeResolver);
31
32 QQmlPrivate::AOTLookupValidation::LookupSignatures signatures() const { return m_signatures; }
33
34 void recordPropertyLookup(const QQmlJSScope::ConstPtr &base, const QQmlJSMetaProperty &prop);
35 void recordMethodLookup(const QQmlJSScope::ConstPtr &base, const QQmlJSMetaMethod &method);
36 void recordEnumKeyLookup(const QQmlJSScope::ConstPtr &base, const QQmlJSMetaEnum &metaEnum,
37 const QString &keyName);
38
39private:
40 bool cantDesync(const QQmlJSScope::ConstPtr &base) const;
41 bool safeBase(const QQmlJSScope::ConstPtr &base) const;
42 bool isUnnamedCompositeType(const QQmlJSScope::ConstPtr &type) const;
43
44 QQmlPrivate::AOTLookupValidation::Type type(const QQmlJSScope::ConstPtr &type);
45
46 const QString m_currentFilePath;
47 const QQmlJSTypeResolver *m_typeResolver = nullptr;
48 QQmlPrivate::AOTLookupValidation::LookupSignatures m_signatures;
49};
50
51QT_END_NAMESPACE
52
53#endif // QQMLJSLOOKUPSIGNATURES_P_H
static int ownAliasCountBeforeIndex(const QQmlJSScope::ConstPtr &type, int index)
static int ownRegularMethodCountBeforeIndex(const QQmlJSScope::ConstPtr &type, int index)
static int ownRegularPropertyCountAfterIndex(const QQmlJSScope::ConstPtr &type, int index)
static QQmlJSMetaMethod::RelativeFunctionIndex methodIndex(const QQmlJSMetaMethod &m)
static int ownSignalCountAfterIndex(const QQmlJSScope::ConstPtr &type, int index)