![]() |
Qt 6.x
The Qt SDK
|
#include <qqmldommoduleindex_p.h>
Public Types | |
enum class | Status { NotLoaded , Loading , Loaded } |
![]() | |
using | FilterT = function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)> |
Static Public Attributes | |
static constexpr DomType | kindValue = DomType::ModuleIndex |
Protected Member Functions | |
std::shared_ptr< OwningItem > | doCopy (DomItem &self) const override |
virtual std::shared_ptr< OwningItem > | doCopy (DomItem &self) const =0 |
Additional Inherited Members | |
![]() | |
static int | nextRevision () |
Definition at line 52 of file qqmldommoduleindex_p.h.
|
strong |
Enumerator | |
---|---|
NotLoaded | |
Loading | |
Loaded |
Definition at line 60 of file qqmldommoduleindex_p.h.
|
inline |
Definition at line 64 of file qqmldommoduleindex_p.h.
QQmlJS::Dom::ModuleIndex::ModuleIndex | ( | const ModuleIndex & | o | ) |
Definition at line 81 of file qqmldommoduleindex.cpp.
References QMap< Key, T >::begin(), QMap< Key, T >::end(), ensureMinorVersion(), it, and o.
QQmlJS::Dom::ModuleIndex::~ModuleIndex | ( | ) |
Definition at line 100 of file qqmldommoduleindex.cpp.
References QMap< Key, T >::begin(), QMap< Key, T >::end(), it, and QQmlJS::Dom::OwningItem::mutex().
Definition at line 102 of file qqmldommoduleindex_p.h.
References mutex.
Definition at line 164 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::RefCacheEntry::addForPath(), QQmlJS::Dom::RefCacheEntry::All, QList< T >::append(), autoExports(), QQmlJS::Dom::RefCacheEntry::cached, canonicalPath(), QQmlJS::Dom::RefCacheEntry::canonicalPaths, QListSpecialMethodsBase< T >::contains(), QSet< T >::contains(), QQmlJS::Dom::Path::field(), QQmlJS::Dom::RefCacheEntry::First, QQmlJS::Dom::RefCacheEntry::forPath(), i, QSet< T >::insert(), QList< T >::isEmpty(), QQmlJS::Dom::RefCacheEntry::None, QQmlJS::Dom::DomItem::path(), qWarning, and sources().
Referenced by autoExports(), and iterateDirectSubpaths().
Implements QQmlJS::Dom::OwningItem.
Definition at line 79 of file qqmldommoduleindex_p.h.
Referenced by autoExports().
Definition at line 120 of file qqmldommoduleindex_p.h.
References mutex.
|
overrideprotectedvirtual |
Implements QQmlJS::Dom::OwningItem.
Definition at line 76 of file qqmldommoduleindex.cpp.
ModuleScope * QQmlJS::Dom::ModuleIndex::ensureMinorVersion | ( | int | minorVersion | ) |
Definition at line 293 of file qqmldommoduleindex.cpp.
References it, QQmlJS::Dom::Version::Latest, majorVersion(), QQmlJS::Dom::OwningItem::mutex(), and qScopeGuard().
Referenced by ModuleIndex(), iterateDirectSubpaths(), and mergeWith().
Definition at line 153 of file qqmldommoduleindex.cpp.
References QList< T >::at(), i, QList< T >::size(), and sources().
QList< DomItem > QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion | ( | DomItem & | self, |
QString | name, | ||
int | minorVersion | ||
) | const |
Definition at line 221 of file qqmldommoduleindex.cpp.
References QList< T >::append(), arg, QQmlJS::Dom::DomItem::as(), QList< T >::at(), QString::clear(), QQmlJS::Dom::ErrorGroups::error(), QQmlJS::Dom::Path::field(), QQmlJS::Dom::DomItem::field(), i, QQmlJS::Dom::DomItem::index(), QQmlJS::Dom::DomItem::indexes(), QList< T >::isEmpty(), QQmlJS::Dom::Version::isValid(), j, QQmlJS::Dom::DomItem::key(), QQmlJS::Dom::Path::key(), QQmlJS::Dom::Version::majorVersion, majorVersion(), QQmlJS::Dom::Version::minorVersion, QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::myVersioningErrors(), QString::number(), QList< T >::size(), sources(), tr, QQmlJS::Dom::Version::Undefined, uri(), and QQmlJS::Dom::ErrorMessage::withPath().
|
overridevirtual |
Implements QQmlJS::Dom::DomBase.
Definition at line 116 of file qqmldommoduleindex.cpp.
References autoExports(), Qt::CaseInsensitive, QString::compare(), el, ensureMinorVersion(), QQmlJS::Dom::DomBase::field(), QString::isEmpty(), QList< T >::isEmpty(), QQmlJS::Dom::Version::Latest, majorVersion(), map, minorVersions(), QString::number(), ok, QQmlJS::Dom::OwningItem::pathFromOwner(), sources(), QString::toInt(), and uri().
|
inlineoverridevirtual |
Implements QQmlJS::Dom::DomBase.
Definition at line 62 of file qqmldommoduleindex_p.h.
|
inline |
Definition at line 92 of file qqmldommoduleindex_p.h.
Referenced by ensureMinorVersion(), exportsWithNameAndMinorVersion(), iterateDirectSubpaths(), and qmldirsToLoad().
|
inline |
Definition at line 74 of file qqmldommoduleindex_p.h.
void QQmlJS::Dom::ModuleIndex::mergeWith | ( | std::shared_ptr< ModuleIndex > | o | ) |
Definition at line 320 of file qqmldommoduleindex.cpp.
References QMap< Key, T >::begin(), QMap< Key, T >::end(), ensureMinorVersion(), it, QQmlJS::Dom::OwningItem::mutex(), and o.
|
inline |
Definition at line 95 of file qqmldommoduleindex_p.h.
References mutex.
Referenced by iterateDirectSubpaths().
Definition at line 115 of file qqmldommoduleindex_p.h.
References mutex.
Referenced by qmldirsToLoad().
Definition at line 346 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::OwningItem::addErrorLocal(), arg, QFileInfo::canonicalFilePath(), dir, QChar::fromLatin1(), QString::isEmpty(), QFileInfo::isFile(), majorVersion(), QQmlJS::Dom::OwningItem::mutex(), QQmlJS::Dom::myExportErrors(), QString::number(), QQmlJS::Dom::DomItem::ownerAs(), QQmlJS::Dom::Paths::qmldirFilePath(), qmldirPaths(), QString::split(), subPath(), tr, and uri().
Definition at line 110 of file qqmldommoduleindex_p.h.
References mutex.
Definition at line 281 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::OwningItem::mutex().
Referenced by autoExports(), exportNames(), exportsWithNameAndMinorVersion(), and iterateDirectSubpaths().
|
inline |
Definition at line 91 of file qqmldommoduleindex_p.h.
Referenced by exportsWithNameAndMinorVersion(), iterateDirectSubpaths(), and qmldirsToLoad().
|
staticconstexpr |
Definition at line 61 of file qqmldommoduleindex_p.h.