aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmlsaconstants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qqmlsaconstants.h')
-rw-r--r--src/qmlcompiler/qqmlsaconstants.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmlsaconstants.h b/src/qmlcompiler/qqmlsaconstants.h
new file mode 100644
index 0000000000..019040d259
--- /dev/null
+++ b/src/qmlcompiler/qqmlsaconstants.h
@@ -0,0 +1,50 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#ifndef QQMLSACONSTANTS_H
+#define QQMLSACONSTANTS_H
+
+#include <QtCore/qtconfigmacros.h>
+
+QT_BEGIN_NAMESPACE
+
+namespace QQmlSA {
+
+enum class BindingType : unsigned int {
+ Invalid,
+ BoolLiteral,
+ NumberLiteral,
+ StringLiteral,
+ RegExpLiteral,
+ Null,
+ Translation,
+ TranslationById,
+ Script,
+ Object,
+ Interceptor,
+ ValueSource,
+ AttachedProperty,
+ GroupProperty,
+};
+
+enum class ScriptBindingKind : unsigned int {
+ Invalid,
+ PropertyBinding, // property int p: 1 + 1
+ SignalHandler, // onSignal: { ... }
+ ChangeHandler, // onXChanged: { ... }
+};
+
+enum class ScopeType {
+ JSFunctionScope,
+ JSLexicalScope,
+ QMLScope,
+ GroupedPropertyScope,
+ AttachedPropertyScope,
+ EnumScope
+};
+
+} // namespace QQmlSA
+
+QT_END_NAMESPACE
+
+#endif // QQMLSACONSTANTS_H