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>.
Loading...
Searching...
No Matches
qqmljsliteralbindingcheck.cpp File Reference

(e068324912e9320983d370e8fa2209f7ea941400)

#include "qqmljsliteralbindingcheck_p.h"
#include <private/qqmljsimportvisitor_p.h>
#include <private/qqmljstyperesolver_p.h>
#include <private/qqmljsmetatypes_p.h>
#include <private/qqmlsa_p.h>
#include <private/qqmlsasourcelocation_p.h>
#include <private/qqmlstringconverters_p.h>
+ Include dependency graph for qqmljsliteralbindingcheck.cpp:

Go to the source code of this file.

Functions

static bool canConvertForLiteralBinding (QQmlJSTypeResolver *resolver, const QQmlSA::Element &fromElement, const QQmlSA::Element &toElement)
 
static QString literalPrettyTypeName (QQmlSA::BindingType type)
 

Function Documentation

◆ canConvertForLiteralBinding()

static bool canConvertForLiteralBinding ( QQmlJSTypeResolver * resolver,
const QQmlSA::Element & fromElement,
const QQmlSA::Element & toElement )
static

Definition at line 18 of file qqmljsliteralbindingcheck.cpp.

References QQmlJSTypeResolver::boolType(), QQmlJSTypeResolver::byteArrayType(), QQmlJSTypeResolver::canConvertFromTo(), QQmlJSTypeResolver::equals(), QQmlJSTypeResolver::isNumeric(), Q_ASSERT, QQmlJSScope::scope(), QQmlJSTypeResolver::stringListType(), QQmlJSTypeResolver::stringType(), and QQmlJSTypeResolver::urlType().

Referenced by QQmlJSLiteralBindingCheck::onBinding().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ literalPrettyTypeName()

static QString literalPrettyTypeName ( QQmlSA::BindingType type)
static

Definition at line 61 of file qqmljsliteralbindingcheck.cpp.

References QQmlSA::BoolLiteral, QQmlSA::Null, QQmlSA::NumberLiteral, QQmlSA::RegExpLiteral, and QQmlSA::StringLiteral.

Referenced by QQmlJSLiteralBindingCheck::onBinding().

+ Here is the caller graph for this function: