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

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 , ScriptPostExpression , ScriptUnaryExpression , ScriptBinaryExpression ,
  ScriptVariableDeclaration , ScriptVariableDeclarationEntry , ScriptReturnStatement , ScriptGenericElement ,
  ScriptCallExpression , ScriptFormalParameter , ScriptArray , ScriptObject ,
  ScriptProperty , ScriptType , ScriptElision , ScriptArrayEntry ,
  ScriptPattern , ScriptSwitchStatement , ScriptCaseBlock , ScriptCaseClause ,
  ScriptDefaultClause , ScriptWhileStatement , ScriptDoWhileStatement , ScriptForEachStatement ,
  ScriptTryCatchStatement , ScriptThrowStatement , ScriptLabelledStatement , ScriptBreakStatement ,
  ScriptContinueStatement , ScriptConditionalExpression , ScriptEmptyStatement , ScriptParenthesizedExpression ,
  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  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 , ObjectType = 0x1 , ValueType = 0x2 , Signal = 0x4 ,
  Method = 0x8 , Attribute = 0x10 , Id = 0x20 , Namespace = 0x40 ,
  Global = 0x80 , MethodParameter = 0x100 , Singleton = 0x200 , AttachedType = 0x400
}
 
enum  FileLocationRegion : int {
  AsTokenRegion , BreakKeywordRegion , DoKeywordRegion , CaseKeywordRegion ,
  CatchKeywordRegion , ColonTokenRegion , CommaTokenRegion , ComponentKeywordRegion ,
  ContinueKeywordRegion , DefaultKeywordRegion , EllipsisTokenRegion , ElseKeywordRegion ,
  EnumKeywordRegion , EnumValueRegion , EqualTokenRegion , ForKeywordRegion ,
  FinallyKeywordRegion , FirstSemicolonTokenRegion , FunctionKeywordRegion , IdColonTokenRegion ,
  IdNameRegion , IdTokenRegion , IdentifierRegion , ImportTokenRegion ,
  ImportUriRegion , InOfTokenRegion , LeftBraceRegion , LeftBracketRegion ,
  LeftParenthesisRegion , MainRegion , OperatorTokenRegion , OnTargetRegion ,
  OnTokenRegion , PragmaKeywordRegion , PragmaValuesRegion , PropertyKeywordRegion ,
  QuestionMarkTokenRegion , ReadonlyKeywordRegion , RequiredKeywordRegion , ReturnKeywordRegion ,
  RightBraceRegion , RightBracketRegion , RightParenthesisRegion , SecondSemicolonRegion ,
  SemicolonTokenRegion , SignalKeywordRegion , ThrowKeywordRegion , TryKeywordRegion ,
  TypeIdentifierRegion , VersionRegion , WhileKeywordRegion
}
 
enum  DomCreationOption : char { None = 0 , WithSemanticAnalysis = 1 , WithScriptExpressions = 2 , WithRecovery = 4 }
 
enum  { FatalMsgMaxLen =511 }
 
enum class  EnvLookup { Normal , NoBase , BaseOnly }
 
enum class  Changeable { ReadOnly , Writable }
 

Functions

QStringList resourceFilesFromBuildFolders (const QStringList &buildFolders)
 
QString fileLocationRegionName (FileLocationRegion region)
 
FileLocationRegion fileLocationRegionValue (QStringView region)
 
QCborValue sourceLocationToQCborValue (QQmlJS::SourceLocation loc)
 
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 ScriptElementVariant wrapIntoFieldMemberExpression (const ScriptElementVariant &left, const SourceLocation &dotToken, const ScriptElementVariant &right)
 
static ScriptElementVariant fieldMemberExpressionForQualifiedId (const AST::UiQualifiedId *qualifiedId)
 
static void setFormalParameterKind (ScriptElementVariant &variant)
 
static const DomEnvironmentenvironmentFrom (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 (const 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 (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)
 
QStringList domCompareStrList (const DomItem &i1, const DomItem &i2, function_ref< bool(const DomItem &, const PathEls::PathComponent &, const DomItem &) const > filter, DomCompareStrList stopAtFirstDiff)
 
QStringList domCompareStrList (MutableDomItem &i1, const DomItem &i2, function_ref< bool(const DomItem &, const PathEls::PathComponent &, const DomItem &) const > filter=noFilter, DomCompareStrList stopAtFirstDiff=DomCompareStrList::FirstDiff)
 
QStringList domCompareStrList (const DomItem &i1, MutableDomItem &i2, function_ref< bool(const DomItem &, const PathEls::PathComponent &, const DomItem &) const > filter=noFilter, DomCompareStrList stopAtFirstDiff=DomCompareStrList::FirstDiff)
 
QStringList domCompareStrList (MutableDomItem &i1, MutableDomItem &i2, function_ref< bool(const DomItem &, const PathEls::PathComponent &, const DomItem &) const > filter=noFilter, DomCompareStrList stopAtFirstDiff=DomCompareStrList::FirstDiff)
 
 Q_ENUM_NS (FileLocationRegion)
 
 Q_DECLARE_FLAGS (DomCreationOptions, DomCreationOption)
 
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, const ErrorHandler *h=nullptr)
 
void defaultErrorHandler (const ErrorMessage &error)
 Calls the default error handler (by default errorToQDebug)
 
void setDefaultErrorHandler (const 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 (const QQmlDirParser::Plugin &pl, const 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)
 
bool noFilter (const DomItem &, const PathEls::PathComponent &, const DomItem &)
 
DomKind kind2domKind (DomType k)
 
bool emptyChildrenVisitor (Path, const DomItem &, bool)
 
QMLDOM_EXPORT bool operator== (const DomItem &o1, const DomItem &o2)
 
bool operator!= (const DomItem &o1, const DomItem &o2)
 
template<typename T >
static DomItem keyMultiMapHelper (const DomItem &self, const QString &key, const QMultiMap< QString, T > &mmap)
 
template<typename T >
auto writeOutWrap (const T &t, const DomItem &self, OutWriter &lw, rank< 1 >) -> decltype(t.writeOut(self, lw))
 
template<typename T >
auto writeOutWrap (const T &, const DomItem &, OutWriter &, rank< 0 >) -> void
 
template<typename T >
auto writeOutWrap (const T &t, const 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 (const Path &mapPathFromOwner, QMultiMap< K, T > &mmap, K key, const T &value, AddOption option=AddOption::KeepExisting, T **valuePtr=nullptr)
 
template<typename T >
Path appendUpdatableElementInQList (const Path &listPathFromOwner, QList< T > &list, const T &value, T **vPtr=nullptr)
 
template<typename T , typename K = QString>
void updatePathFromOwnerMultiMap (QMultiMap< K, T > &mmap, const Path &newPath)
 
template<typename T >
void updatePathFromOwnerQList (QList< T > &list, const 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, const QString &base)
 
bool inQString (const QString &el, const 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, const 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 (const Dumper &writer)
 Converts a dumper to a string.
 
void sinkEscaped (const Sink &sink, QStringView s, EscapeOptions options)
 dumps a string as quoted string (escaping things like quotes or newlines)
 
void dumpErrorLevel (const Sink &s, ErrorLevel level)
 Dumps a string describing the given error level (ErrorLevel::Error -> Error,...)
 
void dumperToQDebug (const Dumper &dumper, QDebug debug)
 
void dumperToQDebug (const Dumper &dumper, ErrorLevel level)
 writes the dumper to the QDebug object corrsponding to the given error level
 
void sinkIndent (const Sink &s, int indent)
 sinks the requested amount of spaces
 
void sinkNewline (const Sink &s, int indent)
 sinks a neline and indents by the given amount
 
QDebug operator<< (QDebug d, const Dumper &dumper)
 
template<typename T >
void sinkInt (const Sink &s, T i)
 
void devNull (QStringView)
 
static DomType fileTypeForPath (const DomItem &self, const QString &canonicalFilePath)
 
static ErrorGroups readerParseErrors ()
 

Variables

static QMetaEnum regionEnum = QMetaEnum::fromType<FileLocationRegion>()
 
static ErrorGroups importErrors = { { DomItem::domErrorGroup, NewErrorGroup("importError") } }
 

Typedef Documentation

◆ DirectVisitor

◆ DumperFunction

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

Definition at line 35 of file qqmldomstringdumper_p.h.

◆ ElementT

Definition at line 795 of file qqmldomitem_p.h.

◆ ErrorHandler

using QQmlJS::Dom::ErrorHandler = 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 376 of file qqmldompath_p.h.

◆ function_ref

template<typename T >
using QQmlJS::Dom::function_ref = 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

Initial value:
std::variant<
std::monostate,
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 836 of file qqmldomitem_p.h.

◆ PendingSourceLocationId

Definition at line 107 of file qqmldomlinewriter_p.h.

◆ PendingSourceLocationIdAtomic

◆ Sink

◆ SinkF

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

Definition at line 34 of file qqmldomstringdumper_p.h.

◆ State

◆ StateType

◆ TopT

Initial value:
std::variant<
std::monostate,
std::shared_ptr<DomEnvironment>,
std::shared_ptr<DomUniverse>>

Definition at line 831 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 284 of file qqmldomconstants_p.h.

◆ AstDumperOption

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

Definition at line 267 of file qqmldomconstants_p.h.

◆ BindingType

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

Definition at line 243 of file qqmldomconstants_p.h.

◆ BindingValueKind

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

Definition at line 240 of file qqmldomconstants_p.h.

◆ Changeable

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

Definition at line 699 of file qqmldomtop_p.h.

◆ DomCompareStrList

Enumerator
FirstDiff 
AllDiffs 

Definition at line 33 of file qqmldomcompare_p.h.

◆ DomCreationOption

Enumerator
None 
WithSemanticAnalysis 
WithScriptExpressions 
WithRecovery 

Definition at line 398 of file qqmldomconstants_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 
ScriptPostExpression 
ScriptUnaryExpression 
ScriptBinaryExpression 
ScriptVariableDeclaration 
ScriptVariableDeclarationEntry 
ScriptReturnStatement 
ScriptGenericElement 
ScriptCallExpression 
ScriptFormalParameter 
ScriptArray 
ScriptObject 
ScriptProperty 
ScriptType 
ScriptElision 
ScriptArrayEntry 
ScriptPattern 
ScriptSwitchStatement 
ScriptCaseBlock 
ScriptCaseClause 
ScriptDefaultClause 
ScriptWhileStatement 
ScriptDoWhileStatement 
ScriptForEachStatement 
ScriptTryCatchStatement 
ScriptThrowStatement 
ScriptLabelledStatement 
ScriptBreakStatement 
ScriptContinueStatement 
ScriptConditionalExpression 
ScriptEmptyStatement 
ScriptParenthesizedExpression 
ScriptElementStop 

Definition at line 107 of file qqmldomconstants_p.h.

◆ EnvLookup

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

Definition at line 697 of file qqmldomtop_p.h.

◆ ErrorLevel

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

Definition at line 258 of file qqmldomconstants_p.h.

◆ EscapeOptions

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

Definition at line 252 of file qqmldomconstants_p.h.

◆ FileLocationRegion

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.

See also
{OutWriter::regionToString}, {FileLocations::regionName}
Enumerator
AsTokenRegion 
BreakKeywordRegion 
DoKeywordRegion 
CaseKeywordRegion 
CatchKeywordRegion 
ColonTokenRegion 
CommaTokenRegion 
ComponentKeywordRegion 
ContinueKeywordRegion 
DefaultKeywordRegion 
EllipsisTokenRegion 
ElseKeywordRegion 
EnumKeywordRegion 
EnumValueRegion 
EqualTokenRegion 
ForKeywordRegion 
FinallyKeywordRegion 
FirstSemicolonTokenRegion 
FunctionKeywordRegion 
IdColonTokenRegion 
IdNameRegion 
IdTokenRegion 
IdentifierRegion 
ImportTokenRegion 
ImportUriRegion 
InOfTokenRegion 
LeftBraceRegion 
LeftBracketRegion 
LeftParenthesisRegion 
MainRegion 
OperatorTokenRegion 
OnTargetRegion 
OnTokenRegion 
PragmaKeywordRegion 
PragmaValuesRegion 
PropertyKeywordRegion 
QuestionMarkTokenRegion 
ReadonlyKeywordRegion 
RequiredKeywordRegion 
ReturnKeywordRegion 
RightBraceRegion 
RightBracketRegion 
RightParenthesisRegion 
SecondSemicolonRegion 
SemicolonTokenRegion 
SignalKeywordRegion 
ThrowKeywordRegion 
TryKeywordRegion 
TypeIdentifierRegion 
VersionRegion 
WhileKeywordRegion 

Definition at line 343 of file qqmldomconstants_p.h.

◆ FilterUpOptions

enum class QQmlJS::Dom::FilterUpOptions
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.

◆ GoTo

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

Definition at line 278 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 246 of file qqmldomconstants_p.h.

◆ LocalSymbolsType

enum class QQmlJS::Dom::LocalSymbolsType
strong
Enumerator
None 
ObjectType 
ValueType 
Signal 
Method 
Attribute 
Id 
Namespace 
Global 
MethodParameter 
Singleton 
AttachedType 

Definition at line 313 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 235 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 298 of file qqmldomconstants_p.h.

Function Documentation

◆ appendUpdatableElementInQList()

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

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

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

+ Here is the caller graph for this function:

◆ combineLocations() [1/2]

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

Definition at line 117 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 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().

+ 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 513 of file qqmldomerrormessage.cpp.

References error, and errorHandlerHandler().

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

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

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

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

◆ domCompareStrList() [2/4]

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

Definition at line 49 of file qqmldomcompare_p.h.

References domCompareStrList().

+ Here is the call graph for this function:

◆ domCompareStrList() [3/4]

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

Definition at line 40 of file qqmldomcompare_p.h.

References domCompareStrList().

+ Here is the call graph for this function:

◆ domCompareStrList() [4/4]

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

Definition at line 58 of file qqmldomcompare_p.h.

References domCompareStrList().

+ 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 84 of file qqmldomelements.cpp.

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

◆ domTypeCanBeInline()

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

Definition at line 70 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 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().

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

+ 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 2044 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 2032 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 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().

+ 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 ( const 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 ( const 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 ( const 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 ( const 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 ,
const DomItem & ,
bool  )
inline

Definition at line 855 of file qqmldomitem_p.h.

Referenced by findUsagesHelper(), and findUsagesOfNonJSIdentifiers().

+ Here is the caller graph for this function:

◆ environmentFrom()

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

Definition at line 2890 of file qqmldomastcreator.cpp.

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

Referenced by 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,
const ErrorHandler * h = nullptr )

Definition at line 499 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 486 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:

◆ fieldMemberExpressionForQualifiedId()

static ScriptElementVariant QQmlJS::Dom::fieldMemberExpressionForQualifiedId ( const AST::UiQualifiedId * qualifiedId)
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().

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

◆ fileLocationRegionName()

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

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

◆ fileLocationRegionValue()

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

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

◆ fileTypeForPath()

static DomType QQmlJS::Dom::fileTypeForPath ( const DomItem & self,
const QString & canonicalFilePath )
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().

+ Here is the call graph for this function:

◆ formatCodeLine()

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

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

◆ indentForLineStartingWithToken()

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

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

◆ inQString() [1/2]

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

Definition at line 292 of file qqmldompath.cpp.

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

+ Here is the call graph for this function:

◆ inQString() [2/2]

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

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

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

◆ keyMultiMapHelper()

template<typename T >
static DomItem QQmlJS::Dom::keyMultiMapHelper ( const DomItem & self,
const QString & key,
const QMultiMap< QString, T > & mmap )
static

Definition at line 1348 of file qqmldomitem_p.h.

References QSet< T >::find(), it, and Reverse.

Referenced by QQmlJS::Dom::Map::fromMultiMapRef().

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

+ 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:

◆ matchHelper()

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

Definition at line 142 of file qqmldomlinewriter.cpp.

References args.

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

+ Here is the caller graph for this function:

◆ myErrors()

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

Definition at line 293 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 24 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 17 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 ( const DomItem & ,
const PathEls::PathComponent & ,
const 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 1342 of file qqmldomitem_p.h.

◆ operator!=() [2/6]

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

Definition at line 95 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 189 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 698 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 210 of file qqmldomelements_p.h.

◆ operator<() [1/4]

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

Definition at line 96 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 195 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 702 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 214 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,
const 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 758 of file qqmldompath_p.h.

References debug.

◆ operator<=() [1/4]

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

Definition at line 98 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 199 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 710 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 218 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 94 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 192 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 694 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 206 of file qqmldomelements_p.h.

◆ operator>() [1/4]

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

Definition at line 97 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 203 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 706 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 222 of file qqmldomelements_p.h.

◆ operator>=() [1/4]

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

Definition at line 99 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 207 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 714 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 226 of file qqmldomelements_p.h.

◆ pluginData()

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

Definition at line 233 of file qqmldomexternalitems.cpp.

References QCborArray::append(), and QCborValue().

+ Here is the call graph for this function:

◆ 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_ENUM_NS()

QQmlJS::Dom::Q_ENUM_NS ( FileLocationRegion )

◆ 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 735 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 2903 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,
const std::shared_ptr< AstComments > & comments,
const std::function< QStringView(SourceLocation)> & loc2Str,
AST::Node * n )

Definition at line 1126 of file qqmldomreformatter.cpp.

◆ registry()

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

Definition at line 315 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 286 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:

◆ resourceFilesFromBuildFolders()

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

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

◆ setDefaultErrorHandler()

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.

+ Here is the call graph for this function:

◆ setFormalParameterKind()

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

Definition at line 747 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 495 of file qqmldomerrormessage.cpp.

◆ sinkEscaped()

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)

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 ( const Sink & s,
int indent )

sinks the requested amount of spaces

Definition at line 160 of file qqmldomstringdumper.cpp.

Referenced by sinkNewline().

+ Here is the caller graph for this function:

◆ sinkInt()

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

Definition at line 72 of file qqmldomstringdumper_p.h.

References BUFSIZE, and i.

Referenced by QQmlJS::Dom::ErrorMessage::dump(), QQmlJS::Dom::Token::dump(), and QQmlJS::Dom::ErrorGroups::fatal().

+ Here is the caller graph for this function:

◆ sinkNewline()

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

+ Here is the call graph for this function:

◆ sourceLocationToQCborValue()

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

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

◆ toString()

static QString QQmlJS::Dom::toString ( const UiQualifiedId * qualifiedId,
QChar delimiter = QLatin1Char('.') )
static

◆ typeToString()

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

Definition at line 101 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:

◆ updatePathFromOwnerMultiMap()

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

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

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

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

◆ wrapIntoFieldMemberExpression()

static ScriptElementVariant QQmlJS::Dom::wrapIntoFieldMemberExpression ( const ScriptElementVariant & left,
const SourceLocation & dotToken,
const ScriptElementVariant & right )
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().

+ 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 & ,
const DomItem & ,
OutWriter & ,
rank< 0 >  ) -> void

Definition at line 1607 of file qqmldomitem_p.h.

References qCWarning.

◆ writeOutWrap() [2/3]

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

Definition at line 1613 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,
const DomItem & self,
OutWriter & lw,
rank< 1 >  ) -> decltype(t.writeOut(self, lw))

Definition at line 1600 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

◆ regionEnum

QMetaEnum QQmlJS::Dom::regionEnum = QMetaEnum::fromType<FileLocationRegion>()
static

Definition at line 37 of file qqmldom_utils.cpp.

Referenced by fileLocationRegionName(), and fileLocationRegionValue().