OpenCoverage

qv4script_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4script_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QQmlContextData;-
6-
7namespace QQmlJS {-
8class Engine;-
9}-
10-
11namespace QV4 {-
12-
13struct __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:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickworkerscript
  • tst_qv4assembler
  • tst_qv4debugger
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
qmlDescription
TRUEevaluated 1113726 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
FALSEnever evaluated
)
0-1113726
23 qmlContext.set(engine, *qml);
executed 1113726 times by 19 tests: qmlContext.set(engine, *qml);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
1113726
24 }
executed 1113726 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickworkerscript
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 codePreprocessed file

Generated by Squish Coco 4.2.0