![]() |
Qt 6.x
The Qt SDK
|
#include <qqmljscompiler_p.h>
Public Member Functions | |
QQmlJSAotCompiler (QQmlJSImporter *importer, const QString &resourcePath, const QStringList &qmldirFiles, QQmlJSLogger *logger) | |
virtual | ~QQmlJSAotCompiler ()=default |
virtual void | setDocument (const QmlIR::JSCodeGen *codegen, const QmlIR::Document *document) |
virtual void | setScope (const QmlIR::Object *object, const QmlIR::Object *scope) |
virtual std::variant< QQmlJSAotFunction, QQmlJS::DiagnosticMessage > | compileBinding (const QV4::Compiler::Context *context, const QmlIR::Binding &irBinding, QQmlJS::AST::Node *astNode) |
virtual std::variant< QQmlJSAotFunction, QQmlJS::DiagnosticMessage > | compileFunction (const QV4::Compiler::Context *context, const QString &name, QQmlJS::AST::Node *astNode) |
virtual QQmlJSAotFunction | globalCode () const |
Protected Member Functions | |
virtual QQmlJS::DiagnosticMessage | diagnose (const QString &message, QtMsgType type, const QQmlJS::SourceLocation &location) const |
Protected Attributes | |
QQmlJSTypeResolver | m_typeResolver |
const QString | m_resourcePath |
const QStringList | m_qmldirFiles |
const QmlIR::Document * | m_document = nullptr |
const QmlIR::Object * | m_currentObject = nullptr |
const QmlIR::Object * | m_currentScope = nullptr |
const QV4::Compiler::JSUnitGenerator * | m_unitGenerator = nullptr |
QQmlJSImporter * | m_importer = nullptr |
QQmlJSLogger * | m_logger = nullptr |
Definition at line 56 of file qqmljscompiler_p.h.
QQmlJSAotCompiler::QQmlJSAotCompiler | ( | QQmlJSImporter * | importer, |
const QString & | resourcePath, | ||
const QStringList & | qmldirFiles, | ||
QQmlJSLogger * | logger | ||
) |
Definition at line 633 of file qqmljscompiler.cpp.
|
virtualdefault |
|
virtual |
Reimplemented in QQmlJSLinterCodegen.
Definition at line 697 of file qqmljscompiler.cpp.
References QQmlJSAotFunction::code, context, diagnose(), error, function, QQmlJSAotFunction::includes, QmlIR::Object::location, m_currentObject, m_currentScope, m_document, m_typeResolver, QV4::CompiledData::Binding::propertyNameIndex, qCDebug, QtDebugMsg, QtWarningMsg, QQmlJSFunctionInitializer::run(), and QmlIR::Document::stringAt().
|
virtual |
Reimplemented in QQmlJSLinterCodegen.
Definition at line 724 of file qqmljscompiler.cpp.
References QQmlJSAotFunction::code, context, diagnose(), error, function, QQmlJSAotFunction::includes, QmlIR::Object::location, m_currentObject, m_currentScope, m_typeResolver, qCDebug, QtWarningMsg, and QQmlJSFunctionInitializer::run().
|
protectedvirtual |
Definition at line 675 of file qqmljscompiler.cpp.
References fileName, QQmlJSLogger::isCategoryFatal(), isStrict(), QQmlJSLogger::log(), m_document, m_logger, m_resourcePath, qFatal, qmlCompiler, qPrintable, QtCriticalMsg, QtFatalMsg, and QtWarningMsg.
Referenced by compileBinding(), QQmlJSLinterCodegen::compileBinding(), compileFunction(), and QQmlJSLinterCodegen::compileFunction().
|
virtual |
Definition at line 741 of file qqmljscompiler.cpp.
References global.
Referenced by qCompileQmlFile().
|
virtual |
Reimplemented in QQmlJSLinterCodegen.
Definition at line 644 of file qqmljscompiler.cpp.
References QFileInfo::canonicalPath(), QmlIR::Document::code, QQmlJSScope::create(), QFileInfo::fileName(), QQmlJSTypeResolver::init(), QmlIR::Document::jsGenerator, m_document, m_importer, m_logger, m_qmldirFiles, m_resourcePath, m_typeResolver, m_unitGenerator, QmlIR::Document::program, Q_UNUSED, QQmlJSLogger::setCode(), and QQmlJSLogger::setFileName().
Referenced by qCompileQmlFile().
|
virtual |
Definition at line 660 of file qqmljscompiler.cpp.
References m_currentObject, and m_currentScope.
Referenced by qCompileQmlFile().
|
protected |
Definition at line 84 of file qqmljscompiler_p.h.
Referenced by compileBinding(), QQmlJSLinterCodegen::compileBinding(), compileFunction(), QQmlJSLinterCodegen::compileFunction(), and setScope().
|
protected |
Definition at line 85 of file qqmljscompiler_p.h.
Referenced by compileBinding(), QQmlJSLinterCodegen::compileBinding(), compileFunction(), QQmlJSLinterCodegen::compileFunction(), and setScope().
|
protected |
Definition at line 83 of file qqmljscompiler_p.h.
Referenced by compileBinding(), QQmlJSLinterCodegen::compileBinding(), diagnose(), setDocument(), and QQmlJSLinterCodegen::setDocument().
|
protected |
Definition at line 88 of file qqmljscompiler_p.h.
Referenced by setDocument().
|
protected |
Definition at line 89 of file qqmljscompiler_p.h.
Referenced by diagnose(), and setDocument().
|
protected |
Definition at line 81 of file qqmljscompiler_p.h.
Referenced by setDocument().
|
protected |
Definition at line 80 of file qqmljscompiler_p.h.
Referenced by diagnose(), and setDocument().
|
protected |
Definition at line 78 of file qqmljscompiler_p.h.
Referenced by compileBinding(), QQmlJSLinterCodegen::compileBinding(), compileFunction(), QQmlJSLinterCodegen::compileFunction(), setDocument(), QQmlJSLinterCodegen::setTypeResolver(), and QQmlJSLinterCodegen::typeResolver().
|
protected |
Definition at line 86 of file qqmljscompiler_p.h.
Referenced by setDocument(), and QQmlJSLinterCodegen::setDocument().