Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom Namespace Reference

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...
 

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 = 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 * >
 
using TopT = std::variant< std::shared_ptr< DomEnvironment >, std::shared_ptr< DomUniverse > >
 
using OwnerT = 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 > >
 
using PendingSourceLocationId = 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(Sink)>
 

Enumerations

enum  DomCompareStrList { FirstDiff , AllDiffs }
 
enum class  PathRoot {
  Other , Modules , Cpp , Libs ,
  Top , Env , Universe
}
 
enum class  PathCurrent {
  Other , Obj , ObjChain , ScopeChain ,
  Component , Module , Ids , Types ,
  LookupStrict , LookupDynamic , Lookup
}
 
enum class  Language {
  QmlQuick1 , QmlQuick2 , QmlQuick3 , QmlCompiled ,
  QmlAnnotation , Qbs
}
 
enum class  ResolveOption { None =0 , TraceVisit =0x1 }
 
enum class  VisitOption {
  None = 0 , VisitSelf = 0x1 , VisitAdopted = 0x2 , Recurse = 0x4 ,
  NoPath = 0x8 , Default = VisitOption::VisitSelf | VisitOption::VisitAdopted | VisitOption::Recurse
}
 
enum class  LookupOption { Normal = 0 , Strict = 0x1 , VisitTopClassType = 0x2 , SkipFirstScope = 0x4 }
 
enum class  LookupType {
  PropertyDef , Binding , Property , Method ,
  Type , CppType , Symbol
}
 
enum class  VisitPrototypesOption { Normal = 0 , SkipFirst = 0x1 , RevisitWarn = 0x2 , ManualProceedToScope = 0x4 }
 
enum class  DomKind {
  Empty , Object , List , Map ,
  Value , ScriptElement
}
 
enum class  DomType {
  Empty , ExternalItemInfo , ExternalItemPair , QmlDirectory ,
  QmldirFile , JsFile , QmlFile , QmltypesFile ,
  GlobalScope , EnumItem , EnumDecl , JsResource ,
  QmltypesComponent , QmlComponent , GlobalComponent , ModuleAutoExport ,
  ModuleIndex , ModuleScope , ImportScope , Export ,
  Import , Pragma , Id , QmlObject ,
  ConstantData , SimpleObjectWrap , ScriptExpression , Reference ,
  PropertyDefinition , Binding , MethodParameter , MethodInfo ,
  Version , Comment , CommentedElement , RegionComments ,
  AstComments , FileLocations , UpdatedScriptExpression , PropertyInfo ,
  MockObject , MockOwner , Map , List ,
  ListP , LoadInfo , ErrorMessage , AttachedInfo ,
  DomEnvironment , DomUniverse , ScriptElementWrap , ScriptElementStart ,
  ScriptBlockStatement = ScriptElementStart , ScriptIdentifierExpression , ScriptLiteral , ScriptForStatement ,
  ScriptIfStatement , ScriptBinaryExpression , ScriptFunctionDeclaration , ScriptVariableDeclaration ,
  ScriptVariableDeclarationEntry , ScriptReturnStatement , ScriptGenericElement , ScriptCallExpression ,
  ScriptParameter , ScriptFormalParameter , ScriptArray , ScriptObject ,
  ScriptProperty , ScriptType , ScriptQualifiedIdentifierExpression , ScriptQualifiedIdentifierBit ,
  ScriptElision , ScriptArrayEntry , ScriptPattern , ScriptSwitchStatement ,
  ScriptCaseBlock , ScriptCaseClauses , ScriptCaseClause , ScriptDefaultClause ,
  ScriptWhileStatement , ScriptDoWhileStatement , ScriptForEachStatement , ScriptElementStop
}
 
enum class  SimpleWrapOption { None = 0 , ValueType = 1 }
 
enum class  BindingValueKind { Object , ScriptExpression , Array , Empty }
 
enum class  BindingType { Normal , OnBinding }
 
enum class  ListOptions { Normal , Reverse }
 
enum class  LoadOption { DefaultLoad = 0x0 , ForceLoad = 0x1 }
 
enum class  EscapeOptions { OuterQuotes , NoOuterQuotes }
 
enum class  ErrorLevel {
  Debug = QtMsgType::QtDebugMsg , Info = QtMsgType::QtInfoMsg , Warning = QtMsgType::QtWarningMsg , Error = QtMsgType::QtCriticalMsg ,
  Fatal = QtMsgType::QtFatalMsg
}
 
enum class  AstDumperOption {
  None =0 , NoLocations =0x1 , NoAnnotations =0x2 , DumpNode =0x4 ,
  SloppyCompare =0x8
}
 
enum class  GoTo { Strict , MostLikely }
 
enum class  AddOption { KeepExisting , Overwrite }
 
enum class  FilterUpOptions { ReturnOuter , ReturnOuterNoSelf , ReturnInner }
 
enum class  WriteOutCheck {
  None = 0x0 , UpdatedDomCompare = 0x1 , UpdatedDomStable = 0x2 , Reparse = 0x4 ,
  ReparseCompare = 0x8 , ReparseStable = 0x10 , DumpOnFailure = 0x20 , All = 0x3F ,
  Default = Reparse | ReparseCompare | ReparseStable
}
 
enum class  LocalSymbolsType {
  None = 0x0 , QmlTypes = 0x1 , Types = 0x3 , Signals = 0x4 ,
  Methods = 0xC , Attributes = 0x10 , Ids = 0x20 , Components = 0x40 ,
  Namespaces = 0x80 , Globals = 0x100 , MethodParameters = 0x200 , All = 0x3FF
}
 
enum  { FatalMsgMaxLen =511 }
 
enum  DomCreationOption : char { None = 0 , WithSemanticAnalysis = 1 , WithScriptExpressions = 2 }
 
enum class  EnvLookup { Normal , NoBase , BaseOnly }
 
enum class  Changeable { ReadOnly , Writable }
 

Functions

void createDom (MutableDomItem qmlFile, DomCreationOptions options=None)
 
template<typename K , typename V >
V * valueFromMultimap (QMultiMap< K, V > &mmap, const K &key, index_type idx)
 
static ErrorGroups astParseErrors ()
 
static QString toString (const UiQualifiedId *qualifiedId, QChar delimiter=QLatin1Char('.'))
 
static QString typeToString (AST::Type *t)
 
SourceLocation combineLocations (SourceLocation s1, SourceLocation s2)
 
SourceLocation combineLocations (Node *n)
 
static void setFormalParameterKind (ScriptElementVariant &variant)
 
static const DomEnvironmentenvironmentFrom (MutableDomItem &qmlFile)
 
static QStringList importPathsFrom (MutableDomItem &qmlFile)
 
static QStringList qmldirFilesFrom (MutableDomItem &qmlFile)
 
QDebug operator<< (QDebug d, AST::Node *n)
 
QString lineDiff (QString s1, QString s2, int nContext)
 
QString astNodeDiff (AST::Node *n1, AST::Node *n2, int nContext, AstDumperOptions opt, int indent, function_ref< QStringView(SourceLocation)>loc2str1, function_ref< QStringView(SourceLocation)>loc2str2)
 
void astNodeDumper (Sink s, Node *n, AstDumperOptions opt, int indent, int baseIndent, function_ref< QStringView(SourceLocation)>loc2str)
 
QString astNodeDump (Node *n, AstDumperOptions opt, int indent, int baseIndent, function_ref< QStringView(SourceLocation)>loc2str)
 
QStringView noStr (SourceLocation)
 
int indentForLineStartingWithToken (const FormatTextStatus &oldStatus, const FormatOptions &, int tokenKind)
 
FormatPartialStatus formatCodeLine (QStringView line, const FormatOptions &options, const FormatTextStatus &initialStatus)
 
bool domCompare (DomItem &i1, DomItem &i2, function_ref< bool(Path, DomItem &, DomItem &)> change, function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &)> filter, Path basePath)
 
QStringList domCompareStrList (DomItem &i1, DomItem &i2, function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const > filter, DomCompareStrList stopAtFirstDiff)
 
QStringList domCompareStrList (MutableDomItem &i1, DomItem &i2, function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const > filter=noFilter, DomCompareStrList stopAtFirstDiff=DomCompareStrList::FirstDiff)
 
QStringList domCompareStrList (DomItem &i1, MutableDomItem &i2, function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const > filter=noFilter, DomCompareStrList stopAtFirstDiff=DomCompareStrList::FirstDiff)
 
QStringList domCompareStrList (MutableDomItem &i1, MutableDomItem &i2, function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const > filter=noFilter, DomCompareStrList stopAtFirstDiff=DomCompareStrList::FirstDiff)
 
static ErrorGroups domParsingErrors ()
 
bool operator== (const Version &v1, const Version &v2)
 
bool operator!= (const Version &v1, const Version &v2)
 
bool operator< (const Version &v1, const Version &v2)
 
bool operator<= (const Version &v1, const Version &v2)
 
bool operator> (const Version &v1, const Version &v2)
 
bool operator>= (const Version &v1, const Version &v2)
 
 Q_LOGGING_CATEGORY (domLog, "qt.qmldom", QtWarningMsg)
 
static QBasicMutexregistryMutex ()
 
static ErrorGroups myErrors ()
 
static QHash< QLatin1String, StorableMsg > & registry ()
 
void errorToQDebug (const ErrorMessage &error)
 writes an ErrorMessage to QDebug
 
void silentError (const ErrorMessage &)
 Error handler that ignores all errors (excluding fatal ones)
 
void errorHandlerHandler (const ErrorMessage &msg, ErrorHandler *h=nullptr)
 
void defaultErrorHandler (const ErrorMessage &error)
 Calls the default error handler (by default errorToQDebug)
 
void setDefaultErrorHandler (ErrorHandler h)
 Sets the default error handler.
 
ErrorLevel errorLevelFromQtMsgType (QtMsgType msgType)
 
 Q_DECLARE_LOGGING_CATEGORY (domLog)
 
bool operator== (const ErrorGroups &lhs, const ErrorGroups &rhs)
 
bool operator!= (const ErrorGroups &lhs, const ErrorGroups &rhs)
 
bool operator< (const ErrorGroups &lhs, const ErrorGroups &rhs)
 
bool operator> (const ErrorGroups &lhs, const ErrorGroups &rhs)
 
bool operator<= (const ErrorGroups &lhs, const ErrorGroups &rhs)
 
bool operator>= (const ErrorGroups &lhs, const ErrorGroups &rhs)
 
bool operator!= (const ErrorMessage &e1, const ErrorMessage &e2)
 
bool operator== (const ErrorMessage &e1, const ErrorMessage &e2)
 
bool operator< (const ErrorMessage &e1, const ErrorMessage &e2)
 
bool operator<= (const ErrorMessage &e1, const ErrorMessage &e2)
 
bool operator> (const ErrorMessage &e1, const ErrorMessage &e2)
 
bool operator>= (const ErrorMessage &e1, const ErrorMessage &e2)
 
QCborValue pluginData (QQmlDirParser::Plugin &pl, QStringList cNames)
 
 Q_DECLARE_LOGGING_CATEGORY (writeOutLog)
 
constexpr bool domTypeIsObjWrap (DomType k)
 
constexpr bool domTypeIsValueWrap (DomType k)
 
constexpr bool domTypeIsDomElement (DomType)
 
constexpr bool domTypeIsOwningItem (DomType)
 
constexpr bool domTypeIsUnattachedOwningItem (DomType)
 
constexpr bool domTypeIsScriptElement (DomType)
 
QMLDOM_EXPORT bool domTypeIsExternalItem (DomType k)
 
QMLDOM_EXPORT bool domTypeIsTopItem (DomType k)
 
QMLDOM_EXPORT bool domTypeIsContainer (DomType k)
 
constexpr bool domTypeCanBeInline (DomType k)
 
QMLDOM_EXPORT bool domTypeIsScope (DomType k)
 
QMLDOM_EXPORT QMap< DomType, QStringdomTypeToStringMap ()
 
QMLDOM_EXPORT QString domTypeToString (DomType k)
 
QMLDOM_EXPORT QMap< DomKind, QStringdomKindToStringMap ()
 
QMLDOM_EXPORT QString domKindToString (DomKind k)
 
QMLDOM_EXPORT QCborValue locationToData (SourceLocation loc, QStringView strValue=u"")
 
bool noFilter (DomItem &, const PathEls::PathComponent &, DomItem &)
 
DomKind kind2domKind (DomType k)
 
bool emptyChildrenVisitor (Path, DomItem &, bool)
 
 Q_DECLARE_FLAGS (DomCreationOptions, DomCreationOption)
 
QMLDOM_EXPORT bool operator== (const DomItem &o1, const DomItem &o2)
 
bool operator!= (const DomItem &o1, const DomItem &o2)
 
template<typename T >
auto writeOutWrap (const T &t, DomItem &self, OutWriter &lw, rank< 1 >) -> decltype(t.writeOut(self, lw))
 
template<typename T >
auto writeOutWrap (const T &, DomItem &, OutWriter &, rank< 0 >) -> void
 
template<typename T >
auto writeOutWrap (const T &t, DomItem &self, OutWriter &lw) -> void
 
QMLDOM_EXPORT QDebug operator<< (QDebug debug, const DomItem &c)
 
QMLDOM_EXPORT QDebug operator<< (QDebug debug, const MutableDomItem &c)
 
template<typename K , typename T >
Path insertUpdatableElementInMultiMap (Path mapPathFromOwner, QMultiMap< K, T > &mmap, K key, const T &value, AddOption option=AddOption::KeepExisting, T **valuePtr=nullptr)
 
template<typename T >
Path appendUpdatableElementInQList (Path listPathFromOwner, QList< T > &list, const T &value, T **vPtr=nullptr)
 
template<typename T , typename K = QString>
void updatePathFromOwnerMultiMap (QMultiMap< K, T > &mmap, Path newPath)
 
template<typename T >
void updatePathFromOwnerQList (QList< T > &list, Path newPath)
 
template<typename String , typename ... Args>
static QRegularExpressionMatch matchHelper (QRegularExpression &re, String &&s, Args &&...args)
 
static ErrorGroups myVersioningErrors ()
 
static ErrorGroups myExportErrors ()
 
bool inQString (QStringView el, QString base)
 
bool inQString (QString el, QString base)
 
size_t qHash (const Path &, size_t)
 
bool operator== (const Path &lhs, const Path &rhs)
 
bool operator!= (const Path &lhs, const Path &rhs)
 
bool operator< (const Path &lhs, const Path &rhs)
 
bool operator> (const Path &lhs, const Path &rhs)
 
bool operator<= (const Path &lhs, const Path &rhs)
 
bool operator>= (const Path &lhs, const Path &rhs)
 
QDebug operator<< (QDebug debug, const Path &p)
 
void reformatAst (OutWriter &lw, std::shared_ptr< AstComments > comments, const std::function< QStringView(SourceLocation)> loc2Str, AST::Node *n)
 
int operator== (const Token &t1, const Token &t2)
 
int operator!= (const Token &t1, const Token &t2)
 
QString dumperToString (Dumper writer)
 Converts a dumper to a string.
 
void sinkEscaped (Sink sink, QStringView s, EscapeOptions options)
 dumps a string as quoted string (escaping things like quotes or newlines)
 
void dumpErrorLevel (Sink s, ErrorLevel level)
 Dumps a string describing the given error level (ErrorLevel::Error -> Error,...)
 
void dumperToQDebug (Dumper dumper, QDebug debug)
 
void dumperToQDebug (Dumper dumper, ErrorLevel level)
 writes the dumper to the QDebug object corrsponding to the given error level
 
void sinkIndent (Sink s, int indent)
 sinks the requested amount of spaces
 
void sinkNewline (Sink s, int indent)
 sinks a neline and indents by the given amount
 
QDebug operator<< (QDebug d, Dumper dumper)
 
template<typename T >
void sinkInt (Sink s, T i)
 
void devNull (QStringView)
 
static DomType fileTypeForPath (DomItem &self, QString canonicalFilePath)
 
template<typename T >
QPair< std::shared_ptr< ExternalItemPair< T > >, std::shared_ptr< ExternalItemPair< T > > > updateEntry (DomItem &univ, std::shared_ptr< T > newItem, QMap< QString, std::shared_ptr< ExternalItemPair< T > > > &map, QBasicMutex *mutex)
 
template<typename T >
DomTop::Callback envCallbackForFile (DomItem &self, QMap< QString, std::shared_ptr< ExternalItemInfo< T > > > DomEnvironment::*map, std::shared_ptr< ExternalItemInfo< T > >(DomEnvironment::*lookupF)(DomItem &, QString, EnvLookup) const, DomTop::Callback loadCallback, DomTop::Callback allDirectDepsCallback, DomTop::Callback endCallback)
 
template<typename T >
std::shared_ptr< ExternalItemInfo< T > > addExternalItem (std::shared_ptr< T > file, QString key, QMap< QString, std::shared_ptr< ExternalItemInfo< T > > > &map, AddOption option, QBasicMutex *mutex)
 
static ErrorGroups readerParseErrors ()
 

Variables

static ErrorGroups importErrors = { { DomItem::domErrorGroup, NewErrorGroup("importError") } }
 

Typedef Documentation

◆ DirectVisitor

Definition at line 98 of file qqmldomitem_p.h.

◆ DumperFunction

using QQmlJS::Dom::DumperFunction = typedef std::function<void(Sink)>

Definition at line 35 of file qqmldomstringdumper_p.h.

◆ ElementT

◆ ErrorHandler

using QQmlJS::Dom::ErrorHandler = typedef std::function<void(const ErrorMessage &)>

Definition at line 43 of file qqmldompath_p.h.

◆ FieldType

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.

◆ function_ref

template<typename T >
using QQmlJS::Dom::function_ref = typedef qxp::function_ref<T>

Definition at line 27 of file qqmldomfunctionref_p.h.

◆ index_type

Definition at line 45 of file qqmldompath_p.h.

◆ OwnerT

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.

◆ PendingSourceLocationId

Definition at line 103 of file qqmldomlinewriter_p.h.

◆ Sink

Definition at line 33 of file qqmldomstringdumper_p.h.

◆ SinkF

using QQmlJS::Dom::SinkF = typedef std::function<void(QStringView)>

Definition at line 34 of file qqmldomstringdumper_p.h.

◆ State

Definition at line 16 of file qqmldomcodeformatter.cpp.

◆ StateType

◆ TopT

using QQmlJS::Dom::TopT = typedef std::variant<std::shared_ptr<DomEnvironment>, std::shared_ptr<DomUniverse> >

Definition at line 823 of file qqmldomitem_p.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FatalMsgMaxLen 

Definition at line 18 of file qqmldomerrormessage.cpp.

◆ AddOption

enum class QQmlJS::Dom::AddOption
strong
Enumerator
KeepExisting 
Overwrite 

Definition at line 287 of file qqmldomconstants_p.h.

◆ AstDumperOption

enum class QQmlJS::Dom::AstDumperOption
strong
Enumerator
None 
NoLocations 
NoAnnotations 
DumpNode 
SloppyCompare 

Definition at line 270 of file qqmldomconstants_p.h.

◆ BindingType

enum class QQmlJS::Dom::BindingType
strong
Enumerator
Normal 
OnBinding 

Definition at line 238 of file qqmldomconstants_p.h.

◆ BindingValueKind

enum class QQmlJS::Dom::BindingValueKind
strong
Enumerator
Object 
ScriptExpression 
Array 
Empty 

Definition at line 235 of file qqmldomconstants_p.h.

◆ Changeable

enum class QQmlJS::Dom::Changeable
strong
Enumerator
ReadOnly 
Writable 

Definition at line 609 of file qqmldomtop_p.h.

◆ DomCompareStrList

Enumerator
FirstDiff 
AllDiffs 

Definition at line 33 of file qqmldomcompare_p.h.

◆ DomCreationOption

Enumerator
None 
WithSemanticAnalysis 
WithScriptExpressions 

Definition at line 842 of file qqmldomitem_p.h.

◆ DomKind

enum class QQmlJS::Dom::DomKind
strong
Enumerator
Empty 
Object 
List 
Map 
Value 
ScriptElement 

Definition at line 104 of file qqmldomconstants_p.h.

◆ DomType

enum class QQmlJS::Dom::DomType
strong
Enumerator
Empty 
ExternalItemInfo 
ExternalItemPair 
QmlDirectory 
QmldirFile 
JsFile 
QmlFile 
QmltypesFile 
GlobalScope 
EnumItem 
EnumDecl 
JsResource 
QmltypesComponent 
QmlComponent 
GlobalComponent 
ModuleAutoExport 
ModuleIndex 
ModuleScope 
ImportScope 
Export 
Import 
Pragma 
Id 
QmlObject 
ConstantData 
SimpleObjectWrap 
ScriptExpression 
Reference 
PropertyDefinition 
Binding 
MethodParameter 
MethodInfo 
Version 
Comment 
CommentedElement 
RegionComments 
AstComments 
FileLocations 
UpdatedScriptExpression 
PropertyInfo 
MockObject 
MockOwner 
Map 
List 
ListP 
LoadInfo 
ErrorMessage 
AttachedInfo 
DomEnvironment 
DomUniverse 
ScriptElementWrap 
ScriptElementStart 
ScriptBlockStatement 
ScriptIdentifierExpression 
ScriptLiteral 
ScriptForStatement 
ScriptIfStatement 
ScriptBinaryExpression 
ScriptFunctionDeclaration 
ScriptVariableDeclaration 
ScriptVariableDeclarationEntry 
ScriptReturnStatement 
ScriptGenericElement 
ScriptCallExpression 
ScriptParameter 
ScriptFormalParameter 
ScriptArray 
ScriptObject 
ScriptProperty 
ScriptType 
ScriptQualifiedIdentifierExpression 
ScriptQualifiedIdentifierBit 
ScriptElision 
ScriptArrayEntry 
ScriptPattern 
ScriptSwitchStatement 
ScriptCaseBlock 
ScriptCaseClauses 
ScriptCaseClause 
ScriptDefaultClause 
ScriptWhileStatement 
ScriptDoWhileStatement 
ScriptForEachStatement 
ScriptElementStop 

Definition at line 107 of file qqmldomconstants_p.h.

◆ EnvLookup

enum class QQmlJS::Dom::EnvLookup
strong
Enumerator
Normal 
NoBase 
BaseOnly 

Definition at line 607 of file qqmldomtop_p.h.

◆ ErrorLevel

enum class QQmlJS::Dom::ErrorLevel
strong
Enumerator
Debug 
Info 
Warning 
Error 
Fatal 

Definition at line 261 of file qqmldomconstants_p.h.

◆ EscapeOptions

enum class QQmlJS::Dom::EscapeOptions
strong
Enumerator
OuterQuotes 
NoOuterQuotes 

Definition at line 255 of file qqmldomconstants_p.h.

◆ FilterUpOptions

enum class QQmlJS::Dom::FilterUpOptions
strong
Enumerator
ReturnOuter 
ReturnOuterNoSelf 
ReturnInner 

Definition at line 290 of file qqmldomconstants_p.h.

◆ GoTo

enum class QQmlJS::Dom::GoTo
strong
Enumerator
Strict 
MostLikely 

Definition at line 281 of file qqmldomconstants_p.h.

◆ Language

enum class QQmlJS::Dom::Language
strong
Enumerator
QmlQuick1 
QmlQuick2 
QmlQuick3 
QmlCompiled 
QmlAnnotation 
Qbs 

Definition at line 57 of file qqmldomconstants_p.h.

◆ ListOptions

enum class QQmlJS::Dom::ListOptions
strong
Enumerator
Normal 
Reverse 

Definition at line 241 of file qqmldomconstants_p.h.

◆ LoadOption

enum class QQmlJS::Dom::LoadOption
strong
Enumerator
DefaultLoad 
ForceLoad 

Definition at line 247 of file qqmldomconstants_p.h.

◆ LocalSymbolsType

enum class QQmlJS::Dom::LocalSymbolsType
strong
Enumerator
None 
QmlTypes 
Types 
Signals 
Methods 
Attributes 
Ids 
Components 
Namespaces 
Globals 
MethodParameters 
All 

Definition at line 308 of file qqmldomconstants_p.h.

◆ LookupOption

enum class QQmlJS::Dom::LookupOption
strong
Enumerator
Normal 
Strict 
VisitTopClassType 
SkipFirstScope 

Definition at line 80 of file qqmldomconstants_p.h.

◆ LookupType

enum class QQmlJS::Dom::LookupType
strong
Enumerator
PropertyDef 
Binding 
Property 
Method 
Type 
CppType 
Symbol 

Definition at line 91 of file qqmldomconstants_p.h.

◆ PathCurrent

enum class QQmlJS::Dom::PathCurrent
strong
Enumerator
Other 
Obj 
ObjChain 
ScopeChain 
Component 
Module 
Ids 
Types 
LookupStrict 
LookupDynamic 
Lookup 

Definition at line 42 of file qqmldomconstants_p.h.

◆ PathRoot

enum class QQmlJS::Dom::PathRoot
strong
Enumerator
Other 
Modules 
Cpp 
Libs 
Top 
Env 
Universe 

Definition at line 31 of file qqmldomconstants_p.h.

◆ ResolveOption

enum class QQmlJS::Dom::ResolveOption
strong
Enumerator
None 
TraceVisit 

Definition at line 60 of file qqmldomconstants_p.h.

◆ SimpleWrapOption

enum class QQmlJS::Dom::SimpleWrapOption
strong
Enumerator
None 
ValueType 

Definition at line 230 of file qqmldomconstants_p.h.

◆ VisitOption

enum class QQmlJS::Dom::VisitOption
strong
Enumerator
None 
VisitSelf 
VisitAdopted 
Recurse 
NoPath 
Default 

Definition at line 68 of file qqmldomconstants_p.h.

◆ VisitPrototypesOption

Enumerator
Normal 
SkipFirst 
RevisitWarn 
ManualProceedToScope 

Definition at line 94 of file qqmldomconstants_p.h.

◆ WriteOutCheck

enum class QQmlJS::Dom::WriteOutCheck
strong
Enumerator
None 
UpdatedDomCompare 
UpdatedDomStable 
Reparse 
ReparseCompare 
ReparseStable 
DumpOnFailure 
All 
Default 

Definition at line 293 of file qqmldomconstants_p.h.

Function Documentation

◆ addExternalItem()

template<typename T >
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.

+ Here is the call graph for this function:

◆ appendUpdatableElementInQList()

template<typename T >
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ astNodeDiff()

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.

+ Here is the call graph for this function:

◆ astNodeDump()

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.

+ Here is the call graph for this function:

◆ astNodeDumper()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ astParseErrors()

static ErrorGroups QQmlJS::Dom::astParseErrors ( )
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().

+ Here is the caller graph for this function:

◆ combineLocations() [1/2]

SourceLocation QQmlJS::Dom::combineLocations ( Node n)

Definition at line 115 of file qqmldomastcreator.cpp.

References combineLocations().

+ Here is the call graph for this function:

◆ combineLocations() [2/2]

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().

+ Here is the caller graph for this function:

◆ createDom()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ defaultErrorHandler()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ devNull()

void QQmlJS::Dom::devNull ( QStringView  )
inline

Definition at line 104 of file qqmldomstringdumper_p.h.

◆ domCompare()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ domCompareStrList() [1/4]

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ domCompareStrList() [2/4]

QStringList QQmlJS::Dom::domCompareStrList ( DomItem i1,
MutableDomItem i2,
function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const >  filter = noFilter,
DomCompareStrList  stopAtFirstDiff = DomCompareStrList::FirstDiff 
)
inline

Definition at line 49 of file qqmldomcompare_p.h.

References domCompareStrList(), and QQmlJS::Dom::MutableDomItem::item().

+ Here is the call graph for this function:

◆ domCompareStrList() [3/4]

QStringList QQmlJS::Dom::domCompareStrList ( MutableDomItem i1,
DomItem i2,
function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const >  filter = noFilter,
DomCompareStrList  stopAtFirstDiff = DomCompareStrList::FirstDiff 
)
inline

Definition at line 40 of file qqmldomcompare_p.h.

References domCompareStrList(), and QQmlJS::Dom::MutableDomItem::item().

+ Here is the call graph for this function:

◆ domCompareStrList() [4/4]

QStringList QQmlJS::Dom::domCompareStrList ( MutableDomItem i1,
MutableDomItem i2,
function_ref< bool(DomItem &, const PathEls::PathComponent &, DomItem &) const >  filter = noFilter,
DomCompareStrList  stopAtFirstDiff = DomCompareStrList::FirstDiff 
)
inline

Definition at line 58 of file qqmldomcompare_p.h.

References domCompareStrList(), and QQmlJS::Dom::MutableDomItem::item().

+ Here is the call graph for this function:

◆ domKindToString()

QMLDOM_EXPORT QString QQmlJS::Dom::domKindToString ( DomKind  k)

Referenced by domCompareStrList().

+ Here is the caller graph for this function:

◆ domKindToStringMap()

QMLDOM_EXPORT QMap< DomKind, QString > QQmlJS::Dom::domKindToStringMap ( )

◆ domParsingErrors()

static ErrorGroups QQmlJS::Dom::domParsingErrors ( )
static

Definition at line 83 of file qqmldomelements.cpp.

References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.

◆ domTypeCanBeInline()

constexpr bool QQmlJS::Dom::domTypeCanBeInline ( DomType  k)
constexpr

Definition at line 68 of file qqmldomitem_p.h.

References ConstantData, Empty, List, ListP, Map, Reference, ScriptElementWrap, and SimpleObjectWrap.

◆ domTypeIsContainer()

QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsContainer ( DomType  k)

Referenced by QQmlJS::Dom::DomItem::isContainer().

+ Here is the caller graph for this function:

◆ domTypeIsDomElement()

constexpr bool QQmlJS::Dom::domTypeIsDomElement ( 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().

+ Here is the caller graph for this function:

◆ domTypeIsExternalItem()

QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsExternalItem ( DomType  k)

Referenced by QQmlJS::Dom::DomItem::isExternalItem().

+ Here is the caller graph for this function:

◆ domTypeIsObjWrap()

constexpr bool QQmlJS::Dom::domTypeIsObjWrap ( DomType  k)
constexpr

◆ domTypeIsOwningItem()

constexpr bool QQmlJS::Dom::domTypeIsOwningItem ( DomType  k)
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().

+ Here is the caller graph for this function:

◆ domTypeIsScope()

QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsScope ( DomType  k)

Referenced by QQmlJS::Dom::DomItem::isScope().

+ Here is the caller graph for this function:

◆ domTypeIsScriptElement()

constexpr bool QQmlJS::Dom::domTypeIsScriptElement ( DomType  k)
constexpr

Definition at line 1995 of file qqmldomitem_p.h.

References ScriptElementStart, and ScriptElementStop.

◆ domTypeIsTopItem()

QMLDOM_EXPORT bool QQmlJS::Dom::domTypeIsTopItem ( DomType  k)

Referenced by QQmlJS::Dom::DomItem::isTopItem().

+ Here is the caller graph for this function:

◆ domTypeIsUnattachedOwningItem()

constexpr bool QQmlJS::Dom::domTypeIsUnattachedOwningItem ( DomType  k)
constexpr

Definition at line 1983 of file qqmldomitem_p.h.

References AstComments, AttachedInfo, and ScriptExpression.

Referenced by QQmlJS::Dom::DomItem::subOwnerItem().

+ Here is the caller graph for this function:

◆ domTypeIsValueWrap()

constexpr bool QQmlJS::Dom::domTypeIsValueWrap ( DomType  k)
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().

+ Here is the caller graph for this function:

◆ domTypeToString()

◆ domTypeToStringMap()

QMLDOM_EXPORT QMap< DomType, QString > QQmlJS::Dom::domTypeToStringMap ( )

◆ dumpErrorLevel()

QMLDOM_EXPORT void QQmlJS::Dom::dumpErrorLevel ( Sink  s,
ErrorLevel  level 
)

Dumps a string describing the given error level (ErrorLevel::Error -> Error,...)

Parameters
sthe sink to write to
levelthe level to describe

Definition at line 98 of file qqmldomstringdumper.cpp.

References Debug, Error, Fatal, Info, and Warning.

Referenced by QQmlJS::Dom::ErrorMessage::dump().

+ Here is the caller graph for this function:

◆ dumperToQDebug() [1/2]

QMLDOM_EXPORT void QQmlJS::Dom::dumperToQDebug ( Dumper  dumper,
ErrorLevel  level 
)

writes the dumper to the QDebug object corrsponding to the given error level

Parameters
levelthe error level of the message
dumperthe 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.

◆ dumperToQDebug() [2/2]

QMLDOM_EXPORT void QQmlJS::Dom::dumperToQDebug ( Dumper  dumper,
QDebug  debug 
)

Definition at line 120 of file qqmldomstringdumper.cpp.

References d, and debug.

Referenced by errorToQDebug().

+ Here is the caller graph for this function:

◆ dumperToString()

QMLDOM_EXPORT QString QQmlJS::Dom::dumperToString ( Dumper  writer)

Converts a dumper to a string.

Parameters
writerThe 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().

+ Here is the caller graph for this function:

◆ emptyChildrenVisitor()

bool QQmlJS::Dom::emptyChildrenVisitor ( Path  ,
DomItem ,
bool   
)
inline

Definition at line 835 of file qqmldomitem_p.h.

Referenced by findUsagesHelper(), and findUsagesOfNonJSIdentifiers().

+ Here is the caller graph for this function:

◆ envCallbackForFile()

template<typename T >
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ environmentFrom()

static const DomEnvironment * QQmlJS::Dom::environmentFrom ( MutableDomItem qmlFile)
static

Definition at line 2075 of file qqmldomastcreator.cpp.

References QQmlJS::Dom::MutableDomItem::as(), and QQmlJS::Dom::MutableDomItem::top().

Referenced by importPathsFrom(), and qmldirFilesFrom().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ errorHandlerHandler()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ errorLevelFromQtMsgType()

QMLDOM_EXPORT ErrorLevel QQmlJS::Dom::errorLevelFromQtMsgType ( QtMsgType  msgType)

◆ errorToQDebug()

QMLDOM_EXPORT void QQmlJS::Dom::errorToQDebug ( const ErrorMessage error)

writes an ErrorMessage to QDebug

Parameters
errorthe error to write

Definition at line 464 of file qqmldomerrormessage.cpp.

References dumperToQDebug(), and error.

Referenced by errorHandlerHandler().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fileTypeForPath()

static DomType QQmlJS::Dom::fileTypeForPath ( DomItem self,
QString  canonicalFilePath 
)
static

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ formatCodeLine()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ importPathsFrom()

static QStringList QQmlJS::Dom::importPathsFrom ( MutableDomItem qmlFile)
static

Definition at line 2088 of file qqmldomastcreator.cpp.

References environmentFrom().

+ Here is the call graph for this function:

◆ indentForLineStartingWithToken()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ inQString() [1/2]

bool QQmlJS::Dom::inQString ( QString  el,
QString  base 
)

Definition at line 291 of file qqmldompath.cpp.

References base, QString::constData(), QStringView::constData(), el, QString::size(), and QStringView::size().

+ Here is the call graph for this function:

◆ inQString() [2/2]

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertUpdatableElementInMultiMap()

template<typename K , typename T >
Path QQmlJS::Dom::insertUpdatableElementInMultiMap ( Path  mapPathFromOwner,
QMultiMap< K, T > &  mmap,
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ kind2domKind()

DomKind QQmlJS::Dom::kind2domKind ( DomType  k)
inline

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().

+ Here is the caller graph for this function:

◆ lineDiff()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ locationToData()

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().

+ Here is the caller graph for this function:

◆ matchHelper()

template<typename String , typename ... Args>
static QRegularExpressionMatch QQmlJS::Dom::matchHelper ( QRegularExpression re,
String &&  s,
Args &&...  args 
)
static

Definition at line 141 of file qqmldomlinewriter.cpp.

References args, and QRegularExpression::matchView().

Referenced by QQmlJS::Dom::LineWriter::write().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ myErrors()

static ErrorGroups QQmlJS::Dom::myErrors ( )
static

Definition at line 275 of file qqmldomerrormessage.cpp.

References NewErrorGroup.

Referenced by QQmlJS::Dom::ErrorMessage::load(), and QQmlJS::Dom::ErrorMessage::msg().

+ Here is the caller graph for this function:

◆ myExportErrors()

static ErrorGroups QQmlJS::Dom::myExportErrors ( )
static

Definition at line 23 of file qqmldommoduleindex.cpp.

References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.

Referenced by QQmlJS::Dom::ModuleIndex::qmldirsToLoad().

+ Here is the caller graph for this function:

◆ myVersioningErrors()

static ErrorGroups QQmlJS::Dom::myVersioningErrors ( )
static

Definition at line 16 of file qqmldommoduleindex.cpp.

References QQmlJS::Dom::DomItem::domErrorGroup, and NewErrorGroup.

Referenced by QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion().

+ Here is the caller graph for this function:

◆ noFilter()

bool QQmlJS::Dom::noFilter ( DomItem ,
const PathEls::PathComponent ,
DomItem  
)
inline

Definition at line 93 of file qqmldomitem_p.h.

◆ noStr()

QStringView QQmlJS::Dom::noStr ( SourceLocation  )
inline

Definition at line 32 of file qqmldomastdumper_p.h.

◆ operator!=() [1/6]

bool QQmlJS::Dom::operator!= ( const DomItem o1,
const DomItem o2 
)
inline

Definition at line 1357 of file qqmldomitem_p.h.

◆ operator!=() [2/6]

bool QQmlJS::Dom::operator!= ( const ErrorGroups lhs,
const ErrorGroups rhs 
)
inline

Definition at line 90 of file qqmldomerrormessage_p.h.

References QQmlJS::Dom::ErrorGroups::cmp().

+ Here is the call graph for this function:

◆ operator!=() [3/6]

bool QQmlJS::Dom::operator!= ( const ErrorMessage e1,
const ErrorMessage e2 
)
inline

Definition at line 179 of file qqmldomerrormessage_p.h.

References compare().

+ Here is the call graph for this function:

◆ operator!=() [4/6]

bool QQmlJS::Dom::operator!= ( const Path lhs,
const Path rhs 
)
inline

Definition at line 758 of file qqmldompath_p.h.

References QQmlJS::Dom::Path::cmp(), and QQmlJS::Dom::Path::length().

+ Here is the call graph for this function:

◆ operator!=() [5/6]

int QQmlJS::Dom::operator!= ( const Token t1,
const Token t2 
)
inline

Definition at line 71 of file qqmldomscanner_p.h.

References QQmlJS::Dom::Token::compare(), and t2.

+ Here is the call graph for this function:

◆ operator!=() [6/6]

bool QQmlJS::Dom::operator!= ( const Version v1,
const Version v2 
)
inline

Definition at line 205 of file qqmldomelements_p.h.

◆ operator<() [1/4]

bool QQmlJS::Dom::operator< ( const ErrorGroups lhs,
const ErrorGroups rhs 
)
inline

Definition at line 91 of file qqmldomerrormessage_p.h.

References QQmlJS::Dom::ErrorGroups::cmp().

+ Here is the call graph for this function:

◆ operator<() [2/4]

bool QQmlJS::Dom::operator< ( const ErrorMessage e1,
const ErrorMessage e2 
)
inline

Definition at line 185 of file qqmldomerrormessage_p.h.

References compare().

+ Here is the call graph for this function:

◆ operator<() [3/4]

bool QQmlJS::Dom::operator< ( const Path lhs,
const Path rhs 
)
inline

Definition at line 762 of file qqmldompath_p.h.

References QQmlJS::Dom::Path::cmp().

+ Here is the call graph for this function:

◆ operator<() [4/4]

bool QQmlJS::Dom::operator< ( const Version v1,
const Version v2 
)
inline

Definition at line 209 of file qqmldomelements_p.h.

◆ operator<<() [1/5]

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.

+ Here is the call graph for this function:

◆ operator<<() [2/5]

QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< ( QDebug  d,
Dumper  dumper 
)

Definition at line 189 of file qqmldomstringdumper.cpp.

References d.

◆ operator<<() [3/5]

QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< ( QDebug  debug,
const DomItem c 
)

◆ operator<<() [4/5]

QMLDOM_EXPORT QDebug QQmlJS::Dom::operator<< ( QDebug  debug,
const MutableDomItem c 
)

◆ operator<<() [5/5]

QDebug QQmlJS::Dom::operator<< ( QDebug  debug,
const Path p 
)
inline

Definition at line 815 of file qqmldompath_p.h.

References debug.

◆ operator<=() [1/4]

bool QQmlJS::Dom::operator<= ( const ErrorGroups lhs,
const ErrorGroups rhs 
)
inline

Definition at line 93 of file qqmldomerrormessage_p.h.

References QQmlJS::Dom::ErrorGroups::cmp().

+ Here is the call graph for this function:

◆ operator<=() [2/4]

bool QQmlJS::Dom::operator<= ( const ErrorMessage e1,
const ErrorMessage e2 
)
inline

Definition at line 189 of file qqmldomerrormessage_p.h.

References compare().

+ Here is the call graph for this function:

◆ operator<=() [3/4]

bool QQmlJS::Dom::operator<= ( const Path lhs,
const Path rhs 
)
inline

Definition at line 770 of file qqmldompath_p.h.

References QQmlJS::Dom::Path::cmp().

+ Here is the call graph for this function:

◆ operator<=() [4/4]

bool QQmlJS::Dom::operator<= ( const Version v1,
const Version v2 
)
inline

Definition at line 213 of file qqmldomelements_p.h.

◆ operator==() [1/6]

QMLDOM_EXPORT bool QQmlJS::Dom::operator== ( const DomItem o1,
const DomItem o2 
)

◆ operator==() [2/6]

bool QQmlJS::Dom::operator== ( const ErrorGroups lhs,
const ErrorGroups rhs 
)
inline

Definition at line 89 of file qqmldomerrormessage_p.h.

References QQmlJS::Dom::ErrorGroups::cmp().

+ Here is the call graph for this function:

◆ operator==() [3/6]

bool QQmlJS::Dom::operator== ( const ErrorMessage e1,
const ErrorMessage e2 
)
inline

Definition at line 182 of file qqmldomerrormessage_p.h.

References compare().

+ Here is the call graph for this function:

◆ operator==() [4/6]

bool QQmlJS::Dom::operator== ( const Path lhs,
const Path rhs 
)
inline

Definition at line 754 of file qqmldompath_p.h.

References QQmlJS::Dom::Path::cmp(), and QQmlJS::Dom::Path::length().

+ Here is the call graph for this function:

◆ operator==() [5/6]

int QQmlJS::Dom::operator== ( const Token t1,
const Token t2 
)
inline

Definition at line 67 of file qqmldomscanner_p.h.

References QQmlJS::Dom::Token::compare(), and t2.

+ Here is the call graph for this function:

◆ operator==() [6/6]

bool QQmlJS::Dom::operator== ( const Version v1,
const Version v2 
)
inline

Definition at line 201 of file qqmldomelements_p.h.

◆ operator>() [1/4]

bool QQmlJS::Dom::operator> ( const ErrorGroups lhs,
const ErrorGroups rhs 
)
inline

Definition at line 92 of file qqmldomerrormessage_p.h.

References QQmlJS::Dom::ErrorGroups::cmp().

+ Here is the call graph for this function:

◆ operator>() [2/4]

bool QQmlJS::Dom::operator> ( const ErrorMessage e1,
const ErrorMessage e2 
)
inline

Definition at line 193 of file qqmldomerrormessage_p.h.

References compare().

+ Here is the call graph for this function:

◆ operator>() [3/4]

bool QQmlJS::Dom::operator> ( const Path lhs,
const Path rhs 
)
inline

Definition at line 766 of file qqmldompath_p.h.

References QQmlJS::Dom::Path::cmp().

+ Here is the call graph for this function:

◆ operator>() [4/4]

bool QQmlJS::Dom::operator> ( const Version v1,
const Version v2 
)
inline

Definition at line 217 of file qqmldomelements_p.h.

◆ operator>=() [1/4]

bool QQmlJS::Dom::operator>= ( const ErrorGroups lhs,
const ErrorGroups rhs 
)
inline

Definition at line 94 of file qqmldomerrormessage_p.h.

References QQmlJS::Dom::ErrorGroups::cmp().

+ Here is the call graph for this function:

◆ operator>=() [2/4]

bool QQmlJS::Dom::operator>= ( const ErrorMessage e1,
const ErrorMessage e2 
)
inline

Definition at line 197 of file qqmldomerrormessage_p.h.

References compare().

+ Here is the call graph for this function:

◆ operator>=() [3/4]

bool QQmlJS::Dom::operator>= ( const Path lhs,
const Path rhs 
)
inline

Definition at line 774 of file qqmldompath_p.h.

References QQmlJS::Dom::Path::cmp().

+ Here is the call graph for this function:

◆ operator>=() [4/4]

bool QQmlJS::Dom::operator>= ( const Version v1,
const Version v2 
)
inline

Definition at line 221 of file qqmldomelements_p.h.

◆ pluginData()

QCborValue QQmlJS::Dom::pluginData ( QQmlDirParser::Plugin pl,
QStringList  cNames 
)

◆ Q_DECLARE_FLAGS()

QQmlJS::Dom::Q_DECLARE_FLAGS ( DomCreationOptions  ,
DomCreationOption   
)

◆ Q_DECLARE_LOGGING_CATEGORY() [1/2]

QQmlJS::Dom::Q_DECLARE_LOGGING_CATEGORY ( domLog  )

◆ Q_DECLARE_LOGGING_CATEGORY() [2/2]

QQmlJS::Dom::Q_DECLARE_LOGGING_CATEGORY ( writeOutLog  )

◆ Q_LOGGING_CATEGORY()

QQmlJS::Dom::Q_LOGGING_CATEGORY ( domLog  ,
"qt.qmldom"  ,
QtWarningMsg   
)

◆ qHash()

size_t QQmlJS::Dom::qHash ( const Path path,
size_t  seed 
)
inline

Definition at line 795 of file qqmldompath_p.h.

Referenced by QQmlJS::Dom::FieldFilter::operator()().

+ Here is the caller graph for this function:

◆ qmldirFilesFrom()

static QStringList QQmlJS::Dom::qmldirFilesFrom ( MutableDomItem qmlFile)
static

Definition at line 2096 of file qqmldomastcreator.cpp.

References environmentFrom().

+ Here is the call graph for this function:

◆ readerParseErrors()

static ErrorGroups QQmlJS::Dom::readerParseErrors ( )
static

Definition at line 23 of file qqmldomtypesreader.cpp.

References NewErrorGroup.

◆ reformatAst()

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.

◆ registry()

static QHash< QLatin1String, StorableMsg > & QQmlJS::Dom::registry ( )
static

Definition at line 293 of file qqmldomerrormessage.cpp.

Referenced by QQmlJS::Dom::ErrorMessage::load(), QQmlJS::Dom::ErrorMessage::msg(), and QQmlJS::Dom::ErrorMessage::visitRegisteredMessages().

+ Here is the caller graph for this function:

◆ registryMutex()

static QBasicMutex * QQmlJS::Dom::registryMutex ( )
static

Definition at line 268 of file qqmldomerrormessage.cpp.

Referenced by QQmlJS::Dom::ErrorMessage::load(), QQmlJS::Dom::ErrorMessage::msg(), and QQmlJS::Dom::ErrorMessage::visitRegisteredMessages().

+ Here is the caller graph for this function:

◆ setDefaultErrorHandler()

QMLDOM_EXPORT void QQmlJS::Dom::setDefaultErrorHandler ( ErrorHandler  h)

Sets the default error handler.

Definition at line 500 of file qqmldomerrormessage.cpp.

References errorHandlerHandler().

+ Here is the call graph for this function:

◆ setFormalParameterKind()

static void QQmlJS::Dom::setFormalParameterKind ( ScriptElementVariant variant)
static

Definition at line 581 of file qqmldomastcreator.cpp.

References QVariant::data(), ScriptFormalParameter, and variant.

Referenced by QQmlJS::Dom::QQmlDomAstCreator::endVisit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ silentError()

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.

◆ sinkEscaped()

QMLDOM_EXPORT void QQmlJS::Dom::sinkEscaped ( Sink  sink,
QStringView  s,
EscapeOptions  options 
)

dumps a string as quoted string (escaping things like quotes or newlines)

Parameters
sinkThe sink to write the quoted string to
sThe string to sink
optionsIf 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sinkIndent()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sinkInt()

template<typename T >
void QQmlJS::Dom::sinkInt ( Sink  s,
i 
)

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sinkNewline()

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().

+ Here is the call graph for this function:

◆ toString()

◆ typeToString()

static QString QQmlJS::Dom::typeToString ( AST::Type t)
static

Definition at line 99 of file qqmldomastcreator.cpp.

References arg, Q_ASSERT, and toString().

Referenced by QQmlJS::Dom::QQmlDomAstCreator::visit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateEntry()

template<typename T >
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().

+ Here is the call graph for this function:

◆ updatePathFromOwnerMultiMap()

template<typename T , typename K = QString>
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePathFromOwnerQList()

template<typename T >
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valueFromMultimap()

template<typename K , typename V >
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeOutWrap() [1/3]

template<typename T >
auto QQmlJS::Dom::writeOutWrap ( const T &  ,
DomItem ,
OutWriter ,
rank< 0 >   
) -> void

Definition at line 1564 of file qqmldomitem_p.h.

References qCWarning.

◆ writeOutWrap() [2/3]

template<typename T >
auto QQmlJS::Dom::writeOutWrap ( const T &  t,
DomItem self,
OutWriter lw 
) -> void

Definition at line 1570 of file qqmldomitem_p.h.

References writeOutWrap().

+ Here is the call graph for this function:

◆ writeOutWrap() [3/3]

template<typename T >
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().

+ Here is the caller graph for this function:

Variable Documentation

◆ importErrors

ErrorGroups QQmlJS::Dom::importErrors = { { DomItem::domErrorGroup, NewErrorGroup("importError") } }
static