![]() |
Qt 6.x
The Qt SDK
|
#include <qqmldompath_p.h>
Collaboration diagram for QQmlJS::Dom::Path:Public Types | |
| using | Kind = PathEls::Kind |
| using | Component = PathEls::PathComponent |
| using | difference_type = long |
| using | value_type = Path |
| using | pointer = const Component * |
| using | reference = const Path & |
| using | iterator_category = std::forward_iterator_tag |
Static Public Member Functions | |
| static ErrorGroups | myErrors () |
| static Path | fromString (QString s, ErrorHandler errorHandler=nullptr) |
| static Path | fromString (QStringView s, ErrorHandler errorHandler=nullptr) |
| static Path | Root (PathRoot r) |
| static Path | Root (QStringView s=u"") |
| static Path | Root (QString s) |
| static Path | Index (index_type i) |
| static Path | Field (QStringView s=u"") |
| static Path | Field (QString s) |
| static Path | Key (QStringView s=u"") |
| static Path | Key (QString s) |
| static Path | Current (PathCurrent c) |
| static Path | Current (QStringView s=u"") |
| static Path | Current (QString s) |
| static Path | Empty () |
| static int | cmp (const Path &p1, const Path &p2) |
Friends | |
| class | QQmlJS::Dom::PathEls::TestPaths |
| class | FieldFilter |
| size_t | qHash (const Path &, size_t) |
Definition at line 655 of file qqmldompath_p.h.
Definition at line 660 of file qqmldompath_p.h.
| using QQmlJS::Dom::Path::difference_type = long |
Definition at line 732 of file qqmldompath_p.h.
| using QQmlJS::Dom::Path::iterator_category = std::forward_iterator_tag |
Definition at line 736 of file qqmldompath_p.h.
| using QQmlJS::Dom::Path::Kind = PathEls::Kind |
Definition at line 659 of file qqmldompath_p.h.
| using QQmlJS::Dom::Path::pointer = const Component* |
Definition at line 734 of file qqmldompath_p.h.
| using QQmlJS::Dom::Path::reference = const Path& |
Definition at line 735 of file qqmldompath_p.h.
| using QQmlJS::Dom::Path::value_type = Path |
Definition at line 733 of file qqmldompath_p.h.
|
default |
Referenced by any(), Current(), current(), Current(), Current(), current(), dropFront(), dropTail(), Empty(), empty(), expandBack(), expandFront(), Field(), field(), Field(), fromString(), Index(), index(), key(), Key(), Key(), mid(), path(), Root(), Root(), Root(), and split().
Here is the caller graph for this function:
|
inlineexplicit |
Definition at line 664 of file qqmldompath_p.h.
| Path QQmlJS::Dom::Path::any | ( | ) | const |
Definition at line 641 of file qqmldompath.cpp.
Referenced by any().
Here is the call graph for this function:
Here is the caller graph for this function:| Path QQmlJS::Dom::Path::appendComponent | ( | const PathEls::PathComponent & | c | ) |
Definition at line 837 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Any, appendComponent(), QQmlJS::Dom::PathEls::Current, QQmlJS::Dom::PathEls::Empty, QQmlJS::Dom::PathEls::Field, QQmlJS::Dom::PathEls::Filter, QQmlJS::Dom::PathEls::Index, QQmlJS::Dom::PathEls::Key, QQmlJS::Dom::Other, and QQmlJS::Dom::PathEls::Root.
Referenced by appendComponent().
Here is the call graph for this function:
Here is the caller graph for this function:| PathIterator QQmlJS::Dom::Path::begin | ( | ) | const |
Definition at line 203 of file qqmldompath.cpp.
| bool QQmlJS::Dom::Path::checkHeadName | ( | QStringView | name | ) | const |
Definition at line 241 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::checkName().
Here is the call graph for this function:Definition at line 793 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::cmp(), i, p1, p2, and qMin().
Referenced by QQmlJS::Dom::operator!=(), QQmlJS::Dom::operator<(), QQmlJS::Dom::operator<=(), QQmlJS::Dom::operator==(), QQmlJS::Dom::operator>(), and QQmlJS::Dom::operator>=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 574 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::Paths::lookupCppTypePath(), QQmlJS::Dom::Paths::lookupPropertyPath(), QQmlJS::Dom::Paths::lookupSymbolPath(), and QQmlJS::Dom::Paths::lookupTypePath().
Here is the call graph for this function:
Here is the caller graph for this function:| Path QQmlJS::Dom::Path::current | ( | PathCurrent | s | ) | const |
Definition at line 664 of file qqmldompath.cpp.
References Path().
Referenced by current(), and current().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 580 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:Definition at line 670 of file qqmldompath.cpp.
References current().
Here is the call graph for this function:
|
static |
Definition at line 586 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::current | ( | QStringView | s = u"" | ) | const |
Definition at line 677 of file qqmldompath.cpp.
References Path(), and current().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::dropFront | ( | int | n = 1 | ) | const |
Definition at line 926 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::AttachedInfo::find(), QQmlJS::Dom::PathIterator::operator++(), and QQmlJS::Dom::PathIterator::operator++().
Here is the call graph for this function:
Here is the caller graph for this function:| Path QQmlJS::Dom::Path::dropTail | ( | int | n = 1 | ) | const |
Definition at line 933 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:Definition at line 903 of file qqmldompath.cpp.
References i.
Referenced by QQmlJS::Dom::ErrorGroups::fatal(), and toString().
Here is the caller graph for this function:
|
static |
Definition at line 592 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::empty | ( | ) | const |
Definition at line 597 of file qqmldompath.cpp.
References Path(), and empty().
Referenced by empty().
Here is the call graph for this function:
Here is the caller graph for this function:| PathIterator QQmlJS::Dom::Path::end | ( | ) | const |
Definition at line 208 of file qqmldompath.cpp.
| Path QQmlJS::Dom::Path::expandBack | ( | ) | const |
Definition at line 771 of file qqmldompath.cpp.
References Path().
Referenced by path().
Here is the call graph for this function:
Here is the caller graph for this function:| Path QQmlJS::Dom::Path::expandFront | ( | ) | const |
Definition at line 759 of file qqmldompath.cpp.
References Path().
Referenced by path().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 605 of file qqmldompath.cpp.
References field().
Referenced by QQmlJS::Dom::RegionComments::addPostComment(), QQmlJS::Dom::RegionComments::addPreComment(), QQmlJS::Dom::ModuleIndex::autoExports(), QQmlJS::Dom::LoadInfo::canonicalPath(), QQmlJS::Dom::domCompare(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::AttachedInfo::ensureItemAtPath(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), field(), field(), QQmlJS::Dom::AttachedInfo::findAttachedInfo(), QQmlJS::Dom::Paths::globalScopeInfoPath(), QQmlJS::Dom::Paths::globalScopePath(), QQmlJS::Dom::AttachedInfo::itemAtPath(), QQmlJS::Dom::Paths::jsFileInfoPath(), QQmlJS::Dom::Paths::jsFilePath(), QQmlJS::Dom::Paths::loadInfoPath(), QQmlJS::Dom::Paths::lookupCppTypePath(), QQmlJS::Dom::Paths::lookupPropertyPath(), QQmlJS::Dom::Paths::lookupSymbolPath(), QQmlJS::Dom::Paths::lookupTypePath(), QQmlJS::Dom::Paths::moduleIndexPath(), QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::Paths::qmlDirectoryInfoPath(), QQmlJS::Dom::Paths::qmlDirectoryPath(), QQmlJS::Dom::Paths::qmldirFileInfoPath(), QQmlJS::Dom::Paths::qmldirFilePath(), QQmlJS::Dom::Paths::qmlDirInfoPath(), QQmlJS::Dom::Paths::qmlDirPath(), QQmlJS::Dom::Paths::qmlFileInfoPath(), QQmlJS::Dom::Paths::qmlFileObjectPath(), QQmlJS::Dom::Paths::qmlFilePath(), QQmlJS::Dom::Paths::qmltypesFileInfoPath(), QQmlJS::Dom::Paths::qmltypesFilePath(), QQmlJS::Dom::Component::updatePathFromOwner(), QQmlJS::Dom::QmlComponent::updatePathFromOwner(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 553 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::field | ( | QStringView | name | ) | const |
Definition at line 612 of file qqmldompath.cpp.
References Path(), and field().
Here is the call graph for this function:
|
static |
Definition at line 547 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::DomUniverse::canonicalPath(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::DomUniverse::iterateDirectSubpaths(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Here is the call graph for this function:
Here is the caller graph for this function:| Path QQmlJS::Dom::Path::filter | ( | std::function< bool(DomItem)> | , |
| QStringView | desc = u"<native code filter>" |
||
| ) | const |
|
static |
Definition at line 954 of file qqmldompath.cpp.
References fromString().
Referenced by fromString().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 300 of file qqmldompath.cpp.
References Path(), QString::append(), arg, QString::at(), at, dot(), QQmlJS::Dom::PathEls::End, error, QQmlJS::Dom::ErrorGroups::error(), QChar::fromLatin1(), QQmlJS::Dom::ErrorMessage::handle(), i, QQmlJS::Dom::PathEls::IndexOrKey, QQmlJS::Dom::ErrorGroups::info(), myErrors(), QString::number(), ok, Q_ASSERT, quote(), QQmlJS::Dom::PathEls::Start, state, tr, and QQmlJS::Dom::ErrorGroups::warning().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::head | ( | ) | const |
Definition at line 260 of file qqmldompath.cpp.
References mid().
Referenced by QQmlJS::Dom::AttachedInfo::find(), and QQmlJS::Dom::PathIterator::operator*().
Here is the call graph for this function:
Here is the caller graph for this function:| PathCurrent QQmlJS::Dom::Path::headCurrent | ( | ) | const |
Definition at line 221 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Current::asCurrent(), and QQmlJS::Dom::Other.
Here is the call graph for this function:| function< bool(DomItem)> QQmlJS::Dom::Path::headFilter | ( | ) | const |
Definition at line 251 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Filter::asFilter(), and function.
Here is the call graph for this function:| index_type QQmlJS::Dom::Path::headIndex | ( | index_type | defaultValue = -1 | ) | const |
Definition at line 246 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::index().
Here is the call graph for this function:| Path::Kind QQmlJS::Dom::Path::headKind | ( | ) | const |
Definition at line 229 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::kind().
Here is the call graph for this function:| QString QQmlJS::Dom::Path::headName | ( | ) | const |
Definition at line 236 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::PathComponent::name().
Here is the call graph for this function:| PathRoot QQmlJS::Dom::Path::headRoot | ( | ) | const |
Definition at line 213 of file qqmldompath.cpp.
References QQmlJS::Dom::PathEls::Root::asRoot(), and QQmlJS::Dom::Other.
Here is the call graph for this function:
|
static |
| Path QQmlJS::Dom::Path::index | ( | index_type | i | ) | const |
Definition at line 633 of file qqmldompath.cpp.
References Path(), i, and index().
Referenced by QQmlJS::Dom::RegionComments::addPostComment(), QQmlJS::Dom::QmlFile::addPragma(), QQmlJS::Dom::RegionComments::addPreComment(), QQmlJS::Dom::EnumDecl::addValue(), QQmlJS::Dom::appendUpdatableElementInQList(), QQmlJS::Dom::domCompare(), index(), QQmlJS::Dom::insertUpdatableElementInMultiMap(), QQmlJS::Dom::Paths::qmlFileObjectPath(), QQmlJS::Dom::updatePathFromOwnerMultiMap(), QQmlJS::Dom::updatePathFromOwnerQList(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 620 of file qqmldompath.cpp.
Referenced by QQmlJS::Dom::RegionComments::addPostComment(), QQmlJS::Dom::RegionComments::addPreComment(), QQmlJS::Dom::LoadInfo::canonicalPath(), QQmlJS::Dom::domCompare(), QQmlJS::Dom::AttachedInfo::ensureItemAtPath(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), QQmlJS::Dom::AttachedInfo::findAttachedInfo(), QQmlJS::Dom::Paths::globalScopeInfoPath(), QQmlJS::Dom::insertUpdatableElementInMultiMap(), QQmlJS::Dom::AttachedInfo::itemAtPath(), QQmlJS::Dom::Paths::jsFileInfoPath(), key(), QQmlJS::Dom::Paths::loadInfoPath(), QQmlJS::Dom::Paths::lookupCppTypePath(), QQmlJS::Dom::Paths::lookupPropertyPath(), QQmlJS::Dom::Paths::lookupSymbolPath(), QQmlJS::Dom::Paths::lookupTypePath(), QQmlJS::Dom::Paths::moduleIndexPath(), QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::ModuleScope::pathFromOwner(), QQmlJS::Dom::Paths::qmlDirectoryInfoPath(), QQmlJS::Dom::Paths::qmldirFileInfoPath(), QQmlJS::Dom::Paths::qmlDirInfoPath(), QQmlJS::Dom::Paths::qmlFileInfoPath(), QQmlJS::Dom::Paths::qmlFileObjectPath(), QQmlJS::Dom::Paths::qmltypesFileInfoPath(), and QQmlJS::Dom::updatePathFromOwnerMultiMap().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 567 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::key | ( | QStringView | name | ) | const |
Definition at line 628 of file qqmldompath.cpp.
|
static |
Definition at line 559 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::last | ( | ) | const |
Definition at line 265 of file qqmldompath.cpp.
References mid().
Here is the call graph for this function:
|
inline |
Definition at line 669 of file qqmldompath_p.h.
Referenced by QQmlJS::Dom::ErrorGroups::fatal(), QQmlJS::Dom::OutWriter::itemStart(), mid(), QQmlJS::Dom::operator!=(), QQmlJS::Dom::operator==(), path(), split(), and QQmlJS::Dom::OutWriter::updatedFile().
Here is the caller graph for this function:| Path QQmlJS::Dom::Path::mid | ( | int | offset | ) | const |
Definition at line 949 of file qqmldompath.cpp.
References mid().
Here is the call graph for this function:| Path QQmlJS::Dom::Path::mid | ( | int | offset, |
| int | length | ||
| ) | const |
Definition at line 940 of file qqmldompath.cpp.
References Path(), length(), and qMin().
Referenced by QQmlJS::Dom::AttachedInfo::ensure(), QQmlJS::Dom::AttachedInfo::find(), head(), QQmlJS::Dom::OutWriter::itemStart(), last(), mid(), operator[](), path(), and split().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 897 of file qqmldompath.cpp.
References NewErrorGroup.
Referenced by fromString(), QQmlJS::Dom::Paths::moduleIndexPath(), and QQmlJS::Dom::Paths::moduleScopePath().
Here is the caller graph for this function:
|
explicit |
Definition at line 198 of file qqmldompath.cpp.
| Path & QQmlJS::Dom::Path::operator++ | ( | ) |
Definition at line 778 of file qqmldompath.cpp.
| Path QQmlJS::Dom::Path::operator++ | ( | int | ) |
Definition at line 785 of file qqmldompath.cpp.
| Path QQmlJS::Dom::Path::operator[] | ( | int | i | ) | const |
Definition at line 685 of file qqmldompath.cpp.
References Path(), expandBack(), expandFront(), i, QQmlJS::Dom::inQString(), QStringView::isEmpty(), j, length(), mid(), path(), and QQmlJS::Dom::PathEls::PathComponent::stringView().
Referenced by QQmlJS::Dom::MutableDomItem::canonicalPath(), path(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::AttachedInfoT< Info >::visitTree().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 522 of file qqmldompath.cpp.
References Path().
Referenced by QQmlJS::Dom::DomUniverse::canonicalPath(), QQmlJS::Dom::LoadInfo::canonicalPath(), QQmlJS::Dom::Paths::globalScopeInfoPath(), QQmlJS::Dom::Paths::jsFileInfoPath(), QQmlJS::Dom::Paths::loadInfoPath(), QQmlJS::Dom::Paths::moduleIndexPath(), QQmlJS::Dom::Paths::moduleScopePath(), QQmlJS::Dom::Paths::qmlDirectoryInfoPath(), QQmlJS::Dom::Paths::qmldirFileInfoPath(), QQmlJS::Dom::Paths::qmlDirInfoPath(), QQmlJS::Dom::Paths::qmlFileInfoPath(), and QQmlJS::Dom::Paths::qmltypesFileInfoPath().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 528 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:
|
static |
Definition at line 540 of file qqmldompath.cpp.
References Path().
Here is the call graph for this function:| Source QQmlJS::Dom::Path::split | ( | ) | const |
| QString QQmlJS::Dom::Path::toString | ( | ) | const |
Definition at line 917 of file qqmldompath.cpp.
Referenced by QQmlJS::Dom::OutWriterState::closeState().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 744 of file qqmldompath_p.h.
|
friend |
Definition at line 795 of file qqmldompath_p.h.
|
friend |
Definition at line 743 of file qqmldompath_p.h.