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

source code of qtdeclarative/src/qmlcompiler/qqmljstypereader_p.h