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
QmlIR::Object Struct Reference

#include <qqmlirbuilder_p.h>

+ Collaboration diagram for QmlIR::Object:

Public Member Functions

const PropertyfirstProperty () const
 
int propertyCount () const
 
AliasfirstAlias () const
 
int aliasCount () const
 
const EnumfirstEnum () const
 
int enumCount () const
 
const SignalfirstSignal () const
 
int signalCount () const
 
BindingfirstBinding () const
 
int bindingCount () const
 
const FunctionfirstFunction () const
 
int functionCount () const
 
const InlineComponentinlineComponent () const
 
int inlineComponentCount () const
 
const RequiredPropertyExtraDatarequiredPropertyExtraData () const
 
int requiredPropertyExtraDataCount () const
 
void simplifyRequiredProperties ()
 
PoolList< Binding >::Iterator bindingsBegin () const
 
PoolList< Binding >::Iterator bindingsEnd () const
 
PoolList< Property >::Iterator propertiesBegin () const
 
PoolList< Property >::Iterator propertiesEnd () const
 
PoolList< Alias >::Iterator aliasesBegin () const
 
PoolList< Alias >::Iterator aliasesEnd () const
 
PoolList< Enum >::Iterator enumsBegin () const
 
PoolList< Enum >::Iterator enumsEnd () const
 
PoolList< Signal >::Iterator signalsBegin () const
 
PoolList< Signal >::Iterator signalsEnd () const
 
PoolList< Function >::Iterator functionsBegin () const
 
PoolList< Function >::Iterator functionsEnd () const
 
PoolList< InlineComponent >::Iterator inlineComponentsBegin () const
 
PoolList< InlineComponent >::Iterator inlineComponentsEnd () const
 
PoolList< RequiredPropertyExtraData >::Iterator requiredPropertyExtraDataBegin () const
 
PoolList< RequiredPropertyExtraData >::Iterator requiredPropertyExtraDataEnd () const
 
void init (QQmlJS::MemoryPool *pool, int typeNameIndex, int idIndex, const QV4::CompiledData::Location &location)
 
QString appendEnum (Enum *enumeration)
 
QString appendSignal (Signal *signal)
 
QString appendProperty (Property *prop, const QString &propertyName, bool isDefaultProperty, const QQmlJS::SourceLocation &defaultToken, QQmlJS::SourceLocation *errorLocation)
 
QString appendAlias (Alias *prop, const QString &aliasName, bool isDefaultProperty, const QQmlJS::SourceLocation &defaultToken, QQmlJS::SourceLocation *errorLocation)
 
void appendFunction (QmlIR::Function *f)
 
void appendInlineComponent (InlineComponent *ic)
 
void appendRequiredPropertyExtraData (RequiredPropertyExtraData *extraData)
 
QString appendBinding (Binding *b, bool isListBinding)
 
BindingfindBinding (quint32 nameIndex) const
 
BindingunlinkBinding (Binding *before, Binding *binding)
 
void insertSorted (Binding *b)
 
QString bindingAsString (Document *doc, int scriptIndex) const
 
int namedObjectsInComponentCount () const
 
const quint32namedObjectsInComponentTable () const
 
bool hasFlag (QV4::CompiledData::Object::Flag flag) const
 
qint32 objectId () const
 
bool hasAliasAsDefaultProperty () const
 

Public Attributes

quint32 inheritedTypeNameIndex
 
quint32 idNameIndex
 
int id
 
int indexOfDefaultPropertyOrAlias
 
bool defaultPropertyIsAlias
 
quint32 flags
 
QV4::CompiledData::Location location
 
QV4::CompiledData::Location locationOfIdProperty
 
ObjectdeclarationsOverride
 
PoolList< CompiledFunctionOrExpression > * functionsAndExpressions
 
QQmlJS::FixedPoolArray< int > runtimeFunctionIndices
 
QQmlJS::FixedPoolArray< quint32namedObjectsInComponent
 

Friends

struct ::QQmlIRLoader
 

Detailed Description

Definition at line 310 of file qqmlirbuilder_p.h.

Member Function Documentation

◆ aliasCount()

int QmlIR::Object::aliasCount ( ) const
inline

Definition at line 327 of file qqmlirbuilder_p.h.

References aliases().

+ Here is the call graph for this function:

◆ aliasesBegin()

PoolList< Alias >::Iterator QmlIR::Object::aliasesBegin ( ) const
inline

Definition at line 346 of file qqmlirbuilder_p.h.

References aliases().

+ Here is the call graph for this function:

◆ aliasesEnd()

PoolList< Alias >::Iterator QmlIR::Object::aliasesEnd ( ) const
inline

Definition at line 347 of file qqmlirbuilder_p.h.

References aliases().

+ Here is the call graph for this function:

◆ appendAlias()

QString Object::appendAlias ( Alias * prop,
const QString & aliasName,
bool isDefaultProperty,
const QQmlJS::SourceLocation & defaultToken,
QQmlJS::SourceLocation * errorLocation )

Definition at line 218 of file qqmlirbuilder.cpp.

References declarationsOverride, and tr.

Referenced by QmlIR::IRBuilder::appendAlias().

+ Here is the caller graph for this function:

◆ appendBinding()

QString Object::appendBinding ( Binding * b,
bool isListBinding )

Definition at line 273 of file qqmlirbuilder.cpp.

References findBinding(), insertSorted(), QV4::CompiledData::Binding::IsOnAssignment, tr, QV4::CompiledData::Binding::Type_AttachedProperty, and QV4::CompiledData::Binding::Type_GroupProperty.

Referenced by QmlIR::IRBuilder::appendBinding(), and QmlIR::IRBuilder::appendBinding().

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

◆ appendEnum()

QString Object::appendEnum ( Enum * enumeration)

Definition at line 160 of file qqmlirbuilder.cpp.

References declarationsOverride, QmlIR::Enum::nameIndex, and tr.

Referenced by QmlIR::IRBuilder::visit().

+ Here is the caller graph for this function:

◆ appendFunction()

void Object::appendFunction ( QmlIR::Function * f)

Definition at line 254 of file qqmlirbuilder.cpp.

References declarationsOverride, and Q_ASSERT.

Referenced by QmlIR::IRBuilder::visit().

+ Here is the caller graph for this function:

◆ appendInlineComponent()

void Object::appendInlineComponent ( InlineComponent * ic)

Definition at line 263 of file qqmlirbuilder.cpp.

Referenced by QmlIR::IRBuilder::visit().

+ Here is the caller graph for this function:

◆ appendProperty()

QString Object::appendProperty ( Property * prop,
const QString & propertyName,
bool isDefaultProperty,
const QQmlJS::SourceLocation & defaultToken,
QQmlJS::SourceLocation * errorLocation )

Definition at line 190 of file qqmlirbuilder.cpp.

References QString::constData(), declarationsOverride, QV4::CompiledData::Property::nameIndex, and tr.

Referenced by QmlIR::IRBuilder::visit().

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

◆ appendRequiredPropertyExtraData()

void Object::appendRequiredPropertyExtraData ( RequiredPropertyExtraData * extraData)

Definition at line 268 of file qqmlirbuilder.cpp.

Referenced by QmlIR::IRBuilder::visit().

+ Here is the caller graph for this function:

◆ appendSignal()

QString Object::appendSignal ( Signal * signal)

Definition at line 175 of file qqmlirbuilder.cpp.

References declarationsOverride, signal, and tr.

Referenced by QmlIR::IRBuilder::visit().

+ Here is the caller graph for this function:

◆ bindingAsString()

QString Object::bindingAsString ( Document * doc,
int scriptIndex ) const

Definition at line 309 of file qqmlirbuilder.cpp.

References QmlIR::Document::code, QQmlJS::AST::Node::firstSourceLocation(), functionsAndExpressions, QQmlJS::AST::Node::lastSourceLocation(), and QString::mid().

+ Here is the call graph for this function:

◆ bindingCount()

int QmlIR::Object::bindingCount ( ) const
inline

Definition at line 333 of file qqmlirbuilder_p.h.

◆ bindingsBegin()

PoolList< Binding >::Iterator QmlIR::Object::bindingsBegin ( ) const
inline

Definition at line 342 of file qqmlirbuilder_p.h.

◆ bindingsEnd()

PoolList< Binding >::Iterator QmlIR::Object::bindingsEnd ( ) const
inline

Definition at line 343 of file qqmlirbuilder_p.h.

◆ enumCount()

int QmlIR::Object::enumCount ( ) const
inline

Definition at line 329 of file qqmlirbuilder_p.h.

◆ enumsBegin()

PoolList< Enum >::Iterator QmlIR::Object::enumsBegin ( ) const
inline

Definition at line 348 of file qqmlirbuilder_p.h.

◆ enumsEnd()

PoolList< Enum >::Iterator QmlIR::Object::enumsEnd ( ) const
inline

Definition at line 349 of file qqmlirbuilder_p.h.

◆ findBinding()

Binding * Object::findBinding ( quint32 nameIndex) const

Definition at line 295 of file qqmlirbuilder.cpp.

Referenced by appendBinding().

+ Here is the caller graph for this function:

◆ firstAlias()

Alias * QmlIR::Object::firstAlias ( ) const
inline

Definition at line 326 of file qqmlirbuilder_p.h.

References aliases().

+ Here is the call graph for this function:

◆ firstBinding()

Binding * QmlIR::Object::firstBinding ( ) const
inline

Definition at line 332 of file qqmlirbuilder_p.h.

◆ firstEnum()

const Enum * QmlIR::Object::firstEnum ( ) const
inline

Definition at line 328 of file qqmlirbuilder_p.h.

◆ firstFunction()

const Function * QmlIR::Object::firstFunction ( ) const
inline

Definition at line 334 of file qqmlirbuilder_p.h.

◆ firstProperty()

const Property * QmlIR::Object::firstProperty ( ) const
inline

Definition at line 324 of file qqmlirbuilder_p.h.

References properties.

◆ firstSignal()

const Signal * QmlIR::Object::firstSignal ( ) const
inline

Definition at line 330 of file qqmlirbuilder_p.h.

◆ functionCount()

int QmlIR::Object::functionCount ( ) const
inline

Definition at line 335 of file qqmlirbuilder_p.h.

◆ functionsBegin()

PoolList< Function >::Iterator QmlIR::Object::functionsBegin ( ) const
inline

Definition at line 352 of file qqmlirbuilder_p.h.

◆ functionsEnd()

PoolList< Function >::Iterator QmlIR::Object::functionsEnd ( ) const
inline

Definition at line 353 of file qqmlirbuilder_p.h.

◆ hasAliasAsDefaultProperty()

bool QmlIR::Object::hasAliasAsDefaultProperty ( ) const
inline

Definition at line 388 of file qqmlirbuilder_p.h.

◆ hasFlag()

bool QmlIR::Object::hasFlag ( QV4::CompiledData::Object::Flag flag) const
inline

Definition at line 386 of file qqmlirbuilder_p.h.

◆ init()

void Object::init ( QQmlJS::MemoryPool * pool,
int typeNameIndex,
int idIndex,
const QV4::CompiledData::Location & location )

Definition at line 111 of file qqmlirbuilder.cpp.

References QV4::CompiledData::Location::column(), declarationsOverride, defaultPropertyIsAlias, functionsAndExpressions, idNameIndex, indexOfDefaultPropertyOrAlias, inheritedTypeNameIndex, QV4::CompiledData::Location::line(), QV4::CompiledData::Object::NoFlag, pool, and Q_ASSERT.

Referenced by QmlIR::IRBuilder::defineQMLObject().

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

◆ inlineComponent()

const InlineComponent * QmlIR::Object::inlineComponent ( ) const
inline

Definition at line 336 of file qqmlirbuilder_p.h.

◆ inlineComponentCount()

int QmlIR::Object::inlineComponentCount ( ) const
inline

Definition at line 337 of file qqmlirbuilder_p.h.

◆ inlineComponentsBegin()

PoolList< InlineComponent >::Iterator QmlIR::Object::inlineComponentsBegin ( ) const
inline

Definition at line 354 of file qqmlirbuilder_p.h.

◆ inlineComponentsEnd()

PoolList< InlineComponent >::Iterator QmlIR::Object::inlineComponentsEnd ( ) const
inline

Definition at line 355 of file qqmlirbuilder_p.h.

◆ insertSorted()

void Object::insertSorted ( Binding * b)

Definition at line 303 of file qqmlirbuilder.cpp.

References Binding, and QmlIR::Binding::offset.

Referenced by appendBinding().

+ Here is the caller graph for this function:

◆ namedObjectsInComponentCount()

int QmlIR::Object::namedObjectsInComponentCount ( ) const
inline

Definition at line 383 of file qqmlirbuilder_p.h.

References QQmlJS::FixedPoolArray< T >::size().

+ Here is the call graph for this function:

◆ namedObjectsInComponentTable()

const quint32 * QmlIR::Object::namedObjectsInComponentTable ( ) const
inline

Definition at line 384 of file qqmlirbuilder_p.h.

References QQmlJS::FixedPoolArray< T >::begin().

+ Here is the call graph for this function:

◆ objectId()

qint32 QmlIR::Object::objectId ( ) const
inline

Definition at line 387 of file qqmlirbuilder_p.h.

◆ propertiesBegin()

PoolList< Property >::Iterator QmlIR::Object::propertiesBegin ( ) const
inline

Definition at line 344 of file qqmlirbuilder_p.h.

References properties.

◆ propertiesEnd()

PoolList< Property >::Iterator QmlIR::Object::propertiesEnd ( ) const
inline

Definition at line 345 of file qqmlirbuilder_p.h.

References properties.

◆ propertyCount()

int QmlIR::Object::propertyCount ( ) const
inline

Definition at line 325 of file qqmlirbuilder_p.h.

References properties.

◆ requiredPropertyExtraData()

const RequiredPropertyExtraData * QmlIR::Object::requiredPropertyExtraData ( ) const
inline

Definition at line 338 of file qqmlirbuilder_p.h.

◆ requiredPropertyExtraDataBegin()

PoolList< RequiredPropertyExtraData >::Iterator QmlIR::Object::requiredPropertyExtraDataBegin ( ) const
inline

Definition at line 356 of file qqmlirbuilder_p.h.

◆ requiredPropertyExtraDataCount()

int QmlIR::Object::requiredPropertyExtraDataCount ( ) const
inline

Definition at line 339 of file qqmlirbuilder_p.h.

◆ requiredPropertyExtraDataEnd()

PoolList< RequiredPropertyExtraData >::Iterator QmlIR::Object::requiredPropertyExtraDataEnd ( ) const
inline

Definition at line 357 of file qqmlirbuilder_p.h.

◆ signalCount()

int QmlIR::Object::signalCount ( ) const
inline

Definition at line 331 of file qqmlirbuilder_p.h.

◆ signalsBegin()

PoolList< Signal >::Iterator QmlIR::Object::signalsBegin ( ) const
inline

Definition at line 350 of file qqmlirbuilder_p.h.

◆ signalsEnd()

PoolList< Signal >::Iterator QmlIR::Object::signalsEnd ( ) const
inline

Definition at line 351 of file qqmlirbuilder_p.h.

◆ simplifyRequiredProperties()

void Object::simplifyRequiredProperties ( )

Definition at line 29 of file qqmlirbuilder.cpp.

References it, and QmlIR::RequiredPropertyExtraData::next.

◆ unlinkBinding()

Binding * QmlIR::Object::unlinkBinding ( Binding * before,
Binding * binding )
inline

Definition at line 375 of file qqmlirbuilder_p.h.

Friends And Related Symbol Documentation

◆ ::QQmlIRLoader

friend struct ::QQmlIRLoader
friend

Definition at line 391 of file qqmlirbuilder_p.h.

Member Data Documentation

◆ declarationsOverride

◆ defaultPropertyIsAlias

bool QmlIR::Object::defaultPropertyIsAlias

Definition at line 318 of file qqmlirbuilder_p.h.

Referenced by init().

◆ flags

quint32 QmlIR::Object::flags

Definition at line 319 of file qqmlirbuilder_p.h.

Referenced by QmlIR::IRBuilder::defineQMLObject().

◆ functionsAndExpressions

PoolList<CompiledFunctionOrExpression>* QmlIR::Object::functionsAndExpressions

◆ id

int QmlIR::Object::id

Definition at line 316 of file qqmlirbuilder_p.h.

◆ idNameIndex

quint32 QmlIR::Object::idNameIndex

Definition at line 315 of file qqmlirbuilder_p.h.

Referenced by init(), and QmlIR::IRBuilder::setId().

◆ indexOfDefaultPropertyOrAlias

int QmlIR::Object::indexOfDefaultPropertyOrAlias

Definition at line 317 of file qqmlirbuilder_p.h.

Referenced by init().

◆ inheritedTypeNameIndex

quint32 QmlIR::Object::inheritedTypeNameIndex

Definition at line 314 of file qqmlirbuilder_p.h.

Referenced by init().

◆ location

◆ locationOfIdProperty

QV4::CompiledData::Location QmlIR::Object::locationOfIdProperty

Definition at line 322 of file qqmlirbuilder_p.h.

Referenced by QmlIR::IRBuilder::setId().

◆ namedObjectsInComponent

QQmlJS::FixedPoolArray<quint32> QmlIR::Object::namedObjectsInComponent

Definition at line 382 of file qqmlirbuilder_p.h.

◆ runtimeFunctionIndices

QQmlJS::FixedPoolArray<int> QmlIR::Object::runtimeFunctionIndices

Definition at line 380 of file qqmlirbuilder_p.h.


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