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
QV4::CompiledData::UnitDiffer Struct Reference
Collaboration diagram for QV4::CompiledData::UnitDiffer:

Public Member Functions

template<typename ElementT, typename OldSource, typename NewSource, typename ContentEqFn>
void compareIndexedElements (OldSource oldSource, NewSource newSource, ContentEqFn contentEq)
bool stringsEqual (uint oldName, uint newName) const
bool unitMetadataContentEqual () const
bool objectContentEqual (const Object &oldObj, const Object &newObj) const
bool propertyContentEqual (const Property &oldProp, const Property &newProp) const
bool aliasContentEqual (const Alias &oldAlias, const Alias &newAlias) const
bool enumContentEqual (const Enum &oldEnum, const Enum &newEnum) const
bool signalContentEqual (const Signal &oldSig, const Signal &newSig) const
bool bindingContentEqual (const Binding &oldBinding, const Binding &newBinding) const
bool parameterTypeContentEqual (const ParameterType &oldType, const ParameterType &newType) const
bool functionContentEqual (const Function &oldFunc, const Function &newFunc) const
bool translationContentEqual (const TranslationData &oldTrans, const TranslationData &newTrans) const
bool classContentEqual (const Class &oldCls, const Class &newCls) const
bool templateObjectContentEqual (const TemplateObject &oldTO, const TemplateObject &newTO) const
bool jsClassContentEqual (const JSClass &oldJC, const JSClass &newJC) const
bool blockContentEqual (const Block &oldBlock, const Block &newBlock) const
void compareObjectProperties (const Object *oldObj, const Object *newObj)
void compareObjectAliases (const Object *oldObj, const Object *newObj)
void compareObjectEnums (const Object *oldObj, const Object *newObj)
void compareObjectSignals (const Object *oldObj, const Object *newObj)
void compareObjectInlineComponents (const Object *oldObj, const Object *newObj)
void compareObjectRequiredPropertyExtraData (const Object *oldObj, const Object *newObj)
void compareObjectBindings (const Object *oldObj, const Object *newObj)
CompilationUnitDiff diff ()
template<typename ElementT, typename OldSource, typename NewSource, typename ContentEqFn>
void compareIndexedElements (OldSource oldSource, NewSource newSource, ContentEqFn contentEq)
bool stringsEqual (uint oldName, uint newName) const
bool unitMetadataContentEqual () const
bool objectContentEqual (const Object &oldObj, const Object &newObj) const
bool propertyContentEqual (const Property &oldProp, const Property &newProp) const
bool aliasContentEqual (const Alias &oldAlias, const Alias &newAlias) const
bool enumContentEqual (const Enum &oldEnum, const Enum &newEnum) const
bool signalContentEqual (const Signal &oldSig, const Signal &newSig) const
bool bindingContentEqual (const Binding &oldBinding, const Binding &newBinding) const
bool parameterTypeContentEqual (const ParameterType &oldType, const ParameterType &newType) const
bool functionContentEqual (const Function &oldFunc, const Function &newFunc) const
bool translationContentEqual (const TranslationData &oldTrans, const TranslationData &newTrans) const
bool classContentEqual (const Class &oldCls, const Class &newCls) const
bool templateObjectContentEqual (const TemplateObject &oldTO, const TemplateObject &newTO) const
bool jsClassContentEqual (const JSClass &oldJC, const JSClass &newJC) const
bool blockContentEqual (const Block &oldBlock, const Block &newBlock) const
void compareObjectProperties (const Object *oldObj, const Object *newObj)
void compareObjectAliases (const Object *oldObj, const Object *newObj)
void compareObjectEnums (const Object *oldObj, const Object *newObj)
void compareObjectSignals (const Object *oldObj, const Object *newObj)
void compareObjectInlineComponents (const Object *oldObj, const Object *newObj)
void compareObjectRequiredPropertyExtraData (const Object *oldObj, const Object *newObj)
void compareObjectBindings (const Object *oldObj, const Object *newObj)
CompilationUnitDiff diff ()

Public Attributes

const Unit *const oldUnit
const Unit *const newUnit
QList< Changechanges
int m_currentObjectIndex = -1

Detailed Description

Definition at line 251 of file qqmlpreviewdiff.cpp.

Member Function Documentation

◆ aliasContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::aliasContentEqual ( const Alias & oldAlias,
const Alias & newAlias ) const
inline

Definition at line 391 of file qqmlpreviewdiff.cpp.

◆ aliasContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::aliasContentEqual ( const Alias & oldAlias,
const Alias & newAlias ) const
inline

Definition at line 391 of file qqmlpreviewdiff.cpp.

◆ bindingContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::bindingContentEqual ( const Binding & oldBinding,
const Binding & newBinding ) const
inline

Definition at line 443 of file qqmlpreviewdiff.cpp.

◆ bindingContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::bindingContentEqual ( const Binding & oldBinding,
const Binding & newBinding ) const
inline

Definition at line 443 of file qqmlpreviewdiff.cpp.

◆ blockContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::blockContentEqual ( const Block & oldBlock,
const Block & newBlock ) const
inline

Definition at line 623 of file qqmlpreviewdiff.cpp.

◆ blockContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::blockContentEqual ( const Block & oldBlock,
const Block & newBlock ) const
inline

Definition at line 623 of file qqmlpreviewdiff.cpp.

◆ classContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::classContentEqual ( const Class & oldCls,
const Class & newCls ) const
inline

Definition at line 566 of file qqmlpreviewdiff.cpp.

◆ classContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::classContentEqual ( const Class & oldCls,
const Class & newCls ) const
inline

Definition at line 566 of file qqmlpreviewdiff.cpp.

◆ compareIndexedElements() [1/2]

template<typename ElementT, typename OldSource, typename NewSource, typename ContentEqFn>
void QV4::CompiledData::UnitDiffer::compareIndexedElements ( OldSource oldSource,
NewSource newSource,
ContentEqFn contentEq )
inline

◆ compareIndexedElements() [2/2]

template<typename ElementT, typename OldSource, typename NewSource, typename ContentEqFn>
void QV4::CompiledData::UnitDiffer::compareIndexedElements ( OldSource oldSource,
NewSource newSource,
ContentEqFn contentEq )
inline

Definition at line 259 of file qqmlpreviewdiff.cpp.

◆ compareObjectAliases() [1/2]

void QV4::CompiledData::UnitDiffer::compareObjectAliases ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 654 of file qqmlpreviewdiff.cpp.

◆ compareObjectAliases() [2/2]

void QV4::CompiledData::UnitDiffer::compareObjectAliases ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 654 of file qqmlpreviewdiff.cpp.

◆ compareObjectBindings() [1/2]

void QV4::CompiledData::UnitDiffer::compareObjectBindings ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 716 of file qqmlpreviewdiff.cpp.

◆ compareObjectBindings() [2/2]

void QV4::CompiledData::UnitDiffer::compareObjectBindings ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 716 of file qqmlpreviewdiff.cpp.

◆ compareObjectEnums() [1/2]

void QV4::CompiledData::UnitDiffer::compareObjectEnums ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 666 of file qqmlpreviewdiff.cpp.

◆ compareObjectEnums() [2/2]

void QV4::CompiledData::UnitDiffer::compareObjectEnums ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 666 of file qqmlpreviewdiff.cpp.

◆ compareObjectInlineComponents() [1/2]

void QV4::CompiledData::UnitDiffer::compareObjectInlineComponents ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 688 of file qqmlpreviewdiff.cpp.

◆ compareObjectInlineComponents() [2/2]

void QV4::CompiledData::UnitDiffer::compareObjectInlineComponents ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 688 of file qqmlpreviewdiff.cpp.

◆ compareObjectProperties() [1/2]

void QV4::CompiledData::UnitDiffer::compareObjectProperties ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 640 of file qqmlpreviewdiff.cpp.

◆ compareObjectProperties() [2/2]

void QV4::CompiledData::UnitDiffer::compareObjectProperties ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 640 of file qqmlpreviewdiff.cpp.

◆ compareObjectRequiredPropertyExtraData() [1/2]

void QV4::CompiledData::UnitDiffer::compareObjectRequiredPropertyExtraData ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 702 of file qqmlpreviewdiff.cpp.

◆ compareObjectRequiredPropertyExtraData() [2/2]

void QV4::CompiledData::UnitDiffer::compareObjectRequiredPropertyExtraData ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 702 of file qqmlpreviewdiff.cpp.

◆ compareObjectSignals() [1/2]

void QV4::CompiledData::UnitDiffer::compareObjectSignals ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 676 of file qqmlpreviewdiff.cpp.

◆ compareObjectSignals() [2/2]

void QV4::CompiledData::UnitDiffer::compareObjectSignals ( const Object * oldObj,
const Object * newObj )
inline

Definition at line 676 of file qqmlpreviewdiff.cpp.

◆ diff() [1/2]

CompilationUnitDiff QV4::CompiledData::UnitDiffer::diff ( )
inline

Definition at line 728 of file qqmlpreviewdiff.cpp.

References m_currentObjectIndex, QV4::CompiledData::Change::type, QV4::CompiledData::UnitMetadataChanged, and unitMetadataContentEqual().

Referenced by QV4::CompiledData::diffCompilationUnits().

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

◆ diff() [2/2]

CompilationUnitDiff QV4::CompiledData::UnitDiffer::diff ( )
inline

Definition at line 728 of file qqmlpreviewdiff.cpp.

◆ enumContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::enumContentEqual ( const Enum & oldEnum,
const Enum & newEnum ) const
inline

Definition at line 401 of file qqmlpreviewdiff.cpp.

◆ enumContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::enumContentEqual ( const Enum & oldEnum,
const Enum & newEnum ) const
inline

Definition at line 401 of file qqmlpreviewdiff.cpp.

◆ functionContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::functionContentEqual ( const Function & oldFunc,
const Function & newFunc ) const
inline

Definition at line 527 of file qqmlpreviewdiff.cpp.

◆ functionContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::functionContentEqual ( const Function & oldFunc,
const Function & newFunc ) const
inline

Definition at line 527 of file qqmlpreviewdiff.cpp.

◆ jsClassContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::jsClassContentEqual ( const JSClass & oldJC,
const JSClass & newJC ) const
inline

Definition at line 605 of file qqmlpreviewdiff.cpp.

◆ jsClassContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::jsClassContentEqual ( const JSClass & oldJC,
const JSClass & newJC ) const
inline

Definition at line 605 of file qqmlpreviewdiff.cpp.

◆ objectContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::objectContentEqual ( const Object & oldObj,
const Object & newObj ) const
inline

Definition at line 335 of file qqmlpreviewdiff.cpp.

◆ objectContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::objectContentEqual ( const Object & oldObj,
const Object & newObj ) const
inline

Definition at line 335 of file qqmlpreviewdiff.cpp.

◆ parameterTypeContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::parameterTypeContentEqual ( const ParameterType & oldType,
const ParameterType & newType ) const
inline

Definition at line 511 of file qqmlpreviewdiff.cpp.

◆ parameterTypeContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::parameterTypeContentEqual ( const ParameterType & oldType,
const ParameterType & newType ) const
inline

Definition at line 511 of file qqmlpreviewdiff.cpp.

◆ propertyContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::propertyContentEqual ( const Property & oldProp,
const Property & newProp ) const
inline

Definition at line 371 of file qqmlpreviewdiff.cpp.

◆ propertyContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::propertyContentEqual ( const Property & oldProp,
const Property & newProp ) const
inline

Definition at line 371 of file qqmlpreviewdiff.cpp.

◆ signalContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::signalContentEqual ( const Signal & oldSig,
const Signal & newSig ) const
inline

Definition at line 423 of file qqmlpreviewdiff.cpp.

◆ signalContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::signalContentEqual ( const Signal & oldSig,
const Signal & newSig ) const
inline

Definition at line 423 of file qqmlpreviewdiff.cpp.

◆ stringsEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::stringsEqual ( uint oldName,
uint newName ) const
inline

Definition at line 311 of file qqmlpreviewdiff.cpp.

◆ stringsEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::stringsEqual ( uint oldName,
uint newName ) const
inline

Definition at line 311 of file qqmlpreviewdiff.cpp.

◆ templateObjectContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::templateObjectContentEqual ( const TemplateObject & oldTO,
const TemplateObject & newTO ) const
inline

Definition at line 590 of file qqmlpreviewdiff.cpp.

◆ templateObjectContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::templateObjectContentEqual ( const TemplateObject & oldTO,
const TemplateObject & newTO ) const
inline

Definition at line 590 of file qqmlpreviewdiff.cpp.

◆ translationContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::translationContentEqual ( const TranslationData & oldTrans,
const TranslationData & newTrans ) const
inline

Definition at line 550 of file qqmlpreviewdiff.cpp.

◆ translationContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::translationContentEqual ( const TranslationData & oldTrans,
const TranslationData & newTrans ) const
inline

Definition at line 550 of file qqmlpreviewdiff.cpp.

◆ unitMetadataContentEqual() [1/2]

bool QV4::CompiledData::UnitDiffer::unitMetadataContentEqual ( ) const
inline

Definition at line 319 of file qqmlpreviewdiff.cpp.

Referenced by diff().

Here is the caller graph for this function:

◆ unitMetadataContentEqual() [2/2]

bool QV4::CompiledData::UnitDiffer::unitMetadataContentEqual ( ) const
inline

Definition at line 319 of file qqmlpreviewdiff.cpp.

Member Data Documentation

◆ changes

QList< Change > QV4::CompiledData::UnitDiffer::changes

Definition at line 255 of file qqmlpreviewdiff.cpp.

◆ m_currentObjectIndex

int QV4::CompiledData::UnitDiffer::m_currentObjectIndex = -1

Definition at line 256 of file qqmlpreviewdiff.cpp.

Referenced by compareIndexedElements(), and diff().

◆ newUnit

const Unit *const QV4::CompiledData::UnitDiffer::newUnit

Definition at line 254 of file qqmlpreviewdiff.cpp.

◆ oldUnit

const Unit *const QV4::CompiledData::UnitDiffer::oldUnit

Definition at line 253 of file qqmlpreviewdiff.cpp.


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