Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmltypescreator.cpp File Reference
#include "qqmltypescreator_p.h"
#include "qqmltypesclassdescription_p.h"
#include "qqmltyperegistrarconstants_p.h"
#include "qanystringviewutils_p.h"
#include <QtCore/qset.h>
#include <QtCore/qcborarray.h>
#include <QtCore/qcbormap.h>
#include <QtCore/qsavefile.h>
#include <QtCore/qfile.h>
#include <QtCore/qversionnumber.h>
#include <QtCore/private/qstringalgorithms_p.h>
+ Include dependency graph for qqmltypescreator.cpp:

Go to the source code of this file.

Functions

static QString convertPrivateClassToUsableForm (const QCborValue &s)
 
static bool isAllowedInMajorVersion (const QCborValue &member, QTypeRevision maxMajorVersion)
 
template<typename Postprocess >
QCborArray members (const QCborMap *classDef, QLatin1StringView key, QTypeRevision maxMajorVersion, Postprocess &&process)
 
static QCborArray members (const QCborMap *classDef, QLatin1StringView key, QTypeRevision maxMajorVersion)
 
static QCborArray constructors (const QCborMap *classDef, QLatin1StringView key, QTypeRevision maxMajorVersion)
 

Function Documentation

◆ constructors()

static QCborArray constructors ( const QCborMap classDef,
QLatin1StringView  key,
QTypeRevision  maxMajorVersion 
)
static

Definition at line 367 of file qqmltypescreator.cpp.

References members(), and Constants::MetatypesDotJson::S_IS_CONSTRUCTOR.

Referenced by QV4::Heap::QMetaObjectWrapper::destroy(), QV4::Heap::QMetaObjectWrapper::ensureConstructorsCache(), and QV4::Heap::QMetaObjectWrapper::init().

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

◆ convertPrivateClassToUsableForm()

static QString convertPrivateClassToUsableForm ( const QCborValue s)
static

Definition at line 25 of file qqmltypescreator.cpp.

References QString::replace().

+ Here is the call graph for this function:

◆ isAllowedInMajorVersion()

static bool isAllowedInMajorVersion ( const QCborValue member,
QTypeRevision  maxMajorVersion 
)
static

Definition at line 333 of file qqmltypescreator.cpp.

References QSet< T >::end(), QSet< T >::find(), QTypeRevision::fromEncodedVersion(), QTypeRevision::hasMajorVersion(), it, QTypeRevision::majorVersion(), Constants::MetatypesDotJson::S_REVISION, and QCborValue::toMap().

Referenced by members().

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

◆ members() [1/2]

static QCborArray members ( const QCborMap classDef,
QLatin1StringView  key,
QTypeRevision  maxMajorVersion 
)
static

Definition at line 361 of file qqmltypescreator.cpp.

References members().

+ Here is the call graph for this function:

◆ members() [2/2]

template<typename Postprocess >
QCborArray members ( const QCborMap classDef,
QLatin1StringView  key,
QTypeRevision  maxMajorVersion,
Postprocess &&  process 
)

Definition at line 346 of file qqmltypescreator.cpp.

References QCborArray::append(), isAllowedInMajorVersion(), QCborValue::toArray(), and QCborMap::value().

Referenced by QMetaObjectBuilder::QMetaObjectBuilder(), QMetaObjectBuilder::addMetaObject(), constructors(), QQmlJS::AST::UiProgram::firstSourceLocation(), QV4::Compiler::JSUnitGenerator::jsClassMember(), QQmlJS::AST::UiProgram::lastSourceLocation(), QShaderDescriptionPrivate::loadFromStream(), QShaderDescriptionPrivate::makeDoc(), members(), QV4::Compiler::JSUnitGenerator::registerJSClass(), and QV4::Compiler::Codegen::visit().

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