Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmljsfunctioninitializer_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QQMLJSFUNCTIONINITIALIAZER_P_H
5#define QQMLJSFUNCTIONINITIALIAZER_P_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#include <private/qqmljscompilepass_p.h>
18
20
21class Q_QMLCOMPILER_EXPORT QQmlJSFunctionInitializer
22{
23 Q_DISABLE_COPY_MOVE(QQmlJSFunctionInitializer)
24public:
26 const QQmlJSTypeResolver *typeResolver,
27 const QV4::CompiledData::Location &objectLocation,
28 const QV4::CompiledData::Location &scopeLocation)
29 : m_typeResolver(typeResolver)
30 , m_scopeType(typeResolver->scopeForLocation(scopeLocation))
31 , m_objectType(typeResolver->scopeForLocation(objectLocation))
32 {}
33
36 const QString &propertyName, QQmlJS::AST::Node *astNode,
37 const QmlIR::Binding &irBinding,
41 const QString &functionName, QQmlJS::AST::Node *astNode,
43
44private:
45 void populateSignature(
48
49 const QQmlJSTypeResolver *m_typeResolver = nullptr;
50 const QQmlJSScope::ConstPtr m_scopeType;
51 const QQmlJSScope::ConstPtr m_objectType;
52};
53
55
56#endif // QQMLJSFUNCTIONINITIALIZER_P_H
QQmlJSFunctionInitializer(const QQmlJSTypeResolver *typeResolver, const QV4::CompiledData::Location &objectLocation, const QV4::CompiledData::Location &scopeLocation)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
static void * context
DBusConnection const char DBusError * error