Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmljstypepropagator.cpp File Reference

(ecf78f31908edfd343e9447cfe4ac0b53cbabd18)

#include "qqmljsscope_p.h"
#include "qqmljstypepropagator_p.h"
#include "qqmljsutils_p.h"
#include "qqmlsa_p.h"
#include <private/qv4compilerscanfunctions_p.h>
#include <QtQmlCompiler/private/qqmlsasourcelocation_p.h>
Include dependency graph for qqmljstypepropagator.cpp:

Go to the source code of this file.

Macros

#define INSTR_PROLOGUE_NOT_IMPLEMENTED()
#define INSTR_PROLOGUE_NOT_IMPLEMENTED_POPULATES_ACC()
#define INSTR_PROLOGUE_NOT_IMPLEMENTED_IGNORE()

Functions

static bool shouldMentionRequiredProperties (const QQmlJSScope::ConstPtr &qmlScope)
static bool isLoggingMethod (const QString &consoleMethod)
static bool mightContainStringOrNumberOrBoolean (const QQmlJSScope::ConstPtr &scope, const QQmlJSTypeResolver *resolver)
static bool isStringOrNumberOrBoolean (const QQmlJSScope::ConstPtr &scope, const QQmlJSTypeResolver *resolver)
static bool isVoidOrUndefined (const QQmlJSScope::ConstPtr &scope, const QQmlJSTypeResolver *resolver)
static bool requiresStrictEquality (const QQmlJSScope::ConstPtr &lhs, const QQmlJSScope::ConstPtr &rhs, const QQmlJSTypeResolver *resolver)
static bool deepCompare (const QQmlJSRegisterContent &a, const QQmlJSRegisterContent &b)

Macro Definition Documentation

◆ INSTR_PROLOGUE_NOT_IMPLEMENTED

#define INSTR_PROLOGUE_NOT_IMPLEMENTED ( )
Value:
addError(u"Instruction \"%1\" not implemented"_s.arg(QString::fromUtf8(__func__))); \
return;
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qstring.cpp:6061

Definition at line 75 of file qqmljstypepropagator.cpp.

◆ INSTR_PROLOGUE_NOT_IMPLEMENTED_IGNORE

#define INSTR_PROLOGUE_NOT_IMPLEMENTED_IGNORE ( )
Value:
m_logger->log(u"Instruction \"%1\" not implemented"_s.arg(QString::fromUtf8(__func__)), \
return;
const Q_QMLCOMPILER_EXPORT QQmlSA::LoggerWarningId qmlCompiler

Definition at line 84 of file qqmljstypepropagator.cpp.

◆ INSTR_PROLOGUE_NOT_IMPLEMENTED_POPULATES_ACC

#define INSTR_PROLOGUE_NOT_IMPLEMENTED_POPULATES_ACC ( )
Value:
addError(u"Instruction \"%1\" not implemented"_s.arg(QString::fromUtf8(__func__))); \
setVarAccumulatorAndError(); /* Keep sane state after error */ \
return;

Definition at line 79 of file qqmljstypepropagator.cpp.

Function Documentation

◆ deepCompare()

bool deepCompare ( const QQmlJSRegisterContent & a,
const QQmlJSRegisterContent & b )
static

Definition at line 3297 of file qqmljstypepropagator.cpp.

◆ isLoggingMethod()

bool isLoggingMethod ( const QString & consoleMethod)
static

Definition at line 1235 of file qqmljstypepropagator.cpp.

◆ isStringOrNumberOrBoolean()

bool isStringOrNumberOrBoolean ( const QQmlJSScope::ConstPtr & scope,
const QQmlJSTypeResolver * resolver )
static

Definition at line 2654 of file qqmljstypepropagator.cpp.

◆ isVoidOrUndefined()

bool isVoidOrUndefined ( const QQmlJSScope::ConstPtr & scope,
const QQmlJSTypeResolver * resolver )
static

Definition at line 2661 of file qqmljstypepropagator.cpp.

◆ mightContainStringOrNumberOrBoolean()

bool mightContainStringOrNumberOrBoolean ( const QQmlJSScope::ConstPtr & scope,
const QQmlJSTypeResolver * resolver )
static

Definition at line 2647 of file qqmljstypepropagator.cpp.

◆ requiresStrictEquality()

bool requiresStrictEquality ( const QQmlJSScope::ConstPtr & lhs,
const QQmlJSScope::ConstPtr & rhs,
const QQmlJSTypeResolver * resolver )
static

Definition at line 2667 of file qqmljstypepropagator.cpp.

◆ shouldMentionRequiredProperties()

bool shouldMentionRequiredProperties ( const QQmlJSScope::ConstPtr & qmlScope)
static

Definition at line 563 of file qqmljstypepropagator.cpp.