Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlJSLinterCodegen Class Reference

#include <qqmljslintercodegen_p.h>

Inheritance diagram for QQmlJSLinterCodegen:
Collaboration diagram for QQmlJSLinterCodegen:

Public Member Functions

 QQmlJSLinterCodegen (QQmlJSImporter *importer, const QString &fileName, const QStringList &qmldirFiles, QQmlJSLogger *logger, const ContextPropertyInfo &contextPropertyInfo)
void setDocument (const QmlIR::JSCodeGen *codegen, const QmlIR::Document *document) override
std::variant< QQmlJSAotFunction, QList< QQmlJS::DiagnosticMessage > > compileBinding (const QV4::Compiler::Context *context, const QmlIR::Binding &irBinding, QQmlJS::AST::Node *astNode) override
std::variant< QQmlJSAotFunction, QList< QQmlJS::DiagnosticMessage > > compileFunction (const QV4::Compiler::Context *context, const QString &name, QQmlJS::AST::Node *astNode) override
void setTypeResolver (QQmlJSTypeResolver typeResolver)
QQmlJSTypeResolvertypeResolver ()
void setPassManager (QQmlSA::PassManager *passManager)
QQmlSA::PassManagerpassManager ()
Public Member Functions inherited from QQmlJSAotCompiler
 QQmlJSAotCompiler (QQmlJSImporter *importer, const QString &resourcePath, const QStringList &qmldirFiles, QQmlJSLogger *logger)
virtual ~QQmlJSAotCompiler ()=default
virtual void setScope (const QmlIR::Object *object, const QmlIR::Object *scope)
virtual QQmlJSAotFunction globalCode () const

Additional Inherited Members

Public Types inherited from QQmlJSAotCompiler
enum  Flag { NoFlags = 0x0 , ValidateBasicBlocks = 0x1 }
Public Attributes inherited from QQmlJSAotCompiler
Flags m_flags
Protected Member Functions inherited from QQmlJSAotCompiler
std::optional< QList< QQmlJS::DiagnosticMessage > > finalizeBindingOrFunction ()
virtual QQmlJS::DiagnosticMessage diagnose (const QString &message, QtMsgType type, const QQmlJS::SourceLocation &location) const
Protected Attributes inherited from QQmlJSAotCompiler
QQmlJSTypeResolver m_typeResolver
const QString m_resourcePath
const QStringList m_qmldirFiles
const QmlIR::Documentm_document = nullptr
const QmlIR::Objectm_currentObject = nullptr
const QmlIR::Objectm_currentScope = nullptr
const QV4::Compiler::JSUnitGeneratorm_unitGenerator = nullptr
QQmlJSImporterm_importer = nullptr
QQmlJSLoggerm_logger = nullptr

Detailed Description

Definition at line 41 of file qqmljslintercodegen_p.h.

Constructor & Destructor Documentation

◆ QQmlJSLinterCodegen()

QQmlJSLinterCodegen::QQmlJSLinterCodegen ( QQmlJSImporter * importer,
const QString & fileName,
const QStringList & qmldirFiles,
QQmlJSLogger * logger,
const ContextPropertyInfo & contextPropertyInfo )

Definition at line 20 of file qqmljslintercodegen.cpp.

References QQmlJSLinterCodegen().

Referenced by QQmlJSLinterCodegen().

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

Member Function Documentation

◆ compileBinding()

std::variant< QQmlJSAotFunction, QList< QQmlJS::DiagnosticMessage > > QQmlJSLinterCodegen::compileBinding ( const QV4::Compiler::Context * context,
const QmlIR::Binding & irBinding,
QQmlJS::AST::Node * astNode )
overridevirtual

Reimplemented from QQmlJSAotCompiler.

Definition at line 37 of file qqmljslintercodegen.cpp.

◆ compileFunction()

std::variant< QQmlJSAotFunction, QList< QQmlJS::DiagnosticMessage > > QQmlJSLinterCodegen::compileFunction ( const QV4::Compiler::Context * context,
const QString & name,
QQmlJS::AST::Node * astNode )
overridevirtual

Reimplemented from QQmlJSAotCompiler.

Definition at line 63 of file qqmljslintercodegen.cpp.

◆ passManager()

QQmlSA::PassManager * QQmlJSLinterCodegen::passManager ( )
inline

Definition at line 65 of file qqmljslintercodegen_p.h.

◆ setDocument()

void QQmlJSLinterCodegen::setDocument ( const QmlIR::JSCodeGen * codegen,
const QmlIR::Document * document )
overridevirtual

Reimplemented from QQmlJSAotCompiler.

Definition at line 28 of file qqmljslintercodegen.cpp.

◆ setPassManager()

void QQmlJSLinterCodegen::setPassManager ( QQmlSA::PassManager * passManager)

Definition at line 86 of file qqmljslintercodegen.cpp.

◆ setTypeResolver()

void QQmlJSLinterCodegen::setTypeResolver ( QQmlJSTypeResolver typeResolver)
inline

Definition at line 56 of file qqmljslintercodegen_p.h.

◆ typeResolver()

QQmlJSTypeResolver * QQmlJSLinterCodegen::typeResolver ( )
inline

Definition at line 61 of file qqmljslintercodegen_p.h.


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