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
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)
 
void setDocument (const QmlIR::JSCodeGen *codegen, const QmlIR::Document *document) override
 
std::variant< QQmlJSAotFunction, QQmlJS::DiagnosticMessagecompileBinding (const QV4::Compiler::Context *context, const QmlIR::Binding &irBinding, QQmlJS::AST::Node *astNode) override
 
std::variant< QQmlJSAotFunction, QQmlJS::DiagnosticMessagecompileFunction (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
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 38 of file qqmljslintercodegen_p.h.

Constructor & Destructor Documentation

◆ QQmlJSLinterCodegen()

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

Definition at line 18 of file qqmljslintercodegen.cpp.

Member Function Documentation

◆ compileBinding()

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

Reimplemented from QQmlJSAotCompiler.

Definition at line 33 of file qqmljslintercodegen.cpp.

References context, QQmlJSAotCompiler::diagnose(), QmlIR::Object::location, QQmlJSAotCompiler::m_currentObject, QQmlJSAotCompiler::m_currentScope, QQmlJSAotCompiler::m_document, QQmlJSAotCompiler::m_typeResolver, QtDebugMsg, QtWarningMsg, QQmlJSFunctionInitializer::run(), and QmlIR::Document::stringAt().

+ Here is the call graph for this function:

◆ compileFunction()

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

Reimplemented from QQmlJSAotCompiler.

Definition at line 61 of file qqmljslintercodegen.cpp.

References context, QQmlJSAotCompiler::diagnose(), QmlIR::Object::location, QQmlJSAotCompiler::m_currentObject, QQmlJSAotCompiler::m_currentScope, QQmlJSAotCompiler::m_typeResolver, QtWarningMsg, and QQmlJSFunctionInitializer::run().

+ Here is the call graph for this function:

◆ passManager()

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

Definition at line 61 of file qqmljslintercodegen_p.h.

Referenced by setPassManager().

+ Here is the caller graph for this function:

◆ setDocument()

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

◆ setPassManager()

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

Definition at line 59 of file qqmljslintercodegen_p.h.

References passManager().

+ Here is the call graph for this function:

◆ setTypeResolver()

void QQmlJSLinterCodegen::setTypeResolver ( QQmlJSTypeResolver typeResolver)
inline

Definition at line 52 of file qqmljslintercodegen_p.h.

References QQmlJSAotCompiler::m_typeResolver, and typeResolver().

+ Here is the call graph for this function:

◆ typeResolver()

QQmlJSTypeResolver * QQmlJSLinterCodegen::typeResolver ( )
inline

Definition at line 57 of file qqmljslintercodegen_p.h.

References QQmlJSAotCompiler::m_typeResolver.

Referenced by setTypeResolver().

+ Here is the caller graph for this function:

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