![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmljslogger_p.h>
Static Public Member Functions | |
| static const QList< QQmlJS::LoggerCategory > & | builtinCategories () |
Definition at line 138 of file qqmljslogger_p.h.
| QQmlJSLogger::QQmlJSLogger | ( | ) |
Definition at line 227 of file qqmljslogger.cpp.
|
default |
|
static |
Definition at line 241 of file qqmljslogger.cpp.
| QList< QQmlJS::LoggerCategory > QQmlJSLogger::categories | ( | ) | const |
Definition at line 265 of file qqmljslogger.cpp.
|
inline |
Definition at line 173 of file qqmljslogger_p.h.
|
inline |
Definition at line 296 of file qqmljslogger_p.h.
| void QQmlJSLogger::commit | ( | ) |
Commit the current transaction. Print all pending messages, and add them to the list of committed messages. Then, clear the transaction flag.
Definition at line 405 of file qqmljslogger.cpp.
|
inline |
Definition at line 191 of file qqmljslogger_p.h.
|
inline |
Definition at line 188 of file qqmljslogger_p.h.
|
inline |
Definition at line 194 of file qqmljslogger_p.h.
|
inline |
Definition at line 316 of file qqmljslogger_p.h.
|
inline |
Definition at line 326 of file qqmljslogger_p.h.
|
inline |
Definition at line 301 of file qqmljslogger_p.h.
Referenced by currentFunctionHasErrorOrSkip().
|
inline |
Definition at line 311 of file qqmljslogger_p.h.
References currentFunctionHasCompileError(), and currentFunctionWasSkipped().
|
inline |
Definition at line 306 of file qqmljslogger_p.h.
Referenced by currentFunctionHasErrorOrSkip().
|
inline |
Definition at line 299 of file qqmljslogger_p.h.
| void QQmlJSLogger::finalizeFunction | ( | ) |
Definition at line 375 of file qqmljslogger.cpp.
|
inline |
Definition at line 151 of file qqmljslogger_p.h.
|
inline |
Definition at line 280 of file qqmljslogger_p.h.
|
inline |
Definition at line 150 of file qqmljslogger_p.h.
Definition at line 271 of file qqmljslogger_p.h.
|
inline |
Definition at line 293 of file qqmljslogger_p.h.
|
inline |
Definition at line 277 of file qqmljslogger_p.h.
Definition at line 164 of file qqmljslogger_p.h.
Definition at line 157 of file qqmljslogger_p.h.
|
inline |
Logs message with severity deduced from category. Prefer using this function in most cases.
Definition at line 204 of file qqmljslogger_p.h.
|
inline |
Definition at line 226 of file qqmljslogger_p.h.
|
inline |
Definition at line 249 of file qqmljslogger_p.h.
|
inline |
Definition at line 281 of file qqmljslogger_p.h.
|
inline |
Definition at line 154 of file qqmljslogger_p.h.
|
inline |
Definition at line 153 of file qqmljslogger_p.h.
| void QQmlJSLogger::processMessages | ( | QSpan< const QQmlJS::DiagnosticMessage > | messages, |
| const QQmlJS::LoggerWarningId | id, | ||
| const QQmlJS::SourceLocation & | sourceLocation = QQmlJS::SourceLocation{} ) |
Definition at line 358 of file qqmljslogger.cpp.
| void QQmlJSLogger::registerCategory | ( | const QQmlJS::LoggerCategory & | category | ) |
Definition at line 270 of file qqmljslogger.cpp.
| void QQmlJSLogger::rollback | ( | ) |
Roll back the current transaction and revert the logger to the state before it was started.
Definition at line 423 of file qqmljslogger.cpp.
|
inline |
Definition at line 177 of file qqmljslogger_p.h.
Definition at line 295 of file qqmljslogger_p.h.
Definition at line 192 of file qqmljslogger_p.h.
|
inline |
Definition at line 189 of file qqmljslogger_p.h.
Definition at line 195 of file qqmljslogger_p.h.
Definition at line 298 of file qqmljslogger_p.h.
|
inline |
The logger is disabled when warnings are not relevant, for example when the import visitor runs on a dependency of a linted file. In that case, the warnings should not be created, and expensive QQmlJSUtils::didYouMean call can be saved.
setSilent() has a different behavior: a silent logger can still be used to process messages as JSON, for example, while a disabled logger won't contain any message.
Definition at line 292 of file qqmljslogger_p.h.
|
inline |
Definition at line 279 of file qqmljslogger_p.h.
|
inline |
Definition at line 276 of file qqmljslogger_p.h.
| void QQmlJSLogger::startTransaction | ( | ) |
Starts a transaction for a compile pass. This buffers all messages until the transaction completes. If you commit the transaction, the messages are printed and added to the list of committed messages. If you roll it back, the logger reverts to the state before the start of the transaction.
This is useful for compile passes that potentially have to be repeated, such as the type propagator. We don't want to see the same messages logged multiple times.
Definition at line 393 of file qqmljslogger.cpp.
|
inline |
Definition at line 183 of file qqmljslogger_p.h.