![]() |
Qt 6.x
The Qt SDK
|
#include <qqmljslogger_p.h>
Static Public Member Functions | |
static const QList< QQmlJS::LoggerCategory > & | defaultCategories () |
Friends | |
class | QQmlJSAotCompiler |
Definition at line 114 of file qqmljslogger_p.h.
QQmlJSLogger::QQmlJSLogger | ( | ) |
Definition at line 63 of file qqmljslogger.cpp.
References QColorOutput::BlueForeground, category(), defaultCategories(), QColorOutput::GreenForeground, QColorOutput::insertMapping(), QColorOutput::PurpleForeground, QtCriticalMsg, QtDebugMsg, QtInfoMsg, QtWarningMsg, QColorOutput::RedForeground, and registerCategory().
|
default |
QList< QQmlJS::LoggerCategory > QQmlJSLogger::categories | ( | ) | const |
Definition at line 206 of file qqmljslogger.cpp.
References QMap< Key, T >::values().
|
inline |
Definition at line 133 of file qqmljslogger_p.h.
|
inline |
Definition at line 196 of file qqmljslogger_p.h.
Referenced by QQmlSA::GenericPass::sourceCode(), and QQmlJSImportVisitor::visit().
|
static |
Definition at line 77 of file qqmljslogger.cpp.
References QQmlJS::LoggerWarningId::name(), qmlAccessSingleton, qmlAliasCycle, qmlAttachedPropertyReuse, qmlCompiler, qmlDeferredPropertyId, qmlDeprecated, qmlDuplicatedName, qmlDuplicatePropertyBinding, qmlImport, qmlIncompatibleType, qmlInheritanceCycle, qmlInvalidLintDirective, qmlMissingProperty, qmlMissingType, qmlMultilineStrings, qmlNonListProperty, qmlPlugin, qmlPrefixedImportType, qmlReadOnlyProperty, qmlRecursionDepthErrors, qmlRequired, qmlRestrictedType, qmlSignalParameters, qmlSyntax, qmlSyntaxDuplicateIds, qmlSyntaxIdQuotation, qmlTopLevelComponent, qmlUncreatableType, qmlUnqualified, qmlUnresolvedAlias, qmlUnresolvedType, qmlUnusedImports, qmlUseProperFunction, qmlVarUsedBeforeDeclaration, qmlWith, QStringLiteral, QtCriticalMsg, QtInfoMsg, QtWarningMsg, and QAnyStringView::toString().
Referenced by QQmlJSLogger().
Definition at line 131 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::applyFixes().
|
inline |
Definition at line 199 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::applyFixes(), and QQmlJSLinter::lintFile().
|
inline |
Definition at line 127 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::lintFile(), and QQmlJSLinter::lintModule().
|
inline |
Definition at line 126 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::lintFile(), and QQmlJSLinter::lintModule().
Definition at line 187 of file qqmljslogger_p.h.
References line.
Definition at line 129 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::applyFixes().
|
inline |
Definition at line 153 of file qqmljslogger_p.h.
Referenced by QQmlJSAotCompiler::diagnose().
|
inline |
Definition at line 143 of file qqmljslogger_p.h.
Referenced by QQmlSA::PassManager::isCategoryEnabled(), and processMessages().
|
inline |
Definition at line 193 of file qqmljslogger_p.h.
|
inline |
Logs message with severity deduced from category. Prefer using this function in most cases.
Definition at line 175 of file qqmljslogger_p.h.
Referenced by QQmlJSImportVisitor::breakInheritanceCycles(), QQmlJSImportVisitor::checkDeprecation(), QQmlJSTypePropagator::checkForEnumProblems(), QQmlJSImportVisitor::checkGroupedAndAttachedScopes(), QQmlJSImportVisitor::checkRequiredProperties(), QQmlJSAotCompiler::diagnose(), QQmlSA::GenericPass::emitWarning(), QQmlSA::GenericPass::emitWarning(), QQmlJSImportVisitor::endVisit(), QQmlJSImportVisitor::endVisit(), QQmlJSImportVisitor::endVisit(), QQmlJSImportVisitor::endVisit(), QQmlJSTypePropagator::generate_CallProperty(), QQmlJSTypePropagator::generate_Ret(), QQmlJSTypePropagator::generate_StoreNameCommon(), QQmlJSTypePropagator::generate_StoreProperty(), QQmlJSTypeResolver::genericType(), QQmlJSImportVisitor::isTypeResolved(), QQmlJSLinter::lintFile(), QQmlJSLinter::lintModule(), QQmlJSTypeResolver::memberType(), QQmlJSTypeResolver::memberType(), QQmlJSImportVisitor::processDefaultProperties(), processMessages(), QQmlJSImportVisitor::processPropertyBindingObjects(), QQmlJSImportVisitor::processPropertyBindings(), QQmlJSImportVisitor::processPropertyTypes(), QQmlJSTypeResolver::registerContentForName(), CodegenWarningInterface::reportVarUsedBeforeDeclaration(), QQmlJSLiteralBindingCheck::run(), QQmlJSImportVisitor::setAllBindings(), QQmlJSImportVisitor::throwRecursionDepthError(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), and QQmlJSImportVisitor::visit().
void QQmlJSLogger::processMessages | ( | const QList< QQmlJS::DiagnosticMessage > & | messages, |
const QQmlJS::LoggerWarningId | id | ||
) |
Definition at line 290 of file qqmljslogger.cpp.
References isCategoryIgnored(), QList< T >::isEmpty(), log(), QStringLiteral, and QColorOutput::write().
Referenced by QQmlJSLinter::lintFile(), and QQmlJSLinter::lintModule().
void QQmlJSLogger::registerCategory | ( | const QQmlJS::LoggerCategory & | category | ) |
Definition at line 211 of file qqmljslogger.cpp.
References category(), QMap< Key, T >::contains(), QMap< Key, T >::insert(), and qWarning.
Referenced by QQmlJSLogger(), and QQmlJSLinter::lintFile().
|
inline |
Definition at line 157 of file qqmljslogger_p.h.
References error.
|
inline |
Definition at line 147 of file qqmljslogger_p.h.
References error.
Referenced by QQmlJSLinter::lintFile(), and QQmlJSImportVisitor::visit().
|
inline |
Definition at line 137 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::lintFile(), and QQmlJSImportVisitor::visit().
Definition at line 195 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::lintFile(), QQmlJSLinter::lintModule(), QQmlJSTypeReader::operator()(), and QQmlJSAotCompiler::setDocument().
Definition at line 198 of file qqmljslogger_p.h.
References fileName.
Referenced by QQmlJS::Dom::createDom(), QQmlJSLinter::lintFile(), QQmlJSLinter::lintModule(), QQmlJSTypeReader::operator()(), and QQmlJSAotCompiler::setDocument().
|
inline |
Definition at line 192 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::lintFile(), QQmlJSLinter::lintModule(), and QQmlJSTypeReader::operator()().
Definition at line 130 of file qqmljslogger_p.h.
Referenced by QQmlJSLinter::applyFixes().
|
inline |
Definition at line 163 of file qqmljslogger_p.h.
Referenced by QQmlJSImportVisitor::visit().
|
friend |
Definition at line 232 of file qqmljslogger_p.h.