Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmljscompiler_p.h File Reference
#include <private/qtqmlcompilerexports_p.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>
+ 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 = std::function< bool(const QV4::CompiledData::SaveableUnitPointer &, const QQmlJSAotFunctionMap &, QString *)>
 

Functions

QT_BEGIN_NAMESPACE Q_QMLCOMPILER_PRIVATE_EXPORT Q_DECLARE_LOGGING_CATEGORY (lcAotCompiler)
 
bool Q_QMLCOMPILER_PRIVATE_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)
 
bool Q_QMLCOMPILER_PRIVATE_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)
 
bool Q_QMLCOMPILER_PRIVATE_EXPORT qCompileJSFile (const QString &inputFileName, const QString &inputFileUrl, QQmlJSSaveFunction saveFunction, QQmlJSCompileError *error)
 
bool Q_QMLCOMPILER_PRIVATE_EXPORT qSaveQmlJSUnitAsCpp (const QString &inputFileName, const QString &outputFileName, const QV4::CompiledData::SaveableUnitPointer &unit, const QQmlJSAotFunctionMap &aotFunctions, QString *errorString)
 

Typedef Documentation

◆ QQmlJSAotFunctionMap

Definition at line 98 of file qqmljscompiler_p.h.

◆ QQmlJSSaveFunction

Definition at line 99 of file qqmljscompiler_p.h.

Function Documentation

◆ Q_DECLARE_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_QMLCOMPILER_PRIVATE_EXPORT Q_DECLARE_LOGGING_CATEGORY ( lcAotCompiler  )

◆ qCompileJSFile()

◆ qCompileQmlFile() [1/2]

bool Q_QMLCOMPILER_PRIVATE_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 180 of file qqmljscompiler.cpp.

References error, interface, and qCompileQmlFile().

Referenced by QQmlJSLinter::lintFile(), and qCompileQmlFile().

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

◆ qCompileQmlFile() [2/2]

bool Q_QMLCOMPILER_PRIVATE_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 
)

◆ qSaveQmlJSUnitAsCpp()

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