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
qqmltypecompiler_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant
4
5#ifndef QQMLTYPECOMPILER_P_H
6#define QQMLTYPECOMPILER_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
19#include <qglobal.h>
20#include <qqmlerror.h>
21#include <qhash.h>
22#include <private/qqmltypeloader_p.h>
23#include <private/qqmlirbuilder_p.h>
24#include <private/qqmlpropertyresolver_p.h>
25#include <private/qqmlpropertycachecreator_p.h>
26
28
30class QQmlError;
31class QQmlTypeData;
32class QQmlImports;
33class QTypeRevision;
34
35namespace QmlIR {
36struct Document;
37}
38
39namespace QV4 {
40namespace CompiledData {
41struct QmlUnit;
42struct Location;
43}
44}
45
47{
49public:
51
53
54 QList<QQmlError> compilationErrors() const { return errors; }
55
56 static QList<QQmlError>
57 computeRuntimeData(QV4::CompiledData::CompilationUnit *unit, QQmlTypeLoader *typeLoader,
58 const QQmlImports *imports,
59 const QV4::CompiledData::DependentTypesHasher &dependencyHasher);
60
61private:
62 void recordError(const QQmlJS::DiagnosticMessage &message);
63
64 QList<QQmlError> errors;
65 QmlIR::Document *document;
66 QQmlTypeData *typeData;
67};
68
69QT_END_NAMESPACE
70
71#endif // QQMLTYPECOMPILER_P_H
friend class QQmlEnginePrivate
\inmodule QtCore
Combined button and popup list for selecting options.
Definition qjsvalue.h:24
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
QList< QQmlError > compilationErrors() const
static QList< QQmlError > computeRuntimeData(QV4::CompiledData::CompilationUnit *unit, QQmlTypeLoader *typeLoader, const QQmlImports *imports, const QV4::CompiledData::DependentTypesHasher &dependencyHasher)
QQmlRefPointer< QV4::CompiledData::CompilationUnit > compile()