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
qqmljslinterrenamedcomponents_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QQMLJSLINTERRENAMEDCOMPONENTS_P_H
6#define QQMLJSLINTERRENAMEDCOMPONENTS_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 <private/qqmljslogger_p.h>
19#include <private/qqmljssourcelocation_p.h>
20#include <private/qqmljsscope_p.h>
21
22#include <QtCore/qhash.h>
23#include <QtCore/qstring.h>
24#include <QtCore/qvarlengtharray.h>
25
26QT_BEGIN_NAMESPACE
27
28namespace QQmlJS {
29
31{
32public:
33 void handleRenamedType(const QQmlJSScope::ConstPtr &scope, const QStringView name,
34 const QQmlJS::SourceLocation &location, QQmlJSLogger *logger) const;
35
36 bool isTypeRenamedTo(const QQmlJSScope::ConstPtr &scope, const QString &alias) const;
37 void setScopeToName(const QMultiHash<QQmlJSScope::ConstPtr, QString> *scopeToName)
38 {
39 m_scopeToName = scopeToName;
40 }
41
42private:
43 const QMultiHash<QQmlJSScope::ConstPtr, QString> *m_scopeToName = nullptr;
44};
45
46} // namespace QQmlJS
47
48QT_END_NAMESPACE
49
50#endif // QQMLJSLINTERRENAMEDCOMPONENTS_P_H
void setScopeToName(const QMultiHash< QQmlJSScope::ConstPtr, QString > *scopeToName)
void handleRenamedType(const QQmlJSScope::ConstPtr &scope, const QStringView name, const QQmlJS::SourceLocation &location, QQmlJSLogger *logger) const
bool isTypeRenamedTo(const QQmlJSScope::ConstPtr &scope, const QString &alias) const
static QStringView baseNameOf(const QString &path)
Combined button and popup list for selecting options.