Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4script_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | class QQmlContextData; | - | ||||||
6 | - | |||||||
7 | namespace QQmlJS { | - | ||||||
8 | class Engine; | - | ||||||
9 | } | - | ||||||
10 | - | |||||||
11 | namespace QV4 { | - | ||||||
12 | - | |||||||
13 | struct __attribute__((visibility("default"))) Script { | - | ||||||
14 | Script(ExecutionContext *scope, QV4::Compiler::ContextType mode, const QString &sourceCode, const QString &source = QString(), int line = 1, int column = 0) | - | ||||||
15 | : sourceFile(source), line(line), column(column), sourceCode(sourceCode) | - | ||||||
16 | , context(scope), strictMode(false), inheritContext(false), parsed(false), contextType(mode) | - | ||||||
17 | , vmFunction(nullptr), parseAsBinding(false) {} executed 1705510 times by 16 tests: end of block Executed by:
| 1705510 | ||||||
18 | Script(ExecutionEngine *engine, QmlContext *qml, const QString &sourceCode, const QString &source = QString(), int line = 1, int column = 0) | - | ||||||
19 | : sourceFile(source), line(line), column(column), sourceCode(sourceCode) | - | ||||||
20 | , context(engine->rootContext()), strictMode(false), inheritContext(true), parsed(false) | - | ||||||
21 | , vmFunction(nullptr), parseAsBinding(true) { | - | ||||||
22 | if (qml
| 0-1113726 | ||||||
23 | qmlContext.set(engine, *qml); executed 1113726 times by 19 tests: qmlContext.set(engine, *qml); Executed by:
| 1113726 | ||||||
24 | } executed 1113726 times by 19 tests: end of block Executed by:
| 1113726 | ||||||
25 | Script(ExecutionEngine *engine, QmlContext *qml, const QQmlRefPointer<CompiledData::CompilationUnit> &compilationUnit); | - | ||||||
26 | ~Script(); | - | ||||||
27 | QString sourceFile; | - | ||||||
28 | int line; | - | ||||||
29 | int column; | - | ||||||
30 | QString sourceCode; | - | ||||||
31 | ExecutionContext *context; | - | ||||||
32 | bool strictMode; | - | ||||||
33 | bool inheritContext; | - | ||||||
34 | bool parsed; | - | ||||||
35 | QV4::Compiler::ContextType contextType = QV4::Compiler::ContextType::Eval; | - | ||||||
36 | QV4::PersistentValue qmlContext; | - | ||||||
37 | QQmlRefPointer<CompiledData::CompilationUnit> compilationUnit; | - | ||||||
38 | Function *vmFunction; | - | ||||||
39 | bool parseAsBinding; | - | ||||||
40 | - | |||||||
41 | void parse(); | - | ||||||
42 | ReturnedValue run(const QV4::Value *thisObject = nullptr); | - | ||||||
43 | - | |||||||
44 | Function *function(); | - | ||||||
45 | - | |||||||
46 | static QQmlRefPointer<CompiledData::CompilationUnit> precompile(QV4::Compiler::Module *module, QQmlJS::Engine *jsEngine, Compiler::JSUnitGenerator *unitGenerator, | - | ||||||
47 | const QString &fileName, const QString &finalUrl, const QString &source, | - | ||||||
48 | QList<QQmlError> *reportedErrors = nullptr); | - | ||||||
49 | static Script *createFromFileOrCache(ExecutionEngine *engine, QmlContext *qmlContext, const QString &fileName, const QUrl &originalUrl, QString *error); | - | ||||||
50 | - | |||||||
51 | static ReturnedValue evaluate(ExecutionEngine *engine, const QString &script, QmlContext *qmlContext); | - | ||||||
52 | }; | - | ||||||
53 | - | |||||||
54 | } | - | ||||||
55 | - | |||||||
56 | - | |||||||
Switch to Source code | Preprocessed file |