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
qqmljsaotirbuilder_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QQMLJSAOTIRBUILDER_P_H
6#define QQMLJSAOTIRBUILDER_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 <qtqmlcompilerexports.h>
19
20#include <private/qqmlirbuilder_p.h>
21
23
24struct Q_QMLCOMPILER_EXPORT QQmlJSAOTIRBuilder : public QmlIR::IRBuilder
25{
26 using QmlIR::IRBuilder::visit;
27
28 bool visit(QQmlJS::AST::FunctionExpression *ast) override;
29 bool visit(QQmlJS::AST::FunctionDeclaration *ast) override;
30
31 bool visit(QQmlJS::AST::UiSourceElement *node) override;
32
33 void registerFunctionExpr(QQmlJS::AST::FunctionExpression *fexp, IsQmlFunction) override;
34
35 void setBindingValue(QV4::CompiledData::Binding *binding, QQmlJS::AST::Statement *statement,
36 QQmlJS::AST::Node *parentNode) override;
37
38 QSet<std::pair<QmlIR::Object *, QQmlJS::AST::FunctionExpression *>> qmlFuncDecls;
39};
40
41QT_END_NAMESPACE
42
43#endif // QQMLJSAOTIRBUILDER_P_H
Combined button and popup list for selecting options.