![]() |
Qt 6.x
The Qt SDK
|
#include <qqmldomitem_p.h>
Public Types | |
enum class | CopyOption { EnvConnected , EnvDisconnected } |
using | Callback = function< void(Path, DomItem &, DomItem &)> |
using | InternalKind = DomType |
using | Visitor = function_ref< bool(Path, DomItem &)> |
using | ChildrenVisitor = function_ref< bool(Path, DomItem &, bool)> |
Static Public Member Functions | |
static ErrorGroups | myErrors () |
static ErrorGroups | myResolveErrors () |
static DomItem | fromCode (QString code, DomType fileType=DomType::QmlFile) |
Static Public Attributes | |
static ErrorGroup | domErrorGroup |
static DomItem | empty |
Friends | |
class | DomBase |
class | DomElement |
class | Map |
class | List |
class | QmlObject |
class | DomUniverse |
class | DomEnvironment |
class | ExternalItemInfoBase |
class | ConstantData |
class | MutableDomItem |
class | ScriptExpression |
class | AstComments |
class | AttachedInfo |
class | TestDomItem |
QMLDOM_EXPORT bool | operator== (const DomItem &, const DomItem &) |
Definition at line 885 of file qqmldomitem_p.h.
using QQmlJS::Dom::DomItem::Callback = function<void(Path, DomItem &, DomItem &)> |
Definition at line 888 of file qqmldomitem_p.h.
using QQmlJS::Dom::DomItem::ChildrenVisitor = function_ref<bool(Path, DomItem &, bool)> |
Definition at line 892 of file qqmldomitem_p.h.
Definition at line 890 of file qqmldomitem_p.h.
using QQmlJS::Dom::DomItem::Visitor = function_ref<bool(Path, DomItem &)> |
Definition at line 891 of file qqmldomitem_p.h.
|
strong |
Enumerator | |
---|---|
EnvConnected | |
EnvDisconnected |
Definition at line 899 of file qqmldomitem_p.h.
|
default |
Referenced by subDataItem(), subListItem(), subMapItem(), subValueItem(), and wrap().
QQmlJS::Dom::DomItem::DomItem | ( | std::shared_ptr< DomEnvironment > | ) |
QQmlJS::Dom::DomItem::DomItem | ( | std::shared_ptr< DomUniverse > | ) |
void QQmlJS::Dom::DomItem::addError | ( | ErrorMessage | msg | ) |
Referenced by QQmlJS::Dom::envCallbackForFile(), and QQmlJS::Dom::DomUniverse::execQueue().
|
inline |
Definition at line 972 of file qqmldomitem_p.h.
|
inline |
Definition at line 1226 of file qqmldomitem_p.h.
References base, QQmlJS::Dom::domTypeIsObjWrap(), and QQmlJS::Dom::domTypeIsValueWrap().
Referenced by QQmlJS::Dom::OutWriterState::OutWriterState(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), and QQmlJS::Dom::ExternalOwningItem::iterateSubOwners().
|
inline |
Definition at line 1238 of file qqmldomitem_p.h.
References QQmlJS::Dom::domTypeIsObjWrap(), QQmlJS::Dom::domTypeIsValueWrap(), and Q_ASSERT.
|
inline |
Definition at line 967 of file qqmldomitem_p.h.
QString QQmlJS::Dom::DomItem::canonicalFilePath | ( | ) |
Referenced by QmlLsp::QmlLintSuggestions::diagnose(), and QQmlJS::Dom::envCallbackForFile().
Path QQmlJS::Dom::DomItem::canonicalPath | ( | ) |
Referenced by QQmlJS::Dom::OutWriterState::closeState(), CompletionRequest::completions(), QQmlJS::Dom::envCallbackForFile(), QQmlJS::Dom::AttachedInfo::findAttachedInfo(), QQmlJS::Dom::DomEnvironment::moduleIndexWithUri(), and QQmlJS::Dom::OutWriter::updatedFile().
|
inline |
|
inline |
Definition at line 970 of file qqmldomitem_p.h.
void QQmlJS::Dom::DomItem::clearErrors | ( | ErrorGroups | groups = ErrorGroups({}) , |
bool | iterate = true |
||
) |
bool QQmlJS::Dom::DomItem::commitToBase | ( | std::shared_ptr< DomEnvironment > | validPtr = nullptr | ) |
Referenced by QmlLsp::QQmlCodeModel::newDocForOpenFile().
DomItem QQmlJS::Dom::DomItem::component | ( | GoTo | option = GoTo::Strict | ) |
Referenced by CompletionRequest::completions(), and QQmlJS::Dom::FieldFilter::operator()().
DomItem QQmlJS::Dom::DomItem::container | ( | ) |
DomItem QQmlJS::Dom::DomItem::containingFile | ( | ) |
DomItem QQmlJS::Dom::DomItem::containingObject | ( | ) |
Referenced by QQmlJS::Dom::MutableDomItem::containingObject().
Definition at line 1259 of file qqmldomitem_p.h.
References Q_ASSERT.
|
inline |
Definition at line 1251 of file qqmldomitem_p.h.
References base, and Q_ASSERT.
Referenced by QQmlJS::Dom::DomEnvironment::ensureGlobalScopeWithName(), QQmlJS::Dom::envCallbackForFile(), QQmlJS::Dom::DomUniverse::execQueue(), QQmlJS::Dom::DomEnvironment::iterateDirectSubpaths(), subDataItem(), QQmlJS::Dom::updateEntry(), and wrap().
|
inline |
Definition at line 1266 of file qqmldomitem_p.h.
QDateTime QQmlJS::Dom::DomItem::createdAt | ( | ) |
int QQmlJS::Dom::DomItem::derivedFrom | ( | ) |
DomItem QQmlJS::Dom::DomItem::directParent | ( | ) |
|
inline |
Definition at line 917 of file qqmldomitem_p.h.
References QQmlJS::Dom::kind2domKind().
Referenced by QQmlJS::Dom::domCompare(), and QQmlJS::Dom::domCompareStrList().
FileWriter::Status QQmlJS::Dom::DomItem::dump | ( | QString | path, |
function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)> | filter = noFilter , |
||
int | nBackups = 2 , |
||
int | indent = 0 , |
||
FileWriter * | fw = nullptr |
||
) |
void QQmlJS::Dom::DomItem::dump | ( | Sink | , |
int | indent = 0 , |
||
function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)> | filter = noFilter |
||
) |
|
inline |
Definition at line 1160 of file qqmldomitem_p.h.
References it.
|
inline |
Definition at line 1164 of file qqmldomitem_p.h.
References it.
|
inline |
Definition at line 1142 of file qqmldomitem_p.h.
|
inline |
Definition at line 1152 of file qqmldomitem_p.h.
|
inline |
Definition at line 1148 of file qqmldomitem_p.h.
|
inline |
Definition at line 1156 of file qqmldomitem_p.h.
bool DomItem::dvValue | ( | DirectVisitor | visitor, |
const PathEls::PathComponent & | c, | ||
T | value, | ||
ConstantData::Options | options = ConstantData::Options::MapIsMap |
||
) |
Definition at line 2045 of file qqmldomitem_p.h.
References value().
|
inline |
Definition at line 1119 of file qqmldomitem_p.h.
bool DomItem::dvValueLazy | ( | DirectVisitor | visitor, |
const PathEls::PathComponent & | c, | ||
F | valueF, | ||
ConstantData::Options | options = ConstantData::Options::MapIsMap |
||
) |
Definition at line 2055 of file qqmldomitem_p.h.
|
inline |
Definition at line 1128 of file qqmldomitem_p.h.
bool DomItem::dvWrap | ( | DirectVisitor | visitor, |
const PathEls::PathComponent & | c, | ||
T & | obj | ||
) |
Definition at line 2139 of file qqmldomitem_p.h.
|
inline |
Definition at line 1199 of file qqmldomitem_p.h.
|
inline |
Definition at line 969 of file qqmldomitem_p.h.
DomItem QQmlJS::Dom::DomItem::environment | ( | ) |
ErrorHandler QQmlJS::Dom::DomItem::errorHandler | ( | ) |
DomItem QQmlJS::Dom::DomItem::field | ( | QStringView | name | ) |
Referenced by QQmlLSUtils::baseObject(), QmlLsp::QmlLintSuggestions::diagnose(), QQmlJS::Dom::domCompare(), QmlLsp::OpenDocumentSnapshot::dump(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), QQmlLSUtils::findTypeDefinitionOf(), QQmlJS::Dom::AttachedInfo::infoAtPath(), and QQmlJS::Dom::ExternalOwningItem::iterateSubOwners().
DomItem QQmlJS::Dom::DomItem::fileLocations | ( | ) |
DomItem QQmlJS::Dom::DomItem::fileLocationsTree | ( | ) |
DomItem QQmlJS::Dom::DomItem::fileObject | ( | GoTo | option = GoTo::Strict | ) |
Referenced by CompletionRequest::completions(), QQmlBaseModule< RequestType >::itemsForRequest(), and QQmlDocumentFormatting::process().
DomItem QQmlJS::Dom::DomItem::filterUp | ( | function_ref< bool(DomType k, DomItem &)> | filter, |
FilterUpOptions | options | ||
) |
|
static |
QDateTime QQmlJS::Dom::DomItem::frozenAt | ( | ) |
DomItem QQmlJS::Dom::DomItem::get | ( | ErrorHandler | h = nullptr , |
QList< Path > * | visitedRefs = nullptr |
||
) |
QList< DomItem > QQmlJS::Dom::DomItem::getAll | ( | ErrorHandler | h = nullptr , |
QList< Path > * | visitedRefs = nullptr |
||
) |
DomItem QQmlJS::Dom::DomItem::globalScope | ( | ) |
DomItem QQmlJS::Dom::DomItem::goUp | ( | int | ) |
bool QQmlJS::Dom::DomItem::hasAnnotations | ( | ) |
quintptr QQmlJS::Dom::DomItem::id | ( | ) |
|
inline |
Definition at line 961 of file qqmldomitem_p.h.
|
inline |
Definition at line 962 of file qqmldomitem_p.h.
DomItem QQmlJS::Dom::DomItem::index | ( | index_type | ) |
Referenced by child(), QQmlJS::Dom::domCompare(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), and QQmlJS::Dom::ImportScope::importedItemsWithName().
index_type QQmlJS::Dom::DomItem::indexes | ( | ) |
Referenced by QQmlJS::Dom::domCompare(), QQmlJS::Dom::domCompareStrList(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), and QQmlJS::Dom::ImportScope::importedItemsWithName().
|
inline |
Definition at line 913 of file qqmldomitem_p.h.
Referenced by CompletionRequest::completions(), QQmlJS::Dom::MutableDomItem::containingObject(), and QQmlJS::Dom::OutWriter::updatedFile().
|
inline |
Definition at line 916 of file qqmldomitem_p.h.
References QQmlJS::Dom::domTypeToString().
Referenced by CompletionRequest::completions().
bool QQmlJS::Dom::DomItem::isCanonicalChild | ( | DomItem & | child | ) |
|
inline |
Definition at line 955 of file qqmldomitem_p.h.
References QQmlJS::Dom::domTypeIsContainer().
|
inline |
Definition at line 953 of file qqmldomitem_p.h.
References QQmlJS::Dom::domTypeIsExternalItem().
|
inline |
Definition at line 952 of file qqmldomitem_p.h.
References QQmlJS::Dom::domTypeIsOwningItem().
|
inline |
Definition at line 956 of file qqmldomitem_p.h.
References QQmlJS::Dom::domTypeIsScope().
|
inline |
Definition at line 954 of file qqmldomitem_p.h.
References QQmlJS::Dom::domTypeIsTopItem().
bool QQmlJS::Dom::DomItem::iterateDirectSubpaths | ( | DirectVisitor | v | ) |
bool QQmlJS::Dom::DomItem::iterateErrors | ( | function_ref< bool(DomItem source, ErrorMessage msg)> | visitor, |
bool | iterate, | ||
Path | inPath = Path() |
||
) |
Referenced by QmlLsp::QmlLintSuggestions::diagnose(), and QQmlJS::Dom::DomUniverse::execQueue().
bool QQmlJS::Dom::DomItem::iterateSubOwners | ( | function_ref< bool(DomItem &owner)> | visitor | ) |
Referenced by QQmlJS::Dom::domCompare(), QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), and QQmlJS::Dom::ImportScope::importedItemsWithName().
|
inline |
Definition at line 1010 of file qqmldomitem_p.h.
References key().
Referenced by key().
QDateTime QQmlJS::Dom::DomItem::lastDataUpdateAt | ( | ) |
|
inline |
Definition at line 994 of file qqmldomitem_p.h.
void QQmlJS::Dom::DomItem::loadBuiltins | ( | std::function< void(Path, DomItem &, DomItem &)> | callback = nullptr , |
ErrorHandler | = nullptr |
||
) |
void QQmlJS::Dom::DomItem::loadFile | ( | const FileToLoad & | file, |
std::function< void(Path, DomItem &, DomItem &)> | callback, | ||
LoadOptions | loadOptions, | ||
std::optional< DomType > | fileType = std::optional< DomType >() |
||
) |
Referenced by QmlLsp::QQmlCodeModel::newDocForOpenFile().
void QQmlJS::Dom::DomItem::loadModuleDependency | ( | QString | uri, |
Version | v, | ||
std::function< void(Path, DomItem &, DomItem &)> | callback = nullptr , |
||
ErrorHandler | = nullptr |
||
) |
void QQmlJS::Dom::DomItem::loadPendingDependencies | ( | ) |
Referenced by QmlLsp::QQmlCodeModel::newDocForOpenFile().
QSet< QString > QQmlJS::Dom::DomItem::localSymbolNames | ( | LocalSymbolsTypes | lTypes = LocalSymbolsType::All | ) |
QList< DomItem > QQmlJS::Dom::DomItem::lookup | ( | QString | symbolName, |
LookupType | type = LookupType::Symbol , |
||
LookupOptions | = LookupOption::Normal , |
||
ErrorHandler | errorHandler = nullptr |
||
) |
DomItem QQmlJS::Dom::DomItem::lookupFirst | ( | QString | symbolName, |
LookupType | type = LookupType::Symbol , |
||
LookupOptions | = LookupOption::Normal , |
||
ErrorHandler | errorHandler = nullptr |
||
) |
MutableDomItem QQmlJS::Dom::DomItem::makeCopy | ( | CopyOption | option = CopyOption::EnvConnected | ) |
Referenced by QQmlJS::Dom::DomEnvironment::ensureGlobalScopeWithName(), QQmlJS::Dom::envCallbackForFile(), QmlLsp::QQmlCodeModel::newDocForOpenFile(), and QQmlJS::Dom::updateEntry().
|
inline |
Definition at line 968 of file qqmldomitem_p.h.
|
static |
|
static |
|
inline |
Definition at line 959 of file qqmldomitem_p.h.
Referenced by wrap().
std::optional< QQmlJSScope::Ptr > QQmlJS::Dom::DomItem::nearestSemanticScope | ( | ) |
|
inlineexplicit |
Definition at line 912 of file qqmldomitem_p.h.
|
inline |
Definition at line 987 of file qqmldomitem_p.h.
References component().
|
inline |
Definition at line 991 of file qqmldomitem_p.h.
References i.
|
inline |
Definition at line 992 of file qqmldomitem_p.h.
References i.
DomItem QQmlJS::Dom::DomItem::operator[] | ( | QStringView | component | ) |
DomItem QQmlJS::Dom::DomItem::owner | ( | ) |
Referenced by QQmlJS::Dom::MutableDomItem::containingObject(), QQmlJS::Dom::ModuleScope::iterateDirectSubpaths(), and QQmlJS::Dom::DomEnvironment::iterateDirectSubpaths().
std::shared_ptr< T > DomItem::ownerAs |
Definition at line 1518 of file qqmldomitem_p.h.
References QQmlJS::Dom::AttachedInfo, QQmlJS::Dom::domTypeIsOwningItem(), QQmlJS::Dom::ExternalItemInfo, QQmlJS::Dom::ExternalItemPair, and Q_ASSERT_X.
Referenced by QQmlJS::Dom::RefCacheEntry::addForPath(), QQmlJS::Dom::LoadInfo::advanceLoad(), QQmlJS::Dom::QmltypesFile::ensureInModuleIndex(), QQmlJS::Dom::QmldirFile::ensureInModuleIndex(), QQmlJS::Dom::AttachedInfo::findAttachedInfo(), QQmlJS::Dom::RefCacheEntry::forPath(), QQmlJS::Dom::ModuleScope::iterateDirectSubpaths(), QmlLsp::QQmlCodeModel::newDocForOpenFile(), QmlGoToTypeDefinitionSupport::process(), QQmlJS::Dom::ModuleIndex::qmldirsToLoad(), QmlLsp::QQmlCodeModel::removeDirectory(), and QQmlJS::Dom::OutWriter::updatedFile().
std::shared_ptr< OwningItem > QQmlJS::Dom::DomItem::owningItemPtr | ( | ) |
DomItem QQmlJS::Dom::DomItem::path | ( | Path | p, |
ErrorHandler | h = &defaultErrorHandler |
||
) |
Referenced by QQmlJS::Dom::ModuleIndex::autoExports(), QQmlJS::Dom::MutableDomItem::item(), QQmlLSUtils::itemsFromTextLocation(), QQmlJS::Dom::DomEnvironment::loadFile(), QQmlJS::Dom::DomEnvironment::loadModuleDependency(), and QmlLsp::QQmlCodeModel::newDocForOpenFile().
DomItem QQmlJS::Dom::DomItem::path | ( | QString | p, |
ErrorHandler | h = &defaultErrorHandler |
||
) |
DomItem QQmlJS::Dom::DomItem::path | ( | QStringView | p, |
ErrorHandler | h = &defaultErrorHandler |
||
) |
Path QQmlJS::Dom::DomItem::pathFromOwner | ( | ) |
Referenced by QQmlJS::Dom::MutableDomItem::containingObject(), subDataItem(), subValueItem(), and wrap().
|
inline |
Definition at line 960 of file qqmldomitem_p.h.
|
inline |
Definition at line 966 of file qqmldomitem_p.h.
|
inline |
Definition at line 963 of file qqmldomitem_p.h.
PropertyInfo QQmlJS::Dom::DomItem::propertyInfoWithName | ( | QString | name | ) |
DomItem QQmlJS::Dom::DomItem::qmlObject | ( | GoTo | option = GoTo::Strict , |
FilterUpOptions | options = FilterUpOptions::ReturnOuter |
||
) |
|
inline |
Definition at line 1068 of file qqmldomitem_p.h.
References canonicalPath().
bool QQmlJS::Dom::DomItem::resolve | ( | Path | path, |
Visitor | visitor, | ||
ErrorHandler | errorHandler, | ||
ResolveOptions | options = ResolveOption::None , |
||
Path | fullPath = Path() , |
||
QList< Path > * | visitedRefs = nullptr |
||
) |
int QQmlJS::Dom::DomItem::revision | ( | ) |
DomItem QQmlJS::Dom::DomItem::rootQmlObject | ( | GoTo | option = GoTo::Strict | ) |
DomItem QQmlJS::Dom::DomItem::scope | ( | FilterUpOptions | options = FilterUpOptions::ReturnOuter | ) |
std::optional< QQmlJSScope::Ptr > QQmlJS::Dom::DomItem::semanticScope | ( | ) |
|
inline |
Definition at line 993 of file qqmldomitem_p.h.
References keys.
QStringList QQmlJS::Dom::DomItem::sortedKeys | ( | ) |
DomItem DomItem::subDataItem | ( | const PathEls::PathComponent & | c, |
T | value, | ||
ConstantData::Options | options = ConstantData::Options::MapIsMap |
||
) |
Definition at line 2028 of file qqmldomitem_p.h.
References DomItem(), ConstantData, copy(), and pathFromOwner().
Referenced by subValueItem(), and wrap().
|
inline |
Definition at line 1107 of file qqmldomitem_p.h.
Definition at line 2276 of file qqmldomitem_p.h.
References DomItem(), and list.
Referenced by subValueItem(), and wrap().
|
inline |
Definition at line 1133 of file qqmldomitem_p.h.
References QQmlJS::Dom::locationToData().
Referenced by wrap().
Definition at line 2281 of file qqmldomitem_p.h.
References DomItem(), and map.
Referenced by wrap().
|
inline |
Definition at line 1170 of file qqmldomitem_p.h.
Referenced by wrap().
|
inline |
Definition at line 1182 of file qqmldomitem_p.h.
References canonicalPath(), QQmlJS::Dom::domTypeIsUnattachedOwningItem(), and o.
Referenced by subValueItem(), and wrap().
DomItem QQmlJS::Dom::DomItem::subReferenceItem | ( | const PathEls::PathComponent & | c, |
Path | referencedObject | ||
) |
DomItem QQmlJS::Dom::DomItem::subReferencesItem | ( | const PathEls::PathComponent & | c, |
QList< Path > | paths | ||
) |
|
inline |
Definition at line 1175 of file qqmldomitem_p.h.
References Q_ASSERT.
DomItem DomItem::subValueItem | ( | const PathEls::PathComponent & | c, |
T | value, | ||
ConstantData::Options | options = ConstantData::Options::MapIsMap |
||
) |
Definition at line 2001 of file qqmldomitem_p.h.
References DomItem(), ConstantData, list, pathFromOwner(), Q_UNUSED, subDataItem(), subListItem(), subOwnerItem(), and value().
DomItem QQmlJS::Dom::DomItem::top | ( | ) |
std::shared_ptr< DomTop > QQmlJS::Dom::DomItem::topPtr | ( | ) |
QString QQmlJS::Dom::DomItem::toString | ( | ) |
Referenced by QQmlJS::Dom::domCompareStrList(), QQmlJS::Dom::ImportScope::importedItemsWithName(), QQmlBaseModule< RequestType >::itemsForRequest(), and QQmlDocumentFormatting::process().
|
inline |
Definition at line 1080 of file qqmldomitem_p.h.
DomItem QQmlJS::Dom::DomItem::universe | ( | ) |
QCborValue QQmlJS::Dom::DomItem::value | ( | ) |
Referenced by QmlLsp::QmlLintSuggestions::diagnose(), QQmlJS::Dom::domCompare(), QQmlJS::Dom::domCompareStrList(), QmlLsp::OpenDocumentSnapshot::dump(), dvValue(), QQmlJS::Dom::ExternalItemInfoBase::lastRevision(), QQmlJS::Dom::ExternalItemInfoBase::lastValidRevision(), and subValueItem().
bool QQmlJS::Dom::DomItem::visitDirectAccessibleScopes | ( | function_ref< bool(DomItem &)> | visitor, |
VisitPrototypesOptions | options = VisitPrototypesOption::Normal , |
||
ErrorHandler | h = nullptr , |
||
QSet< quintptr > * | visited = nullptr , |
||
QList< Path > * | visitedRefs = nullptr |
||
) |
|
inline |
Definition at line 907 of file qqmldomitem_p.h.
bool QQmlJS::Dom::DomItem::visitIndexes | ( | function_ref< bool(DomItem &)> | visitor | ) |
Referenced by QQmlJS::Dom::ExternalOwningItem::iterateSubOwners().
bool QQmlJS::Dom::DomItem::visitKeys | ( | function_ref< bool(QString, DomItem &)> | visitor | ) |
bool QQmlJS::Dom::DomItem::visitLocalSymbolsNamed | ( | QString | name, |
function_ref< bool(DomItem &)> | visitor | ||
) |
bool QQmlJS::Dom::DomItem::visitLookup | ( | QString | symbolName, |
function_ref< bool(DomItem &)> | visitor, | ||
LookupType | type = LookupType::Symbol , |
||
LookupOptions | = LookupOption::Normal , |
||
ErrorHandler | errorHandler = nullptr , |
||
QSet< quintptr > * | visited = nullptr , |
||
QList< Path > * | visitedRefs = nullptr |
||
) |
bool QQmlJS::Dom::DomItem::visitLookup1 | ( | QString | symbolName, |
function_ref< bool(DomItem &)> | visitor, | ||
LookupOptions | = LookupOption::Normal , |
||
ErrorHandler | h = nullptr , |
||
QSet< quintptr > * | visited = nullptr , |
||
QList< Path > * | visitedRefs = nullptr |
||
) |
|
inline |
Definition at line 902 of file qqmldomitem_p.h.
bool QQmlJS::Dom::DomItem::visitPrototypeChain | ( | function_ref< bool(DomItem &)> | visitor, |
VisitPrototypesOptions | options = VisitPrototypesOption::Normal , |
||
ErrorHandler | h = nullptr , |
||
QSet< quintptr > * | visited = nullptr , |
||
QList< Path > * | visitedRefs = nullptr |
||
) |
bool QQmlJS::Dom::DomItem::visitScopeChain | ( | function_ref< bool(DomItem &)> | visitor, |
LookupOptions | = LookupOption::Normal , |
||
ErrorHandler | h = nullptr , |
||
QSet< quintptr > * | visited = nullptr , |
||
QList< Path > * | visitedRefs = nullptr |
||
) |
bool QQmlJS::Dom::DomItem::visitStaticTypePrototypeChains | ( | function_ref< bool(DomItem &)> | visitor, |
VisitPrototypesOptions | options = VisitPrototypesOption::Normal , |
||
ErrorHandler | h = nullptr , |
||
QSet< quintptr > * | visited = nullptr , |
||
QList< Path > * | visitedRefs = nullptr |
||
) |
bool QQmlJS::Dom::DomItem::visitSubSymbolsNamed | ( | QString | name, |
function_ref< bool(DomItem &)> | visitor | ||
) |
bool QQmlJS::Dom::DomItem::visitTree | ( | Path | basePath, |
ChildrenVisitor | visitor, | ||
VisitOptions | options = VisitOption::Default , |
||
ChildrenVisitor | openingVisitor = emptyChildrenVisitor , |
||
ChildrenVisitor | closingVisitor = emptyChildrenVisitor |
||
) |
bool QQmlJS::Dom::DomItem::visitUp | ( | function_ref< bool(DomItem &)> | visitor | ) |
DomItem DomItem::wrap | ( | const PathEls::PathComponent & | c, |
T & | obj | ||
) |
Definition at line 2065 of file qqmldomitem_p.h.
References DomItem(), copy(), QQmlJS::Dom::domTypeIsDomElement(), QQmlJS::Dom::domTypeIsObjWrap(), QQmlJS::Dom::domTypeIsOwningItem(), QQmlJS::Dom::domTypeIsValueWrap(), QQmlJS::Dom::domTypeToString(), el, QQmlJS::Dom::SimpleObjectWrap::fromObjectRef(), list, map, name(), pathFromOwner(), Q_ASSERT_X, qCWarning, subDataItem(), subListItem(), subLocationItem(), subMapItem(), subObjectWrapItem(), and subOwnerItem().
|
inline |
Definition at line 1192 of file qqmldomitem_p.h.
DomItem QQmlJS::Dom::DomItem::writeOut | ( | QString | path, |
int | nBackups = 2 , |
||
const LineWriterOptions & | opt = LineWriterOptions() , |
||
FileWriter * | fw = nullptr , |
||
WriteOutChecks | extraChecks = WriteOutCheck::Default |
||
) |
|
friend |
Definition at line 1344 of file qqmldomitem_p.h.
|
friend |
Definition at line 1345 of file qqmldomitem_p.h.
|
friend |
Definition at line 1341 of file qqmldomitem_p.h.
Referenced by subDataItem(), and subValueItem().
|
friend |
Definition at line 1333 of file qqmldomitem_p.h.
|
friend |
Definition at line 1334 of file qqmldomitem_p.h.
|
friend |
Definition at line 1339 of file qqmldomitem_p.h.
|
friend |
Definition at line 1338 of file qqmldomitem_p.h.
|
friend |
Definition at line 1340 of file qqmldomitem_p.h.
|
friend |
Definition at line 1336 of file qqmldomitem_p.h.
|
friend |
Definition at line 1335 of file qqmldomitem_p.h.
|
friend |
Definition at line 1342 of file qqmldomitem_p.h.
|
friend |
|
friend |
Definition at line 1337 of file qqmldomitem_p.h.
|
friend |
Definition at line 1343 of file qqmldomitem_p.h.
|
friend |
Definition at line 1346 of file qqmldomitem_p.h.
|
static |
Definition at line 894 of file qqmldomitem_p.h.
Referenced by QQmlJS::Dom::domParsingErrors(), QQmlJS::Dom::myExportErrors(), QQmlJS::Dom::QmldirFile::myParsingErrors(), QQmlJS::Dom::QmlFile::myParsingErrors(), and QQmlJS::Dom::myVersioningErrors().
|
static |
Definition at line 897 of file qqmldomitem_p.h.
Referenced by QQmlJS::Dom::domCompare(), and QQmlJS::Dom::DomUniverse::loadFile().