1 | // Copyright (C) 2020 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 QQMLJSTYPEREADER_P_H |
5 | #define QQMLJSTYPEREADER_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 "qqmljsscope_p.h" |
18 | #include "qqmljsimporter_p.h" |
19 | #include "qqmljsresourcefilemapper_p.h" |
20 | |
21 | #include <QtQml/private/qqmljsastfwd_p.h> |
22 | #include <QtQml/private/qqmljsdiagnosticmessage_p.h> |
23 | |
24 | #include <QtCore/qpair.h> |
25 | #include <QtCore/qset.h> |
26 | |
27 | QT_BEGIN_NAMESPACE |
28 | |
29 | class QQmlJSTypeReader |
30 | { |
31 | public: |
32 | QQmlJSTypeReader(QQmlJSImporter *importer, const QString &file) |
33 | : m_importer(importer) |
34 | , m_file(file) |
35 | {} |
36 | |
37 | bool operator()(const QSharedPointer<QQmlJSScope> &scope); |
38 | QList<QQmlJS::DiagnosticMessage> errors() const { return m_errors; } |
39 | |
40 | private: |
41 | QQmlJSImporter *m_importer; |
42 | QString m_file; |
43 | QStringList m_qmldirFiles; |
44 | QList<QQmlJS::DiagnosticMessage> m_errors; |
45 | }; |
46 | |
47 | QT_END_NAMESPACE |
48 | |
49 | #endif // QQMLJSTYPEREADER_P_H |
50 |