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
qqmljscompiler_p.h File Reference

(2e4c66160f0cfbc76b0154d8b989f8931b1963bf)

#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/qqmljscompilerstats_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>
Include dependency graph for qqmljscompiler_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QQmlJSCompileError
struct  QQmlJSAotFunction
class  QQmlJSAotCompiler

Typedefs

using QQmlJSAotFunctionMap = QMap<int, QQmlJSAotFunction>
using QQmlJSSaveFunction

Functions

QT_BEGIN_NAMESPACE QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY (lcAotCompiler, Q_QMLCOMPILER_EXPORT)
 Q_DECLARE_OPERATORS_FOR_FLAGS (QQmlJSAotCompiler::Flags)
bool Q_QMLCOMPILER_EXPORT qCompileQmlFile (const QString &inputFileName, const QQmlJSSaveFunction &saveFunction, QQmlJSAotCompiler *aotCompiler, QQmlJSCompileError *error, bool storeSourceLocation=false, QV4::Compiler::CodegenWarningInterface *wInterface=QV4::Compiler::defaultCodegenWarningInterface(), const QString *fileContents=nullptr)
bool Q_QMLCOMPILER_EXPORT qCompileQmlFile (QmlIR::Document &irDocument, const QString &inputFileName, const QQmlJSSaveFunction &saveFunction, QQmlJSAotCompiler *aotCompiler, QQmlJSCompileError *error, bool storeSourceLocation=false, QV4::Compiler::CodegenWarningInterface *wInterface=QV4::Compiler::defaultCodegenWarningInterface(), const QString *fileContents=nullptr)
bool Q_QMLCOMPILER_EXPORT qCompileJSFile (const QString &inputFileName, const QString &inputFileUrl, const QQmlJSSaveFunction &saveFunction, QQmlJSCompileError *error)
bool Q_QMLCOMPILER_EXPORT qSaveQmlJSUnitAsCpp (const QString &inputFileName, const QString &outputFileName, const QV4::CompiledData::SaveableUnitPointer &unit, const QQmlJSAotFunctionMap &aotFunctions, QString *errorString)

Typedef Documentation

◆ QQmlJSAotFunctionMap

Definition at line 114 of file qqmljscompiler_p.h.

◆ QQmlJSSaveFunction

Initial value:
std::function<bool(const QV4::CompiledData::SaveableUnitPointer &,
QMap< int, QQmlJSAotFunction > QQmlJSAotFunctionMap

Definition at line 115 of file qqmljscompiler_p.h.

Function Documentation

◆ Q_DECLARE_OPERATORS_FOR_FLAGS()

Q_DECLARE_OPERATORS_FOR_FLAGS ( QQmlJSAotCompiler::Flags )

◆ qCompileJSFile()

bool Q_QMLCOMPILER_EXPORT qCompileJSFile ( const QString & inputFileName,
const QString & inputFileUrl,
const QQmlJSSaveFunction & saveFunction,
QQmlJSCompileError * error )

Definition at line 374 of file qqmljscompiler.cpp.

◆ qCompileQmlFile() [1/2]

bool Q_QMLCOMPILER_EXPORT qCompileQmlFile ( const QString & inputFileName,
const QQmlJSSaveFunction & saveFunction,
QQmlJSAotCompiler * aotCompiler,
QQmlJSCompileError * error,
bool storeSourceLocation = false,
QV4::Compiler::CodegenWarningInterface * wInterface = QV4::Compiler::defaultCodegenWarningInterface(),
const QString * fileContents = nullptr )

Definition at line 173 of file qqmljscompiler.cpp.

◆ qCompileQmlFile() [2/2]

bool Q_QMLCOMPILER_EXPORT qCompileQmlFile ( QmlIR::Document & irDocument,
const QString & inputFileName,
const QQmlJSSaveFunction & saveFunction,
QQmlJSAotCompiler * aotCompiler,
QQmlJSCompileError * error,
bool storeSourceLocation = false,
QV4::Compiler::CodegenWarningInterface * wInterface = QV4::Compiler::defaultCodegenWarningInterface(),
const QString * fileContents = nullptr )

Definition at line 183 of file qqmljscompiler.cpp.

◆ qSaveQmlJSUnitAsCpp()

bool Q_QMLCOMPILER_EXPORT qSaveQmlJSUnitAsCpp ( const QString & inputFileName,
const QString & outputFileName,
const QV4::CompiledData::SaveableUnitPointer & unit,
const QQmlJSAotFunctionMap & aotFunctions,
QString * errorString )

Definition at line 473 of file qqmljscompiler.cpp.

References FileScopeCodeIndex.

◆ QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY ( lcAotCompiler ,
Q_QMLCOMPILER_EXPORT  )