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>.
|
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 |
struct | AttachedInfoLookupResultBase |
class | AttachedInfoT |
class | AttributeInfo |
class | Binding |
class | BindingValue |
class | Comment |
Represents a comment. More... | |
class | CommentableDomElement |
class | CommentCollector |
class | CommentedElement |
Keeps the comment associated with an element. More... | |
class | CommentInfo |
Extracts various pieces and information out of a rawComment string. More... | |
class | CommentLinker |
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 | Path |
class | PathIterator |
class | PendingSourceLocation |
class | Pragma |
class | PropertyDefinition |
class | PropertyInfo |
class | QmlComponent |
class | QmlDirectory |
class | QmldirFile |
class | QmlFile |
A QmlFile, when loaded in a DomEnvironment that has the DomCreationOption::WithSemanticAnalysis, will be lazily constructed. More... | |
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 | 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 | ScriptFormatter |
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... | |
Typedefs | |
using | StateType = FormatTextStatus::StateType |
using | State = FormatTextStatus::State |
template<typename T > | |
using | function_ref = qxp::function_ref<T> |
using | DirectVisitor = function_ref<bool(const PathEls::PathComponent &, function_ref<DomItem()>)> |
using | ElementT |
using | TopT |
using | OwnerT |
using | PendingSourceLocationId = int |
using | PendingSourceLocationIdAtomic = QAtomicInt |
using | ErrorHandler = std::function<void(const ErrorMessage &)> |
using | index_type = qint64 |
using | FieldType = QStringView |
using | Sink = function_ref<void(QStringView)> |
using | SinkF = std::function<void(QStringView)> |
using | DumperFunction = std::function<void(const Sink &)> |
Variables | |
static QMetaEnum | regionEnum = QMetaEnum::fromType<FileLocationRegion>() |
static ErrorGroups | importErrors = { { DomItem::domErrorGroup, NewErrorGroup("importError") } } |
using QQmlJS::Dom::DirectVisitor = function_ref<bool(const PathEls::PathComponent &, function_ref<DomItem()>)> |
Definition at line 98 of file qqmldomitem_p.h.
using QQmlJS::Dom::DumperFunction = std::function<void(const Sink &)> |
Definition at line 35 of file qqmldomstringdumper_p.h.
using QQmlJS::Dom::ElementT |
Definition at line 795 of file qqmldomitem_p.h.
using QQmlJS::Dom::ErrorHandler = std::function<void(const ErrorMessage &)> |
Definition at line 43 of file qqmldompath_p.h.
using QQmlJS::Dom::FieldType = 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 376 of file qqmldompath_p.h.
using QQmlJS::Dom::function_ref = qxp::function_ref<T> |
Definition at line 27 of file qqmldomfunctionref_p.h.
using QQmlJS::Dom::index_type = qint64 |
Definition at line 45 of file qqmldompath_p.h.
using QQmlJS::Dom::OwnerT |
Definition at line 836 of file qqmldomitem_p.h.
using QQmlJS::Dom::PendingSourceLocationId = int |
Definition at line 107 of file qqmldomlinewriter_p.h.
Definition at line 108 of file qqmldomlinewriter_p.h.
using QQmlJS::Dom::Sink = function_ref<void(QStringView)> |
Definition at line 33 of file qqmldomstringdumper_p.h.
using QQmlJS::Dom::SinkF = std::function<void(QStringView)> |
Definition at line 34 of file qqmldomstringdumper_p.h.
Definition at line 16 of file qqmldomcodeformatter.cpp.
Definition at line 15 of file qqmldomcodeformatter.cpp.
using QQmlJS::Dom::TopT |
Definition at line 831 of file qqmldomitem_p.h.
anonymous enum |
Enumerator | |
---|---|
FatalMsgMaxLen |
Definition at line 18 of file qqmldomerrormessage.cpp.
|
strong |
Enumerator | |
---|---|
KeepExisting | |
Overwrite |
Definition at line 284 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
NoLocations | |
NoAnnotations | |
DumpNode | |
SloppyCompare |
Definition at line 267 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Normal | |
OnBinding |
Definition at line 243 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Object | |
ScriptExpression | |
Array | |
Empty |
Definition at line 240 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
ReadOnly | |
Writable |
Definition at line 699 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 | |
WithRecovery |
Definition at line 398 of file qqmldomconstants_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 697 of file qqmldomtop_p.h.
|
strong |
Enumerator | |
---|---|
Debug | |
Info | |
Warning | |
Error | |
Fatal |
Definition at line 258 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
OuterQuotes | |
NoOuterQuotes |
Definition at line 252 of file qqmldomconstants_p.h.
enum QQmlJS::Dom::FileLocationRegion : int |
The FileLocationRegion allows to map the different FileLocation subregions to their position in the actual code. For example, {ColonTokenRegion} denotes the position of the ':' token in a binding like
myProperty: something()
, or the ':' token in a pragma like pragma Hello: World
.
These are used for formatting in qmlformat and autocompletion in qmlls.
MainRegion denotes the entire FileLocation region.
Definition at line 343 of file qqmldomconstants_p.h.
|
strong |
FilterUpOptions decide in which direction the filtering is done. ReturnInner starts the search at top(), and work its way down to the current element. ReturnOuter and ReturnOuterNoSelf starts the search at the current element and works their way up to to top().
Enumerator | |
---|---|
ReturnOuter | |
ReturnOuterNoSelf | |
ReturnInner |
Definition at line 295 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
Strict | |
MostLikely |
Definition at line 278 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 246 of file qqmldomconstants_p.h.
|
strong |
Enumerator | |
---|---|
None | |
ObjectType | |
ValueType | |
Signal | |
Method | |
Attribute | |
Id | |
Namespace | |
Global | |
MethodParameter | |
Singleton | |
AttachedType |
Definition at line 313 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 235 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 298 of file qqmldomconstants_p.h.
Path QQmlJS::Dom::appendUpdatableElementInQList | ( | const Path & | listPathFromOwner, |
QList< T > & | list, | ||
const T & | value, | ||
T ** | vPtr = nullptr ) |
Definition at line 1889 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 | ( | const 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 80 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 117 of file qqmldomastcreator.cpp.
References combineLocations().
SourceLocation QQmlJS::Dom::combineLocations | ( | SourceLocation | s1, |
SourceLocation | s2 ) |
Definition at line 112 of file qqmldomastcreator.cpp.
References s2.
Referenced by combineLocations(), QQmlJS::Dom::QQmlDomAstCreator::endVisit(), 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().
QMLDOM_EXPORT void QQmlJS::Dom::defaultErrorHandler | ( | const ErrorMessage & | error | ) |
Calls the default error handler (by default errorToQDebug)
Definition at line 513 of file qqmldomerrormessage.cpp.
References error, and errorHandlerHandler().
Referenced by QQmlJS::Dom::ErrorMessage::handle(), and QQmlJS::Dom::ErrorMessage::msg().
|
inline |
Definition at line 104 of file qqmldomstringdumper_p.h.
bool QQmlJS::Dom::domCompare | ( | const DomItem & | i1, |
const DomItem & | i2, | ||
function_ref< bool(Path, const DomItem &, const DomItem &)> | change, | ||
function_ref< bool(const DomItem &, const PathEls::PathComponent &, const DomItem &)> | filter, | ||
Path | basePath ) |
Definition at line 11 of file qqmldomcompare.cpp.
References domCompare(), Empty, QQmlJS::Dom::DomItem::empty, i, QQmlJS::Dom::DomItem::index(), k1, List, Map, Object, ScriptElement, QQmlJS::Dom::DomItem::size(), and Value.
Referenced by domCompare(), and domCompareStrList().
QMLDOM_EXPORT QStringList QQmlJS::Dom::domCompareStrList | ( | const DomItem & | i1, |
const DomItem & | i2, | ||
function_ref< bool(const DomItem &, const PathEls::PathComponent &, const DomItem &) const > | filter, | ||
DomCompareStrList | stopAtFirstDiff ) |
Definition at line 158 of file qqmldomcompare.cpp.
References AllDiffs, arg, domCompare(), domKindToString(), Empty, k1, List, Map, Object, Q_ASSERT, QStringLiteral, ScriptElement, t2, QCborValue::type(), and Value.
Referenced by domCompareStrList(), domCompareStrList(), and domCompareStrList().
|
inline |
Definition at line 49 of file qqmldomcompare_p.h.
References domCompareStrList().
|
inline |
Definition at line 40 of file qqmldomcompare_p.h.
References domCompareStrList().
|
inline |
Definition at line 58 of file qqmldomcompare_p.h.
References domCompareStrList().
QMLDOM_EXPORT QString QQmlJS::Dom::domKindToString | ( | DomKind | k | ) |
QMLDOM_EXPORT QMap< DomKind, QString > QQmlJS::Dom::domKindToStringMap | ( | ) |
|
static |
Definition at line 84 of file qqmldomelements.cpp.
References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.
|
constexpr |
Definition at line 70 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 1978 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 1941 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::MutableDomItem::mutableAs(), and QQmlJS::Dom::DomItem::wrap().
|
constexpr |
Definition at line 2001 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 2044 of file qqmldomitem_p.h.
References ScriptElementStart, and ScriptElementStop.
QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsTopItem | ( | DomType | k | ) |
|
constexpr |
Definition at line 2032 of file qqmldomitem_p.h.
References AstComments, AttachedInfo, and ScriptExpression.
Referenced by QQmlJS::Dom::DomItem::subOwnerItem().
|
constexpr |
Definition at line 1968 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::MutableDomItem::mutableAs(), 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 | ( | const 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 | ( | const 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 | ( | const Dumper & | dumper, |
QDebug | debug ) |
Definition at line 120 of file qqmldomstringdumper.cpp.
Referenced by errorToQDebug().
QMLDOM_EXPORT QString QQmlJS::Dom::dumperToString | ( | const 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 855 of file qqmldomitem_p.h.
Referenced by findUsagesHelper(), and findUsagesOfNonJSIdentifiers().
|
static |
Definition at line 2890 of file qqmldomastcreator.cpp.
References QQmlJS::Dom::MutableDomItem::as(), and QQmlJS::Dom::MutableDomItem::top().
Referenced by qmldirFilesFrom().
void QQmlJS::Dom::errorHandlerHandler | ( | const ErrorMessage & | msg, |
const ErrorHandler * | h = nullptr ) |
Definition at line 499 of file qqmldomerrormessage.cpp.
References errorToQDebug().
Referenced by defaultErrorHandler(), and setDefaultErrorHandler().
QMLDOM_EXPORT ErrorLevel QQmlJS::Dom::errorLevelFromQtMsgType | ( | QtMsgType | msgType | ) |
Definition at line 527 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 486 of file qqmldomerrormessage.cpp.
References dumperToQDebug(), and error.
Referenced by errorHandlerHandler().
|
static |
Creates a FieldMemberExpression if the qualified id has dots.
Definition at line 143 of file qqmldomastcreator.cpp.
References QQmlJS::Dom::ScriptElementVariant::fromElement(), QQmlJS::AST::UiQualifiedId::next, and wrapIntoFieldMemberExpression().
Referenced by QQmlJS::Dom::QQmlDomAstCreator::endVisit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
QString QQmlJS::Dom::fileLocationRegionName | ( | FileLocationRegion | region | ) |
Definition at line 39 of file qqmldom_utils.cpp.
References fileLocationRegionName(), QString::fromLatin1(), and regionEnum.
Referenced by fileLocationRegionName(), and qOverloadedVisitor().
FileLocationRegion QQmlJS::Dom::fileLocationRegionValue | ( | QStringView | region | ) |
Definition at line 44 of file qqmldom_utils.cpp.
References fileLocationRegionValue(), regionEnum, and QStringView::toLatin1().
Referenced by fileLocationRegionValue(), QQmlJS::Dom::Map::fromFileRegionListMap(), QQmlJS::Dom::Map::fromFileRegionMap(), and qOverloadedVisitor().
|
static |
Definition at line 208 of file qqmldomtop.cpp.
References arg, Qt::CaseInsensitive, compare(), Empty, QString::endsWith(), error, fileName, JsFile, QQmlJS::Dom::DomUniverse::myErrors(), QmlDirectory, QmldirFile, QmlFile, QmltypesFile, and QCoreApplication::translate().
QMLDOM_EXPORT FormatPartialStatus QQmlJS::Dom::formatCodeLine | ( | QStringView | line, |
const FormatOptions & | options, | ||
const FormatTextStatus & | initialStatus ) |
Definition at line 1193 of file qqmldomcodeformatter.cpp.
References QQmlJS::Dom::FormatPartialStatus::handleTokens(), and line.
Referenced by QQmlJS::Dom::IndentingLineWriter::fStatus().
QMLDOM_EXPORT int QQmlJS::Dom::indentForLineStartingWithToken | ( | const FormatTextStatus & | oldStatus, |
const FormatOptions & | , | ||
int | tokenKind ) |
Definition at line 1048 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 292 of file qqmldompath.cpp.
References base, QStringView::constData(), el, and QStringView::size().
bool QQmlJS::Dom::inQString | ( | QStringView | el, |
const QString & | base ) |
Definition at line 283 of file qqmldompath.cpp.
References base, QStringView::begin(), and el.
Referenced by QQmlJS::Dom::Path::path().
Path QQmlJS::Dom::insertUpdatableElementInMultiMap | ( | const Path & | mapPathFromOwner, |
QMultiMap< K, T > & | mmap, | ||
K | key, | ||
const T & | value, | ||
AddOption | option = AddOption::KeepExisting, | ||
T ** | valuePtr = nullptr ) |
Definition at line 1852 of file qqmldomitem_p.h.
References QSet< T >::end(), QSet< T >::find(), QQmlJS::Dom::Path::index(), it, 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().
|
static |
Definition at line 1348 of file qqmldomitem_p.h.
References QSet< T >::find(), it, and Reverse.
Referenced by QQmlJS::Dom::Map::fromMultiMapRef().
Definition at line 248 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().
|
static |
Definition at line 142 of file qqmldomlinewriter.cpp.
References args.
Referenced by QQmlJS::Dom::LineWriter::write().
|
static |
Definition at line 293 of file qqmldomerrormessage.cpp.
References NewErrorGroup.
Referenced by QQmlJS::Dom::ErrorMessage::load(), and QQmlJS::Dom::ErrorMessage::msg().
|
static |
Definition at line 24 of file qqmldommoduleindex.cpp.
References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.
Referenced by QQmlJS::Dom::ModuleIndex::qmldirsToLoad().
|
static |
Definition at line 17 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 1342 of file qqmldomitem_p.h.
|
inline |
Definition at line 95 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 698 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 210 of file qqmldomelements_p.h.
|
inline |
Definition at line 96 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 195 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 702 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 214 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, |
const 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 758 of file qqmldompath_p.h.
References debug.
|
inline |
Definition at line 98 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 199 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 710 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 218 of file qqmldomelements_p.h.
QMLDOM_EXPORT bool QQmlJS::Dom::operator== | ( | const DomItem & | o1, |
const DomItem & | o2 ) |
|
inline |
Definition at line 94 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 192 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 694 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 206 of file qqmldomelements_p.h.
|
inline |
Definition at line 97 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 203 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 706 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 222 of file qqmldomelements_p.h.
|
inline |
Definition at line 99 of file qqmldomerrormessage_p.h.
References QQmlJS::Dom::ErrorGroups::cmp().
|
inline |
Definition at line 207 of file qqmldomerrormessage_p.h.
References compare().
Definition at line 714 of file qqmldompath_p.h.
References QQmlJS::Dom::Path::cmp().
Definition at line 226 of file qqmldomelements_p.h.
QCborValue QQmlJS::Dom::pluginData | ( | const QQmlDirParser::Plugin & | pl, |
const QStringList & | cNames ) |
Definition at line 233 of file qqmldomexternalitems.cpp.
References QCborArray::append(), and QCborValue().
QQmlJS::Dom::Q_DECLARE_FLAGS | ( | DomCreationOptions | , |
DomCreationOption | ) |
QQmlJS::Dom::Q_DECLARE_LOGGING_CATEGORY | ( | domLog | ) |
QQmlJS::Dom::Q_DECLARE_LOGGING_CATEGORY | ( | writeOutLog | ) |
QQmlJS::Dom::Q_ENUM_NS | ( | FileLocationRegion | ) |
QQmlJS::Dom::Q_LOGGING_CATEGORY | ( | domLog | , |
"qt.qmldom" | , | ||
QtWarningMsg | ) |
|
inline |
Definition at line 735 of file qqmldompath_p.h.
Referenced by QQmlJS::Dom::FieldFilter::operator()().
|
static |
Definition at line 2903 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, |
const std::shared_ptr< AstComments > & | comments, | ||
const std::function< QStringView(SourceLocation)> & | loc2Str, | ||
AST::Node * | n ) |
Definition at line 1126 of file qqmldomreformatter.cpp.
|
static |
Definition at line 315 of file qqmldomerrormessage.cpp.
Referenced by QQmlJS::Dom::ErrorMessage::load(), QQmlJS::Dom::ErrorMessage::msg(), and QQmlJS::Dom::ErrorMessage::visitRegisteredMessages().
|
static |
Definition at line 286 of file qqmldomerrormessage.cpp.
Referenced by QQmlJS::Dom::ErrorMessage::load(), QQmlJS::Dom::ErrorMessage::msg(), and QQmlJS::Dom::ErrorMessage::visitRegisteredMessages().
QStringList QQmlJS::Dom::resourceFilesFromBuildFolders | ( | const QStringList & | buildFolders | ) |
Definition at line 20 of file qqmldom_utils.cpp.
References dir, QDir::Files, it, resourceFilesFromBuildFolders(), and QDirIterator::Subdirectories.
Referenced by qOverloadedVisitor(), and resourceFilesFromBuildFolders().
QMLDOM_EXPORT void QQmlJS::Dom::setDefaultErrorHandler | ( | const ErrorHandler & | h | ) |
Sets the default error handler.
Definition at line 522 of file qqmldomerrormessage.cpp.
References errorHandlerHandler(), and ErrorMessage.
|
static |
Definition at line 747 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 495 of file qqmldomerrormessage.cpp.
QMLDOM_EXPORT void QQmlJS::Dom::sinkEscaped | ( | const 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 | ( | const Sink & | s, |
int | indent ) |
sinks the requested amount of spaces
Definition at line 160 of file qqmldomstringdumper.cpp.
Referenced by sinkNewline().
Definition at line 72 of file qqmldomstringdumper_p.h.
Referenced by QQmlJS::Dom::ErrorMessage::dump(), QQmlJS::Dom::Token::dump(), and QQmlJS::Dom::ErrorGroups::fatal().
QMLDOM_EXPORT void QQmlJS::Dom::sinkNewline | ( | const Sink & | s, |
int | indent ) |
sinks a neline and indents by the given amount
Definition at line 176 of file qqmldomstringdumper.cpp.
References sinkIndent().
QCborValue QQmlJS::Dom::sourceLocationToQCborValue | ( | QQmlJS::SourceLocation | loc | ) |
Definition at line 49 of file qqmldom_utils.cpp.
References QQmlJS::SourceLocation::length, QQmlJS::SourceLocation::offset, QStringLiteral, sourceLocationToQCborValue(), QQmlJS::SourceLocation::startColumn, and QQmlJS::SourceLocation::startLine.
Referenced by QQmlJS::Dom::CommentCollector::collectComments(), QQmlJS::Dom::FileLocations::iterateDirectSubpaths(), qOverloadedVisitor(), sourceLocationToQCborValue(), and QQmlJS::Dom::DomItem::subLocationItem().
|
static |
Definition at line 87 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(), and QQmlJS::Dom::QQmlDomAstCreator::visit().
Definition at line 101 of file qqmldomastcreator.cpp.
References arg, Q_ASSERT, and toString().
Referenced by QQmlJS::Dom::QQmlDomAstCreator::visit().
void QQmlJS::Dom::updatePathFromOwnerMultiMap | ( | QMultiMap< K, T > & | mmap, |
const Path & | newPath ) |
Definition at line 1903 of file qqmldomitem_p.h.
References QSet< T >::begin(), el, i, it, and QQmlJS::Dom::Path::key().
Referenced by QQmlJS::Dom::Component::updatePathFromOwner(), and QQmlJS::Dom::QmlComponent::updatePathFromOwner().
void QQmlJS::Dom::updatePathFromOwnerQList | ( | QList< T > & | list, |
const Path & | newPath ) |
Definition at line 1932 of file qqmldomitem_p.h.
References QList< T >::begin(), QList< T >::end(), i, 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 59 of file qqmldomastcreator.cpp.
References QSet< 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().
|
static |
Definition at line 122 of file qqmldomastcreator.cpp.
References el, QQmlJS::Dom::ScriptElements::BinaryExpression::FieldMemberAccess, QQmlJS::Dom::ScriptElementVariant::fromElement(), OperatorTokenRegion, s1, and s2.
Referenced by fieldMemberExpressionForQualifiedId().
auto QQmlJS::Dom::writeOutWrap | ( | const T & | , |
const DomItem & | , | ||
OutWriter & | , | ||
rank< 0 > | ) -> void |
Definition at line 1607 of file qqmldomitem_p.h.
References qCWarning.
auto QQmlJS::Dom::writeOutWrap | ( | const T & | t, |
const DomItem & | self, | ||
OutWriter & | lw ) -> void |
Definition at line 1613 of file qqmldomitem_p.h.
References writeOutWrap().
auto QQmlJS::Dom::writeOutWrap | ( | const T & | t, |
const DomItem & | self, | ||
OutWriter & | lw, | ||
rank< 1 > | ) -> decltype(t.writeOut(self, lw)) |
Definition at line 1600 of file qqmldomitem_p.h.
Referenced by writeOutWrap().
|
static |
Definition at line 1166 of file qqmldomelements_p.h.
Referenced by QQmlJS::Dom::ImportScope::importedExportsWithName(), and QQmlJS::Dom::ImportScope::importedItemsWithName().
|
static |
Definition at line 37 of file qqmldom_utils.cpp.
Referenced by fileLocationRegionName(), and fileLocationRegionValue().