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
qv4runtimecodegen_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QV4RUNTIMECODEGEN_P_H
4#define QV4RUNTIMECODEGEN_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <private/qv4codegen_p.h>
18
20
21namespace QV4 {
22
24{
25public:
30
32 const QString &sourceCode,
35
36 void throwSyntaxError(const QQmlJS::SourceLocation &loc, const QString &detail) override;
37 void throwReferenceError(const QQmlJS::SourceLocation &loc, const QString &detail) override;
38
39private:
40 ExecutionEngine *engine;
41};
42
43}
44
46
47#endif // QV4CODEGEN_P_H
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QV4::Compiler::JSUnitGenerator * jsUnitGenerator
Codegen(QV4::Compiler::JSUnitGenerator *jsUnitGenerator, bool strict, CodegenWarningInterface *iface=defaultCodegenWarningInterface(), bool storeSourceLocations=false)
Module * module() const
void generateFromFunctionExpression(const QString &fileName, const QString &sourceCode, QQmlJS::AST::FunctionExpression *ast, Compiler::Module *module)
void throwSyntaxError(const QQmlJS::SourceLocation &loc, const QString &detail) override
void throwReferenceError(const QQmlJS::SourceLocation &loc, const QString &detail) override
RuntimeCodegen(ExecutionEngine *engine, Compiler::JSUnitGenerator *jsUnitGenerator, bool strict)
Combined button and popup list for selecting options.
QJSEngine engine
[0]