(46925f589fadf9f16c4db2462e086f28a104f629)
#include "qqmljsimportvisitor_p.h"
#include "qqmljslogger_p.h"
#include "qqmljsmetatypes_p.h"
#include "qqmljsresourcefilemapper_p.h"
#include <QtCore/qdir.h>
#include <QtCore/qqueue.h>
#include <QtCore/qscopedvaluerollback.h>
#include <QtCore/qpoint.h>
#include <QtCore/qrect.h>
#include <QtCore/qsize.h>
#include <QtQml/private/qqmlsignalnames_p.h>
#include <QtQml/private/qv4codegen_p.h>
#include <QtQml/private/qqmlstringconverters_p.h>
#include <QtQml/private/qqmlirbuilder_p.h>
#include "qqmljsscope_p.h"
#include "qqmljsutils_p.h"
#include "qqmljsloggingutils.h"
#include "qqmlsaconstants.h"
#include <algorithm>
#include <limits>
#include <optional>
#include <variant>
Go to the source code of this file.
|
| Q_STATIC_LOGGING_CATEGORY (lcImportVisitor, "qt.qml.importVisitor", QtWarningMsg) |
static bool | causesImplicitComponentWrapping (const QQmlJSMetaProperty &property, const QQmlJSScope::ConstPtr &assignedType) |
QString | getScopeName (const QQmlJSScope::ConstPtr &scope, QQmlJSScope::ScopeType type) |
template<typename Node> |
QString | buildName (const Node *node) |
static void | prepareTargetForVisit (const QQmlJSScope::Ptr &target) |
static bool | mayBeUnresolvedGroupedProperty (const QQmlJSScope::ConstPtr &scope) |
static QQmlJSAnnotation::Value | bindingToVariant (QQmlJS::AST::Statement *statement) |
static QQmlJSMetaProperty | resolveProperty (const QString &possiblyGroupedProperty, QQmlJSScope::ConstPtr scope) |
static QList< QQmlJSScope::ConstPtr > | qmlScopeDescendants (const QQmlJSScope::ConstPtr &scope) |
QQmlJSImportVisitor::UnfinishedBinding | createNonUniqueScopeBinding (QQmlJSScope::Ptr &scope, const QString &name, const QQmlJS::SourceLocation &srcLocation) |
static void | logLowerCaseImport (QStringView superType, QQmlJS::SourceLocation location, QQmlJSLogger *logger) |
void | handleTranslationBinding (QQmlJSMetaPropertyBinding &binding, QStringView base, QQmlJS::AST::ArgumentList *args) |
template<typename F> |
void | handlePragmaValues (QQmlJS::AST::UiPragma *pragma, F &&assign) |
◆ bindingToVariant()
◆ buildName()
◆ causesImplicitComponentWrapping()
Returns if assigning assignedType to property would require an implicit component wrapping.
Definition at line 49 of file qqmljsimportvisitor.cpp.
◆ createNonUniqueScopeBinding()
◆ getScopeName()
◆ handlePragmaValues()
◆ handleTranslationBinding()
◆ logLowerCaseImport()
◆ mayBeUnresolvedGroupedProperty()
◆ prepareTargetForVisit()
◆ Q_STATIC_LOGGING_CATEGORY()
Q_STATIC_LOGGING_CATEGORY |
( |
lcImportVisitor | , |
|
|
"qt.qml.importVisitor" | , |
|
|
QtWarningMsg | ) |
◆ qmlScopeDescendants()
◆ resolveProperty()
Resolves possiblyGroupedProperty on a type represented by scope. possiblyGroupedProperty can be either a simple name, or a grouped property ("foo.bar.baz") In the latter case, we resolve the "head" to a property, and then continue with the tail on the properties' type. We don't handle ids here
Definition at line 915 of file qqmljsimportvisitor.cpp.
◆ didYouAddAllImports
const QLatin1StringView didYouAddAllImports = "Did you add all imports and dependencies?"_L1 |
|
static |
◆ wasNotFound
const QLatin1StringView wasNotFound = "was not found."_L1 |
|
static |