![]() |
Qt 6.x
The Qt SDK
|
Namespaces | |
namespace | Fields |
namespace | PathEls |
namespace | Paths |
namespace | ScriptElements |
Classes | |
class | AstComments |
Associates comments with AST::Node *. More... | |
class | AstDumper |
class | AstRangesVisitor |
class | AttachedInfo |
Attached info creates a tree to attach extra info to DomItems. More... | |
class | AttachedInfoLookupResult |
class | AttachedInfoT |
class | AttributeInfo |
class | Binding |
class | BindingValue |
class | Comment |
Represents a comment. More... | |
class | CommentableDomElement |
class | CommentCollectorVisitor |
class | CommentedElement |
Keeps the comment associated with an element. More... | |
class | CommentInfo |
Extracts various pieces and information out of a rawComment string. More... | |
class | Component |
class | ConstantData |
class | Dependency |
class | DomBase |
class | DomElement |
class | DomEnvironment |
Represents a consistent set of types organized in modules, it is the top level of the DOM. More... | |
class | DomItem |
class | DomTop |
class | DomUniverse |
Represents a set of parsed/loaded modules libraries and a plugins. More... | |
class | Dumper |
A Sink is a function that accepts a QStringView as input. More... | |
class | ElementRef |
class | Empty |
class | EnumDecl |
class | EnumItem |
class | ErrorGroup |
convenience macro creating a new ErrorGroup and registering its groupId as translatable string More... | |
class | ErrorGroups |
Represents a set of tags grouping a set of related error messages. More... | |
class | ErrorMessage |
Represents an error message connected to the dom. More... | |
class | Export |
class | ExternalItemInfo |
class | ExternalItemInfoBase |
class | ExternalItemPair |
class | ExternalItemPairBase |
class | ExternalOwningItem |
A OwningItem that refers to an external resource (file,...) More... | |
class | FieldFilter |
class | FileLocations |
Represents and maintains a mapping between elements and their location in a file. More... | |
class | FileToLoad |
class | FileWriter |
class | FormatOptions |
class | FormatPartialStatus |
class | FormatTextStatus |
class | GlobalComponent |
class | GlobalScope |
class | Id |
class | Import |
class | ImportScope |
class | IndentInfo |
class | IndentingLineWriter |
class | JsFile |
class | JsResource |
class | LineWriter |
class | LineWriterOptions |
class | List |
class | ListP |
class | ListPBase |
class | ListPT |
class | LoadInfo |
struct | LocallyResolvedAlias |
class | Map |
class | MethodInfo |
class | MethodParameter |
class | MockObject |
class | MockOwner |
class | ModuleAutoExport |
class | ModuleIndex |
class | ModuleScope |
class | MutableDomItem |
class | OutWriter |
class | OutWriterState |
class | OwningItem |
class | ParsingTask |
class | Path |
class | PathIterator |
class | PendingSourceLocation |
class | Pragma |
class | PropertyDefinition |
class | PropertyInfo |
class | QmlComponent |
class | QmlDirectory |
class | QmldirFile |
class | QmlFile |
class | QmlObject |
class | QmltypesComponent |
class | QmltypesFile |
class | QmltypesReader |
class | QmlUri |
class | QQmlDomAstCreator |
class | QQmlDomAstCreatorWithQQmlJSScope |
struct | rank |
struct | rank< 0 > |
class | RefCacheEntry |
class | Reference |
class | RegionComments |
Keeps the comments associated with a DomItem. More... | |
class | RegionRef |
class | Rewriter |
class | Scanner |
struct | ScriptElement |
A common base class for all the script elements. More... | |
class | ScriptElementDomWrapper |
class | ScriptElementVariant |
Use this to contain any script element. More... | |
class | ScriptExpression |
class | SimpleObjectWrap |
class | SimpleObjectWrapBase |
class | SimpleObjectWrapT |
class | Source |
struct | StorableMsg |
union | SubclassStorage |
class | Token |
class | UpdatedScriptExpression |
class | Version |
class | VisitAll |
A vistor that visits all the AST:Node. More... | |
Variables | |
static ErrorGroups | importErrors = { { DomItem::domErrorGroup, NewErrorGroup("importError") } } |
using QQmlJS::Dom::DirectVisitor = typedef function_ref<bool(const PathEls::PathComponent &, function_ref<DomItem()>)> |
Definition at line 98 of file qqmldomitem_p.h.
using QQmlJS::Dom::DumperFunction = typedef std::function<void(Sink)> |
Definition at line 35 of file qqmldomstringdumper_p.h.
using QQmlJS::Dom::ElementT = typedef std::variant<Empty, Map, List, ListP, ConstantData, SimpleObjectWrap, Reference, ScriptElementDomWrapper, GlobalComponent *, JsResource *, QmlComponent *, QmltypesComponent *, EnumDecl *, MockObject *, ModuleScope *, AstComments *, AttachedInfo *, DomEnvironment *, DomUniverse *, ExternalItemInfoBase *, ExternalItemPairBase *, GlobalScope *, JsFile *, QmlDirectory *, QmlFile *, QmldirFile *, QmlObject *, QmltypesFile *, LoadInfo *, MockOwner *, ModuleIndex *, ScriptExpression *> |
Definition at line 814 of file qqmldomitem_p.h.
using QQmlJS::Dom::ErrorHandler = typedef std::function<void(const ErrorMessage &)> |
Definition at line 43 of file qqmldompath_p.h.
using QQmlJS::Dom::FieldType = typedef QStringView |
In an ideal world, the Fields namespace would be an enum, not strings. Use FieldType whenever you expect a static String from the Fields namespace instead of an arbitrary QStringView.
Definition at line 446 of file qqmldompath_p.h.
using QQmlJS::Dom::function_ref = typedef qxp::function_ref<T> |
Definition at line 27 of file qqmldomfunctionref_p.h.
using QQmlJS::Dom::index_type = typedef qint64 |
Definition at line 45 of file qqmldompath_p.h.
using QQmlJS::Dom::OwnerT = typedef std::variant<std::shared_ptr<ModuleIndex>, std::shared_ptr<MockOwner>, std::shared_ptr<ExternalItemInfoBase>, std::shared_ptr<ExternalItemPairBase>, std::shared_ptr<QmlDirectory>, std::shared_ptr<QmldirFile>, std::shared_ptr<JsFile>, std::shared_ptr<QmlFile>, std::shared_ptr<QmltypesFile>, std::shared_ptr<GlobalScope>, std::shared_ptr<ScriptExpression>, std::shared_ptr<AstComments>, std::shared_ptr<LoadInfo>, std::shared_ptr<AttachedInfo>, std::shared_ptr<DomEnvironment>, std::shared_ptr<DomUniverse> > |
Definition at line 825 of file qqmldomitem_p.h.
using QQmlJS::Dom::PendingSourceLocationId = typedef QAtomicInt |
Definition at line 103 of file qqmldomlinewriter_p.h.
using QQmlJS::Dom::Sink = typedef function_ref<void(QStringView)> |
Definition at line 33 of file qqmldomstringdumper_p.h.
using QQmlJS::Dom::SinkF = typedef std::function<void(QStringView)> |
Definition at line 34 of file qqmldomstringdumper_p.h.
using QQmlJS::Dom::State = typedef FormatTextStatus::State |
Definition at line 16 of file qqmldomcodeformatter.cpp.
using QQmlJS::Dom::StateType = typedef FormatTextStatus::StateType |
Definition at line 15 of file qqmldomcodeformatter.cpp.
using QQmlJS::Dom::TopT = typedef std::variant<std::shared_ptr<DomEnvironment>, std::shared_ptr<DomUniverse> > |
Definition at line 823 of file qqmldomitem_p.h.
anonymous enum |
Enumerator | |
---|---|
FatalMsgMaxLen |
Definition at line 18 of file qqmldomerrormessage.cpp.
|
strong |
Enumerator | |
---|---|
KeepExisting | |
Overwrite |
Definition at line 287 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
NoLocations | |
NoAnnotations | |
DumpNode | |
SloppyCompare |
Definition at line 270 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Normal | |
OnBinding |
Definition at line 238 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Object | |
ScriptExpression | |
Array | |
Empty |
Definition at line 235 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
ReadOnly | |
Writable |
Definition at line 609 of file qqmldomtop_p.h.
Enumerator | |
---|---|
FirstDiff | |
AllDiffs |
Definition at line 33 of file qqmldomcompare_p.h.
enum QQmlJS::Dom::DomCreationOption : char |
Enumerator | |
---|---|
None | |
WithSemanticAnalysis | |
WithScriptExpressions |
Definition at line 842 of file qqmldomitem_p.h.
|
strong |
Enumerator | |
---|---|
Empty | |
Object | |
List | |
Map | |
Value | |
ScriptElement |
Definition at line 104 of file qqmldomconstants_p.h.
|
strong |
Definition at line 107 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Normal | |
NoBase | |
BaseOnly |
Definition at line 607 of file qqmldomtop_p.h.
|
strong |
Enumerator | |
---|---|
Debug | |
Info | |
Warning | |
Error | |
Fatal |
Definition at line 261 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
OuterQuotes | |
NoOuterQuotes |
Definition at line 255 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
ReturnOuter | |
ReturnOuterNoSelf | |
ReturnInner |
Definition at line 290 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Strict | |
MostLikely |
Definition at line 281 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
QmlQuick1 | |
QmlQuick2 | |
QmlQuick3 | |
QmlCompiled | |
QmlAnnotation | |
Qbs |
Definition at line 57 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Normal | |
Reverse |
Definition at line 241 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
DefaultLoad | |
ForceLoad |
Definition at line 247 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
QmlTypes | |
Types | |
Signals | |
Methods | |
Attributes | |
Ids | |
Components | |
Namespaces | |
Globals | |
MethodParameters | |
All |
Definition at line 308 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Normal | |
Strict | |
VisitTopClassType | |
SkipFirstScope |
Definition at line 80 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
PropertyDef | |
Binding | |
Property | |
Method | |
Type | |
CppType | |
Symbol |
Definition at line 91 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Other | |
Obj | |
ObjChain | |
ScopeChain | |
Component | |
Module | |
Ids | |
Types | |
LookupStrict | |
LookupDynamic | |
Lookup |
Definition at line 42 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Other | |
Modules | |
Cpp | |
Libs | |
Top | |
Env | |
Universe |
Definition at line 31 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
TraceVisit |
Definition at line 60 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
ValueType |
Definition at line 230 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
VisitSelf | |
VisitAdopted | |
Recurse | |
NoPath | |
Default |
Definition at line 68 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Normal | |
SkipFirst | |
RevisitWarn | |
ManualProceedToScope |
Definition at line 94 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
UpdatedDomCompare | |
UpdatedDomStable | |
Reparse | |
ReparseCompare | |
ReparseStable | |
DumpOnFailure | |
All | |
Default |
Definition at line 293 of file qqmldomconstants_p.h.
std::shared_ptr< ExternalItemInfo< T > > QQmlJS::Dom::addExternalItem | ( | std::shared_ptr< T > | file, |
QString | key, | ||
QMap< QString, std::shared_ptr< ExternalItemInfo< T > > > & | map, | ||
AddOption | option, | ||
QBasicMutex * | mutex | ||
) |
Definition at line 1983 of file qqmldomtop.cpp.
References QDateTime::currentDateTimeUtc(), QMap< Key, T >::end(), file, QMap< Key, T >::find(), QMap< Key, T >::insert(), it, KeepExisting, map, mutex, and Overwrite.
Path QQmlJS::Dom::appendUpdatableElementInQList | ( | Path | listPathFromOwner, |
QList< T > & | list, | ||
const T & | value, | ||
T ** | vPtr = nullptr |
||
) |
Definition at line 1840 of file qqmldomitem_p.h.
References QList< T >::append(), QQmlJS::Dom::Path::index(), list, and QList< T >::size().
Referenced by QQmlJS::Dom::QmlObject::addAnnotation(), QQmlJS::Dom::QmlObject::addChild(), and QQmlJS::Dom::Component::addObject().
QMLDOM_EXPORT QString QQmlJS::Dom::astNodeDiff | ( | AST::Node * | n1, |
AST::Node * | n2, | ||
int | nContext, | ||
AstDumperOptions | opt, | ||
int | indent, | ||
function_ref< QStringView(SourceLocation)> | loc2str1, | ||
function_ref< QStringView(SourceLocation)> | loc2str2 | ||
) |
Definition at line 1073 of file qqmldomastdumper.cpp.
References QQmlJS::AST::Node::accept(), d1, d2, lineDiff(), opt, s1, and s2.
QMLDOM_EXPORT QString QQmlJS::Dom::astNodeDump | ( | Node * | n, |
AstDumperOptions | opt, | ||
int | indent, | ||
int | baseIndent, | ||
function_ref< QStringView(SourceLocation)> | loc2str | ||
) |
Definition at line 1094 of file qqmldomastdumper.cpp.
References astNodeDumper(), dumperToString(), and opt.
QMLDOM_EXPORT void QQmlJS::Dom::astNodeDumper | ( | Sink | s, |
Node * | n, | ||
AstDumperOptions | opt, | ||
int | indent, | ||
int | baseIndent, | ||
function_ref< QStringView(SourceLocation)> | loc2str | ||
) |
Definition at line 1087 of file qqmldomastdumper.cpp.
References QQmlJS::AST::Node::accept(), and opt.
Referenced by astNodeDump().
|
static |
Definition at line 78 of file qqmldomastcreator.cpp.
References NewErrorGroup.
Referenced by QQmlJS::Dom::QQmlDomAstCreator::throwRecursionDepthError(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
SourceLocation QQmlJS::Dom::combineLocations | ( | Node * | n | ) |
Definition at line 115 of file qqmldomastcreator.cpp.
References combineLocations().
SourceLocation QQmlJS::Dom::combineLocations | ( | SourceLocation | s1, |
SourceLocation | s2 | ||
) |
Definition at line 110 of file qqmldomastcreator.cpp.
References s2.
Referenced by combineLocations(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
void QQmlJS::Dom::createDom | ( | MutableDomItem | qmlFile, |
DomCreationOptions | options = None |
||
) |
Definition at line 2202 of file qqmldomastcreator.cpp.
References QQmlJS::AST::Node::accept(), QQmlJS::Dom::MutableDomItem::canonicalFilePath(), QQmlJS::Dom::AstComments::collectComments(), QQmlJS::Dom::MutableDomItem::ownerAs(), qCWarning, QQmlJSLogger::setFileName(), WithScriptExpressions, and WithSemanticAnalysis.
Referenced by QQmlJS::Dom::DomUniverse::execQueue(), and qOverloadedVisitor().
QMLDOM_EXPORT void QQmlJS::Dom::defaultErrorHandler | ( | const ErrorMessage & | error | ) |
Calls the default error handler (by default errorToQDebug)
Definition at line 491 of file qqmldomerrormessage.cpp.
References error, and errorHandlerHandler().
Referenced by QQmlJS::Dom::ErrorMessage::handle(), QQmlJS::Dom::ErrorMessage::msg(), and reachableSymbols().
|
inline |
Definition at line 104 of file qqmldomstringdumper_p.h.
bool QQmlJS::Dom::domCompare | ( | DomItem & | i1, |
DomItem & | i2, | ||
function_ref< bool(Path, DomItem &, DomItem &)> | change, | ||
function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)> | filter, | ||
Path | basePath | ||
) |
Definition at line 11 of file qqmldomcompare.cpp.
References domCompare(), QQmlJS::Dom::DomItem::domKind(), el2, Empty, QQmlJS::Dom::DomItem::empty, QQmlJS::Dom::Path::field(), QQmlJS::Dom::DomItem::field(), QQmlJS::Dom::DomItem::fields(), i, QQmlJS::Dom::Path::index(), QQmlJS::Dom::DomItem::index(), QQmlJS::Dom::DomItem::indexes(), QQmlJS::Dom::DomItem::isCanonicalChild(), k1, QQmlJS::Dom::DomItem::key(), QQmlJS::Dom::Path::key(), List, Map, Object, ScriptElement, QQmlJS::Dom::DomItem::sortedKeys(), Value, and QQmlJS::Dom::DomItem::value().
Referenced by domCompare(), and domCompareStrList().
QMLDOM_EXPORT QStringList QQmlJS::Dom::domCompareStrList | ( | DomItem & | i1, |
DomItem & | i2, | ||
function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const > | filter, | ||
DomCompareStrList | stopAtFirstDiff | ||
) |
Definition at line 158 of file qqmldomcompare.cpp.
References AllDiffs, arg, domCompare(), QQmlJS::Dom::DomItem::domKind(), domKindToString(), Empty, QQmlJS::Dom::DomItem::indexes(), k1, List, Map, Object, Q_ASSERT, QStringLiteral, ScriptElement, t2, QQmlJS::Dom::DomItem::toString(), QCborValue::type(), Value, and QQmlJS::Dom::DomItem::value().
Referenced by domCompareStrList(), domCompareStrList(), and domCompareStrList().
|
inline |
Definition at line 49 of file qqmldomcompare_p.h.
References domCompareStrList(), and QQmlJS::Dom::MutableDomItem::item().
|
inline |
Definition at line 40 of file qqmldomcompare_p.h.
References domCompareStrList(), and QQmlJS::Dom::MutableDomItem::item().
|
inline |
Definition at line 58 of file qqmldomcompare_p.h.
References domCompareStrList(), and QQmlJS::Dom::MutableDomItem::item().
QMLDOM_EXPORT QString QQmlJS::Dom::domKindToString | ( | DomKind | k | ) |
QMLDOM_EXPORT QMap< DomKind, QString > QQmlJS::Dom::domKindToStringMap | ( | ) |
|
static |
Definition at line 83 of file qqmldomelements.cpp.
References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.
|
constexpr |
Definition at line 68 of file qqmldomitem_p.h.
References ConstantData, Empty, List, ListP, Map, Reference, ScriptElementWrap, and SimpleObjectWrap.
QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsContainer | ( | DomType | k | ) |
|
constexpr |
Definition at line 1929 of file qqmldomitem_p.h.
References ConstantData, EnumDecl, GlobalComponent, JsResource, List, ListP, Map, MockObject, ModuleScope, QmlComponent, QmlObject, QmltypesComponent, Reference, and SimpleObjectWrap.
Referenced by QQmlJS::Dom::DomItem::wrap().
QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsExternalItem | ( | DomType | k | ) |
|
constexpr |
Definition at line 1892 of file qqmldomitem_p.h.
References Binding, Comment, CommentedElement, EnumItem, ErrorMessage, Export, FileLocations, Id, Import, ImportScope, MethodInfo, MethodParameter, ModuleAutoExport, Pragma, PropertyDefinition, RegionComments, UpdatedScriptExpression, and Version.
Referenced by QQmlJS::Dom::SimpleObjectWrap::SimpleObjectWrap(), QQmlJS::Dom::DomItem::as(), QQmlJS::Dom::SimpleObjectWrapT< T >::asT(), QQmlJS::Dom::SimpleObjectWrapT< T >::mutableAsT(), and QQmlJS::Dom::DomItem::wrap().
|
constexpr |
Definition at line 1952 of file qqmldomitem_p.h.
References AstComments, AttachedInfo, DomEnvironment, DomUniverse, ExternalItemInfo, ExternalItemPair, GlobalScope, JsFile, LoadInfo, MockOwner, ModuleIndex, QmlDirectory, QmldirFile, QmlFile, QmltypesFile, and ScriptExpression.
Referenced by QQmlJS::Dom::MutableDomItem::containingObject(), QQmlJS::Dom::DomItem::isOwningItem(), QQmlJS::Dom::DomItem::ownerAs(), and QQmlJS::Dom::DomItem::wrap().
QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsScope | ( | DomType | k | ) |
|
constexpr |
Definition at line 1995 of file qqmldomitem_p.h.
References ScriptElementStart, and ScriptElementStop.
QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsTopItem | ( | DomType | k | ) |
|
constexpr |
Definition at line 1983 of file qqmldomitem_p.h.
References AstComments, AttachedInfo, and ScriptExpression.
Referenced by QQmlJS::Dom::DomItem::subOwnerItem().
|
constexpr |
Definition at line 1919 of file qqmldomitem_p.h.
References PropertyInfo.
Referenced by QQmlJS::Dom::SimpleObjectWrap::SimpleObjectWrap(), QQmlJS::Dom::SimpleObjectWrapT< T >::SimpleObjectWrapT(), QQmlJS::Dom::DomItem::as(), QQmlJS::Dom::SimpleObjectWrapT< T >::asT(), QQmlJS::Dom::SimpleObjectWrapT< T >::mutableAsT(), and QQmlJS::Dom::DomItem::wrap().
QMLDOM_EXPORT QString QQmlJS::Dom::domTypeToString | ( | DomType | k | ) |
Referenced by QQmlJS::Dom::SimpleObjectWrap::SimpleObjectWrap(), QQmlJS::Dom::MutableDomItem::internalKindStr(), QQmlJS::Dom::DomItem::internalKindStr(), QQmlJS::Dom::DomUniverse::loadFile(), QQmlJS::Dom::FieldFilter::operator()(), QQmlJS::Dom::DomBase::typeName(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::DomItem::wrap().
QMLDOM_EXPORT QMap< DomType, QString > QQmlJS::Dom::domTypeToStringMap | ( | ) |
QMLDOM_EXPORT void QQmlJS::Dom::dumpErrorLevel | ( | Sink | s, |
ErrorLevel | level | ||
) |
Dumps a string describing the given error level (ErrorLevel::Error -> Error,...)
s | the sink to write to |
level | the level to describe |
Definition at line 98 of file qqmldomstringdumper.cpp.
References Debug, Error, Fatal, Info, and Warning.
Referenced by QQmlJS::Dom::ErrorMessage::dump().
QMLDOM_EXPORT void QQmlJS::Dom::dumperToQDebug | ( | Dumper | dumper, |
ErrorLevel | level | ||
) |
writes the dumper to the QDebug object corrsponding to the given error level
level | the error level of the message |
dumper | the dumper that writes a message |
Definition at line 134 of file qqmldomstringdumper.cpp.
References d, Debug, Error, Fatal, Info, qCritical, qDebug, qInfo, qWarning, and Warning.
QMLDOM_EXPORT void QQmlJS::Dom::dumperToQDebug | ( | Dumper | dumper, |
QDebug | debug | ||
) |
Definition at line 120 of file qqmldomstringdumper.cpp.
Referenced by errorToQDebug().
QMLDOM_EXPORT QString QQmlJS::Dom::dumperToString | ( | Dumper | writer | ) |
Converts a dumper to a string.
writer | The dumper convert to a string |
Definition at line 46 of file qqmldomstringdumper.cpp.
References d.
Referenced by astNodeDump(), QQmlJS::Dom::ErrorGroups::debug(), QQmlJS::Dom::ErrorGroups::error(), QQmlJS::Dom::ErrorGroups::errorMessage(), QQmlJS::Dom::ErrorGroups::info(), QQmlJS::Dom::ErrorMessage::toString(), QQmlJS::Dom::Token::toString(), and QQmlJS::Dom::ErrorGroups::warning().
Definition at line 835 of file qqmldomitem_p.h.
Referenced by findUsagesHelper(), and findUsagesOfNonJSIdentifiers().
DomTop::Callback QQmlJS::Dom::envCallbackForFile | ( | DomItem & | self, |
QMap< QString, std::shared_ptr< ExternalItemInfo< T > > > DomEnvironment::* | map, | ||
std::shared_ptr< ExternalItemInfo< T > >(DomEnvironment::*)(DomItem &, QString, EnvLookup) const | lookupF, | ||
DomTop::Callback | loadCallback, | ||
DomTop::Callback | allDirectDepsCallback, | ||
DomTop::Callback | endCallback | ||
) |
Definition at line 845 of file qqmldomtop.cpp.
References QQmlJS::Dom::DomItem::addError(), arg, QQmlJS::Dom::DomEnvironment::base(), Callback, QQmlJS::Dom::DomItem::canonicalFilePath(), QQmlJS::Dom::DomItem::canonicalPath(), QQmlJS::Dom::DomItem::copy(), QDateTime::currentDateTimeUtc(), envCallbackForFile(), if(), insert(), QQmlJS::Dom::DomItem::makeCopy(), map, Q_ASSERT, and qScopeGuard().
Referenced by envCallbackForFile().
|
static |
Definition at line 2075 of file qqmldomastcreator.cpp.
References QQmlJS::Dom::MutableDomItem::as(), and QQmlJS::Dom::MutableDomItem::top().
Referenced by importPathsFrom(), and qmldirFilesFrom().
void QQmlJS::Dom::errorHandlerHandler | ( | const ErrorMessage & | msg, |
ErrorHandler * | h = nullptr |
||
) |
Definition at line 477 of file qqmldomerrormessage.cpp.
References errorToQDebug().
Referenced by defaultErrorHandler(), and setDefaultErrorHandler().
QMLDOM_EXPORT ErrorLevel QQmlJS::Dom::errorLevelFromQtMsgType | ( | QtMsgType | msgType | ) |
Definition at line 505 of file qqmldomerrormessage.cpp.
References Debug, Error, Fatal, Info, QtCriticalMsg, QtDebugMsg, QtFatalMsg, QtInfoMsg, QtWarningMsg, and Warning.
QMLDOM_EXPORT void QQmlJS::Dom::errorToQDebug | ( | const ErrorMessage & | error | ) |
writes an ErrorMessage to QDebug
error | the error to write |
Definition at line 464 of file qqmldomerrormessage.cpp.
References dumperToQDebug(), and error.
Referenced by errorHandlerHandler().
Definition at line 224 of file qqmldomtop.cpp.
References arg, Qt::CaseInsensitive, compare(), Empty, QString::endsWith(), error, fileName, QQmlJS::Dom::DomUniverse::myErrors(), QmlDirectory, QmldirFile, QmlFile, QmltypesFile, and QCoreApplication::translate().
Referenced by QQmlJS::Dom::DomUniverse::loadFile(), and QQmlJS::Dom::DomEnvironment::loadFile().
QMLDOM_EXPORT FormatPartialStatus QQmlJS::Dom::formatCodeLine | ( | QStringView | line, |
const FormatOptions & | options, | ||
const FormatTextStatus & | initialStatus | ||
) |
Definition at line 1194 of file qqmldomcodeformatter.cpp.
References QQmlJS::Dom::FormatPartialStatus::handleTokens(), and line.
Referenced by QQmlJS::Dom::IndentingLineWriter::fStatus().
|
static |
Definition at line 2088 of file qqmldomastcreator.cpp.
References environmentFrom().
QMLDOM_EXPORT int QQmlJS::Dom::indentForLineStartingWithToken | ( | const FormatTextStatus & | oldStatus, |
const FormatOptions & | , | ||
int | tokenKind | ||
) |
Definition at line 1049 of file qqmldomcodeformatter.cpp.
References QQmlJS::Dom::FormatTextStatus::finalIndent, i, QQmlJS::Dom::FormatTextStatus::lexerState, QQmlJS::Dom::Token::lexKindIsDelimiter(), QQmlJS::Dom::Token::lexKindIsInvalid(), QQmlJS::Dom::FormatTextStatus::State::savedIndentDepth, QQmlJS::Dom::FormatTextStatus::state(), QQmlJS::Dom::Scanner::State::state, QQmlJS::Lexer::State::tokenKind, and QQmlJS::Dom::FormatTextStatus::State::type.
Referenced by QQmlJS::Dom::FormatPartialStatus::indentForNewLineAfter(), and QQmlJS::Dom::FormatPartialStatus::indentLine().
Definition at line 291 of file qqmldompath.cpp.
References base, QString::constData(), QStringView::constData(), el, QString::size(), and QStringView::size().
bool QQmlJS::Dom::inQString | ( | QStringView | el, |
QString | base | ||
) |
Definition at line 282 of file qqmldompath.cpp.
References base, QStringView::begin(), QString::constData(), el, and QString::size().
Referenced by QQmlJS::Dom::Path::path().
Path QQmlJS::Dom::insertUpdatableElementInMultiMap | ( | Path | mapPathFromOwner, |
QMultiMap< K, T > & | mmap, | ||
K | key, | ||
const T & | value, | ||
AddOption | option = AddOption::KeepExisting , |
||
T ** | valuePtr = nullptr |
||
) |
Definition at line 1803 of file qqmldomitem_p.h.
References QMultiMap< Key, T >::end(), QMultiMap< Key, T >::find(), QQmlJS::Dom::Path::index(), QMultiMap< Key, T >::insert(), it, QMultiMap< Key, T >::iterator::key(), QQmlJS::Dom::Path::key(), Overwrite, and qWarning.
Referenced by QQmlJS::Dom::QmlObject::addBinding(), QQmlJS::Dom::QmlFile::addComponent(), QQmlJS::Dom::QmltypesFile::addComponent(), QQmlJS::Dom::Component::addEnumeration(), QQmlJS::Dom::QmlComponent::addId(), QQmlJS::Dom::QmlObject::addMethod(), and QQmlJS::Dom::QmlObject::addPropertyDef().
Definition at line 243 of file qqmldomitem_p.h.
References ConstantData, Empty, List, ListP, Map, Object, and Value.
Referenced by QQmlJS::Dom::SimpleObjectWrapBase::SimpleObjectWrapBase(), QQmlJS::Dom::MutableDomItem::domKind(), QQmlJS::Dom::DomBase::domKind(), and QQmlJS::Dom::DomItem::domKind().
QMLDOM_EXPORT QString QQmlJS::Dom::lineDiff | ( | QString | s1, |
QString | s2, | ||
int | nContext | ||
) |
Definition at line 1029 of file qqmldomastdumper.cpp.
References d1, d2, qMin(), and s2.
Referenced by astNodeDiff().
QMLDOM_EXPORT QCborValue QQmlJS::Dom::locationToData | ( | SourceLocation | loc, |
QStringView | strValue = u"" |
||
) |
Referenced by QQmlJS::Dom::AstComments::collectComments(), QQmlJS::Dom::FileLocations::iterateDirectSubpaths(), and QQmlJS::Dom::DomItem::subLocationItem().
|
static |
Definition at line 141 of file qqmldomlinewriter.cpp.
References args, and QRegularExpression::matchView().
Referenced by QQmlJS::Dom::LineWriter::write().
|
static |
Definition at line 275 of file qqmldomerrormessage.cpp.
References NewErrorGroup.
Referenced by QQmlJS::Dom::ErrorMessage::load(), and QQmlJS::Dom::ErrorMessage::msg().
|
static |
Definition at line 23 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.
Referenced by QQmlJS::Dom::ModuleIndex::qmldirsToLoad().
|
static |
Definition at line 16 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.
Referenced by QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion().
|
inline |
Definition at line 93 of file qqmldomitem_p.h.
|
inline |
Definition at line 32 of file qqmldomastdumper_p.h.
Definition at line 1357 of file qqmldomitem_p.h.
|
inline |
Definition at line 90 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 179 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 758 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp(), and QQmlJS::Dom::Path::length().
Definition at line 71 of file qqmldomscanner_p.h.
References QQmlJS::Dom::Token::compare(), and t2.
Definition at line 205 of file qqmldomelements_p.h.
|
inline |
Definition at line 91 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 185 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 762 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 209 of file qqmldomelements_p.h.
QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< | ( | QDebug | d, |
AST::Node * | n | ||
) |
Definition at line 1022 of file qqmldomastdumper.cpp.
References QQmlJS::AST::Node::accept(), and d.
QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< | ( | QDebug | d, |
Dumper | dumper | ||
) |
Definition at line 189 of file qqmldomstringdumper.cpp.
References d.
QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< | ( | QDebug | debug, |
const DomItem & | c | ||
) |
QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< | ( | QDebug | debug, |
const MutableDomItem & | c | ||
) |
Definition at line 815 of file qqmldompath_p.h.
References debug.
|
inline |
Definition at line 93 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 189 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 770 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 213 of file qqmldomelements_p.h.
QMLDOM_EXPORT bool QQmlJS::Dom::operator== | ( | const DomItem & | o1, |
const DomItem & | o2 | ||
) |
|
inline |
Definition at line 89 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 182 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 754 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp(), and QQmlJS::Dom::Path::length().
Definition at line 67 of file qqmldomscanner_p.h.
References QQmlJS::Dom::Token::compare(), and t2.
Definition at line 201 of file qqmldomelements_p.h.
|
inline |
Definition at line 92 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 193 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 766 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 217 of file qqmldomelements_p.h.
|
inline |
Definition at line 94 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 197 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 774 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 221 of file qqmldomelements_p.h.
QCborValue QQmlJS::Dom::pluginData | ( | QQmlDirParser::Plugin & | pl, |
QStringList | cNames | ||
) |
Definition at line 229 of file qqmldomexternalitems.cpp.
References QQmlDirParser::Plugin::name, and QQmlDirParser::Plugin::path.
QQmlJS::Dom::Q_DECLARE_FLAGS | ( | DomCreationOptions | , |
DomCreationOption | |||
) |
QQmlJS::Dom::Q_DECLARE_LOGGING_CATEGORY | ( | domLog | ) |
QQmlJS::Dom::Q_DECLARE_LOGGING_CATEGORY | ( | writeOutLog | ) |
QQmlJS::Dom::Q_LOGGING_CATEGORY | ( | domLog | , |
"qt.qmldom" | , | ||
QtWarningMsg | |||
) |
|
inline |
Definition at line 795 of file qqmldompath_p.h.
Referenced by QQmlJS::Dom::FieldFilter::operator()().
|
static |
Definition at line 2096 of file qqmldomastcreator.cpp.
References environmentFrom().
|
static |
Definition at line 23 of file qqmldomtypesreader.cpp.
References NewErrorGroup.
QMLDOM_EXPORT void QQmlJS::Dom::reformatAst | ( | OutWriter & | lw, |
std::shared_ptr< AstComments > | comments, | ||
const std::function< QStringView(SourceLocation)> | loc2Str, | ||
AST::Node * | n | ||
) |
Definition at line 1196 of file qqmldomreformatter.cpp.
|
static |
Definition at line 293 of file qqmldomerrormessage.cpp.
Referenced by QQmlJS::Dom::ErrorMessage::load(), QQmlJS::Dom::ErrorMessage::msg(), and QQmlJS::Dom::ErrorMessage::visitRegisteredMessages().
|
static |
Definition at line 268 of file qqmldomerrormessage.cpp.
Referenced by QQmlJS::Dom::ErrorMessage::load(), QQmlJS::Dom::ErrorMessage::msg(), and QQmlJS::Dom::ErrorMessage::visitRegisteredMessages().
QMLDOM_EXPORT void QQmlJS::Dom::setDefaultErrorHandler | ( | ErrorHandler | h | ) |
Sets the default error handler.
Definition at line 500 of file qqmldomerrormessage.cpp.
References errorHandlerHandler().
|
static |
Definition at line 581 of file qqmldomastcreator.cpp.
References QVariant::data(), ScriptFormalParameter, and variant.
Referenced by QQmlJS::Dom::QQmlDomAstCreator::endVisit().
QMLDOM_EXPORT void QQmlJS::Dom::silentError | ( | const ErrorMessage & | ) |
Error handler that ignores all errors (excluding fatal ones)
Definition at line 473 of file qqmldomerrormessage.cpp.
QMLDOM_EXPORT void QQmlJS::Dom::sinkEscaped | ( | Sink | sink, |
QStringView | s, | ||
EscapeOptions | options | ||
) |
dumps a string as quoted string (escaping things like quotes or newlines)
sink | The sink to write the quoted string to |
s | The string to sink |
options | If quotes should be outputted around the string (defaults to yes) |
Definition at line 62 of file qqmldomstringdumper.cpp.
References it, OuterQuotes, Q_ASSERT, and QSet< T >::size().
Referenced by QQmlJS::Dom::Token::dump(), and QQmlJS::Dom::PathEls::Key::dump().
QMLDOM_EXPORT void QQmlJS::Dom::sinkIndent | ( | Sink | s, |
int | indent | ||
) |
sinks the requested amount of spaces
Definition at line 160 of file qqmldomstringdumper.cpp.
References QStringView::left(), and QStringView::size().
Referenced by sinkNewline().
Definition at line 72 of file qqmldomstringdumper_p.h.
References BUFSIZE, QChar::fromLatin1(), and i.
Referenced by QQmlJS::Dom::ErrorMessage::dump(), QQmlJS::Dom::Token::dump(), and QQmlJS::Dom::ErrorGroups::fatal().
QMLDOM_EXPORT void QQmlJS::Dom::sinkNewline | ( | Sink | s, |
int | indent | ||
) |
sinks a neline and indents by the given amount
Definition at line 176 of file qqmldomstringdumper.cpp.
References sinkIndent().
|
static |
Definition at line 85 of file qqmldomastcreator.cpp.
References iter.
Referenced by QQmlJS::Dom::LoadInfo::canonicalPath(), QQmlJS::Dom::QmldirFile::iterateDirectSubpaths(), QQmlJS::Dom::LoadInfo::iterateDirectSubpaths(), typeToString(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Definition at line 99 of file qqmldomastcreator.cpp.
References arg, Q_ASSERT, and toString().
Referenced by QQmlJS::Dom::QQmlDomAstCreator::visit().
QPair< std::shared_ptr< ExternalItemPair< T > >, std::shared_ptr< ExternalItemPair< T > > > QQmlJS::Dom::updateEntry | ( | DomItem & | univ, |
std::shared_ptr< T > | newItem, | ||
QMap< QString, std::shared_ptr< ExternalItemPair< T > > > & | map, | ||
QBasicMutex * | mutex | ||
) |
Definition at line 278 of file qqmldomtop.cpp.
References canonicalPath(), QMap< Key, T >::cend(), QQmlJS::Dom::DomItem::copy(), QDateTime::currentDateTimeUtc(), QMap< Key, T >::find(), QMap< Key, T >::insert(), QString::isNull(), it, QQmlJS::Dom::DomItem::makeCopy(), map, mutex, now, and qMakePair().
void QQmlJS::Dom::updatePathFromOwnerMultiMap | ( | QMultiMap< K, T > & | mmap, |
Path | newPath | ||
) |
Definition at line 1854 of file qqmldomitem_p.h.
References QList< T >::append(), QMultiMap< Key, T >::begin(), QList< T >::clear(), el, QMultiMap< Key, T >::end(), i, QQmlJS::Dom::Path::index(), it, and QQmlJS::Dom::Path::key().
Referenced by QQmlJS::Dom::Component::updatePathFromOwner(), and QQmlJS::Dom::QmlComponent::updatePathFromOwner().
void QQmlJS::Dom::updatePathFromOwnerQList | ( | QList< T > & | list, |
Path | newPath | ||
) |
Definition at line 1883 of file qqmldomitem_p.h.
References QList< T >::begin(), QList< T >::end(), i, QQmlJS::Dom::Path::index(), it, and list.
Referenced by QQmlJS::Dom::Component::updatePathFromOwner().
V * QQmlJS::Dom::valueFromMultimap | ( | QMultiMap< K, V > & | mmap, |
const K & | key, | ||
index_type | idx | ||
) |
Definition at line 57 of file qqmldomastcreator.cpp.
References QMultiMap< Key, T >::end(), QMultiMap< Key, T >::find(), i, and it.
Referenced by QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), and QQmlJS::Dom::QQmlDomAstCreator::endVisit().
auto QQmlJS::Dom::writeOutWrap | ( | const T & | , |
DomItem & | , | ||
OutWriter & | , | ||
rank< 0 > | |||
) | -> void |
Definition at line 1564 of file qqmldomitem_p.h.
References qCWarning.
auto QQmlJS::Dom::writeOutWrap | ( | const T & | t, |
DomItem & | self, | ||
OutWriter & | lw | ||
) | -> void |
Definition at line 1570 of file qqmldomitem_p.h.
References writeOutWrap().
auto QQmlJS::Dom::writeOutWrap | ( | const T & | t, |
DomItem & | self, | ||
OutWriter & | lw, | ||
rank< 1 > | |||
) | -> decltype(t.writeOut(self, lw)) |
Definition at line 1557 of file qqmldomitem_p.h.
Referenced by writeOutWrap().
|
static |
Definition at line 1115 of file qqmldomelements_p.h.
Referenced by QQmlJS::Dom::ImportScope::importedExportsWithName(), and QQmlJS::Dom::ImportScope::importedItemsWithName().