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>.
|
#include <qqmldommoduleindex_p.h>
Public Types | |
enum class | Status { NotLoaded , Loading , Loaded } |
Public Types inherited from QQmlJS::Dom::DomBase | |
using | FilterT = function_ref<bool(const DomItem &, const PathEls::PathComponent &, const DomItem &)> |
Static Public Attributes | |
static constexpr DomType | kindValue = DomType::ModuleIndex |
Protected Member Functions | |
std::shared_ptr< OwningItem > | doCopy (const DomItem &self) const override |
Additional Inherited Members | |
Static Public Member Functions inherited from QQmlJS::Dom::OwningItem | |
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 82 of file qqmldommoduleindex.cpp.
References QSet< T >::begin(), ensureMinorVersion(), it, and o.
QQmlJS::Dom::ModuleIndex::~ModuleIndex | ( | ) |
Definition at line 101 of file qqmldommoduleindex.cpp.
References QSet< T >::begin(), it, and QQmlJS::Dom::OwningItem::mutex().
Definition at line 103 of file qqmldommoduleindex_p.h.
References mutex.
Definition at line 165 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::RefCacheEntry::addForPath(), QQmlJS::Dom::RefCacheEntry::All, QString::append(), autoExports(), QQmlJS::Dom::RefCacheEntry::cached, canonicalPath(), QQmlJS::Dom::RefCacheEntry::canonicalPaths, QQmlJS::Dom::Path::field(), QQmlJS::Dom::RefCacheEntry::First, QQmlJS::Dom::RefCacheEntry::forPath(), i, QString::insert(), QQmlJS::Dom::RefCacheEntry::None, QQmlJS::Dom::DomItem::path(), qWarning, and sources().
Referenced by autoExports(), and iterateDirectSubpaths().
Implements QQmlJS::Dom::OwningItem.
Definition at line 80 of file qqmldommoduleindex_p.h.
Referenced by autoExports().
Definition at line 121 of file qqmldommoduleindex_p.h.
References mutex.
|
overrideprotectedvirtual |
Implements QQmlJS::Dom::OwningItem.
Definition at line 77 of file qqmldommoduleindex.cpp.
ModuleScope * QQmlJS::Dom::ModuleIndex::ensureMinorVersion | ( | int | minorVersion | ) |
Definition at line 294 of file qqmldommoduleindex.cpp.
References it, QQmlJS::Dom::Version::Latest, majorVersion(), QQmlJS::Dom::ModuleScope, QQmlJS::Dom::OwningItem::mutex(), qScopeGuard(), and QQmlJS::Dom::Version.
Referenced by ModuleIndex(), iterateDirectSubpaths(), and mergeWith().
QList< DomItem > QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion | ( | const DomItem & | self, |
const QString & | name, | ||
int | minorVersion ) const |
Definition at line 222 of file qqmldommoduleindex.cpp.
References arg, QString::clear(), error, QQmlJS::Dom::Path::field(), QQmlJS::Dom::DomItem::field(), i, QQmlJS::Dom::DomItem::index(), QQmlJS::Dom::DomItem::indexes(), j, QQmlJS::Dom::DomItem::key(), QQmlJS::Dom::Path::key(), majorVersion(), QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::myVersioningErrors(), QString::number(), sources(), tr, QQmlJS::Dom::Version::Undefined, uri(), and QQmlJS::Dom::Version.
|
overridevirtual |
Implements QQmlJS::Dom::DomBase.
Definition at line 117 of file qqmldommoduleindex.cpp.
References autoExports(), Qt::CaseInsensitive, el, ensureMinorVersion(), QQmlJS::Dom::DomBase::field(), QMap< Key, T >::insert(), QList< T >::isEmpty(), QQmlJS::Dom::Version::Latest, majorVersion(), map, QQmlJS::Dom::Map, minorVersions(), QString::number(), ok, QQmlJS::Dom::OwningItem::pathFromOwner(), sources(), and uri().
|
inlineoverridevirtual |
Implements QQmlJS::Dom::DomBase.
Definition at line 62 of file qqmldommoduleindex_p.h.
|
inline |
Definition at line 93 of file qqmldommoduleindex_p.h.
Referenced by ensureMinorVersion(), exportsWithNameAndMinorVersion(), iterateDirectSubpaths(), and qmldirsToLoad().
|
inline |
Definition at line 75 of file qqmldommoduleindex_p.h.
void QQmlJS::Dom::ModuleIndex::mergeWith | ( | const std::shared_ptr< ModuleIndex > & | o | ) |
Definition at line 321 of file qqmldommoduleindex.cpp.
References QSet< T >::begin(), ensureMinorVersion(), it, QQmlJS::Dom::OwningItem::mutex(), and o.
|
inline |
Definition at line 96 of file qqmldommoduleindex_p.h.
References mutex.
Referenced by iterateDirectSubpaths().
Definition at line 116 of file qqmldommoduleindex_p.h.
References mutex.
Referenced by qmldirsToLoad().
Definition at line 347 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::OwningItem::addErrorLocal(), arg, dir, QString::isEmpty(), majorVersion(), QQmlJS::Dom::OwningItem::mutex(), QQmlJS::Dom::myExportErrors(), QString::number(), QQmlJS::Dom::DomItem::ownerAs(), qCDebug, QQmlJS::Dom::Paths::qmldirFilePath(), qmldirPaths(), QString::split(), subPath(), tr, uri(), and warning().
Definition at line 111 of file qqmldommoduleindex_p.h.
References mutex.
Definition at line 282 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::OwningItem::mutex().
Referenced by autoExports(), exportNames(), exportsWithNameAndMinorVersion(), and iterateDirectSubpaths().
|
inline |
Definition at line 92 of file qqmldommoduleindex_p.h.
Referenced by exportsWithNameAndMinorVersion(), iterateDirectSubpaths(), and qmldirsToLoad().
|
staticconstexpr |
Definition at line 61 of file qqmldommoduleindex_p.h.