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
QQmlTypeCompiler Struct Reference

#include <qqmltypecompiler_p.h>

Collaboration diagram for QQmlTypeCompiler:

Public Types

typedef QmlIR::Object CompiledObject
typedef QmlIR::Binding CompiledBinding
using ListPropertyAssignBehavior = QmlIR::Pragma::ListPropertyAssignBehaviorValue
using IdToObjectMap = QMap<int, int>

Public Member Functions

 QQmlTypeCompiler (QQmlTypeLoader *typeLoader, QQmlTypeData *typeData, QmlIR::Document *document, QV4::CompiledData::ResolvedTypeReferenceMap *resolvedTypeCache, const QV4::CompiledData::DependentTypesHasher &dependencyHasher)
const QmlIR::ObjectobjectAt (int index) const
QmlIR::ObjectobjectAt (int index)
int objectCount () const
QString stringAt (int idx) const
QmlIR::PoolList< QmlIR::Function >::Iterator objectFunctionsBegin (const QmlIR::Object *object) const
QmlIR::PoolList< QmlIR::Function >::Iterator objectFunctionsEnd (const QmlIR::Object *object) const
ListPropertyAssignBehavior listPropertyAssignBehavior () const
QQmlRefPointer< QV4::CompiledData::CompilationUnitcompile ()
QList< QQmlErrorcompilationErrors () const
void recordError (const QV4::CompiledData::Location &location, const QString &description)
void recordError (const QQmlJS::DiagnosticMessage &message)
void recordError (const QQmlError &e)
int registerString (const QString &str)
int registerConstant (QV4::ReturnedValue v)
const QV4::CompiledData::UnitqmlUnit () const
QUrl url () const
QQmlTypeLoadertypeLoader () const
const QQmlImportsimports () const
QVector< QmlIR::Object * > * qmlObjects () const
QQmlPropertyCacheVectorpropertyCaches ()
const QQmlPropertyCacheVectorpropertyCaches () const
QQmlJS::MemoryPoolmemoryPool ()
QStringView newStringRef (const QString &string)
const QV4::Compiler::StringTableGeneratorstringPool () const
const QHash< int, QQmlCustomParser * > & customParserCache () const
QString bindingAsString (const QmlIR::Object *object, int scriptIndex) const
void addImport (const QString &module, const QString &qualifier, QTypeRevision version)
QV4::ResolvedTypeReferenceresolvedType (int id) const
QV4::ResolvedTypeReferenceresolvedType (QMetaType type) const
QQmlType qmlTypeForComponent (const QString &inlineComponentName=QString()) const

Public Attributes

QV4::CompiledData::ResolvedTypeReferenceMapresolvedTypes = nullptr

Detailed Description

Definition at line 43 of file qqmltypecompiler_p.h.

Member Typedef Documentation

◆ CompiledBinding

◆ CompiledObject

◆ IdToObjectMap

Definition at line 59 of file qqmltypecompiler_p.h.

◆ ListPropertyAssignBehavior

Constructor & Destructor Documentation

◆ QQmlTypeCompiler()

QQmlTypeCompiler::QQmlTypeCompiler ( QQmlTypeLoader * typeLoader,
QQmlTypeData * typeData,
QmlIR::Document * document,
QV4::CompiledData::ResolvedTypeReferenceMap * resolvedTypeCache,
const QV4::CompiledData::DependentTypesHasher & dependencyHasher )

Definition at line 27 of file qqmltypecompiler.cpp.

Member Function Documentation

◆ addImport()

void QQmlTypeCompiler::addImport ( const QString & module,
const QString & qualifier,
QTypeRevision version )

Definition at line 236 of file qqmltypecompiler.cpp.

◆ bindingAsString()

QString QQmlTypeCompiler::bindingAsString ( const QmlIR::Object * object,
int scriptIndex ) const

Definition at line 231 of file qqmltypecompiler.cpp.

◆ compilationErrors()

QList< QQmlError > QQmlTypeCompiler::compilationErrors ( ) const
inline

Definition at line 80 of file qqmltypecompiler_p.h.

◆ compile()

◆ customParserCache()

const QHash< int, QQmlCustomParser * > & QQmlTypeCompiler::customParserCache ( ) const
inline

Definition at line 100 of file qqmltypecompiler_p.h.

◆ imports()

const QQmlImports * QQmlTypeCompiler::imports ( ) const

Definition at line 196 of file qqmltypecompiler.cpp.

Referenced by QQmlEnumTypeResolver::QQmlEnumTypeResolver(), and SignalHandlerResolver::SignalHandlerResolver().

Here is the caller graph for this function:

◆ listPropertyAssignBehavior()

ListPropertyAssignBehavior QQmlTypeCompiler::listPropertyAssignBehavior ( ) const
inline

Definition at line 68 of file qqmltypecompiler_p.h.

◆ memoryPool()

QQmlJS::MemoryPool * QQmlTypeCompiler::memoryPool ( )

Definition at line 216 of file qqmltypecompiler.cpp.

◆ newStringRef()

QStringView QQmlTypeCompiler::newStringRef ( const QString & string)

Definition at line 221 of file qqmltypecompiler.cpp.

◆ objectAt() [1/2]

QmlIR::Object * QQmlTypeCompiler::objectAt ( int index)
inline

Definition at line 62 of file qqmltypecompiler_p.h.

◆ objectAt() [2/2]

const QmlIR::Object * QQmlTypeCompiler::objectAt ( int index) const
inline

Definition at line 61 of file qqmltypecompiler_p.h.

◆ objectCount()

int QQmlTypeCompiler::objectCount ( ) const
inline

Definition at line 63 of file qqmltypecompiler_p.h.

◆ objectFunctionsBegin()

QmlIR::PoolList< QmlIR::Function >::Iterator QQmlTypeCompiler::objectFunctionsBegin ( const QmlIR::Object * object) const
inline

Definition at line 65 of file qqmltypecompiler_p.h.

◆ objectFunctionsEnd()

QmlIR::PoolList< QmlIR::Function >::Iterator QQmlTypeCompiler::objectFunctionsEnd ( const QmlIR::Object * object) const
inline

Definition at line 66 of file qqmltypecompiler_p.h.

◆ propertyCaches() [1/2]

QQmlPropertyCacheVector * QQmlTypeCompiler::propertyCaches ( )

Definition at line 206 of file qqmltypecompiler.cpp.

◆ propertyCaches() [2/2]

const QQmlPropertyCacheVector * QQmlTypeCompiler::propertyCaches ( ) const

Definition at line 211 of file qqmltypecompiler.cpp.

◆ qmlObjects()

QVector< QmlIR::Object * > * QQmlTypeCompiler::qmlObjects ( ) const

Definition at line 201 of file qqmltypecompiler.cpp.

◆ qmlTypeForComponent()

QQmlType QQmlTypeCompiler::qmlTypeForComponent ( const QString & inlineComponentName = QString()) const

Definition at line 257 of file qqmltypecompiler.cpp.

◆ qmlUnit()

const QV4::CompiledData::Unit * QQmlTypeCompiler::qmlUnit ( ) const

Definition at line 191 of file qqmltypecompiler.cpp.

◆ recordError() [1/3]

void QQmlTypeCompiler::recordError ( const QQmlError & e)

Definition at line 169 of file qqmltypecompiler.cpp.

Referenced by compile(), and QQmlCompilePass::recordError().

Here is the caller graph for this function:

◆ recordError() [2/3]

void QQmlTypeCompiler::recordError ( const QQmlJS::DiagnosticMessage & message)

Definition at line 159 of file qqmltypecompiler.cpp.

◆ recordError() [3/3]

void QQmlTypeCompiler::recordError ( const QV4::CompiledData::Location & location,
const QString & description )

Definition at line 149 of file qqmltypecompiler.cpp.

◆ registerConstant()

int QQmlTypeCompiler::registerConstant ( QV4::ReturnedValue v)

Definition at line 186 of file qqmltypecompiler.cpp.

◆ registerString()

int QQmlTypeCompiler::registerString ( const QString & str)

Definition at line 181 of file qqmltypecompiler.cpp.

◆ resolvedType() [1/2]

QV4::ResolvedTypeReference * QQmlTypeCompiler::resolvedType ( int id) const
inline

Definition at line 106 of file qqmltypecompiler_p.h.

◆ resolvedType() [2/2]

QV4::ResolvedTypeReference * QQmlTypeCompiler::resolvedType ( QMetaType type) const
inline

Definition at line 111 of file qqmltypecompiler_p.h.

◆ stringAt()

QString QQmlTypeCompiler::stringAt ( int idx) const

Definition at line 176 of file qqmltypecompiler.cpp.

◆ stringPool()

const QV4::Compiler::StringTableGenerator * QQmlTypeCompiler::stringPool ( ) const

Definition at line 226 of file qqmltypecompiler.cpp.

◆ typeLoader()

QQmlTypeLoader * QQmlTypeCompiler::typeLoader ( ) const
inline

Definition at line 91 of file qqmltypecompiler_p.h.

◆ url()

QUrl QQmlTypeCompiler::url ( ) const
inline

Definition at line 90 of file qqmltypecompiler_p.h.

Member Data Documentation

◆ resolvedTypes

QV4::CompiledData::ResolvedTypeReferenceMap* QQmlTypeCompiler::resolvedTypes = nullptr

Definition at line 67 of file qqmltypecompiler_p.h.


The documentation for this struct was generated from the following files: