Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlsasourcelocation_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 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 QQMLSASOURCELOCATION_P_H
5#define QQMLSASOURCELOCATION_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
18
19#include <QtQml/private/qqmljssourcelocation_p.h>
20
22
23namespace QQmlSA {
24
26{
27public:
28 static const QQmlJS::SourceLocation &
30 {
31 return reinterpret_cast<const QQmlJS::SourceLocation &>(sourceLocation.m_data);
32 }
33
36 {
37 QQmlSA::SourceLocation saLocation;
38 auto &internal = reinterpret_cast<QQmlJS::SourceLocation &>(saLocation.m_data);
39 internal = jsLocation;
40 return saLocation;
41 }
42
44 {
45 return SourceLocation::sizeofSourceLocation;
46 }
47};
48
49} // namespace QQmlSA
50
52
53#endif // QQMLSASOURCELOCATION_P_H
static const QQmlJS::SourceLocation & sourceLocation(const QQmlSA::SourceLocation &sourceLocation)
static QQmlSA::SourceLocation createQQmlSASourceLocation(const QQmlJS::SourceLocation &jsLocation)
static constexpr qsizetype sizeOfSourceLocation()
\inmodule QtQmlCompiler
\inmodule QtQmlCompiler
Combined button and popup list for selecting options.
ptrdiff_t qsizetype
Definition qtypes.h:165