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

Represents a set of tags grouping a set of related error messages. More...

#include <qqmldomerrormessage_p.h>

+ Collaboration diagram for QQmlJS::Dom::ErrorGroups:

Public Member Functions

void dump (Sink sink) const
 
void dumpId (Sink sink) const
 
QCborArray toCbor () const
 
ErrorMessage errorMessage (Dumper msg, ErrorLevel level, Path element=Path(), QString canonicalFilePath=QString(), SourceLocation location=SourceLocation()) const
 
ErrorMessage errorMessage (const DiagnosticMessage &msg, Path element=Path(), QString canonicalFilePath=QString()) const
 
void fatal (Dumper msg, Path element=Path(), QStringView canonicalFilePath=u"", SourceLocation location=SourceLocation()) const
 
ErrorMessage debug (QString message) const
 
ErrorMessage debug (Dumper message) const
 
ErrorMessage info (QString message) const
 
ErrorMessage info (Dumper message) const
 
ErrorMessage warning (QString message) const
 
ErrorMessage warning (Dumper message) const
 
ErrorMessage error (QString message) const
 
ErrorMessage error (Dumper message) const
 

Static Public Member Functions

static int cmp (const ErrorGroups &g1, const ErrorGroups &g2)
 

Public Attributes

QVector< ErrorGroupgroups
 

Detailed Description

Represents a set of tags grouping a set of related error messages.

The simplest way to create new ErrorMessages is to have an ErrorGroups instance, and use it to create new ErrorMessages using its debug, warning, error,... methods

Definition at line 63 of file qqmldomerrormessage_p.h.

Member Function Documentation

◆ cmp()

int QQmlJS::Dom::ErrorGroups::cmp ( const ErrorGroups g1,
const ErrorGroups g2 
)
static

Definition at line 235 of file qqmldomerrormessage.cpp.

References groups, and i.

Referenced by QQmlJS::Dom::operator!=(), QQmlJS::Dom::operator<(), QQmlJS::Dom::operator<=(), QQmlJS::Dom::operator==(), QQmlJS::Dom::operator>(), and QQmlJS::Dom::operator>=().

+ Here is the caller graph for this function:

◆ debug() [1/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::debug ( Dumper  message) const

Definition at line 200 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::Debug, and QQmlJS::Dom::dumperToString().

+ Here is the call graph for this function:

◆ debug() [2/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::debug ( QString  message) const

Definition at line 195 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::Debug.

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

+ Here is the caller graph for this function:

◆ dump()

void QQmlJS::Dom::ErrorGroups::dump ( Sink  sink) const

Definition at line 73 of file qqmldomerrormessage.cpp.

References i.

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

+ Here is the caller graph for this function:

◆ dumpId()

void QQmlJS::Dom::ErrorGroups::dumpId ( Sink  sink) const

Definition at line 79 of file qqmldomerrormessage.cpp.

References i.

◆ error() [1/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::error ( Dumper  message) const

Definition at line 230 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::dumperToString(), and QQmlJS::Dom::Error.

+ Here is the call graph for this function:

◆ error() [2/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::error ( QString  message) const

◆ errorMessage() [1/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::errorMessage ( const DiagnosticMessage msg,
Path  element = Path(),
QString  canonicalFilePath = QString() 
) const

Definition at line 148 of file qqmldomerrormessage.cpp.

◆ errorMessage() [2/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::errorMessage ( Dumper  msg,
ErrorLevel  level,
Path  element = Path(),
QString  canonicalFilePath = QString(),
SourceLocation  location = SourceLocation() 
) const

Definition at line 141 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::dumperToString(), QQmlJS::Dom::Fatal, and fatal().

Referenced by QQmlJS::Dom::QmlFile::QmlFile().

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

◆ fatal()

void QQmlJS::Dom::ErrorGroups::fatal ( Dumper  msg,
Path  element = Path(),
QStringView  canonicalFilePath = u"",
SourceLocation  location = SourceLocation() 
) const

Definition at line 159 of file qqmldomerrormessage.cpp.

References dump(), QQmlJS::Dom::Path::dump(), QQmlJS::Dom::FatalMsgMaxLen, QChar::fromLatin1(), QStringView::isEmpty(), QQmlJS::Dom::Path::length(), qFatal, QQmlJS::Dom::sinkInt(), and QChar::toLatin1().

Referenced by QQmlJS::Dom::ErrorMessage::ErrorMessage(), QQmlJS::Dom::ErrorMessage::ErrorMessage(), and errorMessage().

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

◆ info() [1/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::info ( Dumper  message) const

Definition at line 210 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::dumperToString(), and QQmlJS::Dom::Info.

+ Here is the call graph for this function:

◆ info() [2/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::info ( QString  message) const

Definition at line 205 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::Info.

Referenced by QQmlJS::Dom::Path::fromString().

+ Here is the caller graph for this function:

◆ toCbor()

QCborArray QQmlJS::Dom::ErrorGroups::toCbor ( ) const

Definition at line 85 of file qqmldomerrormessage.cpp.

References i.

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

+ Here is the caller graph for this function:

◆ warning() [1/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::warning ( Dumper  message) const

Definition at line 220 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::dumperToString(), and QQmlJS::Dom::Warning.

+ Here is the call graph for this function:

◆ warning() [2/2]

ErrorMessage QQmlJS::Dom::ErrorGroups::warning ( QString  message) const

Definition at line 215 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::Warning.

Referenced by QQmlJS::Dom::LoadInfo::doCopy(), QQmlJS::Dom::Path::fromString(), QQmlJS::Dom::ImportScope::importedExportsWithName(), and QQmlJS::Dom::ImportScope::importedItemsWithName().

+ Here is the caller graph for this function:

Member Data Documentation

◆ groups

QVector<ErrorGroup> QQmlJS::Dom::ErrorGroups::groups

Definition at line 86 of file qqmldomerrormessage_p.h.

Referenced by cmp().


The documentation for this class was generated from the following files: