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::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 (const Sink &sink) const
 
void dumpId (const Sink &sink) const
 
QCborArray toCbor () const
 
ErrorMessage errorMessage (const Dumper &msg, ErrorLevel level, const Path &element=Path(), const QString &canonicalFilePath=QString(), SourceLocation location=SourceLocation()) const
 
ErrorMessage errorMessage (const DiagnosticMessage &msg, const Path &element=Path(), const QString &canonicalFilePath=QString()) const
 
void fatal (const Dumper &msg, const Path &element=Path(), QStringView canonicalFilePath=u"", SourceLocation location=SourceLocation()) const
 
ErrorMessage debug (const QString &message) const
 
ErrorMessage debug (const Dumper &message) const
 
ErrorMessage info (const QString &message) const
 
ErrorMessage info (const Dumper &message) const
 
ErrorMessage warning (const QString &message) const
 
ErrorMessage warning (const Dumper &message) const
 
ErrorMessage error (const QString &message) const
 
ErrorMessage error (const 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 239 of file qqmldomerrormessage.cpp.

References 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 ( const Dumper & message) const

Definition at line 204 of file qqmldomerrormessage.cpp.

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

+ Here is the call graph for this function:

◆ debug() [2/2]

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

Definition at line 199 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::Debug, and QQmlJS::Dom::ErrorMessage.

◆ dump()

void QQmlJS::Dom::ErrorGroups::dump ( const 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 ( const Sink & sink) const

Definition at line 79 of file qqmldomerrormessage.cpp.

References i.

◆ error() [1/2]

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

Definition at line 234 of file qqmldomerrormessage.cpp.

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

+ Here is the call graph for this function:

◆ error() [2/2]

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

Definition at line 229 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::Error, and QQmlJS::Dom::ErrorMessage.

◆ errorMessage() [1/2]

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

Definition at line 150 of file qqmldomerrormessage.cpp.

◆ errorMessage() [2/2]

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

Definition at line 141 of file qqmldomerrormessage.cpp.

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

+ Here is the call graph for this function:

◆ fatal()

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

Definition at line 161 of file qqmldomerrormessage.cpp.

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

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 ( const Dumper & message) const

Definition at line 214 of file qqmldomerrormessage.cpp.

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

+ Here is the call graph for this function:

◆ info() [2/2]

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

Definition at line 209 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::ErrorMessage, and QQmlJS::Dom::Info.

◆ toCbor()

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

Definition at line 85 of file qqmldomerrormessage.cpp.

References QCborArray::append(), and i.

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

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

◆ warning() [1/2]

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

Definition at line 224 of file qqmldomerrormessage.cpp.

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

+ Here is the call graph for this function:

◆ warning() [2/2]

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

Definition at line 219 of file qqmldomerrormessage.cpp.

References QQmlJS::Dom::ErrorMessage, and QQmlJS::Dom::Warning.

Member Data Documentation

◆ groups

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

Definition at line 91 of file qqmldomerrormessage_p.h.


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