Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | #ifndef QQMLJAVASCRIPTEXPRESSION_P_H | - |
41 | #define QQMLJAVASCRIPTEXPRESSION_P_H | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | #include <QtCore/qglobal.h> | - |
55 | #include <QtQml/qqmlerror.h> | - |
56 | #include <private/qqmlengine_p.h> | - |
57 | | - |
58 | QT_BEGIN_NAMESPACE | - |
59 | | - |
60 | struct QQmlSourceLocation; | - |
61 | | - |
62 | class QQmlDelayedError | - |
63 | { | - |
64 | public: | - |
65 | inline QQmlDelayedError() : nextError(nullptr), prevError(nullptr) {}executed 774 times by 22 tests: end of block Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| 774 |
66 | inline ~QQmlDelayedError() { (void)removeError(); }executed 770 times by 22 tests: end of block Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| 770 |
67 | | - |
68 | bool addError(QQmlEnginePrivate *); | - |
69 | | - |
70 | Q_REQUIRED_RESULT inline QQmlError removeError() { | - |
71 | if (prevError) {TRUE | evaluated 696 times by 19 testsEvaluated by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| FALSE | evaluated 610 times by 17 testsEvaluated by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlproperty
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
|
| 610-696 |
72 | if (nextError) nextError->prevError = prevError;executed 340 times by 7 tests: nextError->prevError = prevError; Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlproperty
- tst_qqmlqt
- tst_qquickgridview
- tst_qquickpathview
- tst_qquickvisualdatamodel
TRUE | evaluated 340 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlproperty
- tst_qqmlqt
- tst_qquickgridview
- tst_qquickpathview
- tst_qquickvisualdatamodel
| FALSE | evaluated 356 times by 19 testsEvaluated by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
|
| 340-356 |
73 | *prevError = nextError; | - |
74 | nextError = nullptr; | - |
75 | prevError = nullptr; | - |
76 | }executed 696 times by 19 tests: end of block Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| 696 |
77 | return m_error;executed 1306 times by 22 tests: return m_error; Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| 1306 |
78 | } | - |
79 | | - |
80 | inline bool isValid() const { return m_error.isValid(); }executed 2426 times by 21 tests: return m_error.isValid(); Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| 2426 |
81 | inline const QQmlError &error() const { return m_error; }executed 76 times by 10 tests: return m_error; Executed by:- tst_examples
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlexpression
- tst_qqmlproperty
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickloader
- tst_qquickvisualdatamodel
| 76 |
82 | inline void clearError() { m_error = QQmlError(); }executed 186 times by 15 tests: end of block Executed by:- tst_examples
- tst_multipointtoucharea_interop
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlinfo
- tst_qqmlitemmodels
- tst_qqmlpropertymap
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickdesignersupport
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquicktextinput
| 186 |
83 | | - |
84 | void setErrorLocation(const QQmlSourceLocation &sourceLocation); | - |
85 | void setErrorDescription(const QString &description); | - |
86 | void setErrorObject(QObject *object); | - |
87 | | - |
88 | | - |
89 | void catchJavaScriptException(QV4::ExecutionEngine *engine); | - |
90 | | - |
91 | private: | - |
92 | | - |
93 | mutable QQmlError m_error; | - |
94 | | - |
95 | QQmlDelayedError *nextError; | - |
96 | QQmlDelayedError **prevError; | - |
97 | }; | - |
98 | | - |
99 | class Q_QML_PRIVATE_EXPORT QQmlJavaScriptExpression | - |
100 | { | - |
101 | public: | - |
102 | QQmlJavaScriptExpression(); | - |
103 | virtual ~QQmlJavaScriptExpression(); | - |
104 | | - |
105 | virtual QString expressionIdentifier() const = 0; | - |
106 | virtual void expressionChanged() = 0; | - |
107 | | - |
108 | QV4::ReturnedValue evaluate(bool *isUndefined); | - |
109 | QV4::ReturnedValue evaluate(QV4::CallData *callData, bool *isUndefined); | - |
110 | | - |
111 | inline bool notifyOnValueChanged() const; | - |
112 | | - |
113 | void setNotifyOnValueChanged(bool v); | - |
114 | void resetNotifyOnValueChanged(); | - |
115 | | - |
116 | inline QObject *scopeObject() const; | - |
117 | inline void setScopeObject(QObject *v); | - |
118 | | - |
119 | virtual QQmlSourceLocation sourceLocation() const; | - |
120 | | - |
121 | bool isValid() const { return context() != nullptr; } never executed: return context() != nullptr; | 0 |
122 | | - |
123 | QQmlContextData *context() const { return m_context; }executed 9900830 times by 123 tests: return m_context; Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- ...
| 9900830 |
124 | void setContext(QQmlContextData *context); | - |
125 | | - |
126 | QV4::Function *function() const; | - |
127 | | - |
128 | virtual void refresh(); | - |
129 | | - |
130 | class DeleteWatcher { | - |
131 | public: | - |
132 | inline DeleteWatcher(QQmlJavaScriptExpression *); | - |
133 | inline ~DeleteWatcher(); | - |
134 | inline bool wasDeleted() const; | - |
135 | private: | - |
136 | friend class QQmlJavaScriptExpression; | - |
137 | QObject *_c; | - |
138 | QQmlJavaScriptExpression **_w; | - |
139 | QQmlJavaScriptExpression *_s; | - |
140 | }; | - |
141 | | - |
142 | inline bool hasError() const; | - |
143 | inline bool hasDelayedError() const; | - |
144 | QQmlError error(QQmlEngine *) const; | - |
145 | void clearError(); | - |
146 | void clearActiveGuards(); | - |
147 | void clearPermanentGuards(); | - |
148 | QQmlDelayedError *delayedError(); | - |
149 | | - |
150 | static QV4::ReturnedValue evalFunction(QQmlContextData *ctxt, QObject *scope, | - |
151 | const QString &code, const QString &filename, | - |
152 | quint16 line); | - |
153 | protected: | - |
154 | void createQmlBinding(QQmlContextData *ctxt, QObject *scope, const QString &code, const QString &filename, quint16 line); | - |
155 | | - |
156 | void cancelPermanentGuards() const | - |
157 | { | - |
158 | if (m_permanentDependenciesRegistered) {TRUE | evaluated 273823 times by 66 testsEvaluated by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- ...
| FALSE | evaluated 616873 times by 117 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlproperty
- ...
|
| 273823-616873 |
159 | for (QQmlJavaScriptExpressionGuard *it = permanentGuards.first(); it; it = permanentGuards.next(it))TRUE | evaluated 281415 times by 66 testsEvaluated by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- ...
| FALSE | evaluated 273823 times by 66 testsEvaluated by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- ...
|
| 273823-281415 |
160 | it->cancelNotify();executed 281415 times by 66 tests: it->cancelNotify(); Executed by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- ...
| 281415 |
161 | }executed 273823 times by 66 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmllistmodel
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlstatemachine
- tst_qqmltranslation
- tst_qqmltypeloader
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquickborderimage
- ...
| 273823 |
162 | }executed 890696 times by 120 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlproperty
- ...
| 890696 |
163 | | - |
164 | void setupFunction(QV4::ExecutionContext *qmlContext, QV4::Function *f); | - |
165 | void setCompilationUnit(const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &compilationUnit); | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | QBiPointer<QObject, DeleteWatcher> m_scopeObject; | - |
171 | QForwardFieldList<QQmlJavaScriptExpressionGuard, &QQmlJavaScriptExpressionGuard::next> activeGuards; | - |
172 | QForwardFieldList<QQmlJavaScriptExpressionGuard, &QQmlJavaScriptExpressionGuard::next> permanentGuards; | - |
173 | | - |
174 | void setTranslationsCaptured(bool captured) { m_error.setFlagValue(captured); }executed 2123911 times by 128 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 2123911 |
175 | bool translationsCaptured() const { return m_error.flag(); }executed 7581 times by 63 tests: return m_error.flag(); Executed by:- tst_examples
- tst_qmlcachegen
- tst_qqmlapplicationengine
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- tst_qqmlsettings
- tst_qqmlsqldatabase
- tst_qqmltranslation
- tst_qqmlvaluetypeproviders
- tst_qqmlvaluetypes
- tst_qqmlxmlhttprequest
- tst_qquickanimationcontroller
- ...
| 7581 |
176 | | - |
177 | private: | - |
178 | friend class QQmlContextData; | - |
179 | friend class QQmlPropertyCapture; | - |
180 | friend void QQmlJavaScriptExpressionGuard_callback(QQmlNotifierEndpoint *, void **); | - |
181 | friend class QQmlTranslationBinding; | - |
182 | | - |
183 | | - |
184 | QFlagPointer<QQmlDelayedError> m_error; | - |
185 | | - |
186 | QQmlContextData *m_context; | - |
187 | QQmlJavaScriptExpression **m_prevExpression; | - |
188 | QQmlJavaScriptExpression *m_nextExpression; | - |
189 | bool m_permanentDependenciesRegistered = false; | - |
190 | | - |
191 | QV4::PersistentValue m_qmlScope; | - |
192 | QQmlRefPointer<QV4::CompiledData::CompilationUnit> m_compilationUnit; | - |
193 | QV4::Function *m_v4Function; | - |
194 | }; | - |
195 | | - |
196 | class QQmlPropertyCapture | - |
197 | { | - |
198 | public: | - |
199 | QQmlPropertyCapture(QQmlEngine *engine, QQmlJavaScriptExpression *e, QQmlJavaScriptExpression::DeleteWatcher *w) | - |
200 | : engine(engine), expression(e), watcher(w), errorString(nullptr) { }executed 2123915 times by 128 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 2123915 |
201 | | - |
202 | ~QQmlPropertyCapture() { | - |
203 | Q_ASSERT(guards.isEmpty()); | - |
204 | Q_ASSERT(errorString == nullptr); | - |
205 | }executed 2123915 times by 128 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 2123915 |
206 | | - |
207 | enum Duration { | - |
208 | OnlyOnce, | - |
209 | Permanently | - |
210 | }; | - |
211 | | - |
212 | static void registerQmlDependencies(QV4::Heap::QmlContext *context, const QV4::ExecutionEngine *engine, const QV4::CompiledData::Function *compiledFunction); | - |
213 | void captureProperty(QQmlNotifier *, Duration duration = OnlyOnce); | - |
214 | void captureProperty(QObject *, int, int, Duration duration = OnlyOnce, bool doNotify = true); | - |
215 | void captureTranslation() { translationCaptured = true; } never executed: end of block | 0 |
216 | | - |
217 | QQmlEngine *engine; | - |
218 | QQmlJavaScriptExpression *expression; | - |
219 | QQmlJavaScriptExpression::DeleteWatcher *watcher; | - |
220 | QFieldList<QQmlJavaScriptExpressionGuard, &QQmlJavaScriptExpressionGuard::next> guards; | - |
221 | QStringList *errorString; | - |
222 | bool translationCaptured = false; | - |
223 | }; | - |
224 | | - |
225 | QQmlJavaScriptExpression::DeleteWatcher::DeleteWatcher(QQmlJavaScriptExpression *e) | - |
226 | : _c(nullptr), _w(nullptr), _s(e) | - |
227 | { | - |
228 | if (e->m_scopeObject.isT1()) {TRUE | evaluated 2124551 times by 128 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| FALSE | evaluated 1212302 times by 120 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlproperty
- ...
|
| 1212302-2124551 |
229 | _w = &_s; | - |
230 | _c = e->m_scopeObject.asT1(); | - |
231 | e->m_scopeObject = this; | - |
232 | } else {executed 2124551 times by 128 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 2124551 |
233 | | - |
234 | _w = &e->m_scopeObject.asT2()->_s; | - |
235 | }executed 1212302 times by 120 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlproperty
- ...
| 1212302 |
236 | } | - |
237 | | - |
238 | QQmlJavaScriptExpression::DeleteWatcher::~DeleteWatcher() | - |
239 | { | - |
240 | Q_ASSERT(*_w == nullptr || (*_w == _s && _s->m_scopeObject.isT2())); | - |
241 | if (*_w && _s->m_scopeObject.asT2() == this)TRUE | evaluated 3336819 times by 128 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| FALSE | evaluated 34 times by 4 testsEvaluated by:- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlproperty
- tst_qqmlvaluetypes
|
TRUE | evaluated 2124525 times by 128 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| FALSE | evaluated 1212294 times by 120 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- tst_qqmlnotifier
- tst_qqmlproperty
- ...
|
| 34-3336819 |
242 | _s->m_scopeObject = _c;executed 2124525 times by 128 tests: _s->m_scopeObject = _c; Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 2124525 |
243 | }executed 3336853 times by 128 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 3336853 |
244 | | - |
245 | bool QQmlJavaScriptExpression::DeleteWatcher::wasDeleted() const | - |
246 | { | - |
247 | return *_w == nullptr;executed 9073047 times by 128 tests: return *_w == nullptr; Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 9073047 |
248 | } | - |
249 | | - |
250 | bool QQmlJavaScriptExpression::notifyOnValueChanged() const | - |
251 | { | - |
252 | return activeGuards.flag();executed 6371745 times by 128 tests: return activeGuards.flag(); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 6371745 |
253 | } | - |
254 | | - |
255 | QObject *QQmlJavaScriptExpression::scopeObject() const | - |
256 | { | - |
257 | if (m_scopeObject.isT1()) return m_scopeObject.asT1();executed 1112544 times by 18 tests: return m_scopeObject.asT1(); Executed by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanimations
- tst_qquickdrag
- tst_qquickdroparea
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
- tst_qquickvisualdatamodel
TRUE | evaluated 1112544 times by 18 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qquickanimations
- tst_qquickdrag
- tst_qquickdroparea
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
- tst_qquickvisualdatamodel
| FALSE | evaluated 4247626 times by 128 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
|
| 1112544-4247626 |
258 | else return m_scopeObject.asT2()->_c;executed 4247626 times by 128 tests: return m_scopeObject.asT2()->_c; Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 4247626 |
259 | } | - |
260 | | - |
261 | void QQmlJavaScriptExpression::setScopeObject(QObject *v) | - |
262 | { | - |
263 | if (m_scopeObject.isT1()) m_scopeObject = v;executed 1684540 times by 123 tests: m_scopeObject = v; Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- ...
TRUE | evaluated 1684540 times by 123 testsEvaluated by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- ...
| FALSE | never evaluated |
| 0-1684540 |
264 | else m_scopeObject.asT2()->_c = v; never executed: m_scopeObject.asT2()->_c = v; | 0 |
265 | } | - |
266 | | - |
267 | bool QQmlJavaScriptExpression::hasError() const | - |
268 | { | - |
269 | return !m_error.isNull() && m_error->isValid();executed 4983752 times by 123 tests: return !m_error.isNull() && m_error->isValid(); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlmetaobject
- tst_qqmlmetatype
- ...
| 4983752 |
270 | } | - |
271 | | - |
272 | bool QQmlJavaScriptExpression::hasDelayedError() const | - |
273 | { | - |
274 | return !m_error.isNull();executed 2123223 times by 128 tests: return !m_error.isNull(); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 2123223 |
275 | } | - |
276 | | - |
277 | inline void QQmlJavaScriptExpression::clearError() | - |
278 | { | - |
279 | delete m_error.data(); | - |
280 | m_error = nullptr; | - |
281 | }executed 2581666 times by 127 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlconsole
- tst_qqmlcontext
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlexpression
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistmodelworkerscript
- tst_qqmllistreference
- tst_qqmllocale
- ...
| 2581666 |
282 | | - |
283 | QQmlJavaScriptExpressionGuard::QQmlJavaScriptExpressionGuard(QQmlJavaScriptExpression *e) | - |
284 | : QQmlNotifierEndpoint(QQmlNotifierEndpoint::QQmlJavaScriptExpressionGuard), | - |
285 | expression(e), next(nullptr) | - |
286 | { | - |
287 | }executed 926433 times by 113 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- ...
| 926433 |
288 | | - |
289 | QQmlJavaScriptExpressionGuard * | - |
290 | QQmlJavaScriptExpressionGuard::New(QQmlJavaScriptExpression *e, | - |
291 | QQmlEngine *engine) | - |
292 | { | - |
293 | Q_ASSERT(e); | - |
294 | return QQmlEnginePrivate::get(engine)->jsExpressionGuardPool.New(e);executed 926433 times by 113 tests: return QQmlEnginePrivate::get(engine)->jsExpressionGuardPool.New(e); Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- ...
| 926433 |
295 | } | - |
296 | | - |
297 | void QQmlJavaScriptExpressionGuard::Delete() | - |
298 | { | - |
299 | QRecyclePool<QQmlJavaScriptExpressionGuard>::Delete(this); | - |
300 | }executed 845611 times by 112 tests: end of block Executed by:- tst_bindingdependencyapi
- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qmlcachegen
- tst_qmldiskcache
- tst_qqmlapplicationengine
- tst_qqmlbinding
- tst_qqmlcomponent
- tst_qqmlconnections
- tst_qqmlcontext
- tst_qqmlecmascript
- tst_qqmlenginedebugservice
- tst_qqmlincubator
- tst_qqmlinfo
- tst_qqmlinstantiator
- tst_qqmlitemmodels
- tst_qqmllistmodel
- tst_qqmllistreference
- tst_qqmllocale
- tst_qqmlnotifier
- tst_qqmlproperty
- tst_qqmlpropertymap
- tst_qqmlqt
- ...
| 845611 |
301 | | - |
302 | | - |
303 | QT_END_NAMESPACE | - |
304 | | - |
305 | #endif // QQMLJAVASCRIPTEXPRESSION_P_H | - |
| | |