1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLSACONSTANTS_H
5#define QQMLSACONSTANTS_H
6
7#include <QtCore/qtconfigmacros.h>
8
9QT_BEGIN_NAMESPACE
10
11namespace QQmlSA {
12
13enum class BindingType : unsigned int {
14 Invalid,
15 BoolLiteral,
16 NumberLiteral,
17 StringLiteral,
18 RegExpLiteral,
19 Null,
20 Translation,
21 TranslationById,
22 Script,
23 Object,
24 Interceptor,
25 ValueSource,
26 AttachedProperty,
27 GroupProperty,
28};
29
30enum class ScriptBindingKind : unsigned int {
31 Invalid,
32 PropertyBinding, // property int p: 1 + 1
33 SignalHandler, // onSignal: { ... }
34 ChangeHandler, // onXChanged: { ... }
35};
36
37enum class ScopeType {
38 JSFunctionScope,
39 JSLexicalScope,
40 QMLScope,
41 GroupedPropertyScope,
42 AttachedPropertyScope,
43 EnumScope
44};
45
46} // namespace QQmlSA
47
48QT_END_NAMESPACE
49
50#endif // QQMLSACONSTANTS_H
51

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