5#ifndef QQMLJSLINTERCODEGEN_P_H
6#define QQMLJSLINTERCODEGEN_P_H
23#include <private/qqmljsdiagnosticmessage_p.h>
24#include <private/qqmlirbuilder_p.h>
25#include <private/qqmljsscope_p.h>
26#include <private/qqmljscompiler_p.h>
28#include <QtQmlCompiler/private/qqmljstyperesolver_p.h>
29#include <QtQmlCompiler/private/qqmljstypepropagator_p.h>
30#include <QtQmlCompiler/private/qqmljslintertypepropagator_p.h>
31#include <QtQmlCompiler/private/qqmljslogger_p.h>
32#include <QtQmlCompiler/private/qqmljscompilepass_p.h>
33#include <QtQmlCompiler/private/qqmljscontextproperties_p.h>
34#include <QtQmlCompiler/private/qqmljsusercontextproperties_p.h>
46 const QStringList &qmldirFiles, QQmlJSLogger *logger,
47 const ContextPropertyInfo &contextPropertyInfo);
49 void setDocument(
const QmlIR::JSCodeGen *codegen,
const QmlIR::Document *document)
override;
59 m_typeResolver = std::move(typeResolver);
69 QQmlSA::PassManager *m_passManager =
nullptr;
71 void analyzeFunction(
const QV4::Compiler::Context *context,
72 QQmlJSCompilePass::Function *function);
73 ContextPropertyInfo m_contextPropertyInfo;
void reportVarUsedBeforeDeclaration(const QString &name, const QString &fileName, QQmlJS::SourceLocation declarationLocation, QQmlJS::SourceLocation accessLocation) override
void reportFunctionUsedBeforeDeclaration(const QString &name, const QString &fileName, QQmlJS::SourceLocation declarationLocation, QQmlJS::SourceLocation accessLocation) override
UnreachableVisitor * unreachableVisitor() override
CodegenWarningInterface(QQmlJSLogger *logger)
bool visit(QQmlJS::AST::FunctionDeclaration *functionDeclaration) override
void throwRecursionDepthError() override
void setTypeResolver(QQmlJSTypeResolver typeResolver)
QQmlSA::PassManager * passManager()
QQmlJSLinterCodegen(QQmlJSImporter *importer, const QString &fileName, const QStringList &qmldirFiles, QQmlJSLogger *logger, const ContextPropertyInfo &contextPropertyInfo)
QQmlJSTypeResolver * typeResolver()
void setDocument(const QmlIR::JSCodeGen *codegen, const QmlIR::Document *document) override
void setPassManager(QQmlSA::PassManager *passManager)
UnreachableVisitor(QQmlJSLogger *logger)
void throwRecursionDepthError() override
bool containsFunctionDeclaration(QQmlJS::AST::Node *node)
bool visit(QQmlJS::AST::StatementList *unreachable) override
Combined button and popup list for selecting options.
static void addJsonWarning(QJsonArray &warnings, const QQmlJS::DiagnosticMessage &message, QAnyStringView id, const std::optional< QQmlJSFixSuggestion > &suggestion={})
#define QmlLintPluginInterface_iid