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>.
|
#include <qtqmlcompilerexports.h>
#include <QtCore/qstring.h>
#include <QtCore/qlist.h>
#include <QtCore/qloggingcategory.h>
#include <private/qqmlirbuilder_p.h>
#include <private/qqmljscompilepass_p.h>
#include <private/qqmljsdiagnosticmessage_p.h>
#include <private/qqmljsimporter_p.h>
#include <private/qqmljslogger_p.h>
#include <private/qqmljstyperesolver_p.h>
#include <private/qv4compileddata_p.h>
#include <functional>
Go to the source code of this file.
Classes | |
struct | QQmlJSCompileError |
struct | QQmlJSAotFunction |
class | QQmlJSAotCompiler |
Typedefs | |
using | QQmlJSAotFunctionMap = QMap<int, QQmlJSAotFunction> |
using | QQmlJSSaveFunction |
using QQmlJSAotFunctionMap = QMap<int, QQmlJSAotFunction> |
Definition at line 107 of file qqmljscompiler_p.h.
using QQmlJSSaveFunction |
Definition at line 108 of file qqmljscompiler_p.h.
QT_BEGIN_NAMESPACE Q_QMLCOMPILER_EXPORT Q_DECLARE_LOGGING_CATEGORY | ( | lcAotCompiler | ) |
Q_DECLARE_OPERATORS_FOR_FLAGS | ( | QQmlJSAotCompiler::Flags | ) |
bool Q_QMLCOMPILER_EXPORT qCompileJSFile | ( | const QString & | inputFileName, |
const QString & | inputFileUrl, | ||
QQmlJSSaveFunction | saveFunction, | ||
QQmlJSCompileError * | error ) |
Definition at line 375 of file qqmljscompiler.cpp.
References QV4::Compiler::Codegen::compileModule(), QString::endsWith(), engine, error, QString::fromUtf8(), QRandomGenerator::generate(), generator, QFileDevice::NoError, Q_ASSERT, qScopeGuard(), QStringLiteral, QIODeviceBase::ReadOnly, QV4::Compiler::ScriptImportedByQML, QQmlJS::Lexer::setCode(), and url.
bool Q_QMLCOMPILER_EXPORT qCompileQmlFile | ( | const QString & | inputFileName, |
QQmlJSSaveFunction | saveFunction, | ||
QQmlJSAotCompiler * | aotCompiler, | ||
QQmlJSCompileError * | error, | ||
bool | storeSourceLocation = false, | ||
QV4::Compiler::CodegenWarningInterface * | interface = QV4::Compiler::defaultCodegenWarningInterface(), | ||
const QString * | fileContents = nullptr ) |
Definition at line 181 of file qqmljscompiler.cpp.
References error, interface, and qCompileQmlFile().
Referenced by QQmlJSLinter::lintFile(), and qCompileQmlFile().
bool Q_QMLCOMPILER_EXPORT qCompileQmlFile | ( | QmlIR::Document & | irDocument, |
const QString & | inputFileName, | ||
QQmlJSSaveFunction | saveFunction, | ||
QQmlJSAotCompiler * | aotCompiler, | ||
QQmlJSCompileError * | error, | ||
bool | storeSourceLocation = false, | ||
QV4::Compiler::CodegenWarningInterface * | interface = QV4::Compiler::defaultCodegenWarningInterface(), | ||
const QString * | fileContents = nullptr ) |
Definition at line 191 of file qqmljscompiler.cpp.
References annotateListElements(), checkArgumentsObjectUseInSignalHandlers(), QSet< T >::constFind(), diagnosticErrorMessage(), error, FileScopeCodeIndex, QString::fromUtf8(), QRandomGenerator::generate(), generator, if(), interface, it, QFileDevice::NoError, QV4::CompiledData::Unit::PendingTypeCompilation, Q_ASSERT, qCDebug, QIODeviceBase::ReadOnly, QSet< T >::reserve(), and QV4::CompiledData::Unit::StaticData.
bool Q_QMLCOMPILER_EXPORT qSaveQmlJSUnitAsCpp | ( | const QString & | inputFileName, |
const QString & | outputFileName, | ||
const QV4::CompiledData::SaveableUnitPointer & | unit, | ||
const QQmlJSAotFunctionMap & | aotFunctions, | ||
QString * | errorString ) |
Definition at line 469 of file qqmljscompiler.cpp.
References arg, begin(), QByteArray::constData(), FileScopeCodeIndex, QString::fromUtf8(), funcHeaderCode, Qt::hex(), it, QByteArrayLiteral, qQmlJSSymbolNamespaceForPath(), QStringLiteral, QV4::CompiledData::SaveableUnitPointer::saveToDisk(), QString::toUtf8(), QIODeviceBase::Truncate, QIODeviceBase::WriteOnly, and writeStr().