diff options
author | Fabian Kosmale <[email protected]> | 2023-09-18 15:40:45 +0200 |
---|---|---|
committer | Fabian Kosmale <[email protected]> | 2023-09-21 00:07:22 +0200 |
commit | d77693a028ce4c0faffafb612b8f4881d38e99ac (patch) | |
tree | de3672a37aa168b1680c0441dc198c96d9c0dcd2 /src/qmlcompiler/qqmljslogger.cpp | |
parent | bc709184afcb8373be6d69309cb53294455d7248 (diff) |
QQmlSA: Don't expose QQmlJS namespace
QQmlSA is meant as the public namespace, QQmlJS is (at least currently)
completely internal. However, LoggerWarningID currently only existed in
QQmlJS.
Move it into QQmlSA, add some minimal class documentation and add a
typedef in QQmlJS (inside a private header) to avoid the need to modify
all users.
Pick-to: 6.6.0 6.6
Change-Id: Icff860c92054ac810c6e15eb26090d38fbc2c965
Reviewed-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljslogger.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp index 07df647490..7bf686018d 100644 --- a/src/qmlcompiler/qqmljslogger.cpp +++ b/src/qmlcompiler/qqmljslogger.cpp @@ -25,42 +25,42 @@ QT_BEGIN_NAMESPACE using namespace Qt::StringLiterals; -const QQmlJS::LoggerWarningId qmlRequired{ "required" }; -const QQmlJS::LoggerWarningId qmlAliasCycle{ "alias-cycle" }; -const QQmlJS::LoggerWarningId qmlUnresolvedAlias{ "unresolved-alias" }; -const QQmlJS::LoggerWarningId qmlImport{ "import" }; -const QQmlJS::LoggerWarningId qmlRecursionDepthErrors{ "recursion-depth-errors" }; -const QQmlJS::LoggerWarningId qmlWith{ "with" }; -const QQmlJS::LoggerWarningId qmlInheritanceCycle{ "inheritance-cycle" }; -const QQmlJS::LoggerWarningId qmlDeprecated{ "deprecated" }; -const QQmlJS::LoggerWarningId qmlSignalParameters{ "signal-handler-parameters" }; -const QQmlJS::LoggerWarningId qmlMissingType{ "missing-type" }; -const QQmlJS::LoggerWarningId qmlUnresolvedType{ "unresolved-type" }; -const QQmlJS::LoggerWarningId qmlRestrictedType{ "restricted-type" }; -const QQmlJS::LoggerWarningId qmlPrefixedImportType{ "prefixed-import-type" }; -const QQmlJS::LoggerWarningId qmlIncompatibleType{ "incompatible-type" }; -const QQmlJS::LoggerWarningId qmlMissingProperty{ "missing-property" }; -const QQmlJS::LoggerWarningId qmlNonListProperty{ "non-list-property" }; -const QQmlJS::LoggerWarningId qmlReadOnlyProperty{ "read-only-property" }; -const QQmlJS::LoggerWarningId qmlDuplicatePropertyBinding{ "duplicate-property-binding" }; -const QQmlJS::LoggerWarningId qmlDuplicatedName{ "duplicated-name" }; -const QQmlJS::LoggerWarningId qmlDeferredPropertyId{ "deferred-property-id" }; -const QQmlJS::LoggerWarningId qmlUnqualified{ "unqualified" }; -const QQmlJS::LoggerWarningId qmlUnusedImports{ "unused-imports" }; -const QQmlJS::LoggerWarningId qmlMultilineStrings{ "multiline-strings" }; -const QQmlJS::LoggerWarningId qmlSyntax{ "syntax" }; -const QQmlJS::LoggerWarningId qmlSyntaxIdQuotation{ "syntax.id-quotation" }; -const QQmlJS::LoggerWarningId qmlSyntaxDuplicateIds{ "syntax.duplicate-ids" }; -const QQmlJS::LoggerWarningId qmlCompiler{ "compiler" }; -const QQmlJS::LoggerWarningId qmlAttachedPropertyReuse{ "attached-property-reuse" }; -const QQmlJS::LoggerWarningId qmlPlugin{ "plugin" }; -const QQmlJS::LoggerWarningId qmlVarUsedBeforeDeclaration{ "var-used-before-declaration" }; -const QQmlJS::LoggerWarningId qmlInvalidLintDirective{ "invalid-lint-directive" }; -const QQmlJS::LoggerWarningId qmlUseProperFunction{ "use-proper-function" }; -const QQmlJS::LoggerWarningId qmlAccessSingleton{ "access-singleton-via-object" }; -const QQmlJS::LoggerWarningId qmlTopLevelComponent{ "top-level-component" }; -const QQmlJS::LoggerWarningId qmlUncreatableType{ "uncreatable-type" }; -const QQmlJS::LoggerWarningId qmlMissingEnumEntry{ "missing-enum-entry" }; +const QQmlSA::LoggerWarningId qmlRequired{ "required" }; +const QQmlSA::LoggerWarningId qmlAliasCycle{ "alias-cycle" }; +const QQmlSA::LoggerWarningId qmlUnresolvedAlias{ "unresolved-alias" }; +const QQmlSA::LoggerWarningId qmlImport{ "import" }; +const QQmlSA::LoggerWarningId qmlRecursionDepthErrors{ "recursion-depth-errors" }; +const QQmlSA::LoggerWarningId qmlWith{ "with" }; +const QQmlSA::LoggerWarningId qmlInheritanceCycle{ "inheritance-cycle" }; +const QQmlSA::LoggerWarningId qmlDeprecated{ "deprecated" }; +const QQmlSA::LoggerWarningId qmlSignalParameters{ "signal-handler-parameters" }; +const QQmlSA::LoggerWarningId qmlMissingType{ "missing-type" }; +const QQmlSA::LoggerWarningId qmlUnresolvedType{ "unresolved-type" }; +const QQmlSA::LoggerWarningId qmlRestrictedType{ "restricted-type" }; +const QQmlSA::LoggerWarningId qmlPrefixedImportType{ "prefixed-import-type" }; +const QQmlSA::LoggerWarningId qmlIncompatibleType{ "incompatible-type" }; +const QQmlSA::LoggerWarningId qmlMissingProperty{ "missing-property" }; +const QQmlSA::LoggerWarningId qmlNonListProperty{ "non-list-property" }; +const QQmlSA::LoggerWarningId qmlReadOnlyProperty{ "read-only-property" }; +const QQmlSA::LoggerWarningId qmlDuplicatePropertyBinding{ "duplicate-property-binding" }; +const QQmlSA::LoggerWarningId qmlDuplicatedName{ "duplicated-name" }; +const QQmlSA::LoggerWarningId qmlDeferredPropertyId{ "deferred-property-id" }; +const QQmlSA::LoggerWarningId qmlUnqualified{ "unqualified" }; +const QQmlSA::LoggerWarningId qmlUnusedImports{ "unused-imports" }; +const QQmlSA::LoggerWarningId qmlMultilineStrings{ "multiline-strings" }; +const QQmlSA::LoggerWarningId qmlSyntax{ "syntax" }; +const QQmlSA::LoggerWarningId qmlSyntaxIdQuotation{ "syntax.id-quotation" }; +const QQmlSA::LoggerWarningId qmlSyntaxDuplicateIds{ "syntax.duplicate-ids" }; +const QQmlSA::LoggerWarningId qmlCompiler{ "compiler" }; +const QQmlSA::LoggerWarningId qmlAttachedPropertyReuse{ "attached-property-reuse" }; +const QQmlSA::LoggerWarningId qmlPlugin{ "plugin" }; +const QQmlSA::LoggerWarningId qmlVarUsedBeforeDeclaration{ "var-used-before-declaration" }; +const QQmlSA::LoggerWarningId qmlInvalidLintDirective{ "invalid-lint-directive" }; +const QQmlSA::LoggerWarningId qmlUseProperFunction{ "use-proper-function" }; +const QQmlSA::LoggerWarningId qmlAccessSingleton{ "access-singleton-via-object" }; +const QQmlSA::LoggerWarningId qmlTopLevelComponent{ "top-level-component" }; +const QQmlSA::LoggerWarningId qmlUncreatableType{ "uncreatable-type" }; +const QQmlSA::LoggerWarningId qmlMissingEnumEntry{ "missing-enum-entry" }; QQmlJSLogger::QQmlJSLogger() { |