Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qqmljsutils_p.h"
#include "qqmljstyperesolver_p.h"
#include "qqmljsscopesbyid_p.h"
#include <algorithm>
Go to the source code of this file.
Functions | |
template<typename ScopeForId > | |
static QQmlJSUtils::ResolvedAlias | resolveAlias (ScopeForId scopeForId, const QQmlJSMetaProperty &property, const QQmlJSScope::ConstPtr &owner, const QQmlJSUtils::AliasResolutionVisitor &visitor) |
bool | canStrictlyCompareWithVar (const QQmlJSTypeResolver *typeResolver, const QQmlJSScope::ConstPtr &lhsType, const QQmlJSScope::ConstPtr &rhsType) |
bool | canCompareWithQObject (const QQmlJSTypeResolver *typeResolver, const QQmlJSScope::ConstPtr &lhsType, const QQmlJSScope::ConstPtr &rhsType) |
bool | canCompareWithQUrl (const QQmlJSTypeResolver *typeResolver, const QQmlJSScope::ConstPtr &lhsType, const QQmlJSScope::ConstPtr &rhsType) |
bool canCompareWithQObject | ( | const QQmlJSTypeResolver * | typeResolver, |
const QQmlJSScope::ConstPtr & | lhsType, | ||
const QQmlJSScope::ConstPtr & | rhsType ) |
Utility method that checks if one of the registers is qobject, and the other can be efficiently compared to it
Definition at line 227 of file qqmljsutils.cpp.
References QQmlJSTypeResolver::equals(), QQmlJSTypeResolver::nullType(), and Q_ASSERT.
bool canCompareWithQUrl | ( | const QQmlJSTypeResolver * | typeResolver, |
const QQmlJSScope::ConstPtr & | lhsType, | ||
const QQmlJSScope::ConstPtr & | rhsType ) |
Utility method that checks if both sides are QUrl type. In future, that might be extended to support comparison with other types i.e QUrl vs string
Definition at line 245 of file qqmljsutils.cpp.
References QQmlJSTypeResolver::equals(), Q_ASSERT, and QQmlJSTypeResolver::urlType().
bool canStrictlyCompareWithVar | ( | const QQmlJSTypeResolver * | typeResolver, |
const QQmlJSScope::ConstPtr & | lhsType, | ||
const QQmlJSScope::ConstPtr & | rhsType ) |
Utility method that checks if one of the registers is var, and the other can be efficiently compared to it
Definition at line 210 of file qqmljsutils.cpp.
References QQmlJSTypeResolver::equals(), Q_ASSERT, and QQmlJSTypeResolver::varType().
|
static |
Fully resolves alias property and returns the information about the origin, which is not an alias.
Definition at line 21 of file qqmljsutils.cpp.
References QQmlJSUtils::AliasTarget_Object, QQmlJSUtils::AliasTarget_Property, QQmlJSUtils::ResolvedAlias::owner, QQmlJSUtils::AliasResolutionVisitor::processResolvedId, QQmlJSUtils::AliasResolutionVisitor::processResolvedProperty, property, Q_ASSERT, and QQmlJSUtils::AliasResolutionVisitor::reset.