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
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
// Qt-Security score:significant
4
5
#
ifndef
QQMLSASOURCELOCATION_P_H
6
#
define
QQMLSASOURCELOCATION_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
"qqmlsasourcelocation.h"
19
20
#
include
<
QtQml
/
private
/
qqmljssourcelocation_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
namespace
QQmlSA
{
25
26
class
SourceLocationPrivate
27
{
28
public
:
29
static
const
QQmlJS
::
SourceLocation
&
30
sourceLocation
(
const
QQmlSA::SourceLocation &sourceLocation)
31
{
32
return
reinterpret_cast
<
const
QQmlJS
::
SourceLocation
&>(sourceLocation.m_data);
33
}
34
35
static
QQmlSA
::
SourceLocation
36
createQQmlSASourceLocation
(
const
QQmlJS
::
SourceLocation
&jsLocation)
37
{
38
QQmlSA
::
SourceLocation
saLocation;
39
auto
&internal =
reinterpret_cast
<QQmlJS::SourceLocation &>(saLocation.m_data);
40
internal = jsLocation;
41
return
saLocation;
42
}
43
44
static
constexpr
qsizetype
sizeOfSourceLocation
()
45
{
46
return
SourceLocation::sizeofSourceLocation;
47
}
48
};
49
50
}
// namespace QQmlSA
51
52
QT_END_NAMESPACE
53
54
#
endif
// QQMLSASOURCELOCATION_P_H
QQmlJS::SourceLocation
Definition
qqmljssourcelocation_p.h:26
QQmlSA::SourceLocationPrivate
Definition
qqmlsasourcelocation_p.h:27
QQmlSA::SourceLocationPrivate::sourceLocation
static const QQmlJS::SourceLocation & sourceLocation(const QQmlSA::SourceLocation &sourceLocation)
Definition
qqmlsasourcelocation_p.h:30
QQmlSA::SourceLocationPrivate::createQQmlSASourceLocation
static QQmlSA::SourceLocation createQQmlSASourceLocation(const QQmlJS::SourceLocation &jsLocation)
Definition
qqmlsasourcelocation_p.h:36
QQmlSA::SourceLocationPrivate::sizeOfSourceLocation
static constexpr qsizetype sizeOfSourceLocation()
Definition
qqmlsasourcelocation_p.h:44
QQmlSA::SourceLocation
\inmodule QtQmlCompiler
Definition
qqmlsasourcelocation.h:23
QPlatformGraphicsBufferHelper
\inmodule QtGui
QQmlJS
Definition
qv4bytecodegenerator_p.h:26
QQmlSA
\inmodule QtQmlCompiler
Definition
qqmljsscope_p.h:700
qtdeclarative
src
qmlcompiler
qqmlsasourcelocation_p.h
Generated on
for Qt by
1.14.0