Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
24
QT_BEGIN_NAMESPACE
25
26
class
Q_QMLCOMPILER_EXPORT
QQmlJSLookupSignaturesRecorder
27
{
28
public
:
29
QQmlJSLookupSignaturesRecorder(
const
QString ¤tFilePath,
30
const
QQmlJSTypeResolver *typeResolver);
31
32
QQmlPrivate::AOTLookupValidation::LookupSignatures signatures()
const
{
return
m_signatures; }
33
34
bool
recordPropertyLookup(
const
QQmlJSScope::ConstPtr &base,
const
QQmlJSMetaProperty &prop);
35
bool
recordMethodLookup(
const
QQmlJSScope::ConstPtr &base,
const
QQmlJSMetaMethod &method);
36
bool
recordEnumKeyLookup(
const
QQmlJSScope::ConstPtr &base,
const
QQmlJSMetaEnum &metaEnum,
37
const
QString &keyName);
38
39
QString rejectMessage() {
return
m_rejectMessage; }
40
41
private
:
42
bool
cantDesync(
const
QQmlJSScope::ConstPtr &base)
const
;
43
bool
safeBase(
const
QQmlJSScope::ConstPtr &base)
const
;
44
bool
isUnnamedCompositeType(
const
QQmlJSScope::ConstPtr &type)
const
;
45
46
std::optional<QQmlPrivate::AOTLookupValidation::Type> type(
const
QQmlJSScope::ConstPtr &type);
47
48
const
QString m_currentFilePath;
49
const
QQmlJSTypeResolver *m_typeResolver =
nullptr
;
50
QQmlPrivate::AOTLookupValidation::LookupSignatures m_signatures;
51
52
QString m_rejectMessage;
53
};
54
55
QT_END_NAMESPACE
56
57
#
endif
// QQMLJSLOOKUPSIGNATURES_P_H
QQmlJSLookupSignaturesRecorder
Definition
qqmljslookupsignatures_p.h:27
ownAliasCountBeforeIndex
static int ownAliasCountBeforeIndex(const QQmlJSScope::ConstPtr &type, int index)
Definition
qqmljslookupsignatures.cpp:152
ownRegularMethodCountBeforeIndex
static int ownRegularMethodCountBeforeIndex(const QQmlJSScope::ConstPtr &type, int index)
Definition
qqmljslookupsignatures.cpp:131
ownRegularPropertyCountAfterIndex
static int ownRegularPropertyCountAfterIndex(const QQmlJSScope::ConstPtr &type, int index)
Definition
qqmljslookupsignatures.cpp:161
CHECKED_OPT_ASSIGN
#define CHECKED_OPT_ASSIGN(var, expr)
Definition
qqmljslookupsignatures.cpp:21
ownSignalCountAfterIndex
static int ownSignalCountAfterIndex(const QQmlJSScope::ConstPtr &type, int index)
Definition
qqmljslookupsignatures.cpp:142
qtdeclarative
src
qmlcompiler
qqmljslookupsignatures_p.h
Generated on
for Qt by
1.18.0