![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtqmlcompilerexports.h>
#include "qqmljslogger_p.h"
#include "qqmljsresourcefilemapper_p.h"
#include "qqmljsscope_p.h"
#include "qqmljsmetatypes_p.h"
#include <QtCore/qdir.h>
#include <QtCore/qstack.h>
#include <QtCore/qstring.h>
#include <QtCore/qstringbuilder.h>
#include <QtCore/qstringview.h>
#include <QtQml/private/qqmlsignalnames_p.h>
#include <private/qduplicatetracker_p.h>
#include <optional>
#include <functional>
#include <type_traits>
#include <variant>
Go to the source code of this file.
Classes | |
struct | QQmlJSUtils |
struct | QQmlJSUtils::ResolvedAlias |
struct | QQmlJSUtils::AliasResolutionVisitor |
Namespaces | |
namespace | detail |
Functions | |
template<typename To, typename From, typename std::enable_if_t<!std::is_pointer_v< To >, int > = 0> | |
static auto | detail::getQQmlJSScopeFromSmartPtr (const From &p) -> From |
bool Q_QMLCOMPILER_EXPORT | canStrictlyCompareWithVar (const QQmlJSTypeResolver *typeResolver, const QQmlJSScope::ConstPtr &lhsType, const QQmlJSScope::ConstPtr &rhsType) |
bool Q_QMLCOMPILER_EXPORT | canCompareWithQObject (const QQmlJSTypeResolver *typeResolver, const QQmlJSScope::ConstPtr &lhsType, const QQmlJSScope::ConstPtr &rhsType) |
bool Q_QMLCOMPILER_EXPORT | 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 228 of file qqmljsutils.cpp.
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 244 of file qqmljsutils.cpp.
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 211 of file qqmljsutils.cpp.