Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/parser/qqmljsast_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||
2 | - | |||||||||||||||||||
3 | - | |||||||||||||||||||
4 | - | |||||||||||||||||||
5 | - | |||||||||||||||||||
6 | - | |||||||||||||||||||
7 | - | |||||||||||||||||||
8 | - | |||||||||||||||||||
9 | - | |||||||||||||||||||
10 | namespace QSOperator | - | ||||||||||||||||||
11 | { | - | ||||||||||||||||||
12 | - | |||||||||||||||||||
13 | enum Op { | - | ||||||||||||||||||
14 | Add, | - | ||||||||||||||||||
15 | And, | - | ||||||||||||||||||
16 | InplaceAnd, | - | ||||||||||||||||||
17 | Assign, | - | ||||||||||||||||||
18 | BitAnd, | - | ||||||||||||||||||
19 | BitOr, | - | ||||||||||||||||||
20 | BitXor, | - | ||||||||||||||||||
21 | InplaceSub, | - | ||||||||||||||||||
22 | Div, | - | ||||||||||||||||||
23 | InplaceDiv, | - | ||||||||||||||||||
24 | Equal, | - | ||||||||||||||||||
25 | Exp, | - | ||||||||||||||||||
26 | InplaceExp, | - | ||||||||||||||||||
27 | Ge, | - | ||||||||||||||||||
28 | Gt, | - | ||||||||||||||||||
29 | In, | - | ||||||||||||||||||
30 | InplaceAdd, | - | ||||||||||||||||||
31 | InstanceOf, | - | ||||||||||||||||||
32 | Le, | - | ||||||||||||||||||
33 | LShift, | - | ||||||||||||||||||
34 | InplaceLeftShift, | - | ||||||||||||||||||
35 | Lt, | - | ||||||||||||||||||
36 | Mod, | - | ||||||||||||||||||
37 | InplaceMod, | - | ||||||||||||||||||
38 | Mul, | - | ||||||||||||||||||
39 | InplaceMul, | - | ||||||||||||||||||
40 | NotEqual, | - | ||||||||||||||||||
41 | Or, | - | ||||||||||||||||||
42 | InplaceOr, | - | ||||||||||||||||||
43 | RShift, | - | ||||||||||||||||||
44 | InplaceRightShift, | - | ||||||||||||||||||
45 | StrictEqual, | - | ||||||||||||||||||
46 | StrictNotEqual, | - | ||||||||||||||||||
47 | Sub, | - | ||||||||||||||||||
48 | URShift, | - | ||||||||||||||||||
49 | InplaceURightShift, | - | ||||||||||||||||||
50 | InplaceXor, | - | ||||||||||||||||||
51 | Invalid | - | ||||||||||||||||||
52 | }; | - | ||||||||||||||||||
53 | - | |||||||||||||||||||
54 | } | - | ||||||||||||||||||
55 | - | |||||||||||||||||||
56 | namespace QQmlJS { | - | ||||||||||||||||||
57 | - | |||||||||||||||||||
58 | namespace AST { | - | ||||||||||||||||||
59 | - | |||||||||||||||||||
60 | enum class VariableScope { | - | ||||||||||||||||||
61 | NoScope, | - | ||||||||||||||||||
62 | Var, | - | ||||||||||||||||||
63 | Let, | - | ||||||||||||||||||
64 | Const | - | ||||||||||||||||||
65 | }; | - | ||||||||||||||||||
66 | - | |||||||||||||||||||
67 | template <typename T1, typename T2> | - | ||||||||||||||||||
68 | T1 cast(T2 *ast) | - | ||||||||||||||||||
69 | { | - | ||||||||||||||||||
70 | if (ast
| 523008-53218261 | ||||||||||||||||||
71 | return executed 11951924 times by 148 tests: static_cast<T1>(ast);return static_cast<T1>(ast); Executed by:
executed 11951924 times by 148 tests: return static_cast<T1>(ast); Executed by:
| 11951924 | ||||||||||||||||||
72 | - | |||||||||||||||||||
73 | return executed 41821313 times by 148 tests: 0;return 0; Executed by:
executed 41821313 times by 148 tests: return 0; Executed by:
| 41821313 | ||||||||||||||||||
74 | } | - | ||||||||||||||||||
75 | - | |||||||||||||||||||
76 | FunctionExpression *asAnonymousFunctionDefinition(AST::Node *n); | - | ||||||||||||||||||
77 | ClassExpression *asAnonymousClassDefinition(AST::Node *n); | - | ||||||||||||||||||
78 | - | |||||||||||||||||||
79 | class __attribute__((visibility("default"))) Node: public Managed | - | ||||||||||||||||||
80 | { | - | ||||||||||||||||||
81 | public: | - | ||||||||||||||||||
82 | enum Kind { | - | ||||||||||||||||||
83 | Kind_Undefined, | - | ||||||||||||||||||
84 | - | |||||||||||||||||||
85 | Kind_ArgumentList, | - | ||||||||||||||||||
86 | Kind_ArrayPattern, | - | ||||||||||||||||||
87 | Kind_ArrayMemberExpression, | - | ||||||||||||||||||
88 | Kind_BinaryExpression, | - | ||||||||||||||||||
89 | Kind_Block, | - | ||||||||||||||||||
90 | Kind_BreakStatement, | - | ||||||||||||||||||
91 | Kind_CallExpression, | - | ||||||||||||||||||
92 | Kind_CaseBlock, | - | ||||||||||||||||||
93 | Kind_CaseClause, | - | ||||||||||||||||||
94 | Kind_CaseClauses, | - | ||||||||||||||||||
95 | Kind_Catch, | - | ||||||||||||||||||
96 | Kind_ConditionalExpression, | - | ||||||||||||||||||
97 | Kind_ContinueStatement, | - | ||||||||||||||||||
98 | Kind_DebuggerStatement, | - | ||||||||||||||||||
99 | Kind_DefaultClause, | - | ||||||||||||||||||
100 | Kind_DeleteExpression, | - | ||||||||||||||||||
101 | Kind_DoWhileStatement, | - | ||||||||||||||||||
102 | Kind_ElementList, | - | ||||||||||||||||||
103 | Kind_Elision, | - | ||||||||||||||||||
104 | Kind_EmptyStatement, | - | ||||||||||||||||||
105 | Kind_Expression, | - | ||||||||||||||||||
106 | Kind_ExpressionStatement, | - | ||||||||||||||||||
107 | Kind_FalseLiteral, | - | ||||||||||||||||||
108 | Kind_SuperLiteral, | - | ||||||||||||||||||
109 | Kind_FieldMemberExpression, | - | ||||||||||||||||||
110 | Kind_Finally, | - | ||||||||||||||||||
111 | Kind_ForEachStatement, | - | ||||||||||||||||||
112 | Kind_ForStatement, | - | ||||||||||||||||||
113 | Kind_FormalParameterList, | - | ||||||||||||||||||
114 | Kind_FunctionBody, | - | ||||||||||||||||||
115 | Kind_FunctionDeclaration, | - | ||||||||||||||||||
116 | Kind_FunctionExpression, | - | ||||||||||||||||||
117 | Kind_ClassExpression, | - | ||||||||||||||||||
118 | Kind_ClassDeclaration, | - | ||||||||||||||||||
119 | Kind_IdentifierExpression, | - | ||||||||||||||||||
120 | Kind_IdentifierPropertyName, | - | ||||||||||||||||||
121 | Kind_ComputedPropertyName, | - | ||||||||||||||||||
122 | Kind_IfStatement, | - | ||||||||||||||||||
123 | Kind_LabelledStatement, | - | ||||||||||||||||||
124 | Kind_NewExpression, | - | ||||||||||||||||||
125 | Kind_NewMemberExpression, | - | ||||||||||||||||||
126 | Kind_NotExpression, | - | ||||||||||||||||||
127 | Kind_NullExpression, | - | ||||||||||||||||||
128 | Kind_YieldExpression, | - | ||||||||||||||||||
129 | Kind_NumericLiteral, | - | ||||||||||||||||||
130 | Kind_NumericLiteralPropertyName, | - | ||||||||||||||||||
131 | Kind_ObjectPattern, | - | ||||||||||||||||||
132 | Kind_PostDecrementExpression, | - | ||||||||||||||||||
133 | Kind_PostIncrementExpression, | - | ||||||||||||||||||
134 | Kind_PreDecrementExpression, | - | ||||||||||||||||||
135 | Kind_PreIncrementExpression, | - | ||||||||||||||||||
136 | Kind_Program, | - | ||||||||||||||||||
137 | Kind_PropertyDefinitionList, | - | ||||||||||||||||||
138 | Kind_PropertyGetterSetter, | - | ||||||||||||||||||
139 | Kind_PropertyName, | - | ||||||||||||||||||
140 | Kind_PropertyNameAndValue, | - | ||||||||||||||||||
141 | Kind_RegExpLiteral, | - | ||||||||||||||||||
142 | Kind_ReturnStatement, | - | ||||||||||||||||||
143 | Kind_StatementList, | - | ||||||||||||||||||
144 | Kind_StringLiteral, | - | ||||||||||||||||||
145 | Kind_StringLiteralPropertyName, | - | ||||||||||||||||||
146 | Kind_SwitchStatement, | - | ||||||||||||||||||
147 | Kind_TemplateLiteral, | - | ||||||||||||||||||
148 | Kind_TaggedTemplate, | - | ||||||||||||||||||
149 | Kind_ThisExpression, | - | ||||||||||||||||||
150 | Kind_ThrowStatement, | - | ||||||||||||||||||
151 | Kind_TildeExpression, | - | ||||||||||||||||||
152 | Kind_TrueLiteral, | - | ||||||||||||||||||
153 | Kind_TryStatement, | - | ||||||||||||||||||
154 | Kind_TypeOfExpression, | - | ||||||||||||||||||
155 | Kind_UnaryMinusExpression, | - | ||||||||||||||||||
156 | Kind_UnaryPlusExpression, | - | ||||||||||||||||||
157 | Kind_VariableDeclaration, | - | ||||||||||||||||||
158 | Kind_VariableDeclarationList, | - | ||||||||||||||||||
159 | Kind_VariableStatement, | - | ||||||||||||||||||
160 | Kind_VoidExpression, | - | ||||||||||||||||||
161 | Kind_WhileStatement, | - | ||||||||||||||||||
162 | Kind_WithStatement, | - | ||||||||||||||||||
163 | Kind_NestedExpression, | - | ||||||||||||||||||
164 | Kind_ClassElementList, | - | ||||||||||||||||||
165 | Kind_PatternElement, | - | ||||||||||||||||||
166 | Kind_PatternElementList, | - | ||||||||||||||||||
167 | Kind_PatternProperty, | - | ||||||||||||||||||
168 | Kind_PatternPropertyList, | - | ||||||||||||||||||
169 | - | |||||||||||||||||||
170 | - | |||||||||||||||||||
171 | Kind_UiArrayBinding, | - | ||||||||||||||||||
172 | Kind_UiImport, | - | ||||||||||||||||||
173 | Kind_UiObjectBinding, | - | ||||||||||||||||||
174 | Kind_UiObjectDefinition, | - | ||||||||||||||||||
175 | Kind_UiObjectInitializer, | - | ||||||||||||||||||
176 | Kind_UiObjectMemberList, | - | ||||||||||||||||||
177 | Kind_UiArrayMemberList, | - | ||||||||||||||||||
178 | Kind_UiPragma, | - | ||||||||||||||||||
179 | Kind_UiProgram, | - | ||||||||||||||||||
180 | Kind_UiParameterList, | - | ||||||||||||||||||
181 | Kind_UiPublicMember, | - | ||||||||||||||||||
182 | Kind_UiQualifiedId, | - | ||||||||||||||||||
183 | Kind_UiQualifiedPragmaId, | - | ||||||||||||||||||
184 | Kind_UiScriptBinding, | - | ||||||||||||||||||
185 | Kind_UiSourceElement, | - | ||||||||||||||||||
186 | Kind_UiHeaderItemList, | - | ||||||||||||||||||
187 | Kind_UiEnumDeclaration, | - | ||||||||||||||||||
188 | Kind_UiEnumMemberList | - | ||||||||||||||||||
189 | }; | - | ||||||||||||||||||
190 | - | |||||||||||||||||||
191 | inline Node() {} | - | ||||||||||||||||||
192 | - | |||||||||||||||||||
193 | - | |||||||||||||||||||
194 | - | |||||||||||||||||||
195 | - | |||||||||||||||||||
196 | virtual ~Node() {} | - | ||||||||||||||||||
197 | - | |||||||||||||||||||
198 | virtual ExpressionNode *expressionCast(); | - | ||||||||||||||||||
199 | virtual BinaryExpression *binaryExpressionCast(); | - | ||||||||||||||||||
200 | virtual Statement *statementCast(); | - | ||||||||||||||||||
201 | virtual UiObjectMember *uiObjectMemberCast(); | - | ||||||||||||||||||
202 | virtual LeftHandSideExpression *leftHandSideExpressionCast(); | - | ||||||||||||||||||
203 | virtual Pattern *patternCast(); | - | ||||||||||||||||||
204 | - | |||||||||||||||||||
205 | virtual FunctionExpression *asFunctionDefinition(); | - | ||||||||||||||||||
206 | virtual ClassExpression *asClassDefinition(); | - | ||||||||||||||||||
207 | - | |||||||||||||||||||
208 | void accept(Visitor *visitor); | - | ||||||||||||||||||
209 | static void accept(Node *node, Visitor *visitor); | - | ||||||||||||||||||
210 | - | |||||||||||||||||||
211 | inline static void acceptChild(Node *node, Visitor *visitor) | - | ||||||||||||||||||
212 | { return never executed: accept(node, visitor);return accept(node, visitor); never executed: }return accept(node, visitor); | 0 | ||||||||||||||||||
213 | - | |||||||||||||||||||
214 | virtual void accept0(Visitor *visitor) = 0; | - | ||||||||||||||||||
215 | virtual SourceLocation firstSourceLocation() const = 0; | - | ||||||||||||||||||
216 | virtual SourceLocation lastSourceLocation() const = 0; | - | ||||||||||||||||||
217 | - | |||||||||||||||||||
218 | - | |||||||||||||||||||
219 | int kind = Kind_Undefined; | - | ||||||||||||||||||
220 | }; | - | ||||||||||||||||||
221 | - | |||||||||||||||||||
222 | class __attribute__((visibility("default"))) ExpressionNode: public Node | - | ||||||||||||||||||
223 | { | - | ||||||||||||||||||
224 | public: | - | ||||||||||||||||||
225 | ExpressionNode() {} | - | ||||||||||||||||||
226 | - | |||||||||||||||||||
227 | ExpressionNode *expressionCast() override; | - | ||||||||||||||||||
228 | - | |||||||||||||||||||
229 | AST::FormalParameterList *reparseAsFormalParameterList(MemoryPool *pool); | - | ||||||||||||||||||
230 | - | |||||||||||||||||||
231 | }; | - | ||||||||||||||||||
232 | - | |||||||||||||||||||
233 | class __attribute__((visibility("default"))) LeftHandSideExpression : public ExpressionNode | - | ||||||||||||||||||
234 | { | - | ||||||||||||||||||
235 | LeftHandSideExpression *leftHandSideExpressionCast() override; | - | ||||||||||||||||||
236 | }; | - | ||||||||||||||||||
237 | - | |||||||||||||||||||
238 | class __attribute__((visibility("default"))) Statement: public Node | - | ||||||||||||||||||
239 | { | - | ||||||||||||||||||
240 | public: | - | ||||||||||||||||||
241 | Statement() {} | - | ||||||||||||||||||
242 | - | |||||||||||||||||||
243 | Statement *statementCast() override; | - | ||||||||||||||||||
244 | }; | - | ||||||||||||||||||
245 | - | |||||||||||||||||||
246 | class __attribute__((visibility("default"))) NestedExpression: public LeftHandSideExpression | - | ||||||||||||||||||
247 | { | - | ||||||||||||||||||
248 | public: | - | ||||||||||||||||||
249 | enum { K = Kind_NestedExpression }; | - | ||||||||||||||||||
250 | - | |||||||||||||||||||
251 | NestedExpression(ExpressionNode *expression) | - | ||||||||||||||||||
252 | : expression(expression) | - | ||||||||||||||||||
253 | { kind = K; } executed 213698 times by 45 tests: end of block Executed by:
| 213698 | ||||||||||||||||||
254 | - | |||||||||||||||||||
255 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
256 | - | |||||||||||||||||||
257 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
258 | { return executed 312417 times by 28 tests: lparenToken;return lparenToken; Executed by:
executed 312417 times by 28 tests: }return lparenToken; Executed by:
| 312417 | ||||||||||||||||||
259 | - | |||||||||||||||||||
260 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
261 | { return executed 475441 times by 25 tests: rparenToken;return rparenToken; Executed by:
executed 475441 times by 25 tests: }return rparenToken; Executed by:
| 475441 | ||||||||||||||||||
262 | - | |||||||||||||||||||
263 | FunctionExpression *asFunctionDefinition() override; | - | ||||||||||||||||||
264 | ClassExpression *asClassDefinition() override; | - | ||||||||||||||||||
265 | - | |||||||||||||||||||
266 | - | |||||||||||||||||||
267 | - | |||||||||||||||||||
268 | ExpressionNode *expression; | - | ||||||||||||||||||
269 | SourceLocation lparenToken; | - | ||||||||||||||||||
270 | SourceLocation rparenToken; | - | ||||||||||||||||||
271 | }; | - | ||||||||||||||||||
272 | - | |||||||||||||||||||
273 | class __attribute__((visibility("default"))) ThisExpression: public LeftHandSideExpression | - | ||||||||||||||||||
274 | { | - | ||||||||||||||||||
275 | public: | - | ||||||||||||||||||
276 | enum { K = Kind_ThisExpression }; | - | ||||||||||||||||||
277 | - | |||||||||||||||||||
278 | ThisExpression() { kind = K; } executed 196756 times by 17 tests: end of block Executed by:
| 196756 | ||||||||||||||||||
279 | - | |||||||||||||||||||
280 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
281 | - | |||||||||||||||||||
282 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
283 | { return executed 278112 times by 12 tests: thisToken;return thisToken; Executed by:
executed 278112 times by 12 tests: }return thisToken; Executed by:
| 278112 | ||||||||||||||||||
284 | - | |||||||||||||||||||
285 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
286 | { return executed 29361 times by 5 tests: thisToken;return thisToken; Executed by:
executed 29361 times by 5 tests: }return thisToken; Executed by:
| 29361 | ||||||||||||||||||
287 | - | |||||||||||||||||||
288 | - | |||||||||||||||||||
289 | SourceLocation thisToken; | - | ||||||||||||||||||
290 | }; | - | ||||||||||||||||||
291 | - | |||||||||||||||||||
292 | class __attribute__((visibility("default"))) IdentifierExpression: public LeftHandSideExpression | - | ||||||||||||||||||
293 | { | - | ||||||||||||||||||
294 | public: | - | ||||||||||||||||||
295 | enum { K = Kind_IdentifierExpression }; | - | ||||||||||||||||||
296 | - | |||||||||||||||||||
297 | IdentifierExpression(const QStringRef &n): | - | ||||||||||||||||||
298 | name (n) { kind = K; } executed 13199313 times by 148 tests: end of block Executed by:
| 13199313 | ||||||||||||||||||
299 | - | |||||||||||||||||||
300 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
301 | - | |||||||||||||||||||
302 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
303 | { return executed 18395421 times by 139 tests: identifierToken;return identifierToken; Executed by:
executed 18395421 times by 139 tests: }return identifierToken; Executed by:
| 18395421 | ||||||||||||||||||
304 | - | |||||||||||||||||||
305 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
306 | { return executed 4733959 times by 130 tests: identifierToken;return identifierToken; Executed by:
executed 4733959 times by 130 tests: }return identifierToken; Executed by:
| 4733959 | ||||||||||||||||||
307 | - | |||||||||||||||||||
308 | - | |||||||||||||||||||
309 | QStringRef name; | - | ||||||||||||||||||
310 | SourceLocation identifierToken; | - | ||||||||||||||||||
311 | }; | - | ||||||||||||||||||
312 | - | |||||||||||||||||||
313 | class __attribute__((visibility("default"))) NullExpression: public LeftHandSideExpression | - | ||||||||||||||||||
314 | { | - | ||||||||||||||||||
315 | public: | - | ||||||||||||||||||
316 | enum { K = Kind_NullExpression }; | - | ||||||||||||||||||
317 | - | |||||||||||||||||||
318 | NullExpression() { kind = K; } executed 123125 times by 36 tests: end of block Executed by:
| 123125 | ||||||||||||||||||
319 | - | |||||||||||||||||||
320 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
321 | - | |||||||||||||||||||
322 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
323 | { return executed 34933 times by 10 tests: nullToken;return nullToken; Executed by:
executed 34933 times by 10 tests: }return nullToken; Executed by:
| 34933 | ||||||||||||||||||
324 | - | |||||||||||||||||||
325 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
326 | { return executed 72167 times by 19 tests: nullToken;return nullToken; Executed by:
executed 72167 times by 19 tests: }return nullToken; Executed by:
| 72167 | ||||||||||||||||||
327 | - | |||||||||||||||||||
328 | - | |||||||||||||||||||
329 | SourceLocation nullToken; | - | ||||||||||||||||||
330 | }; | - | ||||||||||||||||||
331 | - | |||||||||||||||||||
332 | class __attribute__((visibility("default"))) TrueLiteral: public LeftHandSideExpression | - | ||||||||||||||||||
333 | { | - | ||||||||||||||||||
334 | public: | - | ||||||||||||||||||
335 | enum { K = Kind_TrueLiteral }; | - | ||||||||||||||||||
336 | - | |||||||||||||||||||
337 | TrueLiteral() { kind = K; } executed 201227 times by 96 tests: end of block Executed by:
| 201227 | ||||||||||||||||||
338 | - | |||||||||||||||||||
339 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
340 | - | |||||||||||||||||||
341 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
342 | { return executed 87074 times by 86 tests: trueToken;return trueToken; Executed by:
executed 87074 times by 86 tests: }return trueToken; Executed by:
| 87074 | ||||||||||||||||||
343 | - | |||||||||||||||||||
344 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
345 | { return executed 234302 times by 29 tests: trueToken;return trueToken; Executed by:
executed 234302 times by 29 tests: }return trueToken; Executed by:
| 234302 | ||||||||||||||||||
346 | - | |||||||||||||||||||
347 | - | |||||||||||||||||||
348 | SourceLocation trueToken; | - | ||||||||||||||||||
349 | }; | - | ||||||||||||||||||
350 | - | |||||||||||||||||||
351 | class __attribute__((visibility("default"))) FalseLiteral: public LeftHandSideExpression | - | ||||||||||||||||||
352 | { | - | ||||||||||||||||||
353 | public: | - | ||||||||||||||||||
354 | enum { K = Kind_FalseLiteral }; | - | ||||||||||||||||||
355 | - | |||||||||||||||||||
356 | FalseLiteral() { kind = K; } executed 74127 times by 85 tests: end of block Executed by:
| 74127 | ||||||||||||||||||
357 | - | |||||||||||||||||||
358 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
359 | - | |||||||||||||||||||
360 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
361 | { return executed 66156 times by 78 tests: falseToken;return falseToken; Executed by:
executed 66156 times by 78 tests: }return falseToken; Executed by:
| 66156 | ||||||||||||||||||
362 | - | |||||||||||||||||||
363 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
364 | { return executed 175533 times by 21 tests: falseToken;return falseToken; Executed by:
executed 175533 times by 21 tests: }return falseToken; Executed by:
| 175533 | ||||||||||||||||||
365 | - | |||||||||||||||||||
366 | - | |||||||||||||||||||
367 | SourceLocation falseToken; | - | ||||||||||||||||||
368 | }; | - | ||||||||||||||||||
369 | - | |||||||||||||||||||
370 | class __attribute__((visibility("default"))) SuperLiteral : public LeftHandSideExpression | - | ||||||||||||||||||
371 | { | - | ||||||||||||||||||
372 | public: | - | ||||||||||||||||||
373 | enum { K = Kind_SuperLiteral }; | - | ||||||||||||||||||
374 | - | |||||||||||||||||||
375 | SuperLiteral() { kind = K; } executed 1550 times by 3 tests: end of block Executed by:
| 1550 | ||||||||||||||||||
376 | - | |||||||||||||||||||
377 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
378 | - | |||||||||||||||||||
379 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
380 | { return executed 6235 times by 2 tests: superToken;return superToken; Executed by:
executed 6235 times by 2 tests: }return superToken; Executed by:
| 6235 | ||||||||||||||||||
381 | - | |||||||||||||||||||
382 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
383 | { return executed 920 times by 1 test: superToken;return superToken; Executed by:
executed 920 times by 1 test: }return superToken; Executed by:
| 920 | ||||||||||||||||||
384 | - | |||||||||||||||||||
385 | - | |||||||||||||||||||
386 | SourceLocation superToken; | - | ||||||||||||||||||
387 | }; | - | ||||||||||||||||||
388 | - | |||||||||||||||||||
389 | - | |||||||||||||||||||
390 | class __attribute__((visibility("default"))) NumericLiteral: public LeftHandSideExpression | - | ||||||||||||||||||
391 | { | - | ||||||||||||||||||
392 | public: | - | ||||||||||||||||||
393 | enum { K = Kind_NumericLiteral }; | - | ||||||||||||||||||
394 | - | |||||||||||||||||||
395 | NumericLiteral(double v): | - | ||||||||||||||||||
396 | value(v) { kind = K; } executed 1587558 times by 134 tests: end of block Executed by:
| 1587558 | ||||||||||||||||||
397 | - | |||||||||||||||||||
398 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
399 | - | |||||||||||||||||||
400 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
401 | { return executed 1546610 times by 124 tests: literalToken;return literalToken; Executed by:
executed 1546610 times by 124 tests: }return literalToken; Executed by:
| 1546610 | ||||||||||||||||||
402 | - | |||||||||||||||||||
403 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
404 | { return executed 2787219 times by 57 tests: literalToken;return literalToken; Executed by:
executed 2787219 times by 57 tests: }return literalToken; Executed by:
| 2787219 | ||||||||||||||||||
405 | - | |||||||||||||||||||
406 | - | |||||||||||||||||||
407 | double value; | - | ||||||||||||||||||
408 | SourceLocation literalToken; | - | ||||||||||||||||||
409 | }; | - | ||||||||||||||||||
410 | - | |||||||||||||||||||
411 | class __attribute__((visibility("default"))) StringLiteral: public LeftHandSideExpression | - | ||||||||||||||||||
412 | { | - | ||||||||||||||||||
413 | public: | - | ||||||||||||||||||
414 | enum { K = Kind_StringLiteral }; | - | ||||||||||||||||||
415 | - | |||||||||||||||||||
416 | StringLiteral(const QStringRef &v): | - | ||||||||||||||||||
417 | value (v) { kind = K; } executed 3736284 times by 138 tests: end of block Executed by:
| 3736284 | ||||||||||||||||||
418 | - | |||||||||||||||||||
419 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
420 | - | |||||||||||||||||||
421 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
422 | { return executed 1563651 times by 125 tests: literalToken;return literalToken; Executed by:
executed 1563651 times by 125 tests: }return literalToken; Executed by:
| 1563651 | ||||||||||||||||||
423 | - | |||||||||||||||||||
424 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
425 | { return executed 1914033 times by 40 tests: literalToken;return literalToken; Executed by:
executed 1914033 times by 40 tests: }return literalToken; Executed by:
| 1914033 | ||||||||||||||||||
426 | - | |||||||||||||||||||
427 | - | |||||||||||||||||||
428 | QStringRef value; | - | ||||||||||||||||||
429 | SourceLocation literalToken; | - | ||||||||||||||||||
430 | }; | - | ||||||||||||||||||
431 | - | |||||||||||||||||||
432 | class __attribute__((visibility("default"))) TemplateLiteral : public LeftHandSideExpression | - | ||||||||||||||||||
433 | { | - | ||||||||||||||||||
434 | public: | - | ||||||||||||||||||
435 | enum { K = Kind_TemplateLiteral }; | - | ||||||||||||||||||
436 | - | |||||||||||||||||||
437 | TemplateLiteral(const QStringRef &str, ExpressionNode *e) | - | ||||||||||||||||||
438 | : value(str), expression(e), next(nullptr) | - | ||||||||||||||||||
439 | { kind = K; } executed 2248 times by 3 tests: end of block Executed by:
| 2248 | ||||||||||||||||||
440 | - | |||||||||||||||||||
441 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
442 | { return executed 2702 times by 2 tests: literalToken;return literalToken; Executed by:
executed 2702 times by 2 tests: }return literalToken; Executed by:
| 2702 | ||||||||||||||||||
443 | - | |||||||||||||||||||
444 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
445 | { return executed 5948 times by 2 tests: next ? next->lastSourceLocation() : (expression ? expression->lastSourceLocation() : literalToken);return next ? next->lastSourceLocation() : (expression ? expression->lastSourceLocation() : literalToken); Executed by:
executed 5948 times by 2 tests: }return next ? next->lastSourceLocation() : (expression ? expression->lastSourceLocation() : literalToken); Executed by:
| 5948 | ||||||||||||||||||
446 | - | |||||||||||||||||||
447 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
448 | - | |||||||||||||||||||
449 | QStringRef value; | - | ||||||||||||||||||
450 | ExpressionNode *expression; | - | ||||||||||||||||||
451 | TemplateLiteral *next; | - | ||||||||||||||||||
452 | SourceLocation literalToken; | - | ||||||||||||||||||
453 | }; | - | ||||||||||||||||||
454 | - | |||||||||||||||||||
455 | class __attribute__((visibility("default"))) RegExpLiteral: public LeftHandSideExpression | - | ||||||||||||||||||
456 | { | - | ||||||||||||||||||
457 | public: | - | ||||||||||||||||||
458 | enum { K = Kind_RegExpLiteral }; | - | ||||||||||||||||||
459 | - | |||||||||||||||||||
460 | RegExpLiteral(const QStringRef &p, int f): | - | ||||||||||||||||||
461 | pattern (p), flags (f) { kind = K; } executed 1062556 times by 9 tests: end of block Executed by:
| 1062556 | ||||||||||||||||||
462 | - | |||||||||||||||||||
463 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
464 | - | |||||||||||||||||||
465 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
466 | { return executed 4221636 times by 8 tests: literalToken;return literalToken; Executed by:
executed 4221636 times by 8 tests: }return literalToken; Executed by:
| 4221636 | ||||||||||||||||||
467 | - | |||||||||||||||||||
468 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
469 | { return executed 1077379 times by 7 tests: literalToken;return literalToken; Executed by:
executed 1077379 times by 7 tests: }return literalToken; Executed by:
| 1077379 | ||||||||||||||||||
470 | - | |||||||||||||||||||
471 | - | |||||||||||||||||||
472 | QStringRef pattern; | - | ||||||||||||||||||
473 | int flags; | - | ||||||||||||||||||
474 | SourceLocation literalToken; | - | ||||||||||||||||||
475 | }; | - | ||||||||||||||||||
476 | - | |||||||||||||||||||
477 | class __attribute__((visibility("default"))) Pattern : public LeftHandSideExpression | - | ||||||||||||||||||
478 | { | - | ||||||||||||||||||
479 | public: | - | ||||||||||||||||||
480 | enum ParseMode { | - | ||||||||||||||||||
481 | Literal, | - | ||||||||||||||||||
482 | Binding | - | ||||||||||||||||||
483 | }; | - | ||||||||||||||||||
484 | Pattern *patternCast() override; | - | ||||||||||||||||||
485 | virtual bool convertLiteralToAssignmentPattern(MemoryPool *pool, SourceLocation *errorLocation, QString *errorMessage) = 0; | - | ||||||||||||||||||
486 | ParseMode parseMode = Literal; | - | ||||||||||||||||||
487 | }; | - | ||||||||||||||||||
488 | - | |||||||||||||||||||
489 | class __attribute__((visibility("default"))) ArrayPattern : public Pattern | - | ||||||||||||||||||
490 | { | - | ||||||||||||||||||
491 | public: | - | ||||||||||||||||||
492 | enum { K = Kind_ArrayPattern }; | - | ||||||||||||||||||
493 | - | |||||||||||||||||||
494 | ArrayPattern(PatternElementList *elts) | - | ||||||||||||||||||
495 | : elements(elts) | - | ||||||||||||||||||
496 | { kind = K; } executed 118459 times by 47 tests: end of block Executed by:
| 118459 | ||||||||||||||||||
497 | - | |||||||||||||||||||
498 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
499 | - | |||||||||||||||||||
500 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
501 | { return executed 156665 times by 33 tests: lbracketToken;return lbracketToken; Executed by:
executed 156665 times by 33 tests: }return lbracketToken; Executed by:
| 156665 | ||||||||||||||||||
502 | - | |||||||||||||||||||
503 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
504 | { return executed 205871 times by 36 tests: rbracketToken;return rbracketToken; Executed by:
executed 205871 times by 36 tests: }return rbracketToken; Executed by:
| 205871 | ||||||||||||||||||
505 | - | |||||||||||||||||||
506 | bool isValidArrayLiteral(SourceLocation *errorLocation = nullptr) const; | - | ||||||||||||||||||
507 | - | |||||||||||||||||||
508 | bool convertLiteralToAssignmentPattern(MemoryPool *pool, SourceLocation *errorLocation, QString *errorMessage) override; | - | ||||||||||||||||||
509 | - | |||||||||||||||||||
510 | - | |||||||||||||||||||
511 | PatternElementList *elements = nullptr; | - | ||||||||||||||||||
512 | SourceLocation lbracketToken; | - | ||||||||||||||||||
513 | SourceLocation commaToken; | - | ||||||||||||||||||
514 | SourceLocation rbracketToken; | - | ||||||||||||||||||
515 | }; | - | ||||||||||||||||||
516 | - | |||||||||||||||||||
517 | class __attribute__((visibility("default"))) ObjectPattern : public Pattern | - | ||||||||||||||||||
518 | { | - | ||||||||||||||||||
519 | public: | - | ||||||||||||||||||
520 | enum { K = Kind_ObjectPattern }; | - | ||||||||||||||||||
521 | - | |||||||||||||||||||
522 | ObjectPattern() | - | ||||||||||||||||||
523 | { kind = K; } executed 37889 times by 17 tests: end of block Executed by:
| 37889 | ||||||||||||||||||
524 | - | |||||||||||||||||||
525 | ObjectPattern(PatternPropertyList *plist) | - | ||||||||||||||||||
526 | : properties(plist) | - | ||||||||||||||||||
527 | { kind = K; } executed 96855 times by 34 tests: end of block Executed by:
| 96855 | ||||||||||||||||||
528 | - | |||||||||||||||||||
529 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
530 | - | |||||||||||||||||||
531 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
532 | { return executed 164878 times by 8 tests: lbraceToken;return lbraceToken; Executed by:
executed 164878 times by 8 tests: }return lbraceToken; Executed by:
| 164878 | ||||||||||||||||||
533 | - | |||||||||||||||||||
534 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
535 | { return executed 356509 times by 12 tests: rbraceToken;return rbraceToken; Executed by:
executed 356509 times by 12 tests: }return rbraceToken; Executed by:
| 356509 | ||||||||||||||||||
536 | - | |||||||||||||||||||
537 | bool convertLiteralToAssignmentPattern(MemoryPool *pool, SourceLocation *errorLocation, QString *errorMessage) override; | - | ||||||||||||||||||
538 | - | |||||||||||||||||||
539 | - | |||||||||||||||||||
540 | PatternPropertyList *properties = nullptr; | - | ||||||||||||||||||
541 | SourceLocation lbraceToken; | - | ||||||||||||||||||
542 | SourceLocation rbraceToken; | - | ||||||||||||||||||
543 | }; | - | ||||||||||||||||||
544 | - | |||||||||||||||||||
545 | class __attribute__((visibility("default"))) Elision: public Node | - | ||||||||||||||||||
546 | { | - | ||||||||||||||||||
547 | public: | - | ||||||||||||||||||
548 | enum { K = Kind_Elision }; | - | ||||||||||||||||||
549 | - | |||||||||||||||||||
550 | Elision(): | - | ||||||||||||||||||
551 | next (this) { kind = K; } executed 4035 times by 4 tests: end of block Executed by:
| 4035 | ||||||||||||||||||
552 | - | |||||||||||||||||||
553 | Elision(Elision *previous) | - | ||||||||||||||||||
554 | { | - | ||||||||||||||||||
555 | kind = K; | - | ||||||||||||||||||
556 | next = previous->next; | - | ||||||||||||||||||
557 | previous->next = this; | - | ||||||||||||||||||
558 | } executed 1148 times by 2 tests: end of block Executed by:
| 1148 | ||||||||||||||||||
559 | - | |||||||||||||||||||
560 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
561 | - | |||||||||||||||||||
562 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
563 | { return executed 7030 times by 1 test: commaToken;return commaToken; Executed by:
executed 7030 times by 1 test: }return commaToken; Executed by:
| 7030 | ||||||||||||||||||
564 | - | |||||||||||||||||||
565 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
566 | { return executed 6492 times by 1 test: next ? next->lastSourceLocation() : commaToken;return next ? next->lastSourceLocation() : commaToken; Executed by:
executed 6492 times by 1 test: }return next ? next->lastSourceLocation() : commaToken; Executed by:
| 6492 | ||||||||||||||||||
567 | - | |||||||||||||||||||
568 | inline Elision *finish () | - | ||||||||||||||||||
569 | { | - | ||||||||||||||||||
570 | Elision *front = next; | - | ||||||||||||||||||
571 | next = nullptr; | - | ||||||||||||||||||
572 | return executed 4034 times by 4 tests: front;return front; Executed by:
executed 4034 times by 4 tests: return front; Executed by:
| 4034 | ||||||||||||||||||
573 | } | - | ||||||||||||||||||
574 | - | |||||||||||||||||||
575 | - | |||||||||||||||||||
576 | Elision *next; | - | ||||||||||||||||||
577 | SourceLocation commaToken; | - | ||||||||||||||||||
578 | }; | - | ||||||||||||||||||
579 | - | |||||||||||||||||||
580 | class __attribute__((visibility("default"))) PropertyName: public Node | - | ||||||||||||||||||
581 | { | - | ||||||||||||||||||
582 | public: | - | ||||||||||||||||||
583 | enum { K = Kind_PropertyName }; | - | ||||||||||||||||||
584 | - | |||||||||||||||||||
585 | PropertyName() { kind = K; } executed 188274 times by 34 tests: end of block Executed by:
| 188274 | ||||||||||||||||||
586 | - | |||||||||||||||||||
587 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
588 | { return executed 583678 times by 2 tests: propertyNameToken;return propertyNameToken; Executed by:
executed 583678 times by 2 tests: }return propertyNameToken; Executed by:
| 583678 | ||||||||||||||||||
589 | - | |||||||||||||||||||
590 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
591 | { return executed 138482 times by 1 test: propertyNameToken;return propertyNameToken; Executed by:
executed 138482 times by 1 test: }return propertyNameToken; Executed by:
| 138482 | ||||||||||||||||||
592 | - | |||||||||||||||||||
593 | virtual QString asString() const = 0; | - | ||||||||||||||||||
594 | - | |||||||||||||||||||
595 | - | |||||||||||||||||||
596 | SourceLocation propertyNameToken; | - | ||||||||||||||||||
597 | }; | - | ||||||||||||||||||
598 | - | |||||||||||||||||||
599 | class __attribute__((visibility("default"))) PatternElement : public Node | - | ||||||||||||||||||
600 | { | - | ||||||||||||||||||
601 | public: | - | ||||||||||||||||||
602 | enum { K = Kind_PatternElement }; | - | ||||||||||||||||||
603 | - | |||||||||||||||||||
604 | enum Type { | - | ||||||||||||||||||
605 | - | |||||||||||||||||||
606 | Literal, | - | ||||||||||||||||||
607 | Getter, | - | ||||||||||||||||||
608 | Setter, | - | ||||||||||||||||||
609 | - | |||||||||||||||||||
610 | - | |||||||||||||||||||
611 | SpreadElement, | - | ||||||||||||||||||
612 | RestElement = SpreadElement, | - | ||||||||||||||||||
613 | - | |||||||||||||||||||
614 | - | |||||||||||||||||||
615 | Binding, | - | ||||||||||||||||||
616 | }; | - | ||||||||||||||||||
617 | - | |||||||||||||||||||
618 | PatternElement(ExpressionNode *i = nullptr, Type t = Literal) | - | ||||||||||||||||||
619 | : initializer(i), type(t) | - | ||||||||||||||||||
620 | { kind = K; } executed 444933 times by 49 tests: end of block Executed by:
| 444933 | ||||||||||||||||||
621 | - | |||||||||||||||||||
622 | PatternElement(const QStringRef &n, ExpressionNode *i = nullptr, Type t = Binding) | - | ||||||||||||||||||
623 | : bindingIdentifier(n), initializer(i), type(t) | - | ||||||||||||||||||
624 | { | - | ||||||||||||||||||
625 | ((t >= RestElement) ? static_cast<void>(0) : qt_assert("t >= RestElement", __FILE__, 680)); | - | ||||||||||||||||||
626 | kind = K; | - | ||||||||||||||||||
627 | } executed 2735448 times by 72 tests: end of block Executed by:
| 2735448 | ||||||||||||||||||
628 | - | |||||||||||||||||||
629 | PatternElement(Pattern *pattern, ExpressionNode *i = nullptr, Type t = Binding) | - | ||||||||||||||||||
630 | : bindingTarget(pattern), initializer(i), type(t) | - | ||||||||||||||||||
631 | { | - | ||||||||||||||||||
632 | ((t >= RestElement) ? static_cast<void>(0) : qt_assert("t >= RestElement", __FILE__, 687)); | - | ||||||||||||||||||
633 | kind = K; | - | ||||||||||||||||||
634 | } executed 31814 times by 2 tests: end of block Executed by:
| 31814 | ||||||||||||||||||
635 | - | |||||||||||||||||||
636 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
637 | virtual bool convertLiteralToAssignmentPattern(MemoryPool *pool, SourceLocation *errorLocation, QString *errorMessage); | - | ||||||||||||||||||
638 | - | |||||||||||||||||||
639 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
640 | { return executed 1268350 times by 2 tests: identifierToken.isValid() ? identifierToken : (bindingTarget ? bindingTarget->firstSourceLocation() : initializer->firstSourceLocation());return identifierToken.isValid() ? identifierToken : (bindingTarget ? bindingTarget->firstSourceLocation() : initializer->firstSourceLocation()); Executed by:
executed 1268350 times by 2 tests: }return identifierToken.isValid() ? identifierToken : (bindingTarget ? bindingTarget->firstSourceLocation() : initializer->firstSourceLocation()); Executed by:
| 1268350 | ||||||||||||||||||
641 | - | |||||||||||||||||||
642 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
643 | { return executed 2039482 times by 9 tests: initializer ? initializer->lastSourceLocation() : (bindingTarget ? bindingTarget->lastSourceLocation() : identifierToken);return initializer ? initializer->lastSourceLocation() : (bindingTarget ? bindingTarget->lastSourceLocation() : identifierToken); Executed by:
executed 2039482 times by 9 tests: }return initializer ? initializer->lastSourceLocation() : (bindingTarget ? bindingTarget->lastSourceLocation() : identifierToken); Executed by:
| 2039482 | ||||||||||||||||||
644 | - | |||||||||||||||||||
645 | ExpressionNode *destructuringTarget() const { return never executed: bindingTarget;return bindingTarget; never executed: }return bindingTarget; | 0 | ||||||||||||||||||
646 | Pattern *destructuringPattern() const { return executed 503432 times by 50 tests: bindingTarget ? bindingTarget->patternCast() : nullptr;return bindingTarget ? bindingTarget->patternCast() : nullptr; Executed by:
executed 503432 times by 50 tests: }return bindingTarget ? bindingTarget->patternCast() : nullptr; Executed by:
| 503432 | ||||||||||||||||||
647 | PatternElementList *elementList() const { ArrayPattern *a = cast<ArrayPattern *>(bindingTarget); return executed 36528 times by 1 test: a ? a->elements : nullptr;return a ? a->elements : nullptr; Executed by:
executed 36528 times by 1 test: }return a ? a->elements : nullptr; Executed by:
| 36528 | ||||||||||||||||||
648 | PatternPropertyList *propertyList() const { ObjectPattern *o = cast<ObjectPattern *>(bindingTarget); return executed 15364 times by 1 test: o ? o->properties : nullptr;return o ? o->properties : nullptr; Executed by:
executed 15364 times by 1 test: }return o ? o->properties : nullptr; Executed by:
| 15364 | ||||||||||||||||||
649 | - | |||||||||||||||||||
650 | bool isVariableDeclaration() const { return never executed: scope != VariableScope::NoScope;return scope != VariableScope::NoScope; never executed: }return scope != VariableScope::NoScope; | 0 | ||||||||||||||||||
651 | bool isLexicallyScoped() const { return never executed: scope == VariableScope::Let || scope == VariableScope::Const;return scope == VariableScope::Let || scope == VariableScope::Const; never executed: }return scope == VariableScope::Let || scope == VariableScope::Const; | 0 | ||||||||||||||||||
652 | - | |||||||||||||||||||
653 | virtual void boundNames(QStringList *names); | - | ||||||||||||||||||
654 | - | |||||||||||||||||||
655 | - | |||||||||||||||||||
656 | SourceLocation identifierToken; | - | ||||||||||||||||||
657 | QStringRef bindingIdentifier; | - | ||||||||||||||||||
658 | ExpressionNode *bindingTarget = nullptr; | - | ||||||||||||||||||
659 | ExpressionNode *initializer = nullptr; | - | ||||||||||||||||||
660 | Type type = Literal; | - | ||||||||||||||||||
661 | - | |||||||||||||||||||
662 | VariableScope scope = VariableScope::NoScope; | - | ||||||||||||||||||
663 | }; | - | ||||||||||||||||||
664 | - | |||||||||||||||||||
665 | class __attribute__((visibility("default"))) PatternElementList : public Node | - | ||||||||||||||||||
666 | { | - | ||||||||||||||||||
667 | public: | - | ||||||||||||||||||
668 | enum { K = Kind_PatternElementList }; | - | ||||||||||||||||||
669 | - | |||||||||||||||||||
670 | PatternElementList(Elision *elision, PatternElement *element) | - | ||||||||||||||||||
671 | : elision(elision), element(element), next(this) | - | ||||||||||||||||||
672 | { kind = K; } executed 304392 times by 41 tests: end of block Executed by:
| 304392 | ||||||||||||||||||
673 | - | |||||||||||||||||||
674 | PatternElementList *append(PatternElementList *n) { | - | ||||||||||||||||||
675 | n->next = next; | - | ||||||||||||||||||
676 | next = n; | - | ||||||||||||||||||
677 | return executed 212740 times by 38 tests: n;return n; Executed by:
executed 212740 times by 38 tests: return n; Executed by:
| 212740 | ||||||||||||||||||
678 | } | - | ||||||||||||||||||
679 | - | |||||||||||||||||||
680 | inline PatternElementList *finish () | - | ||||||||||||||||||
681 | { | - | ||||||||||||||||||
682 | PatternElementList *front = next; | - | ||||||||||||||||||
683 | next = 0; | - | ||||||||||||||||||
684 | return executed 91669 times by 41 tests: front;return front; Executed by:
executed 91669 times by 41 tests: return front; Executed by:
| 91669 | ||||||||||||||||||
685 | } | - | ||||||||||||||||||
686 | - | |||||||||||||||||||
687 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
688 | - | |||||||||||||||||||
689 | void boundNames(QStringList *names); | - | ||||||||||||||||||
690 | - | |||||||||||||||||||
691 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
692 | { return executed 225700 times by 1 test: elision ? elision->firstSourceLocation() : element->firstSourceLocation();return elision ? elision->firstSourceLocation() : element->firstSourceLocation(); Executed by:
executed 225700 times by 1 test: }return elision ? elision->firstSourceLocation() : element->firstSourceLocation(); Executed by:
| 225700 | ||||||||||||||||||
693 | - | |||||||||||||||||||
694 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
695 | { return executed 2072058 times by 1 test: next ? next->lastSourceLocation() : (element ? element->lastSourceLocation() : elision->lastSourceLocation());return next ? next->lastSourceLocation() : (element ? element->lastSourceLocation() : elision->lastSourceLocation()); Executed by:
executed 2072058 times by 1 test: }return next ? next->lastSourceLocation() : (element ? element->lastSourceLocation() : elision->lastSourceLocation()); Executed by:
| 2072058 | ||||||||||||||||||
696 | - | |||||||||||||||||||
697 | Elision *elision = nullptr; | - | ||||||||||||||||||
698 | PatternElement *element = nullptr; | - | ||||||||||||||||||
699 | PatternElementList *next; | - | ||||||||||||||||||
700 | }; | - | ||||||||||||||||||
701 | - | |||||||||||||||||||
702 | class __attribute__((visibility("default"))) PatternProperty : public PatternElement | - | ||||||||||||||||||
703 | { | - | ||||||||||||||||||
704 | public: | - | ||||||||||||||||||
705 | enum { K = Kind_PatternProperty }; | - | ||||||||||||||||||
706 | - | |||||||||||||||||||
707 | PatternProperty(PropertyName *name, ExpressionNode *i = nullptr, Type t = Literal) | - | ||||||||||||||||||
708 | : PatternElement(i, t), name(name) | - | ||||||||||||||||||
709 | { kind = K; } executed 166037 times by 34 tests: end of block Executed by:
| 166037 | ||||||||||||||||||
710 | - | |||||||||||||||||||
711 | PatternProperty(PropertyName *name, const QStringRef &n, ExpressionNode *i = nullptr) | - | ||||||||||||||||||
712 | : PatternElement(n, i), name(name) | - | ||||||||||||||||||
713 | { kind = K; } executed 16481 times by 2 tests: end of block Executed by:
| 16481 | ||||||||||||||||||
714 | - | |||||||||||||||||||
715 | PatternProperty(PropertyName *name, Pattern *pattern, ExpressionNode *i = nullptr) | - | ||||||||||||||||||
716 | : PatternElement(pattern, i), name(name) | - | ||||||||||||||||||
717 | { kind = K; } executed 2082 times by 2 tests: end of block Executed by:
| 2082 | ||||||||||||||||||
718 | - | |||||||||||||||||||
719 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
720 | - | |||||||||||||||||||
721 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
722 | { return executed 449102 times by 2 tests: name->firstSourceLocation();return name->firstSourceLocation(); Executed by:
executed 449102 times by 2 tests: }return name->firstSourceLocation(); Executed by:
| 449102 | ||||||||||||||||||
723 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
724 | { | - | ||||||||||||||||||
725 | SourceLocation loc = PatternElement::lastSourceLocation(); | - | ||||||||||||||||||
726 | return executed 449046 times by 1 test: loc.isValid() ? loc : name->lastSourceLocation();return loc.isValid() ? loc : name->lastSourceLocation(); Executed by:
executed 449046 times by 1 test: return loc.isValid() ? loc : name->lastSourceLocation(); Executed by:
| 449046 | ||||||||||||||||||
727 | } | - | ||||||||||||||||||
728 | - | |||||||||||||||||||
729 | void boundNames(QStringList *names) override; | - | ||||||||||||||||||
730 | bool convertLiteralToAssignmentPattern(MemoryPool *pool, SourceLocation *errorLocation, QString *errorMessage) override; | - | ||||||||||||||||||
731 | - | |||||||||||||||||||
732 | - | |||||||||||||||||||
733 | PropertyName *name; | - | ||||||||||||||||||
734 | SourceLocation colonToken; | - | ||||||||||||||||||
735 | }; | - | ||||||||||||||||||
736 | - | |||||||||||||||||||
737 | - | |||||||||||||||||||
738 | class __attribute__((visibility("default"))) PatternPropertyList : public Node | - | ||||||||||||||||||
739 | { | - | ||||||||||||||||||
740 | public: | - | ||||||||||||||||||
741 | enum { K = Kind_PatternPropertyList }; | - | ||||||||||||||||||
742 | - | |||||||||||||||||||
743 | PatternPropertyList(PatternProperty *property) | - | ||||||||||||||||||
744 | : property(property), next(this) | - | ||||||||||||||||||
745 | { kind = K; } executed 95882 times by 34 tests: end of block Executed by:
| 95882 | ||||||||||||||||||
746 | - | |||||||||||||||||||
747 | PatternPropertyList(PatternPropertyList *previous, PatternProperty *property) | - | ||||||||||||||||||
748 | : property(property), next(this) | - | ||||||||||||||||||
749 | { | - | ||||||||||||||||||
750 | kind = K; | - | ||||||||||||||||||
751 | next = previous->next; | - | ||||||||||||||||||
752 | previous->next = this; | - | ||||||||||||||||||
753 | } executed 74161 times by 25 tests: end of block Executed by:
| 74161 | ||||||||||||||||||
754 | - | |||||||||||||||||||
755 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
756 | - | |||||||||||||||||||
757 | void boundNames(QStringList *names); | - | ||||||||||||||||||
758 | - | |||||||||||||||||||
759 | inline PatternPropertyList *finish () | - | ||||||||||||||||||
760 | { | - | ||||||||||||||||||
761 | PatternPropertyList *front = next; | - | ||||||||||||||||||
762 | next = 0; | - | ||||||||||||||||||
763 | return executed 95783 times by 34 tests: front;return front; Executed by:
executed 95783 times by 34 tests: return front; Executed by:
| 95783 | ||||||||||||||||||
764 | } | - | ||||||||||||||||||
765 | - | |||||||||||||||||||
766 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
767 | { return executed 195000 times by 1 test: property->firstSourceLocation();return property->firstSourceLocation(); Executed by:
executed 195000 times by 1 test: }return property->firstSourceLocation(); Executed by:
| 195000 | ||||||||||||||||||
768 | - | |||||||||||||||||||
769 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
770 | { return executed 809560 times by 1 test: next ? next->lastSourceLocation() : property->lastSourceLocation();return next ? next->lastSourceLocation() : property->lastSourceLocation(); Executed by:
executed 809560 times by 1 test: }return next ? next->lastSourceLocation() : property->lastSourceLocation(); Executed by:
| 809560 | ||||||||||||||||||
771 | - | |||||||||||||||||||
772 | PatternProperty *property; | - | ||||||||||||||||||
773 | PatternPropertyList *next; | - | ||||||||||||||||||
774 | }; | - | ||||||||||||||||||
775 | - | |||||||||||||||||||
776 | class __attribute__((visibility("default"))) IdentifierPropertyName : public PropertyName | - | ||||||||||||||||||
777 | { | - | ||||||||||||||||||
778 | public: | - | ||||||||||||||||||
779 | enum { K = Kind_IdentifierPropertyName }; | - | ||||||||||||||||||
780 | - | |||||||||||||||||||
781 | IdentifierPropertyName(const QStringRef &n): | - | ||||||||||||||||||
782 | id (n) { kind = K; } executed 152440 times by 22 tests: end of block Executed by:
| 152440 | ||||||||||||||||||
783 | - | |||||||||||||||||||
784 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
785 | - | |||||||||||||||||||
786 | QString asString() const override { return executed 115562 times by 22 tests: id.toString();return id.toString(); Executed by:
executed 115562 times by 22 tests: }return id.toString(); Executed by:
| 115562 | ||||||||||||||||||
787 | - | |||||||||||||||||||
788 | - | |||||||||||||||||||
789 | QStringRef id; | - | ||||||||||||||||||
790 | }; | - | ||||||||||||||||||
791 | - | |||||||||||||||||||
792 | class __attribute__((visibility("default"))) StringLiteralPropertyName: public PropertyName | - | ||||||||||||||||||
793 | { | - | ||||||||||||||||||
794 | public: | - | ||||||||||||||||||
795 | enum { K = Kind_StringLiteralPropertyName }; | - | ||||||||||||||||||
796 | - | |||||||||||||||||||
797 | StringLiteralPropertyName(const QStringRef &n): | - | ||||||||||||||||||
798 | id (n) { kind = K; } executed 23057 times by 21 tests: end of block Executed by:
| 23057 | ||||||||||||||||||
799 | - | |||||||||||||||||||
800 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
801 | - | |||||||||||||||||||
802 | QString asString() const override { return executed 15156 times by 21 tests: id.toString();return id.toString(); Executed by:
executed 15156 times by 21 tests: }return id.toString(); Executed by:
| 15156 | ||||||||||||||||||
803 | - | |||||||||||||||||||
804 | - | |||||||||||||||||||
805 | QStringRef id; | - | ||||||||||||||||||
806 | }; | - | ||||||||||||||||||
807 | - | |||||||||||||||||||
808 | class __attribute__((visibility("default"))) NumericLiteralPropertyName: public PropertyName | - | ||||||||||||||||||
809 | { | - | ||||||||||||||||||
810 | public: | - | ||||||||||||||||||
811 | enum { K = Kind_NumericLiteralPropertyName }; | - | ||||||||||||||||||
812 | - | |||||||||||||||||||
813 | NumericLiteralPropertyName(double n): | - | ||||||||||||||||||
814 | id (n) { kind = K; } executed 8479 times by 3 tests: end of block Executed by:
| 8479 | ||||||||||||||||||
815 | - | |||||||||||||||||||
816 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
817 | - | |||||||||||||||||||
818 | QString asString() const override { return executed 8028 times by 2 tests: QString::number(id, 'g', 16);return QString::number(id, 'g', 16); Executed by:
executed 8028 times by 2 tests: }return QString::number(id, 'g', 16); Executed by:
| 8028 | ||||||||||||||||||
819 | - | |||||||||||||||||||
820 | - | |||||||||||||||||||
821 | double id; | - | ||||||||||||||||||
822 | }; | - | ||||||||||||||||||
823 | - | |||||||||||||||||||
824 | class __attribute__((visibility("default"))) ComputedPropertyName : public PropertyName | - | ||||||||||||||||||
825 | { | - | ||||||||||||||||||
826 | public: | - | ||||||||||||||||||
827 | enum { K = Kind_ComputedPropertyName }; | - | ||||||||||||||||||
828 | - | |||||||||||||||||||
829 | ComputedPropertyName(ExpressionNode *expression) | - | ||||||||||||||||||
830 | : expression(expression) | - | ||||||||||||||||||
831 | { kind = K; } executed 4165 times by 2 tests: end of block Executed by:
| 4165 | ||||||||||||||||||
832 | - | |||||||||||||||||||
833 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
834 | - | |||||||||||||||||||
835 | QString asString() const override { return executed 543 times by 1 test: QString();return QString(); Executed by:
executed 543 times by 1 test: }return QString(); Executed by:
| 543 | ||||||||||||||||||
836 | - | |||||||||||||||||||
837 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
838 | { return executed 12133 times by 2 tests: expression->firstSourceLocation();return expression->firstSourceLocation(); Executed by:
executed 12133 times by 2 tests: }return expression->firstSourceLocation(); Executed by:
| 12133 | ||||||||||||||||||
839 | - | |||||||||||||||||||
840 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
841 | { return executed 3036 times by 1 test: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 3036 times by 1 test: }return expression->lastSourceLocation(); Executed by:
| 3036 | ||||||||||||||||||
842 | - | |||||||||||||||||||
843 | - | |||||||||||||||||||
844 | ExpressionNode *expression; | - | ||||||||||||||||||
845 | }; | - | ||||||||||||||||||
846 | - | |||||||||||||||||||
847 | - | |||||||||||||||||||
848 | class __attribute__((visibility("default"))) ArrayMemberExpression: public LeftHandSideExpression | - | ||||||||||||||||||
849 | { | - | ||||||||||||||||||
850 | public: | - | ||||||||||||||||||
851 | enum { K = Kind_ArrayMemberExpression }; | - | ||||||||||||||||||
852 | - | |||||||||||||||||||
853 | ArrayMemberExpression(ExpressionNode *b, ExpressionNode *e): | - | ||||||||||||||||||
854 | base (b), expression (e) | - | ||||||||||||||||||
855 | { kind = K; } executed 161899 times by 34 tests: end of block Executed by:
| 161899 | ||||||||||||||||||
856 | - | |||||||||||||||||||
857 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
858 | - | |||||||||||||||||||
859 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
860 | { return executed 365596 times by 20 tests: base->firstSourceLocation();return base->firstSourceLocation(); Executed by:
executed 365596 times by 20 tests: }return base->firstSourceLocation(); Executed by:
| 365596 | ||||||||||||||||||
861 | - | |||||||||||||||||||
862 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
863 | { return executed 209308 times by 17 tests: rbracketToken;return rbracketToken; Executed by:
executed 209308 times by 17 tests: }return rbracketToken; Executed by:
| 209308 | ||||||||||||||||||
864 | - | |||||||||||||||||||
865 | - | |||||||||||||||||||
866 | ExpressionNode *base; | - | ||||||||||||||||||
867 | ExpressionNode *expression; | - | ||||||||||||||||||
868 | SourceLocation lbracketToken; | - | ||||||||||||||||||
869 | SourceLocation rbracketToken; | - | ||||||||||||||||||
870 | }; | - | ||||||||||||||||||
871 | - | |||||||||||||||||||
872 | class __attribute__((visibility("default"))) FieldMemberExpression: public LeftHandSideExpression | - | ||||||||||||||||||
873 | { | - | ||||||||||||||||||
874 | public: | - | ||||||||||||||||||
875 | enum { K = Kind_FieldMemberExpression }; | - | ||||||||||||||||||
876 | - | |||||||||||||||||||
877 | FieldMemberExpression(ExpressionNode *b, const QStringRef &n): | - | ||||||||||||||||||
878 | base (b), name (n) | - | ||||||||||||||||||
879 | { kind = K; } executed 3209543 times by 139 tests: end of block Executed by:
| 3209543 | ||||||||||||||||||
880 | - | |||||||||||||||||||
881 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
882 | - | |||||||||||||||||||
883 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
884 | { return executed 6195244 times by 112 tests: base->firstSourceLocation();return base->firstSourceLocation(); Executed by:
executed 6195244 times by 112 tests: }return base->firstSourceLocation(); Executed by:
| 6195244 | ||||||||||||||||||
885 | - | |||||||||||||||||||
886 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
887 | { return executed 2030326 times by 106 tests: identifierToken;return identifierToken; Executed by:
executed 2030326 times by 106 tests: }return identifierToken; Executed by:
| 2030326 | ||||||||||||||||||
888 | - | |||||||||||||||||||
889 | - | |||||||||||||||||||
890 | ExpressionNode *base; | - | ||||||||||||||||||
891 | QStringRef name; | - | ||||||||||||||||||
892 | SourceLocation dotToken; | - | ||||||||||||||||||
893 | SourceLocation identifierToken; | - | ||||||||||||||||||
894 | }; | - | ||||||||||||||||||
895 | - | |||||||||||||||||||
896 | class __attribute__((visibility("default"))) TaggedTemplate : public LeftHandSideExpression | - | ||||||||||||||||||
897 | { | - | ||||||||||||||||||
898 | public: | - | ||||||||||||||||||
899 | enum { K = Kind_TaggedTemplate }; | - | ||||||||||||||||||
900 | - | |||||||||||||||||||
901 | TaggedTemplate(ExpressionNode *b, TemplateLiteral *t) | - | ||||||||||||||||||
902 | : base (b), templateLiteral(t) | - | ||||||||||||||||||
903 | { kind = K; } executed 458 times by 2 tests: end of block Executed by:
| 458 | ||||||||||||||||||
904 | - | |||||||||||||||||||
905 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
906 | - | |||||||||||||||||||
907 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
908 | { return executed 1573 times by 2 tests: base->firstSourceLocation();return base->firstSourceLocation(); Executed by:
executed 1573 times by 2 tests: }return base->firstSourceLocation(); Executed by:
| 1573 | ||||||||||||||||||
909 | - | |||||||||||||||||||
910 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
911 | { return executed 1050 times by 2 tests: templateLiteral->lastSourceLocation();return templateLiteral->lastSourceLocation(); Executed by:
executed 1050 times by 2 tests: }return templateLiteral->lastSourceLocation(); Executed by:
| 1050 | ||||||||||||||||||
912 | - | |||||||||||||||||||
913 | - | |||||||||||||||||||
914 | ExpressionNode *base; | - | ||||||||||||||||||
915 | TemplateLiteral *templateLiteral; | - | ||||||||||||||||||
916 | }; | - | ||||||||||||||||||
917 | - | |||||||||||||||||||
918 | class __attribute__((visibility("default"))) NewMemberExpression: public LeftHandSideExpression | - | ||||||||||||||||||
919 | { | - | ||||||||||||||||||
920 | public: | - | ||||||||||||||||||
921 | enum { K = Kind_NewMemberExpression }; | - | ||||||||||||||||||
922 | - | |||||||||||||||||||
923 | NewMemberExpression(ExpressionNode *b, ArgumentList *a): | - | ||||||||||||||||||
924 | base (b), arguments (a) | - | ||||||||||||||||||
925 | { kind = K; } executed 255397 times by 22 tests: end of block Executed by:
| 255397 | ||||||||||||||||||
926 | - | |||||||||||||||||||
927 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
928 | - | |||||||||||||||||||
929 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
930 | { return executed 470303 times by 13 tests: newToken;return newToken; Executed by:
executed 470303 times by 13 tests: }return newToken; Executed by:
| 470303 | ||||||||||||||||||
931 | - | |||||||||||||||||||
932 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
933 | { return executed 431984 times by 12 tests: rparenToken;return rparenToken; Executed by:
executed 431984 times by 12 tests: }return rparenToken; Executed by:
| 431984 | ||||||||||||||||||
934 | - | |||||||||||||||||||
935 | - | |||||||||||||||||||
936 | ExpressionNode *base; | - | ||||||||||||||||||
937 | ArgumentList *arguments; | - | ||||||||||||||||||
938 | SourceLocation newToken; | - | ||||||||||||||||||
939 | SourceLocation lparenToken; | - | ||||||||||||||||||
940 | SourceLocation rparenToken; | - | ||||||||||||||||||
941 | }; | - | ||||||||||||||||||
942 | - | |||||||||||||||||||
943 | class __attribute__((visibility("default"))) NewExpression: public LeftHandSideExpression | - | ||||||||||||||||||
944 | { | - | ||||||||||||||||||
945 | public: | - | ||||||||||||||||||
946 | enum { K = Kind_NewExpression }; | - | ||||||||||||||||||
947 | - | |||||||||||||||||||
948 | NewExpression(ExpressionNode *e): | - | ||||||||||||||||||
949 | expression (e) { kind = K; } executed 1555 times by 11 tests: end of block Executed by:
| 1555 | ||||||||||||||||||
950 | - | |||||||||||||||||||
951 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
952 | - | |||||||||||||||||||
953 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
954 | { return executed 2991 times by 3 tests: newToken;return newToken; Executed by:
executed 2991 times by 3 tests: }return newToken; Executed by:
| 2991 | ||||||||||||||||||
955 | - | |||||||||||||||||||
956 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
957 | { return executed 5976 times by 2 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 5976 times by 2 tests: }return expression->lastSourceLocation(); Executed by:
| 5976 | ||||||||||||||||||
958 | - | |||||||||||||||||||
959 | - | |||||||||||||||||||
960 | ExpressionNode *expression; | - | ||||||||||||||||||
961 | SourceLocation newToken; | - | ||||||||||||||||||
962 | }; | - | ||||||||||||||||||
963 | - | |||||||||||||||||||
964 | class __attribute__((visibility("default"))) CallExpression: public LeftHandSideExpression | - | ||||||||||||||||||
965 | { | - | ||||||||||||||||||
966 | public: | - | ||||||||||||||||||
967 | enum { K = Kind_CallExpression }; | - | ||||||||||||||||||
968 | - | |||||||||||||||||||
969 | CallExpression(ExpressionNode *b, ArgumentList *a): | - | ||||||||||||||||||
970 | base (b), arguments (a) | - | ||||||||||||||||||
971 | { kind = K; } executed 3025135 times by 88 tests: end of block Executed by:
| 3025135 | ||||||||||||||||||
972 | - | |||||||||||||||||||
973 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
974 | - | |||||||||||||||||||
975 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
976 | { return executed 5644026 times by 86 tests: base->firstSourceLocation();return base->firstSourceLocation(); Executed by:
executed 5644026 times by 86 tests: }return base->firstSourceLocation(); Executed by:
| 5644026 | ||||||||||||||||||
977 | - | |||||||||||||||||||
978 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
979 | { return executed 3077930 times by 70 tests: rparenToken;return rparenToken; Executed by:
executed 3077930 times by 70 tests: }return rparenToken; Executed by:
| 3077930 | ||||||||||||||||||
980 | - | |||||||||||||||||||
981 | - | |||||||||||||||||||
982 | ExpressionNode *base; | - | ||||||||||||||||||
983 | ArgumentList *arguments; | - | ||||||||||||||||||
984 | SourceLocation lparenToken; | - | ||||||||||||||||||
985 | SourceLocation rparenToken; | - | ||||||||||||||||||
986 | }; | - | ||||||||||||||||||
987 | - | |||||||||||||||||||
988 | class __attribute__((visibility("default"))) ArgumentList: public Node | - | ||||||||||||||||||
989 | { | - | ||||||||||||||||||
990 | public: | - | ||||||||||||||||||
991 | enum { K = Kind_ArgumentList }; | - | ||||||||||||||||||
992 | - | |||||||||||||||||||
993 | ArgumentList(ExpressionNode *e): | - | ||||||||||||||||||
994 | expression (e), next (this) | - | ||||||||||||||||||
995 | { kind = K; } executed 3053269 times by 78 tests: end of block Executed by:
| 3053269 | ||||||||||||||||||
996 | - | |||||||||||||||||||
997 | ArgumentList(ArgumentList *previous, ExpressionNode *e): | - | ||||||||||||||||||
998 | expression (e) | - | ||||||||||||||||||
999 | { | - | ||||||||||||||||||
1000 | kind = K; | - | ||||||||||||||||||
1001 | next = previous->next; | - | ||||||||||||||||||
1002 | previous->next = this; | - | ||||||||||||||||||
1003 | } executed 1581773 times by 59 tests: end of block Executed by:
| 1581773 | ||||||||||||||||||
1004 | - | |||||||||||||||||||
1005 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1006 | - | |||||||||||||||||||
1007 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1008 | { return executed 1313266 times by 1 test: expression->firstSourceLocation();return expression->firstSourceLocation(); Executed by:
executed 1313266 times by 1 test: }return expression->firstSourceLocation(); Executed by:
| 1313266 | ||||||||||||||||||
1009 | - | |||||||||||||||||||
1010 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1011 | { | - | ||||||||||||||||||
1012 | if (next
| 1313266-1708728 | ||||||||||||||||||
1013 | return executed 1708728 times by 1 test: next->lastSourceLocation();return next->lastSourceLocation(); Executed by:
executed 1708728 times by 1 test: return next->lastSourceLocation(); Executed by:
| 1708728 | ||||||||||||||||||
1014 | return executed 1313266 times by 1 test: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 1313266 times by 1 test: return expression->lastSourceLocation(); Executed by:
| 1313266 | ||||||||||||||||||
1015 | } | - | ||||||||||||||||||
1016 | - | |||||||||||||||||||
1017 | inline ArgumentList *finish () | - | ||||||||||||||||||
1018 | { | - | ||||||||||||||||||
1019 | ArgumentList *front = next; | - | ||||||||||||||||||
1020 | next = nullptr; | - | ||||||||||||||||||
1021 | return executed 3055899 times by 78 tests: front;return front; Executed by:
executed 3055899 times by 78 tests: return front; Executed by:
| 3055899 | ||||||||||||||||||
1022 | } | - | ||||||||||||||||||
1023 | - | |||||||||||||||||||
1024 | - | |||||||||||||||||||
1025 | ExpressionNode *expression; | - | ||||||||||||||||||
1026 | ArgumentList *next; | - | ||||||||||||||||||
1027 | SourceLocation commaToken; | - | ||||||||||||||||||
1028 | bool isSpreadElement = false; | - | ||||||||||||||||||
1029 | }; | - | ||||||||||||||||||
1030 | - | |||||||||||||||||||
1031 | class __attribute__((visibility("default"))) PostIncrementExpression: public ExpressionNode | - | ||||||||||||||||||
1032 | { | - | ||||||||||||||||||
1033 | public: | - | ||||||||||||||||||
1034 | enum { K = Kind_PostIncrementExpression }; | - | ||||||||||||||||||
1035 | - | |||||||||||||||||||
1036 | PostIncrementExpression(ExpressionNode *b): | - | ||||||||||||||||||
1037 | base (b) { kind = K; } executed 20701 times by 29 tests: end of block Executed by:
| 20701 | ||||||||||||||||||
1038 | - | |||||||||||||||||||
1039 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1040 | - | |||||||||||||||||||
1041 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1042 | { return executed 41511 times by 19 tests: base->firstSourceLocation();return base->firstSourceLocation(); Executed by:
executed 41511 times by 19 tests: }return base->firstSourceLocation(); Executed by:
| 41511 | ||||||||||||||||||
1043 | - | |||||||||||||||||||
1044 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1045 | { return executed 35415 times by 12 tests: incrementToken;return incrementToken; Executed by:
executed 35415 times by 12 tests: }return incrementToken; Executed by:
| 35415 | ||||||||||||||||||
1046 | - | |||||||||||||||||||
1047 | - | |||||||||||||||||||
1048 | ExpressionNode *base; | - | ||||||||||||||||||
1049 | SourceLocation incrementToken; | - | ||||||||||||||||||
1050 | }; | - | ||||||||||||||||||
1051 | - | |||||||||||||||||||
1052 | class __attribute__((visibility("default"))) PostDecrementExpression: public ExpressionNode | - | ||||||||||||||||||
1053 | { | - | ||||||||||||||||||
1054 | public: | - | ||||||||||||||||||
1055 | enum { K = Kind_PostDecrementExpression }; | - | ||||||||||||||||||
1056 | - | |||||||||||||||||||
1057 | PostDecrementExpression(ExpressionNode *b): | - | ||||||||||||||||||
1058 | base (b) { kind = K; } executed 939 times by 9 tests: end of block Executed by:
| 939 | ||||||||||||||||||
1059 | - | |||||||||||||||||||
1060 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1061 | - | |||||||||||||||||||
1062 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1063 | { return executed 2548 times by 9 tests: base->firstSourceLocation();return base->firstSourceLocation(); Executed by:
executed 2548 times by 9 tests: }return base->firstSourceLocation(); Executed by:
| 2548 | ||||||||||||||||||
1064 | - | |||||||||||||||||||
1065 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1066 | { return executed 2451 times by 6 tests: decrementToken;return decrementToken; Executed by:
executed 2451 times by 6 tests: }return decrementToken; Executed by:
| 2451 | ||||||||||||||||||
1067 | - | |||||||||||||||||||
1068 | - | |||||||||||||||||||
1069 | ExpressionNode *base; | - | ||||||||||||||||||
1070 | SourceLocation decrementToken; | - | ||||||||||||||||||
1071 | }; | - | ||||||||||||||||||
1072 | - | |||||||||||||||||||
1073 | class __attribute__((visibility("default"))) DeleteExpression: public ExpressionNode | - | ||||||||||||||||||
1074 | { | - | ||||||||||||||||||
1075 | public: | - | ||||||||||||||||||
1076 | enum { K = Kind_DeleteExpression }; | - | ||||||||||||||||||
1077 | - | |||||||||||||||||||
1078 | DeleteExpression(ExpressionNode *e): | - | ||||||||||||||||||
1079 | expression (e) { kind = K; } executed 21425 times by 9 tests: end of block Executed by:
| 21425 | ||||||||||||||||||
1080 | - | |||||||||||||||||||
1081 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1082 | - | |||||||||||||||||||
1083 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1084 | { return executed 49209 times by 9 tests: deleteToken;return deleteToken; Executed by:
executed 49209 times by 9 tests: }return deleteToken; Executed by:
| 49209 | ||||||||||||||||||
1085 | - | |||||||||||||||||||
1086 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1087 | { return executed 12616 times by 3 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 12616 times by 3 tests: }return expression->lastSourceLocation(); Executed by:
| 12616 | ||||||||||||||||||
1088 | - | |||||||||||||||||||
1089 | - | |||||||||||||||||||
1090 | ExpressionNode *expression; | - | ||||||||||||||||||
1091 | SourceLocation deleteToken; | - | ||||||||||||||||||
1092 | }; | - | ||||||||||||||||||
1093 | - | |||||||||||||||||||
1094 | class __attribute__((visibility("default"))) VoidExpression: public ExpressionNode | - | ||||||||||||||||||
1095 | { | - | ||||||||||||||||||
1096 | public: | - | ||||||||||||||||||
1097 | enum { K = Kind_VoidExpression }; | - | ||||||||||||||||||
1098 | - | |||||||||||||||||||
1099 | VoidExpression(ExpressionNode *e): | - | ||||||||||||||||||
1100 | expression (e) { kind = K; } executed 3306 times by 7 tests: end of block Executed by:
| 3306 | ||||||||||||||||||
1101 | - | |||||||||||||||||||
1102 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1103 | - | |||||||||||||||||||
1104 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1105 | { return executed 5130 times by 4 tests: voidToken;return voidToken; Executed by:
executed 5130 times by 4 tests: }return voidToken; Executed by:
| 5130 | ||||||||||||||||||
1106 | - | |||||||||||||||||||
1107 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1108 | { return executed 6650 times by 2 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 6650 times by 2 tests: }return expression->lastSourceLocation(); Executed by:
| 6650 | ||||||||||||||||||
1109 | - | |||||||||||||||||||
1110 | - | |||||||||||||||||||
1111 | ExpressionNode *expression; | - | ||||||||||||||||||
1112 | SourceLocation voidToken; | - | ||||||||||||||||||
1113 | }; | - | ||||||||||||||||||
1114 | - | |||||||||||||||||||
1115 | class __attribute__((visibility("default"))) TypeOfExpression: public ExpressionNode | - | ||||||||||||||||||
1116 | { | - | ||||||||||||||||||
1117 | public: | - | ||||||||||||||||||
1118 | enum { K = Kind_TypeOfExpression }; | - | ||||||||||||||||||
1119 | - | |||||||||||||||||||
1120 | TypeOfExpression(ExpressionNode *e): | - | ||||||||||||||||||
1121 | expression (e) { kind = K; } executed 207496 times by 15 tests: end of block Executed by:
| 207496 | ||||||||||||||||||
1122 | - | |||||||||||||||||||
1123 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1124 | - | |||||||||||||||||||
1125 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1126 | { return executed 40258 times by 3 tests: typeofToken;return typeofToken; Executed by:
executed 40258 times by 3 tests: }return typeofToken; Executed by:
| 40258 | ||||||||||||||||||
1127 | - | |||||||||||||||||||
1128 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1129 | { return executed 24249 times by 3 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 24249 times by 3 tests: }return expression->lastSourceLocation(); Executed by:
| 24249 | ||||||||||||||||||
1130 | - | |||||||||||||||||||
1131 | - | |||||||||||||||||||
1132 | ExpressionNode *expression; | - | ||||||||||||||||||
1133 | SourceLocation typeofToken; | - | ||||||||||||||||||
1134 | }; | - | ||||||||||||||||||
1135 | - | |||||||||||||||||||
1136 | class __attribute__((visibility("default"))) PreIncrementExpression: public ExpressionNode | - | ||||||||||||||||||
1137 | { | - | ||||||||||||||||||
1138 | public: | - | ||||||||||||||||||
1139 | enum { K = Kind_PreIncrementExpression }; | - | ||||||||||||||||||
1140 | - | |||||||||||||||||||
1141 | PreIncrementExpression(ExpressionNode *e): | - | ||||||||||||||||||
1142 | expression (e) { kind = K; } executed 6270 times by 33 tests: end of block Executed by:
| 6270 | ||||||||||||||||||
1143 | - | |||||||||||||||||||
1144 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1145 | - | |||||||||||||||||||
1146 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1147 | { return executed 4624 times by 16 tests: incrementToken;return incrementToken; Executed by:
executed 4624 times by 16 tests: }return incrementToken; Executed by:
| 4624 | ||||||||||||||||||
1148 | - | |||||||||||||||||||
1149 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1150 | { return executed 6245 times by 9 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 6245 times by 9 tests: }return expression->lastSourceLocation(); Executed by:
| 6245 | ||||||||||||||||||
1151 | - | |||||||||||||||||||
1152 | - | |||||||||||||||||||
1153 | ExpressionNode *expression; | - | ||||||||||||||||||
1154 | SourceLocation incrementToken; | - | ||||||||||||||||||
1155 | }; | - | ||||||||||||||||||
1156 | - | |||||||||||||||||||
1157 | class __attribute__((visibility("default"))) PreDecrementExpression: public ExpressionNode | - | ||||||||||||||||||
1158 | { | - | ||||||||||||||||||
1159 | public: | - | ||||||||||||||||||
1160 | enum { K = Kind_PreDecrementExpression }; | - | ||||||||||||||||||
1161 | - | |||||||||||||||||||
1162 | PreDecrementExpression(ExpressionNode *e): | - | ||||||||||||||||||
1163 | expression (e) { kind = K; } executed 779 times by 7 tests: end of block Executed by:
| 779 | ||||||||||||||||||
1164 | - | |||||||||||||||||||
1165 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1166 | - | |||||||||||||||||||
1167 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1168 | { return executed 2178 times by 5 tests: decrementToken;return decrementToken; Executed by:
executed 2178 times by 5 tests: }return decrementToken; Executed by:
| 2178 | ||||||||||||||||||
1169 | - | |||||||||||||||||||
1170 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1171 | { return executed 1764 times by 4 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 1764 times by 4 tests: }return expression->lastSourceLocation(); Executed by:
| 1764 | ||||||||||||||||||
1172 | - | |||||||||||||||||||
1173 | - | |||||||||||||||||||
1174 | ExpressionNode *expression; | - | ||||||||||||||||||
1175 | SourceLocation decrementToken; | - | ||||||||||||||||||
1176 | }; | - | ||||||||||||||||||
1177 | - | |||||||||||||||||||
1178 | class __attribute__((visibility("default"))) UnaryPlusExpression: public ExpressionNode | - | ||||||||||||||||||
1179 | { | - | ||||||||||||||||||
1180 | public: | - | ||||||||||||||||||
1181 | enum { K = Kind_UnaryPlusExpression }; | - | ||||||||||||||||||
1182 | - | |||||||||||||||||||
1183 | UnaryPlusExpression(ExpressionNode *e): | - | ||||||||||||||||||
1184 | expression (e) { kind = K; } executed 4420 times by 4 tests: end of block Executed by:
| 4420 | ||||||||||||||||||
1185 | - | |||||||||||||||||||
1186 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1187 | - | |||||||||||||||||||
1188 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1189 | { return executed 6176 times by 3 tests: plusToken;return plusToken; Executed by:
executed 6176 times by 3 tests: }return plusToken; Executed by:
| 6176 | ||||||||||||||||||
1190 | - | |||||||||||||||||||
1191 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1192 | { return executed 10318 times by 2 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 10318 times by 2 tests: }return expression->lastSourceLocation(); Executed by:
| 10318 | ||||||||||||||||||
1193 | - | |||||||||||||||||||
1194 | - | |||||||||||||||||||
1195 | ExpressionNode *expression; | - | ||||||||||||||||||
1196 | SourceLocation plusToken; | - | ||||||||||||||||||
1197 | }; | - | ||||||||||||||||||
1198 | - | |||||||||||||||||||
1199 | class __attribute__((visibility("default"))) UnaryMinusExpression: public ExpressionNode | - | ||||||||||||||||||
1200 | { | - | ||||||||||||||||||
1201 | public: | - | ||||||||||||||||||
1202 | enum { K = Kind_UnaryMinusExpression }; | - | ||||||||||||||||||
1203 | - | |||||||||||||||||||
1204 | UnaryMinusExpression(ExpressionNode *e): | - | ||||||||||||||||||
1205 | expression (e) { kind = K; } executed 95835 times by 40 tests: end of block Executed by:
| 95835 | ||||||||||||||||||
1206 | - | |||||||||||||||||||
1207 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1208 | - | |||||||||||||||||||
1209 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1210 | { return executed 208035 times by 33 tests: minusToken;return minusToken; Executed by:
executed 208035 times by 33 tests: }return minusToken; Executed by:
| 208035 | ||||||||||||||||||
1211 | - | |||||||||||||||||||
1212 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1213 | { return executed 237441 times by 10 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 237441 times by 10 tests: }return expression->lastSourceLocation(); Executed by:
| 237441 | ||||||||||||||||||
1214 | - | |||||||||||||||||||
1215 | - | |||||||||||||||||||
1216 | ExpressionNode *expression; | - | ||||||||||||||||||
1217 | SourceLocation minusToken; | - | ||||||||||||||||||
1218 | }; | - | ||||||||||||||||||
1219 | - | |||||||||||||||||||
1220 | class __attribute__((visibility("default"))) TildeExpression: public ExpressionNode | - | ||||||||||||||||||
1221 | { | - | ||||||||||||||||||
1222 | public: | - | ||||||||||||||||||
1223 | enum { K = Kind_TildeExpression }; | - | ||||||||||||||||||
1224 | - | |||||||||||||||||||
1225 | TildeExpression(ExpressionNode *e): | - | ||||||||||||||||||
1226 | expression (e) { kind = K; } executed 914 times by 5 tests: end of block Executed by:
| 914 | ||||||||||||||||||
1227 | - | |||||||||||||||||||
1228 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1229 | - | |||||||||||||||||||
1230 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1231 | { return executed 1632 times by 3 tests: tildeToken;return tildeToken; Executed by:
executed 1632 times by 3 tests: }return tildeToken; Executed by:
| 1632 | ||||||||||||||||||
1232 | - | |||||||||||||||||||
1233 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1234 | { return executed 1446 times by 2 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 1446 times by 2 tests: }return expression->lastSourceLocation(); Executed by:
| 1446 | ||||||||||||||||||
1235 | - | |||||||||||||||||||
1236 | - | |||||||||||||||||||
1237 | ExpressionNode *expression; | - | ||||||||||||||||||
1238 | SourceLocation tildeToken; | - | ||||||||||||||||||
1239 | }; | - | ||||||||||||||||||
1240 | - | |||||||||||||||||||
1241 | class __attribute__((visibility("default"))) NotExpression: public ExpressionNode | - | ||||||||||||||||||
1242 | { | - | ||||||||||||||||||
1243 | public: | - | ||||||||||||||||||
1244 | enum { K = Kind_NotExpression }; | - | ||||||||||||||||||
1245 | - | |||||||||||||||||||
1246 | NotExpression(ExpressionNode *e): | - | ||||||||||||||||||
1247 | expression (e) { kind = K; } executed 207918 times by 34 tests: end of block Executed by:
| 207918 | ||||||||||||||||||
1248 | - | |||||||||||||||||||
1249 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1250 | - | |||||||||||||||||||
1251 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1252 | { return executed 176837 times by 27 tests: notToken;return notToken; Executed by:
executed 176837 times by 27 tests: }return notToken; Executed by:
| 176837 | ||||||||||||||||||
1253 | - | |||||||||||||||||||
1254 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1255 | { return executed 27063 times by 15 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 27063 times by 15 tests: }return expression->lastSourceLocation(); Executed by:
| 27063 | ||||||||||||||||||
1256 | - | |||||||||||||||||||
1257 | - | |||||||||||||||||||
1258 | ExpressionNode *expression; | - | ||||||||||||||||||
1259 | SourceLocation notToken; | - | ||||||||||||||||||
1260 | }; | - | ||||||||||||||||||
1261 | - | |||||||||||||||||||
1262 | class __attribute__((visibility("default"))) BinaryExpression: public ExpressionNode | - | ||||||||||||||||||
1263 | { | - | ||||||||||||||||||
1264 | public: | - | ||||||||||||||||||
1265 | enum { K = Kind_BinaryExpression }; | - | ||||||||||||||||||
1266 | - | |||||||||||||||||||
1267 | BinaryExpression(ExpressionNode *l, int o, ExpressionNode *r): | - | ||||||||||||||||||
1268 | left (l), op (o), right (r) | - | ||||||||||||||||||
1269 | { kind = K; } executed 6574424 times by 100 tests: end of block Executed by:
| 6574424 | ||||||||||||||||||
1270 | - | |||||||||||||||||||
1271 | BinaryExpression *binaryExpressionCast() override; | - | ||||||||||||||||||
1272 | - | |||||||||||||||||||
1273 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1274 | - | |||||||||||||||||||
1275 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1276 | { return executed 6044993 times by 99 tests: left->firstSourceLocation();return left->firstSourceLocation(); Executed by:
executed 6044993 times by 99 tests: }return left->firstSourceLocation(); Executed by:
| 6044993 | ||||||||||||||||||
1277 | - | |||||||||||||||||||
1278 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1279 | { return executed 2032292 times by 77 tests: right->lastSourceLocation();return right->lastSourceLocation(); Executed by:
executed 2032292 times by 77 tests: }return right->lastSourceLocation(); Executed by:
| 2032292 | ||||||||||||||||||
1280 | - | |||||||||||||||||||
1281 | - | |||||||||||||||||||
1282 | ExpressionNode *left; | - | ||||||||||||||||||
1283 | int op; | - | ||||||||||||||||||
1284 | ExpressionNode *right; | - | ||||||||||||||||||
1285 | SourceLocation operatorToken; | - | ||||||||||||||||||
1286 | }; | - | ||||||||||||||||||
1287 | - | |||||||||||||||||||
1288 | class __attribute__((visibility("default"))) ConditionalExpression: public ExpressionNode | - | ||||||||||||||||||
1289 | { | - | ||||||||||||||||||
1290 | public: | - | ||||||||||||||||||
1291 | enum { K = Kind_ConditionalExpression }; | - | ||||||||||||||||||
1292 | - | |||||||||||||||||||
1293 | ConditionalExpression(ExpressionNode *e, ExpressionNode *t, ExpressionNode *f): | - | ||||||||||||||||||
1294 | expression (e), ok (t), ko (f) | - | ||||||||||||||||||
1295 | { kind = K; } executed 29787 times by 45 tests: end of block Executed by:
| 29787 | ||||||||||||||||||
1296 | - | |||||||||||||||||||
1297 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1298 | - | |||||||||||||||||||
1299 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1300 | { return executed 22712 times by 38 tests: expression->firstSourceLocation();return expression->firstSourceLocation(); Executed by:
executed 22712 times by 38 tests: }return expression->firstSourceLocation(); Executed by:
| 22712 | ||||||||||||||||||
1301 | - | |||||||||||||||||||
1302 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1303 | { return executed 37771 times by 37 tests: ko->lastSourceLocation();return ko->lastSourceLocation(); Executed by:
executed 37771 times by 37 tests: }return ko->lastSourceLocation(); Executed by:
| 37771 | ||||||||||||||||||
1304 | - | |||||||||||||||||||
1305 | - | |||||||||||||||||||
1306 | ExpressionNode *expression; | - | ||||||||||||||||||
1307 | ExpressionNode *ok; | - | ||||||||||||||||||
1308 | ExpressionNode *ko; | - | ||||||||||||||||||
1309 | SourceLocation questionToken; | - | ||||||||||||||||||
1310 | SourceLocation colonToken; | - | ||||||||||||||||||
1311 | }; | - | ||||||||||||||||||
1312 | - | |||||||||||||||||||
1313 | class __attribute__((visibility("default"))) Expression: public ExpressionNode | - | ||||||||||||||||||
1314 | { | - | ||||||||||||||||||
1315 | public: | - | ||||||||||||||||||
1316 | enum { K = Kind_Expression }; | - | ||||||||||||||||||
1317 | - | |||||||||||||||||||
1318 | Expression(ExpressionNode *l, ExpressionNode *r): | - | ||||||||||||||||||
1319 | left (l), right (r) { kind = K; } executed 7098 times by 7 tests: end of block Executed by:
| 7098 | ||||||||||||||||||
1320 | - | |||||||||||||||||||
1321 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1322 | - | |||||||||||||||||||
1323 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1324 | { return executed 10981 times by 6 tests: left->firstSourceLocation();return left->firstSourceLocation(); Executed by:
executed 10981 times by 6 tests: }return left->firstSourceLocation(); Executed by:
| 10981 | ||||||||||||||||||
1325 | - | |||||||||||||||||||
1326 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1327 | { return executed 9201 times by 4 tests: right->lastSourceLocation();return right->lastSourceLocation(); Executed by:
executed 9201 times by 4 tests: }return right->lastSourceLocation(); Executed by:
| 9201 | ||||||||||||||||||
1328 | - | |||||||||||||||||||
1329 | - | |||||||||||||||||||
1330 | ExpressionNode *left; | - | ||||||||||||||||||
1331 | ExpressionNode *right; | - | ||||||||||||||||||
1332 | SourceLocation commaToken; | - | ||||||||||||||||||
1333 | }; | - | ||||||||||||||||||
1334 | - | |||||||||||||||||||
1335 | class __attribute__((visibility("default"))) Block: public Statement | - | ||||||||||||||||||
1336 | { | - | ||||||||||||||||||
1337 | public: | - | ||||||||||||||||||
1338 | enum { K = Kind_Block }; | - | ||||||||||||||||||
1339 | - | |||||||||||||||||||
1340 | Block(StatementList *slist): | - | ||||||||||||||||||
1341 | statements (slist) { kind = K; } executed 1906183 times by 78 tests: end of block Executed by:
| 1906183 | ||||||||||||||||||
1342 | - | |||||||||||||||||||
1343 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1344 | - | |||||||||||||||||||
1345 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1346 | { return executed 3495348 times by 78 tests: lbraceToken;return lbraceToken; Executed by:
executed 3495348 times by 78 tests: }return lbraceToken; Executed by:
| 3495348 | ||||||||||||||||||
1347 | - | |||||||||||||||||||
1348 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1349 | { return executed 737235 times by 78 tests: rbraceToken;return rbraceToken; Executed by:
executed 737235 times by 78 tests: }return rbraceToken; Executed by:
| 737235 | ||||||||||||||||||
1350 | - | |||||||||||||||||||
1351 | - | |||||||||||||||||||
1352 | StatementList *statements; | - | ||||||||||||||||||
1353 | SourceLocation lbraceToken; | - | ||||||||||||||||||
1354 | SourceLocation rbraceToken; | - | ||||||||||||||||||
1355 | }; | - | ||||||||||||||||||
1356 | - | |||||||||||||||||||
1357 | class __attribute__((visibility("default"))) StatementList: public Node | - | ||||||||||||||||||
1358 | { | - | ||||||||||||||||||
1359 | public: | - | ||||||||||||||||||
1360 | enum { K = Kind_StatementList }; | - | ||||||||||||||||||
1361 | - | |||||||||||||||||||
1362 | - | |||||||||||||||||||
1363 | StatementList(Node *stmt) | - | ||||||||||||||||||
1364 | : statement(stmt), next (this) | - | ||||||||||||||||||
1365 | { kind = K; } executed 9494092 times by 103 tests: end of block Executed by:
| 9494092 | ||||||||||||||||||
1366 | - | |||||||||||||||||||
1367 | StatementList *append(StatementList *n) { | - | ||||||||||||||||||
1368 | n->next = next; | - | ||||||||||||||||||
1369 | next = n; | - | ||||||||||||||||||
1370 | return executed 4048332 times by 84 tests: n;return n; Executed by:
executed 4048332 times by 84 tests: return n; Executed by:
| 4048332 | ||||||||||||||||||
1371 | } | - | ||||||||||||||||||
1372 | - | |||||||||||||||||||
1373 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1374 | - | |||||||||||||||||||
1375 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1376 | { return executed 5604035 times by 41 tests: statement->firstSourceLocation();return statement->firstSourceLocation(); Executed by:
executed 5604035 times by 41 tests: }return statement->firstSourceLocation(); Executed by:
| 5604035 | ||||||||||||||||||
1377 | - | |||||||||||||||||||
1378 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1379 | { return executed 36263534 times by 41 tests: next ? next->lastSourceLocation() : statement->lastSourceLocation();return next ? next->lastSourceLocation() : statement->lastSourceLocation(); Executed by:
executed 36263534 times by 41 tests: }return next ? next->lastSourceLocation() : statement->lastSourceLocation(); Executed by:
| 36263534 | ||||||||||||||||||
1380 | - | |||||||||||||||||||
1381 | inline StatementList *finish () | - | ||||||||||||||||||
1382 | { | - | ||||||||||||||||||
1383 | StatementList *front = next; | - | ||||||||||||||||||
1384 | next = nullptr; | - | ||||||||||||||||||
1385 | return executed 5439909 times by 103 tests: front;return front; Executed by:
executed 5439909 times by 103 tests: return front; Executed by:
| 5439909 | ||||||||||||||||||
1386 | } | - | ||||||||||||||||||
1387 | - | |||||||||||||||||||
1388 | - | |||||||||||||||||||
1389 | Node *statement = nullptr; | - | ||||||||||||||||||
1390 | StatementList *next; | - | ||||||||||||||||||
1391 | }; | - | ||||||||||||||||||
1392 | - | |||||||||||||||||||
1393 | class __attribute__((visibility("default"))) VariableDeclarationList: public Node | - | ||||||||||||||||||
1394 | { | - | ||||||||||||||||||
1395 | public: | - | ||||||||||||||||||
1396 | enum { K = Kind_VariableDeclarationList }; | - | ||||||||||||||||||
1397 | - | |||||||||||||||||||
1398 | VariableDeclarationList(PatternElement *decl) | - | ||||||||||||||||||
1399 | : declaration(decl), next(this) | - | ||||||||||||||||||
1400 | { kind = K; } executed 693840 times by 51 tests: end of block Executed by:
| 693840 | ||||||||||||||||||
1401 | - | |||||||||||||||||||
1402 | VariableDeclarationList(VariableDeclarationList *previous, PatternElement *decl) | - | ||||||||||||||||||
1403 | : declaration(decl) | - | ||||||||||||||||||
1404 | { | - | ||||||||||||||||||
1405 | kind = K; | - | ||||||||||||||||||
1406 | next = previous->next; | - | ||||||||||||||||||
1407 | previous->next = this; | - | ||||||||||||||||||
1408 | } executed 6651 times by 10 tests: end of block Executed by:
| 6651 | ||||||||||||||||||
1409 | - | |||||||||||||||||||
1410 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1411 | - | |||||||||||||||||||
1412 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1413 | { return executed 329998 times by 1 test: declaration->firstSourceLocation();return declaration->firstSourceLocation(); Executed by:
executed 329998 times by 1 test: }return declaration->firstSourceLocation(); Executed by:
| 329998 | ||||||||||||||||||
1414 | - | |||||||||||||||||||
1415 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1416 | { | - | ||||||||||||||||||
1417 | if (next
| 26230-652753 | ||||||||||||||||||
1418 | return executed 26230 times by 2 tests: next->lastSourceLocation();return next->lastSourceLocation(); Executed by:
executed 26230 times by 2 tests: return next->lastSourceLocation(); Executed by:
| 26230 | ||||||||||||||||||
1419 | return executed 652754 times by 9 tests: declaration->lastSourceLocation();return declaration->lastSourceLocation(); Executed by:
executed 652754 times by 9 tests: return declaration->lastSourceLocation(); Executed by:
| 652754 | ||||||||||||||||||
1420 | } | - | ||||||||||||||||||
1421 | - | |||||||||||||||||||
1422 | inline VariableDeclarationList *finish(VariableScope s) | - | ||||||||||||||||||
1423 | { | - | ||||||||||||||||||
1424 | VariableDeclarationList *front = next; | - | ||||||||||||||||||
1425 | next = nullptr; | - | ||||||||||||||||||
1426 | VariableDeclarationList *vdl; | - | ||||||||||||||||||
1427 | for (vdl = front; vdl != nullptr
| 695118-701275 | ||||||||||||||||||
1428 | vdl->declaration->scope = s; | - | ||||||||||||||||||
1429 | } executed 700442 times by 51 tests: end of block Executed by:
| 700442 | ||||||||||||||||||
1430 | return executed 695503 times by 51 tests: front;return front; Executed by:
executed 695503 times by 51 tests: return front; Executed by:
| 695503 | ||||||||||||||||||
1431 | } | - | ||||||||||||||||||
1432 | - | |||||||||||||||||||
1433 | - | |||||||||||||||||||
1434 | PatternElement *declaration; | - | ||||||||||||||||||
1435 | VariableDeclarationList *next; | - | ||||||||||||||||||
1436 | SourceLocation commaToken; | - | ||||||||||||||||||
1437 | }; | - | ||||||||||||||||||
1438 | - | |||||||||||||||||||
1439 | class __attribute__((visibility("default"))) VariableStatement: public Statement | - | ||||||||||||||||||
1440 | { | - | ||||||||||||||||||
1441 | public: | - | ||||||||||||||||||
1442 | enum { K = Kind_VariableStatement }; | - | ||||||||||||||||||
1443 | - | |||||||||||||||||||
1444 | VariableStatement(VariableDeclarationList *vlist): | - | ||||||||||||||||||
1445 | declarations (vlist) | - | ||||||||||||||||||
1446 | { kind = K; } executed 694812 times by 51 tests: end of block Executed by:
| 694812 | ||||||||||||||||||
1447 | - | |||||||||||||||||||
1448 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1449 | - | |||||||||||||||||||
1450 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1451 | { return executed 1205907 times by 49 tests: declarationKindToken;return declarationKindToken; Executed by:
executed 1205907 times by 49 tests: }return declarationKindToken; Executed by:
| 1205907 | ||||||||||||||||||
1452 | - | |||||||||||||||||||
1453 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1454 | { return executed 322756 times by 9 tests: declarations->lastSourceLocation();return declarations->lastSourceLocation(); Executed by:
executed 322756 times by 9 tests: }return declarations->lastSourceLocation(); Executed by:
| 322756 | ||||||||||||||||||
1455 | - | |||||||||||||||||||
1456 | - | |||||||||||||||||||
1457 | VariableDeclarationList *declarations; | - | ||||||||||||||||||
1458 | SourceLocation declarationKindToken; | - | ||||||||||||||||||
1459 | }; | - | ||||||||||||||||||
1460 | - | |||||||||||||||||||
1461 | class __attribute__((visibility("default"))) EmptyStatement: public Statement | - | ||||||||||||||||||
1462 | { | - | ||||||||||||||||||
1463 | public: | - | ||||||||||||||||||
1464 | enum { K = Kind_EmptyStatement }; | - | ||||||||||||||||||
1465 | - | |||||||||||||||||||
1466 | EmptyStatement() { kind = K; } executed 4598 times by 8 tests: end of block Executed by:
| 4598 | ||||||||||||||||||
1467 | - | |||||||||||||||||||
1468 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1469 | - | |||||||||||||||||||
1470 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1471 | { return executed 5726 times by 8 tests: semicolonToken;return semicolonToken; Executed by:
executed 5726 times by 8 tests: }return semicolonToken; Executed by:
| 5726 | ||||||||||||||||||
1472 | - | |||||||||||||||||||
1473 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1474 | { return executed 5566 times by 4 tests: semicolonToken;return semicolonToken; Executed by:
executed 5566 times by 4 tests: }return semicolonToken; Executed by:
| 5566 | ||||||||||||||||||
1475 | - | |||||||||||||||||||
1476 | - | |||||||||||||||||||
1477 | SourceLocation semicolonToken; | - | ||||||||||||||||||
1478 | }; | - | ||||||||||||||||||
1479 | - | |||||||||||||||||||
1480 | class __attribute__((visibility("default"))) ExpressionStatement: public Statement | - | ||||||||||||||||||
1481 | { | - | ||||||||||||||||||
1482 | public: | - | ||||||||||||||||||
1483 | enum { K = Kind_ExpressionStatement }; | - | ||||||||||||||||||
1484 | - | |||||||||||||||||||
1485 | ExpressionStatement(ExpressionNode *e): | - | ||||||||||||||||||
1486 | expression (e) { kind = K; } executed 6342993 times by 148 tests: end of block Executed by:
| 6342993 | ||||||||||||||||||
1487 | - | |||||||||||||||||||
1488 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1489 | - | |||||||||||||||||||
1490 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1491 | { return executed 17751975 times by 148 tests: expression->firstSourceLocation();return expression->firstSourceLocation(); Executed by:
executed 17751975 times by 148 tests: }return expression->firstSourceLocation(); Executed by:
| 17751975 | ||||||||||||||||||
1492 | - | |||||||||||||||||||
1493 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1494 | { return executed 5210744 times by 138 tests: expression->lastSourceLocation();return expression->lastSourceLocation(); Executed by:
executed 5210744 times by 138 tests: }return expression->lastSourceLocation(); Executed by:
| 5210744 | ||||||||||||||||||
1495 | - | |||||||||||||||||||
1496 | - | |||||||||||||||||||
1497 | ExpressionNode *expression; | - | ||||||||||||||||||
1498 | SourceLocation semicolonToken; | - | ||||||||||||||||||
1499 | }; | - | ||||||||||||||||||
1500 | - | |||||||||||||||||||
1501 | class __attribute__((visibility("default"))) IfStatement: public Statement | - | ||||||||||||||||||
1502 | { | - | ||||||||||||||||||
1503 | public: | - | ||||||||||||||||||
1504 | enum { K = Kind_IfStatement }; | - | ||||||||||||||||||
1505 | - | |||||||||||||||||||
1506 | IfStatement(ExpressionNode *e, Statement *t, Statement *f = nullptr): | - | ||||||||||||||||||
1507 | expression (e), ok (t), ko (f) | - | ||||||||||||||||||
1508 | { kind = K; } executed 1342021 times by 60 tests: end of block Executed by:
| 1342021 | ||||||||||||||||||
1509 | - | |||||||||||||||||||
1510 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1511 | - | |||||||||||||||||||
1512 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1513 | { return executed 1545830 times by 60 tests: ifToken;return ifToken; Executed by:
executed 1545830 times by 60 tests: }return ifToken; Executed by:
| 1545830 | ||||||||||||||||||
1514 | - | |||||||||||||||||||
1515 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1516 | { | - | ||||||||||||||||||
1517 | if (ko
| 40181-370932 | ||||||||||||||||||
1518 | return executed 40181 times by 10 tests: ko->lastSourceLocation();return ko->lastSourceLocation(); Executed by:
executed 40181 times by 10 tests: return ko->lastSourceLocation(); Executed by:
| 40181 | ||||||||||||||||||
1519 | - | |||||||||||||||||||
1520 | return executed 370929 times by 16 tests: ok->lastSourceLocation();return ok->lastSourceLocation(); Executed by:
executed 370929 times by 16 tests: return ok->lastSourceLocation(); Executed by:
| 370929 | ||||||||||||||||||
1521 | } | - | ||||||||||||||||||
1522 | - | |||||||||||||||||||
1523 | - | |||||||||||||||||||
1524 | ExpressionNode *expression; | - | ||||||||||||||||||
1525 | Statement *ok; | - | ||||||||||||||||||
1526 | Statement *ko; | - | ||||||||||||||||||
1527 | SourceLocation ifToken; | - | ||||||||||||||||||
1528 | SourceLocation lparenToken; | - | ||||||||||||||||||
1529 | SourceLocation rparenToken; | - | ||||||||||||||||||
1530 | SourceLocation elseToken; | - | ||||||||||||||||||
1531 | }; | - | ||||||||||||||||||
1532 | - | |||||||||||||||||||
1533 | class __attribute__((visibility("default"))) DoWhileStatement: public Statement | - | ||||||||||||||||||
1534 | { | - | ||||||||||||||||||
1535 | public: | - | ||||||||||||||||||
1536 | enum { K = Kind_DoWhileStatement }; | - | ||||||||||||||||||
1537 | - | |||||||||||||||||||
1538 | DoWhileStatement(Statement *stmt, ExpressionNode *e): | - | ||||||||||||||||||
1539 | statement (stmt), expression (e) | - | ||||||||||||||||||
1540 | { kind = K; } executed 985 times by 11 tests: end of block Executed by:
| 985 | ||||||||||||||||||
1541 | - | |||||||||||||||||||
1542 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1543 | - | |||||||||||||||||||
1544 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1545 | { return executed 1878 times by 11 tests: doToken;return doToken; Executed by:
executed 1878 times by 11 tests: }return doToken; Executed by:
| 1878 | ||||||||||||||||||
1546 | - | |||||||||||||||||||
1547 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1548 | { return executed 1790 times by 2 tests: semicolonToken;return semicolonToken; Executed by:
executed 1790 times by 2 tests: }return semicolonToken; Executed by:
| 1790 | ||||||||||||||||||
1549 | - | |||||||||||||||||||
1550 | - | |||||||||||||||||||
1551 | Statement *statement; | - | ||||||||||||||||||
1552 | ExpressionNode *expression; | - | ||||||||||||||||||
1553 | SourceLocation doToken; | - | ||||||||||||||||||
1554 | SourceLocation whileToken; | - | ||||||||||||||||||
1555 | SourceLocation lparenToken; | - | ||||||||||||||||||
1556 | SourceLocation rparenToken; | - | ||||||||||||||||||
1557 | SourceLocation semicolonToken; | - | ||||||||||||||||||
1558 | }; | - | ||||||||||||||||||
1559 | - | |||||||||||||||||||
1560 | class __attribute__((visibility("default"))) WhileStatement: public Statement | - | ||||||||||||||||||
1561 | { | - | ||||||||||||||||||
1562 | public: | - | ||||||||||||||||||
1563 | enum { K = Kind_WhileStatement }; | - | ||||||||||||||||||
1564 | - | |||||||||||||||||||
1565 | WhileStatement(ExpressionNode *e, Statement *stmt): | - | ||||||||||||||||||
1566 | expression (e), statement (stmt) | - | ||||||||||||||||||
1567 | { kind = K; } executed 1774 times by 14 tests: end of block Executed by:
| 1774 | ||||||||||||||||||
1568 | - | |||||||||||||||||||
1569 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1570 | - | |||||||||||||||||||
1571 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1572 | { return executed 4108 times by 14 tests: whileToken;return whileToken; Executed by:
executed 4108 times by 14 tests: }return whileToken; Executed by:
| 4108 | ||||||||||||||||||
1573 | - | |||||||||||||||||||
1574 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1575 | { return executed 3696 times by 2 tests: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 3696 times by 2 tests: }return statement->lastSourceLocation(); Executed by:
| 3696 | ||||||||||||||||||
1576 | - | |||||||||||||||||||
1577 | - | |||||||||||||||||||
1578 | ExpressionNode *expression; | - | ||||||||||||||||||
1579 | Statement *statement; | - | ||||||||||||||||||
1580 | SourceLocation whileToken; | - | ||||||||||||||||||
1581 | SourceLocation lparenToken; | - | ||||||||||||||||||
1582 | SourceLocation rparenToken; | - | ||||||||||||||||||
1583 | }; | - | ||||||||||||||||||
1584 | - | |||||||||||||||||||
1585 | class __attribute__((visibility("default"))) ForStatement: public Statement | - | ||||||||||||||||||
1586 | { | - | ||||||||||||||||||
1587 | public: | - | ||||||||||||||||||
1588 | enum { K = Kind_ForStatement }; | - | ||||||||||||||||||
1589 | - | |||||||||||||||||||
1590 | ForStatement(ExpressionNode *i, ExpressionNode *c, ExpressionNode *e, Statement *stmt): | - | ||||||||||||||||||
1591 | initialiser (i), condition (c), expression (e), statement (stmt) | - | ||||||||||||||||||
1592 | { kind = K; } executed 2237 times by 12 tests: end of block Executed by:
| 2237 | ||||||||||||||||||
1593 | - | |||||||||||||||||||
1594 | ForStatement(VariableDeclarationList *vlist, ExpressionNode *c, ExpressionNode *e, Statement *stmt): | - | ||||||||||||||||||
1595 | declarations (vlist), condition (c), expression (e), statement (stmt) | - | ||||||||||||||||||
1596 | { kind = K; } executed 18353 times by 28 tests: end of block Executed by:
| 18353 | ||||||||||||||||||
1597 | - | |||||||||||||||||||
1598 | - | |||||||||||||||||||
1599 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1600 | - | |||||||||||||||||||
1601 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1602 | { return executed 66501 times by 28 tests: forToken;return forToken; Executed by:
executed 66501 times by 28 tests: }return forToken; Executed by:
| 66501 | ||||||||||||||||||
1603 | - | |||||||||||||||||||
1604 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1605 | { return executed 49733 times by 3 tests: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 49733 times by 3 tests: }return statement->lastSourceLocation(); Executed by:
| 49733 | ||||||||||||||||||
1606 | - | |||||||||||||||||||
1607 | - | |||||||||||||||||||
1608 | ExpressionNode *initialiser = nullptr; | - | ||||||||||||||||||
1609 | VariableDeclarationList *declarations = nullptr; | - | ||||||||||||||||||
1610 | ExpressionNode *condition; | - | ||||||||||||||||||
1611 | ExpressionNode *expression; | - | ||||||||||||||||||
1612 | Statement *statement; | - | ||||||||||||||||||
1613 | SourceLocation forToken; | - | ||||||||||||||||||
1614 | SourceLocation lparenToken; | - | ||||||||||||||||||
1615 | SourceLocation firstSemicolonToken; | - | ||||||||||||||||||
1616 | SourceLocation secondSemicolonToken; | - | ||||||||||||||||||
1617 | SourceLocation rparenToken; | - | ||||||||||||||||||
1618 | }; | - | ||||||||||||||||||
1619 | - | |||||||||||||||||||
1620 | enum class ForEachType { | - | ||||||||||||||||||
1621 | In, | - | ||||||||||||||||||
1622 | Of | - | ||||||||||||||||||
1623 | }; | - | ||||||||||||||||||
1624 | - | |||||||||||||||||||
1625 | class __attribute__((visibility("default"))) ForEachStatement: public Statement | - | ||||||||||||||||||
1626 | { | - | ||||||||||||||||||
1627 | public: | - | ||||||||||||||||||
1628 | enum { K = Kind_ForEachStatement }; | - | ||||||||||||||||||
1629 | - | |||||||||||||||||||
1630 | ForEachStatement(ExpressionNode *i, ExpressionNode *e, Statement *stmt) | - | ||||||||||||||||||
1631 | : lhs(i), expression(e), statement(stmt) | - | ||||||||||||||||||
1632 | { kind = K; } executed 2525 times by 10 tests: end of block Executed by:
| 2525 | ||||||||||||||||||
1633 | ForEachStatement(PatternElement *v, ExpressionNode *e, Statement *stmt) | - | ||||||||||||||||||
1634 | : lhs(v), expression(e), statement(stmt) | - | ||||||||||||||||||
1635 | { kind = K; } executed 15158 times by 13 tests: end of block Executed by:
| 15158 | ||||||||||||||||||
1636 | - | |||||||||||||||||||
1637 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1638 | - | |||||||||||||||||||
1639 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1640 | { return executed 43362 times by 14 tests: forToken;return forToken; Executed by:
executed 43362 times by 14 tests: }return forToken; Executed by:
| 43362 | ||||||||||||||||||
1641 | - | |||||||||||||||||||
1642 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1643 | { return executed 19712 times by 3 tests: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 19712 times by 3 tests: }return statement->lastSourceLocation(); Executed by:
| 19712 | ||||||||||||||||||
1644 | - | |||||||||||||||||||
1645 | PatternElement *declaration() const { | - | ||||||||||||||||||
1646 | return never executed: AST::cast<PatternElement *>(lhs);return AST::cast<PatternElement *>(lhs); never executed: return AST::cast<PatternElement *>(lhs); | 0 | ||||||||||||||||||
1647 | } | - | ||||||||||||||||||
1648 | - | |||||||||||||||||||
1649 | - | |||||||||||||||||||
1650 | Node *lhs; | - | ||||||||||||||||||
1651 | ExpressionNode *expression; | - | ||||||||||||||||||
1652 | Statement *statement; | - | ||||||||||||||||||
1653 | SourceLocation forToken; | - | ||||||||||||||||||
1654 | SourceLocation lparenToken; | - | ||||||||||||||||||
1655 | SourceLocation inOfToken; | - | ||||||||||||||||||
1656 | SourceLocation rparenToken; | - | ||||||||||||||||||
1657 | ForEachType type; | - | ||||||||||||||||||
1658 | }; | - | ||||||||||||||||||
1659 | - | |||||||||||||||||||
1660 | class __attribute__((visibility("default"))) ContinueStatement: public Statement | - | ||||||||||||||||||
1661 | { | - | ||||||||||||||||||
1662 | public: | - | ||||||||||||||||||
1663 | enum { K = Kind_ContinueStatement }; | - | ||||||||||||||||||
1664 | - | |||||||||||||||||||
1665 | ContinueStatement(const QStringRef &l = QStringRef()): | - | ||||||||||||||||||
1666 | label (l) { kind = K; } executed 1484 times by 10 tests: end of block Executed by:
| 1484 | ||||||||||||||||||
1667 | - | |||||||||||||||||||
1668 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1669 | - | |||||||||||||||||||
1670 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1671 | { return executed 2032 times by 10 tests: continueToken;return continueToken; Executed by:
executed 2032 times by 10 tests: }return continueToken; Executed by:
| 2032 | ||||||||||||||||||
1672 | - | |||||||||||||||||||
1673 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1674 | { return executed 2770 times by 3 tests: semicolonToken;return semicolonToken; Executed by:
executed 2770 times by 3 tests: }return semicolonToken; Executed by:
| 2770 | ||||||||||||||||||
1675 | - | |||||||||||||||||||
1676 | - | |||||||||||||||||||
1677 | QStringRef label; | - | ||||||||||||||||||
1678 | SourceLocation continueToken; | - | ||||||||||||||||||
1679 | SourceLocation identifierToken; | - | ||||||||||||||||||
1680 | SourceLocation semicolonToken; | - | ||||||||||||||||||
1681 | }; | - | ||||||||||||||||||
1682 | - | |||||||||||||||||||
1683 | class __attribute__((visibility("default"))) BreakStatement: public Statement | - | ||||||||||||||||||
1684 | { | - | ||||||||||||||||||
1685 | public: | - | ||||||||||||||||||
1686 | enum { K = Kind_BreakStatement }; | - | ||||||||||||||||||
1687 | - | |||||||||||||||||||
1688 | BreakStatement(const QStringRef &l): | - | ||||||||||||||||||
1689 | label (l) { kind = K; } executed 22105 times by 10 tests: end of block Executed by:
| 22105 | ||||||||||||||||||
1690 | - | |||||||||||||||||||
1691 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1692 | - | |||||||||||||||||||
1693 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1694 | { return executed 27543 times by 10 tests: breakToken;return breakToken; Executed by:
executed 27543 times by 10 tests: }return breakToken; Executed by:
| 27543 | ||||||||||||||||||
1695 | - | |||||||||||||||||||
1696 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1697 | { return executed 49388 times by 2 tests: semicolonToken;return semicolonToken; Executed by:
executed 49388 times by 2 tests: }return semicolonToken; Executed by:
| 49388 | ||||||||||||||||||
1698 | - | |||||||||||||||||||
1699 | - | |||||||||||||||||||
1700 | QStringRef label; | - | ||||||||||||||||||
1701 | SourceLocation breakToken; | - | ||||||||||||||||||
1702 | SourceLocation identifierToken; | - | ||||||||||||||||||
1703 | SourceLocation semicolonToken; | - | ||||||||||||||||||
1704 | }; | - | ||||||||||||||||||
1705 | - | |||||||||||||||||||
1706 | class __attribute__((visibility("default"))) ReturnStatement: public Statement | - | ||||||||||||||||||
1707 | { | - | ||||||||||||||||||
1708 | public: | - | ||||||||||||||||||
1709 | enum { K = Kind_ReturnStatement }; | - | ||||||||||||||||||
1710 | - | |||||||||||||||||||
1711 | ReturnStatement(ExpressionNode *e): | - | ||||||||||||||||||
1712 | expression (e) { kind = K; } executed 827879 times by 49 tests: end of block Executed by:
| 827879 | ||||||||||||||||||
1713 | - | |||||||||||||||||||
1714 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1715 | - | |||||||||||||||||||
1716 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1717 | { return executed 879458 times by 49 tests: returnToken;return returnToken; Executed by:
executed 879458 times by 49 tests: }return returnToken; Executed by:
| 879458 | ||||||||||||||||||
1718 | - | |||||||||||||||||||
1719 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1720 | { return executed 195799 times by 2 tests: semicolonToken;return semicolonToken; Executed by:
executed 195799 times by 2 tests: }return semicolonToken; Executed by:
| 195799 | ||||||||||||||||||
1721 | - | |||||||||||||||||||
1722 | - | |||||||||||||||||||
1723 | ExpressionNode *expression; | - | ||||||||||||||||||
1724 | SourceLocation returnToken; | - | ||||||||||||||||||
1725 | SourceLocation semicolonToken; | - | ||||||||||||||||||
1726 | }; | - | ||||||||||||||||||
1727 | - | |||||||||||||||||||
1728 | class __attribute__((visibility("default"))) YieldExpression: public ExpressionNode | - | ||||||||||||||||||
1729 | { | - | ||||||||||||||||||
1730 | public: | - | ||||||||||||||||||
1731 | enum { K = Kind_YieldExpression }; | - | ||||||||||||||||||
1732 | - | |||||||||||||||||||
1733 | YieldExpression(ExpressionNode *e = nullptr): | - | ||||||||||||||||||
1734 | expression (e) { kind = K; } executed 4848 times by 2 tests: end of block Executed by:
| 4848 | ||||||||||||||||||
1735 | - | |||||||||||||||||||
1736 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1737 | - | |||||||||||||||||||
1738 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1739 | { return executed 11111 times by 2 tests: yieldToken;return yieldToken; Executed by:
executed 11111 times by 2 tests: }return yieldToken; Executed by:
| 11111 | ||||||||||||||||||
1740 | - | |||||||||||||||||||
1741 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1742 | { return executed 8108 times by 1 test: expression ? expression->lastSourceLocation() : yieldToken;return expression ? expression->lastSourceLocation() : yieldToken; Executed by:
executed 8108 times by 1 test: }return expression ? expression->lastSourceLocation() : yieldToken; Executed by:
| 8108 | ||||||||||||||||||
1743 | - | |||||||||||||||||||
1744 | - | |||||||||||||||||||
1745 | ExpressionNode *expression; | - | ||||||||||||||||||
1746 | bool isYieldStar = false; | - | ||||||||||||||||||
1747 | SourceLocation yieldToken; | - | ||||||||||||||||||
1748 | }; | - | ||||||||||||||||||
1749 | - | |||||||||||||||||||
1750 | class __attribute__((visibility("default"))) WithStatement: public Statement | - | ||||||||||||||||||
1751 | { | - | ||||||||||||||||||
1752 | public: | - | ||||||||||||||||||
1753 | enum { K = Kind_WithStatement }; | - | ||||||||||||||||||
1754 | - | |||||||||||||||||||
1755 | WithStatement(ExpressionNode *e, Statement *stmt): | - | ||||||||||||||||||
1756 | expression (e), statement (stmt) | - | ||||||||||||||||||
1757 | { kind = K; } executed 1512 times by 7 tests: end of block Executed by:
| 1512 | ||||||||||||||||||
1758 | - | |||||||||||||||||||
1759 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1760 | - | |||||||||||||||||||
1761 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1762 | { return executed 5181 times by 7 tests: withToken;return withToken; Executed by:
executed 5181 times by 7 tests: }return withToken; Executed by:
| 5181 | ||||||||||||||||||
1763 | - | |||||||||||||||||||
1764 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1765 | { return executed 3702 times by 5 tests: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 3702 times by 5 tests: }return statement->lastSourceLocation(); Executed by:
| 3702 | ||||||||||||||||||
1766 | - | |||||||||||||||||||
1767 | - | |||||||||||||||||||
1768 | ExpressionNode *expression; | - | ||||||||||||||||||
1769 | Statement *statement; | - | ||||||||||||||||||
1770 | SourceLocation withToken; | - | ||||||||||||||||||
1771 | SourceLocation lparenToken; | - | ||||||||||||||||||
1772 | SourceLocation rparenToken; | - | ||||||||||||||||||
1773 | }; | - | ||||||||||||||||||
1774 | - | |||||||||||||||||||
1775 | class __attribute__((visibility("default"))) CaseBlock: public Node | - | ||||||||||||||||||
1776 | { | - | ||||||||||||||||||
1777 | public: | - | ||||||||||||||||||
1778 | enum { K = Kind_CaseBlock }; | - | ||||||||||||||||||
1779 | - | |||||||||||||||||||
1780 | CaseBlock(CaseClauses *c, DefaultClause *d = nullptr, CaseClauses *r = nullptr): | - | ||||||||||||||||||
1781 | clauses (c), defaultClause (d), moreClauses (r) | - | ||||||||||||||||||
1782 | { kind = K; } executed 1446 times by 7 tests: end of block Executed by:
| 1446 | ||||||||||||||||||
1783 | - | |||||||||||||||||||
1784 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1785 | - | |||||||||||||||||||
1786 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1787 | { return executed 2433 times by 7 tests: lbraceToken;return lbraceToken; Executed by:
executed 2433 times by 7 tests: }return lbraceToken; Executed by:
| 2433 | ||||||||||||||||||
1788 | - | |||||||||||||||||||
1789 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1790 | { return executed 1540 times by 1 test: rbraceToken;return rbraceToken; Executed by:
executed 1540 times by 1 test: }return rbraceToken; Executed by:
| 1540 | ||||||||||||||||||
1791 | - | |||||||||||||||||||
1792 | - | |||||||||||||||||||
1793 | CaseClauses *clauses; | - | ||||||||||||||||||
1794 | DefaultClause *defaultClause; | - | ||||||||||||||||||
1795 | CaseClauses *moreClauses; | - | ||||||||||||||||||
1796 | SourceLocation lbraceToken; | - | ||||||||||||||||||
1797 | SourceLocation rbraceToken; | - | ||||||||||||||||||
1798 | }; | - | ||||||||||||||||||
1799 | - | |||||||||||||||||||
1800 | class __attribute__((visibility("default"))) SwitchStatement: public Statement | - | ||||||||||||||||||
1801 | { | - | ||||||||||||||||||
1802 | public: | - | ||||||||||||||||||
1803 | enum { K = Kind_SwitchStatement }; | - | ||||||||||||||||||
1804 | - | |||||||||||||||||||
1805 | SwitchStatement(ExpressionNode *e, CaseBlock *b): | - | ||||||||||||||||||
1806 | expression (e), block (b) | - | ||||||||||||||||||
1807 | { kind = K; } executed 1445 times by 7 tests: end of block Executed by:
| 1445 | ||||||||||||||||||
1808 | - | |||||||||||||||||||
1809 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1810 | - | |||||||||||||||||||
1811 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1812 | { return executed 3253 times by 7 tests: switchToken;return switchToken; Executed by:
executed 3253 times by 7 tests: }return switchToken; Executed by:
| 3253 | ||||||||||||||||||
1813 | - | |||||||||||||||||||
1814 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1815 | { return executed 3315 times by 4 tests: block->rbraceToken;return block->rbraceToken; Executed by:
executed 3315 times by 4 tests: }return block->rbraceToken; Executed by:
| 3315 | ||||||||||||||||||
1816 | - | |||||||||||||||||||
1817 | - | |||||||||||||||||||
1818 | ExpressionNode *expression; | - | ||||||||||||||||||
1819 | CaseBlock *block; | - | ||||||||||||||||||
1820 | SourceLocation switchToken; | - | ||||||||||||||||||
1821 | SourceLocation lparenToken; | - | ||||||||||||||||||
1822 | SourceLocation rparenToken; | - | ||||||||||||||||||
1823 | }; | - | ||||||||||||||||||
1824 | - | |||||||||||||||||||
1825 | class __attribute__((visibility("default"))) CaseClause: public Node | - | ||||||||||||||||||
1826 | { | - | ||||||||||||||||||
1827 | public: | - | ||||||||||||||||||
1828 | enum { K = Kind_CaseClause }; | - | ||||||||||||||||||
1829 | - | |||||||||||||||||||
1830 | CaseClause(ExpressionNode *e, StatementList *slist): | - | ||||||||||||||||||
1831 | expression (e), statements (slist) | - | ||||||||||||||||||
1832 | { kind = K; } executed 121788 times by 7 tests: end of block Executed by:
| 121788 | ||||||||||||||||||
1833 | - | |||||||||||||||||||
1834 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1835 | - | |||||||||||||||||||
1836 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1837 | { return executed 167672 times by 1 test: caseToken;return caseToken; Executed by:
executed 167672 times by 1 test: }return caseToken; Executed by:
| 167672 | ||||||||||||||||||
1838 | - | |||||||||||||||||||
1839 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1840 | { return executed 167672 times by 1 test: statements ? statements->lastSourceLocation() : colonToken;return statements ? statements->lastSourceLocation() : colonToken; Executed by:
executed 167672 times by 1 test: }return statements ? statements->lastSourceLocation() : colonToken; Executed by:
| 167672 | ||||||||||||||||||
1841 | - | |||||||||||||||||||
1842 | - | |||||||||||||||||||
1843 | ExpressionNode *expression; | - | ||||||||||||||||||
1844 | StatementList *statements; | - | ||||||||||||||||||
1845 | SourceLocation caseToken; | - | ||||||||||||||||||
1846 | SourceLocation colonToken; | - | ||||||||||||||||||
1847 | }; | - | ||||||||||||||||||
1848 | - | |||||||||||||||||||
1849 | class __attribute__((visibility("default"))) CaseClauses: public Node | - | ||||||||||||||||||
1850 | { | - | ||||||||||||||||||
1851 | public: | - | ||||||||||||||||||
1852 | enum { K = Kind_CaseClauses }; | - | ||||||||||||||||||
1853 | - | |||||||||||||||||||
1854 | CaseClauses(CaseClause *c): | - | ||||||||||||||||||
1855 | clause (c), next (this) | - | ||||||||||||||||||
1856 | { kind = K; } executed 1313 times by 7 tests: end of block Executed by:
| 1313 | ||||||||||||||||||
1857 | - | |||||||||||||||||||
1858 | CaseClauses(CaseClauses *previous, CaseClause *c): | - | ||||||||||||||||||
1859 | clause (c) | - | ||||||||||||||||||
1860 | { | - | ||||||||||||||||||
1861 | kind = K; | - | ||||||||||||||||||
1862 | next = previous->next; | - | ||||||||||||||||||
1863 | previous->next = this; | - | ||||||||||||||||||
1864 | } executed 120479 times by 7 tests: end of block Executed by:
| 120479 | ||||||||||||||||||
1865 | - | |||||||||||||||||||
1866 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1867 | - | |||||||||||||||||||
1868 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1869 | { return executed 41334 times by 1 test: clause->firstSourceLocation();return clause->firstSourceLocation(); Executed by:
executed 41334 times by 1 test: }return clause->firstSourceLocation(); Executed by:
| 41334 | ||||||||||||||||||
1870 | - | |||||||||||||||||||
1871 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1872 | { return executed 330597318 times by 1 test: next ? next->lastSourceLocation() : clause->lastSourceLocation();return next ? next->lastSourceLocation() : clause->lastSourceLocation(); Executed by:
executed 330597318 times by 1 test: }return next ? next->lastSourceLocation() : clause->lastSourceLocation(); Executed by:
| 330597318 | ||||||||||||||||||
1873 | - | |||||||||||||||||||
1874 | inline CaseClauses *finish () | - | ||||||||||||||||||
1875 | { | - | ||||||||||||||||||
1876 | CaseClauses *front = next; | - | ||||||||||||||||||
1877 | next = nullptr; | - | ||||||||||||||||||
1878 | return executed 1309 times by 7 tests: front;return front; Executed by:
executed 1309 times by 7 tests: return front; Executed by:
| 1309 | ||||||||||||||||||
1879 | } | - | ||||||||||||||||||
1880 | - | |||||||||||||||||||
1881 | - | |||||||||||||||||||
1882 | CaseClause *clause; | - | ||||||||||||||||||
1883 | CaseClauses *next; | - | ||||||||||||||||||
1884 | }; | - | ||||||||||||||||||
1885 | - | |||||||||||||||||||
1886 | class __attribute__((visibility("default"))) DefaultClause: public Node | - | ||||||||||||||||||
1887 | { | - | ||||||||||||||||||
1888 | public: | - | ||||||||||||||||||
1889 | enum { K = Kind_DefaultClause }; | - | ||||||||||||||||||
1890 | - | |||||||||||||||||||
1891 | DefaultClause(StatementList *slist): | - | ||||||||||||||||||
1892 | statements (slist) | - | ||||||||||||||||||
1893 | { kind = K; } executed 974 times by 7 tests: end of block Executed by:
| 974 | ||||||||||||||||||
1894 | - | |||||||||||||||||||
1895 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1896 | - | |||||||||||||||||||
1897 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1898 | { return executed 834 times by 1 test: defaultToken;return defaultToken; Executed by:
executed 834 times by 1 test: }return defaultToken; Executed by:
| 834 | ||||||||||||||||||
1899 | - | |||||||||||||||||||
1900 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1901 | { return executed 834 times by 1 test: statements ? statements->lastSourceLocation() : colonToken;return statements ? statements->lastSourceLocation() : colonToken; Executed by:
executed 834 times by 1 test: }return statements ? statements->lastSourceLocation() : colonToken; Executed by:
| 834 | ||||||||||||||||||
1902 | - | |||||||||||||||||||
1903 | - | |||||||||||||||||||
1904 | StatementList *statements; | - | ||||||||||||||||||
1905 | SourceLocation defaultToken; | - | ||||||||||||||||||
1906 | SourceLocation colonToken; | - | ||||||||||||||||||
1907 | }; | - | ||||||||||||||||||
1908 | - | |||||||||||||||||||
1909 | class __attribute__((visibility("default"))) LabelledStatement: public Statement | - | ||||||||||||||||||
1910 | { | - | ||||||||||||||||||
1911 | public: | - | ||||||||||||||||||
1912 | enum { K = Kind_LabelledStatement }; | - | ||||||||||||||||||
1913 | - | |||||||||||||||||||
1914 | LabelledStatement(const QStringRef &l, Statement *stmt): | - | ||||||||||||||||||
1915 | label (l), statement (stmt) | - | ||||||||||||||||||
1916 | { kind = K; } executed 1353 times by 6 tests: end of block Executed by:
| 1353 | ||||||||||||||||||
1917 | - | |||||||||||||||||||
1918 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1919 | - | |||||||||||||||||||
1920 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1921 | { return executed 2624 times by 6 tests: identifierToken;return identifierToken; Executed by:
executed 2624 times by 6 tests: }return identifierToken; Executed by:
| 2624 | ||||||||||||||||||
1922 | - | |||||||||||||||||||
1923 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1924 | { return executed 1778 times by 4 tests: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 1778 times by 4 tests: }return statement->lastSourceLocation(); Executed by:
| 1778 | ||||||||||||||||||
1925 | - | |||||||||||||||||||
1926 | - | |||||||||||||||||||
1927 | QStringRef label; | - | ||||||||||||||||||
1928 | Statement *statement; | - | ||||||||||||||||||
1929 | SourceLocation identifierToken; | - | ||||||||||||||||||
1930 | SourceLocation colonToken; | - | ||||||||||||||||||
1931 | }; | - | ||||||||||||||||||
1932 | - | |||||||||||||||||||
1933 | class __attribute__((visibility("default"))) ThrowStatement: public Statement | - | ||||||||||||||||||
1934 | { | - | ||||||||||||||||||
1935 | public: | - | ||||||||||||||||||
1936 | enum { K = Kind_ThrowStatement }; | - | ||||||||||||||||||
1937 | - | |||||||||||||||||||
1938 | ThrowStatement(ExpressionNode *e): | - | ||||||||||||||||||
1939 | expression (e) { kind = K; } executed 118026 times by 14 tests: end of block Executed by:
| 118026 | ||||||||||||||||||
1940 | - | |||||||||||||||||||
1941 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1942 | - | |||||||||||||||||||
1943 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1944 | { return executed 135379 times by 14 tests: throwToken;return throwToken; Executed by:
executed 135379 times by 14 tests: }return throwToken; Executed by:
| 135379 | ||||||||||||||||||
1945 | - | |||||||||||||||||||
1946 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1947 | { return executed 36758 times by 4 tests: semicolonToken;return semicolonToken; Executed by:
executed 36758 times by 4 tests: }return semicolonToken; Executed by:
| 36758 | ||||||||||||||||||
1948 | - | |||||||||||||||||||
1949 | - | |||||||||||||||||||
1950 | ExpressionNode *expression; | - | ||||||||||||||||||
1951 | SourceLocation throwToken; | - | ||||||||||||||||||
1952 | SourceLocation semicolonToken; | - | ||||||||||||||||||
1953 | }; | - | ||||||||||||||||||
1954 | - | |||||||||||||||||||
1955 | class __attribute__((visibility("default"))) Catch: public Node | - | ||||||||||||||||||
1956 | { | - | ||||||||||||||||||
1957 | public: | - | ||||||||||||||||||
1958 | enum { K = Kind_Catch }; | - | ||||||||||||||||||
1959 | - | |||||||||||||||||||
1960 | Catch(PatternElement *p, Block *stmt) | - | ||||||||||||||||||
1961 | : patternElement(p), statement(stmt) | - | ||||||||||||||||||
1962 | { kind = K; } executed 123846 times by 22 tests: end of block Executed by:
| 123846 | ||||||||||||||||||
1963 | - | |||||||||||||||||||
1964 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1965 | - | |||||||||||||||||||
1966 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1967 | { return executed 137443 times by 22 tests: catchToken;return catchToken; Executed by:
executed 137443 times by 22 tests: }return catchToken; Executed by:
| 137443 | ||||||||||||||||||
1968 | - | |||||||||||||||||||
1969 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1970 | { return executed 23128 times by 1 test: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 23128 times by 1 test: }return statement->lastSourceLocation(); Executed by:
| 23128 | ||||||||||||||||||
1971 | - | |||||||||||||||||||
1972 | - | |||||||||||||||||||
1973 | PatternElement *patternElement; | - | ||||||||||||||||||
1974 | Block *statement; | - | ||||||||||||||||||
1975 | SourceLocation catchToken; | - | ||||||||||||||||||
1976 | SourceLocation lparenToken; | - | ||||||||||||||||||
1977 | SourceLocation identifierToken; | - | ||||||||||||||||||
1978 | SourceLocation rparenToken; | - | ||||||||||||||||||
1979 | }; | - | ||||||||||||||||||
1980 | - | |||||||||||||||||||
1981 | class __attribute__((visibility("default"))) Finally: public Node | - | ||||||||||||||||||
1982 | { | - | ||||||||||||||||||
1983 | public: | - | ||||||||||||||||||
1984 | enum { K = Kind_Finally }; | - | ||||||||||||||||||
1985 | - | |||||||||||||||||||
1986 | Finally(Block *stmt): | - | ||||||||||||||||||
1987 | statement (stmt) | - | ||||||||||||||||||
1988 | { kind = K; } executed 1487 times by 6 tests: end of block Executed by:
| 1487 | ||||||||||||||||||
1989 | - | |||||||||||||||||||
1990 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
1991 | - | |||||||||||||||||||
1992 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
1993 | { return executed 1896 times by 1 test: finallyToken;return finallyToken; Executed by:
executed 1896 times by 1 test: }return finallyToken; Executed by:
| 1896 | ||||||||||||||||||
1994 | - | |||||||||||||||||||
1995 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
1996 | { return executed 1896 times by 1 test: statement ? statement->lastSourceLocation() : finallyToken;return statement ? statement->lastSourceLocation() : finallyToken; Executed by:
executed 1896 times by 1 test: }return statement ? statement->lastSourceLocation() : finallyToken; Executed by:
| 1896 | ||||||||||||||||||
1997 | - | |||||||||||||||||||
1998 | - | |||||||||||||||||||
1999 | Block *statement; | - | ||||||||||||||||||
2000 | SourceLocation finallyToken; | - | ||||||||||||||||||
2001 | }; | - | ||||||||||||||||||
2002 | - | |||||||||||||||||||
2003 | class __attribute__((visibility("default"))) TryStatement: public Statement | - | ||||||||||||||||||
2004 | { | - | ||||||||||||||||||
2005 | public: | - | ||||||||||||||||||
2006 | enum { K = Kind_TryStatement }; | - | ||||||||||||||||||
2007 | - | |||||||||||||||||||
2008 | TryStatement(Statement *stmt, Catch *c, Finally *f): | - | ||||||||||||||||||
2009 | statement (stmt), catchExpression (c), finallyExpression (f) | - | ||||||||||||||||||
2010 | { kind = K; } executed 887 times by 5 tests: end of block Executed by:
| 887 | ||||||||||||||||||
2011 | - | |||||||||||||||||||
2012 | TryStatement(Statement *stmt, Finally *f): | - | ||||||||||||||||||
2013 | statement (stmt), catchExpression (nullptr), finallyExpression (f) | - | ||||||||||||||||||
2014 | { kind = K; } executed 600 times by 5 tests: end of block Executed by:
| 600 | ||||||||||||||||||
2015 | - | |||||||||||||||||||
2016 | TryStatement(Statement *stmt, Catch *c): | - | ||||||||||||||||||
2017 | statement (stmt), catchExpression (c), finallyExpression (nullptr) | - | ||||||||||||||||||
2018 | { kind = K; } executed 124469 times by 22 tests: end of block Executed by:
| 124469 | ||||||||||||||||||
2019 | - | |||||||||||||||||||
2020 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2021 | - | |||||||||||||||||||
2022 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2023 | { return executed 144551 times by 22 tests: tryToken;return tryToken; Executed by:
executed 144551 times by 22 tests: }return tryToken; Executed by:
| 144551 | ||||||||||||||||||
2024 | - | |||||||||||||||||||
2025 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2026 | { | - | ||||||||||||||||||
2027 | if (finallyExpression
| 3738-35575 | ||||||||||||||||||
2028 | return executed 3738 times by 4 tests: finallyExpression->statement->rbraceToken;return finallyExpression->statement->rbraceToken; Executed by:
executed 3738 times by 4 tests: return finallyExpression->statement->rbraceToken; Executed by:
| 3738 | ||||||||||||||||||
2029 | else if (catchExpression
| 0-35572 | ||||||||||||||||||
2030 | return executed 35572 times by 5 tests: catchExpression->statement->rbraceToken;return catchExpression->statement->rbraceToken; Executed by:
executed 35572 times by 5 tests: return catchExpression->statement->rbraceToken; Executed by:
| 35572 | ||||||||||||||||||
2031 | - | |||||||||||||||||||
2032 | return never executed: statement->lastSourceLocation();return statement->lastSourceLocation(); never executed: return statement->lastSourceLocation(); | 0 | ||||||||||||||||||
2033 | } | - | ||||||||||||||||||
2034 | - | |||||||||||||||||||
2035 | - | |||||||||||||||||||
2036 | Statement *statement; | - | ||||||||||||||||||
2037 | Catch *catchExpression; | - | ||||||||||||||||||
2038 | Finally *finallyExpression; | - | ||||||||||||||||||
2039 | SourceLocation tryToken; | - | ||||||||||||||||||
2040 | }; | - | ||||||||||||||||||
2041 | - | |||||||||||||||||||
2042 | class __attribute__((visibility("default"))) FunctionExpression: public ExpressionNode | - | ||||||||||||||||||
2043 | { | - | ||||||||||||||||||
2044 | public: | - | ||||||||||||||||||
2045 | enum { K = Kind_FunctionExpression }; | - | ||||||||||||||||||
2046 | - | |||||||||||||||||||
2047 | FunctionExpression(const QStringRef &n, FormalParameterList *f, StatementList *b): | - | ||||||||||||||||||
2048 | name (n), formals (f), body (b) | - | ||||||||||||||||||
2049 | { kind = K; } executed 1195709 times by 99 tests: end of block Executed by:
| 1195709 | ||||||||||||||||||
2050 | - | |||||||||||||||||||
2051 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2052 | - | |||||||||||||||||||
2053 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2054 | { return executed 2492096 times by 99 tests: functionToken;return functionToken; Executed by:
executed 2492096 times by 99 tests: }return functionToken; Executed by:
| 2492096 | ||||||||||||||||||
2055 | - | |||||||||||||||||||
2056 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2057 | { return executed 1599660 times by 99 tests: rbraceToken;return rbraceToken; Executed by:
executed 1599660 times by 99 tests: }return rbraceToken; Executed by:
| 1599660 | ||||||||||||||||||
2058 | - | |||||||||||||||||||
2059 | FunctionExpression *asFunctionDefinition() override; | - | ||||||||||||||||||
2060 | - | |||||||||||||||||||
2061 | - | |||||||||||||||||||
2062 | QStringRef name; | - | ||||||||||||||||||
2063 | bool isArrowFunction = false; | - | ||||||||||||||||||
2064 | bool isGenerator = false; | - | ||||||||||||||||||
2065 | FormalParameterList *formals; | - | ||||||||||||||||||
2066 | StatementList *body; | - | ||||||||||||||||||
2067 | SourceLocation functionToken; | - | ||||||||||||||||||
2068 | SourceLocation identifierToken; | - | ||||||||||||||||||
2069 | SourceLocation lparenToken; | - | ||||||||||||||||||
2070 | SourceLocation rparenToken; | - | ||||||||||||||||||
2071 | SourceLocation lbraceToken; | - | ||||||||||||||||||
2072 | SourceLocation rbraceToken; | - | ||||||||||||||||||
2073 | }; | - | ||||||||||||||||||
2074 | - | |||||||||||||||||||
2075 | class __attribute__((visibility("default"))) FunctionDeclaration: public FunctionExpression | - | ||||||||||||||||||
2076 | { | - | ||||||||||||||||||
2077 | public: | - | ||||||||||||||||||
2078 | enum { K = Kind_FunctionDeclaration }; | - | ||||||||||||||||||
2079 | - | |||||||||||||||||||
2080 | FunctionDeclaration(const QStringRef &n, FormalParameterList *f, StatementList *b): | - | ||||||||||||||||||
2081 | FunctionExpression(n, f, b) | - | ||||||||||||||||||
2082 | { kind = K; } executed 325827 times by 97 tests: end of block Executed by:
| 325827 | ||||||||||||||||||
2083 | - | |||||||||||||||||||
2084 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2085 | }; | - | ||||||||||||||||||
2086 | - | |||||||||||||||||||
2087 | class __attribute__((visibility("default"))) FormalParameterList: public Node | - | ||||||||||||||||||
2088 | { | - | ||||||||||||||||||
2089 | public: | - | ||||||||||||||||||
2090 | enum { K = Kind_FormalParameterList }; | - | ||||||||||||||||||
2091 | - | |||||||||||||||||||
2092 | FormalParameterList(FormalParameterList *previous, PatternElement *e) | - | ||||||||||||||||||
2093 | : element(e) | - | ||||||||||||||||||
2094 | { | - | ||||||||||||||||||
2095 | kind = K; | - | ||||||||||||||||||
2096 | if (previous
| 875796-1014992 | ||||||||||||||||||
2097 | next = previous->next; | - | ||||||||||||||||||
2098 | previous->next = this; | - | ||||||||||||||||||
2099 | } executed 1014665 times by 30 tests: else {end of block Executed by:
| 1014665 | ||||||||||||||||||
2100 | next = this; | - | ||||||||||||||||||
2101 | } executed 874118 times by 59 tests: end of block Executed by:
| 874118 | ||||||||||||||||||
2102 | } | - | ||||||||||||||||||
2103 | - | |||||||||||||||||||
2104 | FormalParameterList *append(FormalParameterList *n) { | - | ||||||||||||||||||
2105 | n->next = next; | - | ||||||||||||||||||
2106 | next = n; | - | ||||||||||||||||||
2107 | return never executed: n;return n; never executed: return n; | 0 | ||||||||||||||||||
2108 | } | - | ||||||||||||||||||
2109 | - | |||||||||||||||||||
2110 | bool isSimpleParameterList() | - | ||||||||||||||||||
2111 | { | - | ||||||||||||||||||
2112 | AST::FormalParameterList *formals = this; | - | ||||||||||||||||||
2113 | while (formals
| 6753-19788 | ||||||||||||||||||
2114 | PatternElement *e = formals->element; | - | ||||||||||||||||||
2115 | if (e
| 0-19789 | ||||||||||||||||||
2116 | return executed 18 times by 1 test: false;return false; Executed by:
executed 18 times by 1 test: return false; Executed by:
| 18 | ||||||||||||||||||
2117 | if (e
| 0-19793 | ||||||||||||||||||
2118 | return executed 80 times by 1 test: false;return false; Executed by:
executed 80 times by 1 test: return false; Executed by:
| 80 | ||||||||||||||||||
2119 | formals = formals->next; | - | ||||||||||||||||||
2120 | } executed 19720 times by 12 tests: end of block Executed by:
| 19720 | ||||||||||||||||||
2121 | return executed 6748 times by 12 tests: true;return true; Executed by:
executed 6748 times by 12 tests: return true; Executed by:
| 6748 | ||||||||||||||||||
2122 | } | - | ||||||||||||||||||
2123 | - | |||||||||||||||||||
2124 | int length() | - | ||||||||||||||||||
2125 | { | - | ||||||||||||||||||
2126 | - | |||||||||||||||||||
2127 | int l = 0; | - | ||||||||||||||||||
2128 | AST::FormalParameterList *formals = this; | - | ||||||||||||||||||
2129 | while (formals
| 802691-1759163 | ||||||||||||||||||
2130 | PatternElement *e = formals->element; | - | ||||||||||||||||||
2131 | if (!e
| 0-1759321 | ||||||||||||||||||
2132 | break; executed 5880 times by 1 test: break; Executed by:
| 5880 | ||||||||||||||||||
2133 | if (e->type == PatternElement::RestElement
| 230-1754371 | ||||||||||||||||||
2134 | break; executed 230 times by 1 test: break; Executed by:
| 230 | ||||||||||||||||||
2135 | ++l; | - | ||||||||||||||||||
2136 | formals = formals->next; | - | ||||||||||||||||||
2137 | } executed 1754341 times by 58 tests: end of block Executed by:
| 1754341 | ||||||||||||||||||
2138 | return executed 809070 times by 58 tests: l;return l; Executed by:
executed 809070 times by 58 tests: return l; Executed by:
| 809070 | ||||||||||||||||||
2139 | } | - | ||||||||||||||||||
2140 | - | |||||||||||||||||||
2141 | bool containsName(const QString &name) const { | - | ||||||||||||||||||
2142 | for (const FormalParameterList *it = this; it
| 318749-745000 | ||||||||||||||||||
2143 | PatternElement *b = it->element; | - | ||||||||||||||||||
2144 | - | |||||||||||||||||||
2145 | if (b
| 0-745343 | ||||||||||||||||||
2146 | return executed 32 times by 3 tests: true;return true; Executed by:
executed 32 times by 3 tests: return true; Executed by:
| 32 | ||||||||||||||||||
2147 | } executed 745291 times by 29 tests: end of block Executed by:
| 745291 | ||||||||||||||||||
2148 | return executed 318825 times by 29 tests: false;return false; Executed by:
executed 318825 times by 29 tests: return false; Executed by:
| 318825 | ||||||||||||||||||
2149 | } | - | ||||||||||||||||||
2150 | - | |||||||||||||||||||
2151 | QStringList formals() const; | - | ||||||||||||||||||
2152 | - | |||||||||||||||||||
2153 | QStringList boundNames() const; | - | ||||||||||||||||||
2154 | - | |||||||||||||||||||
2155 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2156 | - | |||||||||||||||||||
2157 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2158 | { return executed 116313 times by 2 tests: element->firstSourceLocation();return element->firstSourceLocation(); Executed by:
executed 116313 times by 2 tests: }return element->firstSourceLocation(); Executed by:
| 116313 | ||||||||||||||||||
2159 | - | |||||||||||||||||||
2160 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2161 | { return executed 195912 times by 1 test: next ? next->lastSourceLocation() : element->lastSourceLocation();return next ? next->lastSourceLocation() : element->lastSourceLocation(); Executed by:
executed 195912 times by 1 test: }return next ? next->lastSourceLocation() : element->lastSourceLocation(); Executed by:
| 195912 | ||||||||||||||||||
2162 | - | |||||||||||||||||||
2163 | FormalParameterList *finish(MemoryPool *pool); | - | ||||||||||||||||||
2164 | - | |||||||||||||||||||
2165 | - | |||||||||||||||||||
2166 | PatternElement *element = nullptr; | - | ||||||||||||||||||
2167 | FormalParameterList *next; | - | ||||||||||||||||||
2168 | }; | - | ||||||||||||||||||
2169 | - | |||||||||||||||||||
2170 | class __attribute__((visibility("default"))) ClassExpression : public ExpressionNode | - | ||||||||||||||||||
2171 | { | - | ||||||||||||||||||
2172 | public: | - | ||||||||||||||||||
2173 | enum { K = Kind_ClassExpression }; | - | ||||||||||||||||||
2174 | - | |||||||||||||||||||
2175 | ClassExpression(const QStringRef &n, ExpressionNode *heritage, ClassElementList *elements) | - | ||||||||||||||||||
2176 | : name(n), heritage(heritage), elements(elements) | - | ||||||||||||||||||
2177 | { kind = K; } executed 15657 times by 2 tests: end of block Executed by:
| 15657 | ||||||||||||||||||
2178 | - | |||||||||||||||||||
2179 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2180 | - | |||||||||||||||||||
2181 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2182 | { return executed 28233 times by 2 tests: classToken;return classToken; Executed by:
executed 28233 times by 2 tests: }return classToken; Executed by:
| 28233 | ||||||||||||||||||
2183 | - | |||||||||||||||||||
2184 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2185 | { return executed 33843 times by 2 tests: rbraceToken;return rbraceToken; Executed by:
executed 33843 times by 2 tests: }return rbraceToken; Executed by:
| 33843 | ||||||||||||||||||
2186 | - | |||||||||||||||||||
2187 | ClassExpression *asClassDefinition() override; | - | ||||||||||||||||||
2188 | - | |||||||||||||||||||
2189 | - | |||||||||||||||||||
2190 | QStringRef name; | - | ||||||||||||||||||
2191 | ExpressionNode *heritage; | - | ||||||||||||||||||
2192 | ClassElementList *elements; | - | ||||||||||||||||||
2193 | SourceLocation classToken; | - | ||||||||||||||||||
2194 | SourceLocation identifierToken; | - | ||||||||||||||||||
2195 | SourceLocation lbraceToken; | - | ||||||||||||||||||
2196 | SourceLocation rbraceToken; | - | ||||||||||||||||||
2197 | }; | - | ||||||||||||||||||
2198 | - | |||||||||||||||||||
2199 | class __attribute__((visibility("default"))) ClassDeclaration: public ClassExpression | - | ||||||||||||||||||
2200 | { | - | ||||||||||||||||||
2201 | public: | - | ||||||||||||||||||
2202 | enum { K = Kind_ClassDeclaration }; | - | ||||||||||||||||||
2203 | - | |||||||||||||||||||
2204 | ClassDeclaration(const QStringRef &n, ExpressionNode *heritage, ClassElementList *elements) | - | ||||||||||||||||||
2205 | : ClassExpression(n, heritage, elements) | - | ||||||||||||||||||
2206 | { kind = K; } executed 8326 times by 2 tests: end of block Executed by:
| 8326 | ||||||||||||||||||
2207 | - | |||||||||||||||||||
2208 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2209 | }; | - | ||||||||||||||||||
2210 | - | |||||||||||||||||||
2211 | - | |||||||||||||||||||
2212 | class __attribute__((visibility("default"))) ClassElementList : public Node | - | ||||||||||||||||||
2213 | { | - | ||||||||||||||||||
2214 | public: | - | ||||||||||||||||||
2215 | enum { K = Kind_ClassElementList }; | - | ||||||||||||||||||
2216 | - | |||||||||||||||||||
2217 | ClassElementList(PatternProperty *property, bool isStatic) | - | ||||||||||||||||||
2218 | : isStatic(isStatic), property(property) | - | ||||||||||||||||||
2219 | { | - | ||||||||||||||||||
2220 | kind = K; | - | ||||||||||||||||||
2221 | next = this; | - | ||||||||||||||||||
2222 | } executed 14484 times by 2 tests: end of block Executed by:
| 14484 | ||||||||||||||||||
2223 | - | |||||||||||||||||||
2224 | ClassElementList *append(ClassElementList *n) { | - | ||||||||||||||||||
2225 | n->next = next; | - | ||||||||||||||||||
2226 | next = n; | - | ||||||||||||||||||
2227 | return executed 1099 times by 2 tests: n;return n; Executed by:
executed 1099 times by 2 tests: return n; Executed by:
| 1099 | ||||||||||||||||||
2228 | } | - | ||||||||||||||||||
2229 | - | |||||||||||||||||||
2230 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2231 | - | |||||||||||||||||||
2232 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2233 | { return executed 13900 times by 1 test: property->firstSourceLocation();return property->firstSourceLocation(); Executed by:
executed 13900 times by 1 test: }return property->firstSourceLocation(); Executed by:
| 13900 | ||||||||||||||||||
2234 | - | |||||||||||||||||||
2235 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2236 | { | - | ||||||||||||||||||
2237 | if (next
| 2456-13900 | ||||||||||||||||||
2238 | return executed 2456 times by 1 test: next->lastSourceLocation();return next->lastSourceLocation(); Executed by:
executed 2456 times by 1 test: return next->lastSourceLocation(); Executed by:
| 2456 | ||||||||||||||||||
2239 | return executed 13900 times by 1 test: property->lastSourceLocation();return property->lastSourceLocation(); Executed by:
executed 13900 times by 1 test: return property->lastSourceLocation(); Executed by:
| 13900 | ||||||||||||||||||
2240 | } | - | ||||||||||||||||||
2241 | - | |||||||||||||||||||
2242 | ClassElementList *finish(); | - | ||||||||||||||||||
2243 | - | |||||||||||||||||||
2244 | bool isStatic; | - | ||||||||||||||||||
2245 | ClassElementList *next; | - | ||||||||||||||||||
2246 | PatternProperty *property; | - | ||||||||||||||||||
2247 | }; | - | ||||||||||||||||||
2248 | - | |||||||||||||||||||
2249 | class __attribute__((visibility("default"))) Program: public Node | - | ||||||||||||||||||
2250 | { | - | ||||||||||||||||||
2251 | public: | - | ||||||||||||||||||
2252 | enum { K = Kind_Program }; | - | ||||||||||||||||||
2253 | - | |||||||||||||||||||
2254 | Program(StatementList *statements) | - | ||||||||||||||||||
2255 | : statements(statements) | - | ||||||||||||||||||
2256 | { kind = K; } executed 2344878 times by 41 tests: end of block Executed by:
| 2344878 | ||||||||||||||||||
2257 | - | |||||||||||||||||||
2258 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2259 | - | |||||||||||||||||||
2260 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2261 | { return executed 4626422 times by 41 tests: statements ? statements->firstSourceLocation() : SourceLocation();return statements ? statements->firstSourceLocation() : SourceLocation(); Executed by:
executed 4626422 times by 41 tests: }return statements ? statements->firstSourceLocation() : SourceLocation(); Executed by:
| 4626422 | ||||||||||||||||||
2262 | - | |||||||||||||||||||
2263 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2264 | { return executed 2338483 times by 41 tests: statements ? statements->lastSourceLocation() : SourceLocation();return statements ? statements->lastSourceLocation() : SourceLocation(); Executed by:
executed 2338483 times by 41 tests: }return statements ? statements->lastSourceLocation() : SourceLocation(); Executed by:
| 2338483 | ||||||||||||||||||
2265 | - | |||||||||||||||||||
2266 | - | |||||||||||||||||||
2267 | StatementList *statements; | - | ||||||||||||||||||
2268 | }; | - | ||||||||||||||||||
2269 | - | |||||||||||||||||||
2270 | class __attribute__((visibility("default"))) DebuggerStatement: public Statement | - | ||||||||||||||||||
2271 | { | - | ||||||||||||||||||
2272 | public: | - | ||||||||||||||||||
2273 | enum { K = Kind_DebuggerStatement }; | - | ||||||||||||||||||
2274 | - | |||||||||||||||||||
2275 | DebuggerStatement() | - | ||||||||||||||||||
2276 | { kind = K; } executed 10 times by 4 tests: end of block Executed by:
| 10 | ||||||||||||||||||
2277 | - | |||||||||||||||||||
2278 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2279 | - | |||||||||||||||||||
2280 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2281 | { return executed 6 times by 2 tests: debuggerToken;return debuggerToken; Executed by:
executed 6 times by 2 tests: }return debuggerToken; Executed by:
| 6 | ||||||||||||||||||
2282 | - | |||||||||||||||||||
2283 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2284 | { return executed 24 times by 2 tests: semicolonToken;return semicolonToken; Executed by:
executed 24 times by 2 tests: }return semicolonToken; Executed by:
| 24 | ||||||||||||||||||
2285 | - | |||||||||||||||||||
2286 | - | |||||||||||||||||||
2287 | SourceLocation debuggerToken; | - | ||||||||||||||||||
2288 | SourceLocation semicolonToken; | - | ||||||||||||||||||
2289 | }; | - | ||||||||||||||||||
2290 | - | |||||||||||||||||||
2291 | class __attribute__((visibility("default"))) UiQualifiedId: public Node | - | ||||||||||||||||||
2292 | { | - | ||||||||||||||||||
2293 | public: | - | ||||||||||||||||||
2294 | enum { K = Kind_UiQualifiedId }; | - | ||||||||||||||||||
2295 | - | |||||||||||||||||||
2296 | UiQualifiedId(const QStringRef &name) | - | ||||||||||||||||||
2297 | : next(this), name(name) | - | ||||||||||||||||||
2298 | { kind = K; } executed 426156 times by 143 tests: end of block Executed by:
| 426156 | ||||||||||||||||||
2299 | - | |||||||||||||||||||
2300 | UiQualifiedId(UiQualifiedId *previous, const QStringRef &name) | - | ||||||||||||||||||
2301 | : name(name) | - | ||||||||||||||||||
2302 | { | - | ||||||||||||||||||
2303 | kind = K; | - | ||||||||||||||||||
2304 | next = previous->next; | - | ||||||||||||||||||
2305 | previous->next = this; | - | ||||||||||||||||||
2306 | } executed 23608 times by 116 tests: end of block Executed by:
| 23608 | ||||||||||||||||||
2307 | - | |||||||||||||||||||
2308 | UiQualifiedId *finish() | - | ||||||||||||||||||
2309 | { | - | ||||||||||||||||||
2310 | UiQualifiedId *head = next; | - | ||||||||||||||||||
2311 | next = nullptr; | - | ||||||||||||||||||
2312 | return executed 425536 times by 143 tests: head;return head; Executed by:
executed 425536 times by 143 tests: return head; Executed by:
| 425536 | ||||||||||||||||||
2313 | } | - | ||||||||||||||||||
2314 | - | |||||||||||||||||||
2315 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2316 | - | |||||||||||||||||||
2317 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2318 | { return executed 446785 times by 143 tests: identifierToken;return identifierToken; Executed by:
executed 446785 times by 143 tests: }return identifierToken; Executed by:
| 446785 | ||||||||||||||||||
2319 | - | |||||||||||||||||||
2320 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2321 | { return executed 415160 times by 1 test: next ? next->lastSourceLocation() : identifierToken;return next ? next->lastSourceLocation() : identifierToken; Executed by:
executed 415160 times by 1 test: }return next ? next->lastSourceLocation() : identifierToken; Executed by:
| 415160 | ||||||||||||||||||
2322 | - | |||||||||||||||||||
2323 | - | |||||||||||||||||||
2324 | UiQualifiedId *next; | - | ||||||||||||||||||
2325 | QStringRef name; | - | ||||||||||||||||||
2326 | SourceLocation identifierToken; | - | ||||||||||||||||||
2327 | }; | - | ||||||||||||||||||
2328 | - | |||||||||||||||||||
2329 | class __attribute__((visibility("default"))) UiImport: public Node | - | ||||||||||||||||||
2330 | { | - | ||||||||||||||||||
2331 | public: | - | ||||||||||||||||||
2332 | enum { K = Kind_UiImport }; | - | ||||||||||||||||||
2333 | - | |||||||||||||||||||
2334 | UiImport(const QStringRef &fileName) | - | ||||||||||||||||||
2335 | : fileName(fileName), importUri(nullptr) | - | ||||||||||||||||||
2336 | { kind = K; } executed 899 times by 25 tests: end of block Executed by:
| 899 | ||||||||||||||||||
2337 | - | |||||||||||||||||||
2338 | UiImport(UiQualifiedId *uri) | - | ||||||||||||||||||
2339 | : importUri(uri) | - | ||||||||||||||||||
2340 | { kind = K; } executed 58516 times by 143 tests: end of block Executed by:
| 58516 | ||||||||||||||||||
2341 | - | |||||||||||||||||||
2342 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2343 | - | |||||||||||||||||||
2344 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2345 | { return executed 75456 times by 1 test: importToken;return importToken; Executed by:
executed 75456 times by 1 test: }return importToken; Executed by:
| 75456 | ||||||||||||||||||
2346 | - | |||||||||||||||||||
2347 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2348 | { return executed 60892 times by 1 test: semicolonToken;return semicolonToken; Executed by:
executed 60892 times by 1 test: }return semicolonToken; Executed by:
| 60892 | ||||||||||||||||||
2349 | - | |||||||||||||||||||
2350 | - | |||||||||||||||||||
2351 | QStringRef fileName; | - | ||||||||||||||||||
2352 | UiQualifiedId *importUri; | - | ||||||||||||||||||
2353 | QStringRef importId; | - | ||||||||||||||||||
2354 | SourceLocation importToken; | - | ||||||||||||||||||
2355 | SourceLocation fileNameToken; | - | ||||||||||||||||||
2356 | SourceLocation versionToken; | - | ||||||||||||||||||
2357 | SourceLocation asToken; | - | ||||||||||||||||||
2358 | SourceLocation importIdToken; | - | ||||||||||||||||||
2359 | SourceLocation semicolonToken; | - | ||||||||||||||||||
2360 | }; | - | ||||||||||||||||||
2361 | - | |||||||||||||||||||
2362 | class __attribute__((visibility("default"))) UiObjectMember: public Node | - | ||||||||||||||||||
2363 | { | - | ||||||||||||||||||
2364 | public: | - | ||||||||||||||||||
2365 | SourceLocation firstSourceLocation() const override = 0; | - | ||||||||||||||||||
2366 | SourceLocation lastSourceLocation() const override = 0; | - | ||||||||||||||||||
2367 | - | |||||||||||||||||||
2368 | UiObjectMember *uiObjectMemberCast() override; | - | ||||||||||||||||||
2369 | }; | - | ||||||||||||||||||
2370 | - | |||||||||||||||||||
2371 | class __attribute__((visibility("default"))) UiObjectMemberList: public Node | - | ||||||||||||||||||
2372 | { | - | ||||||||||||||||||
2373 | public: | - | ||||||||||||||||||
2374 | enum { K = Kind_UiObjectMemberList }; | - | ||||||||||||||||||
2375 | - | |||||||||||||||||||
2376 | UiObjectMemberList(UiObjectMember *member) | - | ||||||||||||||||||
2377 | : next(this), member(member) | - | ||||||||||||||||||
2378 | { kind = K; } executed 159227 times by 143 tests: end of block Executed by:
| 159227 | ||||||||||||||||||
2379 | - | |||||||||||||||||||
2380 | UiObjectMemberList(UiObjectMemberList *previous, UiObjectMember *member) | - | ||||||||||||||||||
2381 | : member(member) | - | ||||||||||||||||||
2382 | { | - | ||||||||||||||||||
2383 | kind = K; | - | ||||||||||||||||||
2384 | next = previous->next; | - | ||||||||||||||||||
2385 | previous->next = this; | - | ||||||||||||||||||
2386 | } executed 206171 times by 137 tests: end of block Executed by:
| 206171 | ||||||||||||||||||
2387 | - | |||||||||||||||||||
2388 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2389 | - | |||||||||||||||||||
2390 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2391 | { return executed 286908 times by 1 test: member->firstSourceLocation();return member->firstSourceLocation(); Executed by:
executed 286908 times by 1 test: }return member->firstSourceLocation(); Executed by:
| 286908 | ||||||||||||||||||
2392 | - | |||||||||||||||||||
2393 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2394 | { return executed 4469080 times by 1 test: next ? next->lastSourceLocation() : member->lastSourceLocation();return next ? next->lastSourceLocation() : member->lastSourceLocation(); Executed by:
executed 4469080 times by 1 test: }return next ? next->lastSourceLocation() : member->lastSourceLocation(); Executed by:
| 4469080 | ||||||||||||||||||
2395 | - | |||||||||||||||||||
2396 | UiObjectMemberList *finish() | - | ||||||||||||||||||
2397 | { | - | ||||||||||||||||||
2398 | UiObjectMemberList *head = next; | - | ||||||||||||||||||
2399 | next = nullptr; | - | ||||||||||||||||||
2400 | return executed 159219 times by 143 tests: head;return head; Executed by:
executed 159219 times by 143 tests: return head; Executed by:
| 159219 | ||||||||||||||||||
2401 | } | - | ||||||||||||||||||
2402 | - | |||||||||||||||||||
2403 | - | |||||||||||||||||||
2404 | UiObjectMemberList *next; | - | ||||||||||||||||||
2405 | UiObjectMember *member; | - | ||||||||||||||||||
2406 | }; | - | ||||||||||||||||||
2407 | - | |||||||||||||||||||
2408 | class __attribute__((visibility("default"))) UiQualifiedPragmaId: public Node | - | ||||||||||||||||||
2409 | { | - | ||||||||||||||||||
2410 | public: | - | ||||||||||||||||||
2411 | enum { K = Kind_UiQualifiedPragmaId }; | - | ||||||||||||||||||
2412 | - | |||||||||||||||||||
2413 | UiQualifiedPragmaId(const QStringRef &name) | - | ||||||||||||||||||
2414 | : next(this), name(name) | - | ||||||||||||||||||
2415 | { kind = K; } executed 47 times by 5 tests: end of block Executed by:
| 47 | ||||||||||||||||||
2416 | - | |||||||||||||||||||
2417 | UiQualifiedPragmaId(UiQualifiedPragmaId *previous, const QStringRef &name) | - | ||||||||||||||||||
2418 | : name(name) | - | ||||||||||||||||||
2419 | { | - | ||||||||||||||||||
2420 | kind = K; | - | ||||||||||||||||||
2421 | next = previous->next; | - | ||||||||||||||||||
2422 | previous->next = this; | - | ||||||||||||||||||
2423 | } never executed: end of block | 0 | ||||||||||||||||||
2424 | - | |||||||||||||||||||
2425 | UiQualifiedPragmaId *finish() | - | ||||||||||||||||||
2426 | { | - | ||||||||||||||||||
2427 | UiQualifiedPragmaId *head = next; | - | ||||||||||||||||||
2428 | next = nullptr; | - | ||||||||||||||||||
2429 | return executed 47 times by 5 tests: head;return head; Executed by:
executed 47 times by 5 tests: return head; Executed by:
| 47 | ||||||||||||||||||
2430 | } | - | ||||||||||||||||||
2431 | - | |||||||||||||||||||
2432 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2433 | - | |||||||||||||||||||
2434 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2435 | { return executed 72 times by 1 test: identifierToken;return identifierToken; Executed by:
executed 72 times by 1 test: }return identifierToken; Executed by:
| 72 | ||||||||||||||||||
2436 | - | |||||||||||||||||||
2437 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2438 | { return executed 72 times by 1 test: next ? next->lastSourceLocation() : identifierToken;return next ? next->lastSourceLocation() : identifierToken; Executed by:
executed 72 times by 1 test: }return next ? next->lastSourceLocation() : identifierToken; Executed by:
| 72 | ||||||||||||||||||
2439 | - | |||||||||||||||||||
2440 | - | |||||||||||||||||||
2441 | UiQualifiedPragmaId *next; | - | ||||||||||||||||||
2442 | QStringRef name; | - | ||||||||||||||||||
2443 | SourceLocation identifierToken; | - | ||||||||||||||||||
2444 | }; | - | ||||||||||||||||||
2445 | - | |||||||||||||||||||
2446 | class __attribute__((visibility("default"))) UiPragma: public Node | - | ||||||||||||||||||
2447 | { | - | ||||||||||||||||||
2448 | public: | - | ||||||||||||||||||
2449 | enum { K = Kind_UiPragma }; | - | ||||||||||||||||||
2450 | - | |||||||||||||||||||
2451 | UiPragma(UiQualifiedPragmaId *type) | - | ||||||||||||||||||
2452 | : pragmaType(type) | - | ||||||||||||||||||
2453 | { kind = K; } executed 47 times by 5 tests: end of block Executed by:
| 47 | ||||||||||||||||||
2454 | - | |||||||||||||||||||
2455 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2456 | - | |||||||||||||||||||
2457 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2458 | { return executed 270 times by 1 test: pragmaToken;return pragmaToken; Executed by:
executed 270 times by 1 test: }return pragmaToken; Executed by:
| 270 | ||||||||||||||||||
2459 | - | |||||||||||||||||||
2460 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2461 | { return executed 234 times by 1 test: semicolonToken;return semicolonToken; Executed by:
executed 234 times by 1 test: }return semicolonToken; Executed by:
| 234 | ||||||||||||||||||
2462 | - | |||||||||||||||||||
2463 | - | |||||||||||||||||||
2464 | UiQualifiedPragmaId *pragmaType; | - | ||||||||||||||||||
2465 | SourceLocation pragmaToken; | - | ||||||||||||||||||
2466 | SourceLocation semicolonToken; | - | ||||||||||||||||||
2467 | }; | - | ||||||||||||||||||
2468 | - | |||||||||||||||||||
2469 | class __attribute__((visibility("default"))) UiHeaderItemList: public Node | - | ||||||||||||||||||
2470 | { | - | ||||||||||||||||||
2471 | public: | - | ||||||||||||||||||
2472 | enum { K = Kind_UiHeaderItemList }; | - | ||||||||||||||||||
2473 | - | |||||||||||||||||||
2474 | UiHeaderItemList(UiImport *import) | - | ||||||||||||||||||
2475 | : headerItem(import), next(this) | - | ||||||||||||||||||
2476 | { kind = K; } executed 55891 times by 143 tests: end of block Executed by:
| 55891 | ||||||||||||||||||
2477 | - | |||||||||||||||||||
2478 | UiHeaderItemList(UiPragma *pragma) | - | ||||||||||||||||||
2479 | : headerItem(pragma), next(this) | - | ||||||||||||||||||
2480 | { kind = K; } executed 21 times by 4 tests: end of block Executed by:
| 21 | ||||||||||||||||||
2481 | - | |||||||||||||||||||
2482 | UiHeaderItemList(UiHeaderItemList *previous, UiImport *import) | - | ||||||||||||||||||
2483 | : headerItem(import) | - | ||||||||||||||||||
2484 | { | - | ||||||||||||||||||
2485 | kind = K; | - | ||||||||||||||||||
2486 | next = previous->next; | - | ||||||||||||||||||
2487 | previous->next = this; | - | ||||||||||||||||||
2488 | } executed 3524 times by 90 tests: end of block Executed by:
| 3524 | ||||||||||||||||||
2489 | - | |||||||||||||||||||
2490 | UiHeaderItemList(UiHeaderItemList *previous, UiPragma *pragma) | - | ||||||||||||||||||
2491 | : headerItem(pragma) | - | ||||||||||||||||||
2492 | { | - | ||||||||||||||||||
2493 | kind = K; | - | ||||||||||||||||||
2494 | next = previous->next; | - | ||||||||||||||||||
2495 | previous->next = this; | - | ||||||||||||||||||
2496 | } executed 26 times by 2 tests: end of block Executed by:
| 26 | ||||||||||||||||||
2497 | - | |||||||||||||||||||
2498 | UiHeaderItemList *finish() | - | ||||||||||||||||||
2499 | { | - | ||||||||||||||||||
2500 | UiHeaderItemList *head = next; | - | ||||||||||||||||||
2501 | next = nullptr; | - | ||||||||||||||||||
2502 | return executed 55912 times by 143 tests: head;return head; Executed by:
executed 55912 times by 143 tests: return head; Executed by:
| 55912 | ||||||||||||||||||
2503 | } | - | ||||||||||||||||||
2504 | - | |||||||||||||||||||
2505 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2506 | - | |||||||||||||||||||
2507 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2508 | { return executed 46764 times by 1 test: headerItem->firstSourceLocation();return headerItem->firstSourceLocation(); Executed by:
executed 46764 times by 1 test: }return headerItem->firstSourceLocation(); Executed by:
| 46764 | ||||||||||||||||||
2509 | - | |||||||||||||||||||
2510 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2511 | { return executed 46628 times by 1 test: next ? next->lastSourceLocation() : headerItem->lastSourceLocation();return next ? next->lastSourceLocation() : headerItem->lastSourceLocation(); Executed by:
executed 46628 times by 1 test: }return next ? next->lastSourceLocation() : headerItem->lastSourceLocation(); Executed by:
| 46628 | ||||||||||||||||||
2512 | - | |||||||||||||||||||
2513 | - | |||||||||||||||||||
2514 | Node *headerItem; | - | ||||||||||||||||||
2515 | UiHeaderItemList *next; | - | ||||||||||||||||||
2516 | }; | - | ||||||||||||||||||
2517 | - | |||||||||||||||||||
2518 | class __attribute__((visibility("default"))) UiProgram: public Node | - | ||||||||||||||||||
2519 | { | - | ||||||||||||||||||
2520 | public: | - | ||||||||||||||||||
2521 | enum { K = Kind_UiProgram }; | - | ||||||||||||||||||
2522 | - | |||||||||||||||||||
2523 | UiProgram(UiHeaderItemList *headers, UiObjectMemberList *members) | - | ||||||||||||||||||
2524 | : headers(headers), members(members) | - | ||||||||||||||||||
2525 | { kind = K; } executed 55904 times by 143 tests: end of block Executed by:
| 55904 | ||||||||||||||||||
2526 | - | |||||||||||||||||||
2527 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2528 | - | |||||||||||||||||||
2529 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2530 | { | - | ||||||||||||||||||
2531 | if (headers
| 26-14600 | ||||||||||||||||||
2532 | return executed 14600 times by 1 test: headers->firstSourceLocation();return headers->firstSourceLocation(); Executed by:
executed 14600 times by 1 test: return headers->firstSourceLocation(); Executed by:
| 14600 | ||||||||||||||||||
2533 | else if (members
| 0-26 | ||||||||||||||||||
2534 | return executed 26 times by 1 test: members->firstSourceLocation();return members->firstSourceLocation(); Executed by:
executed 26 times by 1 test: return members->firstSourceLocation(); Executed by:
| 26 | ||||||||||||||||||
2535 | return never executed: SourceLocation();return SourceLocation(); never executed: return SourceLocation(); | 0 | ||||||||||||||||||
2536 | } | - | ||||||||||||||||||
2537 | - | |||||||||||||||||||
2538 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2539 | { | - | ||||||||||||||||||
2540 | if (members
| 0-14626 | ||||||||||||||||||
2541 | return executed 14626 times by 1 test: members->lastSourceLocation();return members->lastSourceLocation(); Executed by:
executed 14626 times by 1 test: return members->lastSourceLocation(); Executed by:
| 14626 | ||||||||||||||||||
2542 | else if (headers
| 0 | ||||||||||||||||||
2543 | return never executed: headers->lastSourceLocation();return headers->lastSourceLocation(); never executed: return headers->lastSourceLocation(); | 0 | ||||||||||||||||||
2544 | return never executed: SourceLocation();return SourceLocation(); never executed: return SourceLocation(); | 0 | ||||||||||||||||||
2545 | } | - | ||||||||||||||||||
2546 | - | |||||||||||||||||||
2547 | - | |||||||||||||||||||
2548 | UiHeaderItemList *headers; | - | ||||||||||||||||||
2549 | UiObjectMemberList *members; | - | ||||||||||||||||||
2550 | }; | - | ||||||||||||||||||
2551 | - | |||||||||||||||||||
2552 | class __attribute__((visibility("default"))) UiArrayMemberList: public Node | - | ||||||||||||||||||
2553 | { | - | ||||||||||||||||||
2554 | public: | - | ||||||||||||||||||
2555 | enum { K = Kind_UiArrayMemberList }; | - | ||||||||||||||||||
2556 | - | |||||||||||||||||||
2557 | UiArrayMemberList(UiObjectMember *member) | - | ||||||||||||||||||
2558 | : next(this), member(member) | - | ||||||||||||||||||
2559 | { kind = K; } executed 651 times by 25 tests: end of block Executed by:
| 651 | ||||||||||||||||||
2560 | - | |||||||||||||||||||
2561 | UiArrayMemberList(UiArrayMemberList *previous, UiObjectMember *member) | - | ||||||||||||||||||
2562 | : member(member) | - | ||||||||||||||||||
2563 | { | - | ||||||||||||||||||
2564 | kind = K; | - | ||||||||||||||||||
2565 | next = previous->next; | - | ||||||||||||||||||
2566 | previous->next = this; | - | ||||||||||||||||||
2567 | } executed 983 times by 21 tests: end of block Executed by:
| 983 | ||||||||||||||||||
2568 | - | |||||||||||||||||||
2569 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2570 | - | |||||||||||||||||||
2571 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2572 | { return executed 2122 times by 1 test: member->firstSourceLocation();return member->firstSourceLocation(); Executed by:
executed 2122 times by 1 test: }return member->firstSourceLocation(); Executed by:
| 2122 | ||||||||||||||||||
2573 | - | |||||||||||||||||||
2574 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2575 | { return executed 9130 times by 1 test: next ? next->lastSourceLocation() : member->lastSourceLocation();return next ? next->lastSourceLocation() : member->lastSourceLocation(); Executed by:
executed 9130 times by 1 test: }return next ? next->lastSourceLocation() : member->lastSourceLocation(); Executed by:
| 9130 | ||||||||||||||||||
2576 | - | |||||||||||||||||||
2577 | UiArrayMemberList *finish() | - | ||||||||||||||||||
2578 | { | - | ||||||||||||||||||
2579 | UiArrayMemberList *head = next; | - | ||||||||||||||||||
2580 | next = nullptr; | - | ||||||||||||||||||
2581 | return executed 651 times by 25 tests: head;return head; Executed by:
executed 651 times by 25 tests: return head; Executed by:
| 651 | ||||||||||||||||||
2582 | } | - | ||||||||||||||||||
2583 | - | |||||||||||||||||||
2584 | - | |||||||||||||||||||
2585 | UiArrayMemberList *next; | - | ||||||||||||||||||
2586 | UiObjectMember *member; | - | ||||||||||||||||||
2587 | SourceLocation commaToken; | - | ||||||||||||||||||
2588 | }; | - | ||||||||||||||||||
2589 | - | |||||||||||||||||||
2590 | class __attribute__((visibility("default"))) UiObjectInitializer: public Node | - | ||||||||||||||||||
2591 | { | - | ||||||||||||||||||
2592 | public: | - | ||||||||||||||||||
2593 | enum { K = Kind_UiObjectInitializer }; | - | ||||||||||||||||||
2594 | - | |||||||||||||||||||
2595 | UiObjectInitializer(UiObjectMemberList *members) | - | ||||||||||||||||||
2596 | : members(members) | - | ||||||||||||||||||
2597 | { kind = K; } executed 115103 times by 143 tests: end of block Executed by:
| 115103 | ||||||||||||||||||
2598 | - | |||||||||||||||||||
2599 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2600 | - | |||||||||||||||||||
2601 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2602 | { return executed 136992 times by 1 test: lbraceToken;return lbraceToken; Executed by:
executed 136992 times by 1 test: }return lbraceToken; Executed by:
| 136992 | ||||||||||||||||||
2603 | - | |||||||||||||||||||
2604 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2605 | { return executed 136992 times by 1 test: rbraceToken;return rbraceToken; Executed by:
executed 136992 times by 1 test: }return rbraceToken; Executed by:
| 136992 | ||||||||||||||||||
2606 | - | |||||||||||||||||||
2607 | - | |||||||||||||||||||
2608 | SourceLocation lbraceToken; | - | ||||||||||||||||||
2609 | UiObjectMemberList *members; | - | ||||||||||||||||||
2610 | SourceLocation rbraceToken; | - | ||||||||||||||||||
2611 | }; | - | ||||||||||||||||||
2612 | - | |||||||||||||||||||
2613 | class __attribute__((visibility("default"))) UiParameterList: public Node | - | ||||||||||||||||||
2614 | { | - | ||||||||||||||||||
2615 | public: | - | ||||||||||||||||||
2616 | enum { K = Kind_UiParameterList }; | - | ||||||||||||||||||
2617 | - | |||||||||||||||||||
2618 | UiParameterList(UiQualifiedId *t, const QStringRef &n): | - | ||||||||||||||||||
2619 | type (t), name (n), next (this) | - | ||||||||||||||||||
2620 | { kind = K; } executed 86 times by 7 tests: end of block Executed by:
| 86 | ||||||||||||||||||
2621 | - | |||||||||||||||||||
2622 | UiParameterList(UiParameterList *previous, UiQualifiedId *t, const QStringRef &n): | - | ||||||||||||||||||
2623 | type (t), name (n) | - | ||||||||||||||||||
2624 | { | - | ||||||||||||||||||
2625 | kind = K; | - | ||||||||||||||||||
2626 | next = previous->next; | - | ||||||||||||||||||
2627 | previous->next = this; | - | ||||||||||||||||||
2628 | } executed 58 times by 6 tests: end of block Executed by:
| 58 | ||||||||||||||||||
2629 | - | |||||||||||||||||||
2630 | void accept0(Visitor *) override; | - | ||||||||||||||||||
2631 | - | |||||||||||||||||||
2632 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2633 | { return never executed: propertyTypeToken;return propertyTypeToken; never executed: }return propertyTypeToken; | 0 | ||||||||||||||||||
2634 | - | |||||||||||||||||||
2635 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2636 | { return never executed: next ? next->lastSourceLocation() : identifierToken;return next ? next->lastSourceLocation() : identifierToken; never executed: }return next ? next->lastSourceLocation() : identifierToken; | 0 | ||||||||||||||||||
2637 | - | |||||||||||||||||||
2638 | inline UiParameterList *finish () | - | ||||||||||||||||||
2639 | { | - | ||||||||||||||||||
2640 | UiParameterList *front = next; | - | ||||||||||||||||||
2641 | next = nullptr; | - | ||||||||||||||||||
2642 | return executed 86 times by 7 tests: front;return front; Executed by:
executed 86 times by 7 tests: return front; Executed by:
| 86 | ||||||||||||||||||
2643 | } | - | ||||||||||||||||||
2644 | - | |||||||||||||||||||
2645 | - | |||||||||||||||||||
2646 | UiQualifiedId *type; | - | ||||||||||||||||||
2647 | QStringRef name; | - | ||||||||||||||||||
2648 | UiParameterList *next; | - | ||||||||||||||||||
2649 | SourceLocation commaToken; | - | ||||||||||||||||||
2650 | SourceLocation propertyTypeToken; | - | ||||||||||||||||||
2651 | SourceLocation identifierToken; | - | ||||||||||||||||||
2652 | }; | - | ||||||||||||||||||
2653 | - | |||||||||||||||||||
2654 | class __attribute__((visibility("default"))) UiPublicMember: public UiObjectMember | - | ||||||||||||||||||
2655 | { | - | ||||||||||||||||||
2656 | public: | - | ||||||||||||||||||
2657 | enum { K = Kind_UiPublicMember }; | - | ||||||||||||||||||
2658 | - | |||||||||||||||||||
2659 | UiPublicMember(UiQualifiedId *memberType, | - | ||||||||||||||||||
2660 | const QStringRef &name) | - | ||||||||||||||||||
2661 | : type(Property), memberType(memberType), name(name), statement(nullptr), binding(nullptr), isDefaultMember(false), isReadonlyMember(false), parameters(nullptr) | - | ||||||||||||||||||
2662 | { kind = K; } executed 5280 times by 72 tests: end of block Executed by:
| 5280 | ||||||||||||||||||
2663 | - | |||||||||||||||||||
2664 | UiPublicMember(UiQualifiedId *memberType, | - | ||||||||||||||||||
2665 | const QStringRef &name, | - | ||||||||||||||||||
2666 | Statement *statement) | - | ||||||||||||||||||
2667 | : type(Property), memberType(memberType), name(name), statement(statement), binding(nullptr), isDefaultMember(false), isReadonlyMember(false), parameters(nullptr) | - | ||||||||||||||||||
2668 | { kind = K; } executed 14231 times by 99 tests: end of block Executed by:
| 14231 | ||||||||||||||||||
2669 | - | |||||||||||||||||||
2670 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2671 | - | |||||||||||||||||||
2672 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2673 | { | - | ||||||||||||||||||
2674 | if (defaultToken.isValid()
| 165-57801 | ||||||||||||||||||
2675 | return executed 165 times by 5 tests: defaultToken;return defaultToken; Executed by:
executed 165 times by 5 tests: return defaultToken; Executed by:
| 165 | ||||||||||||||||||
2676 | else if (readonlyToken.isValid()
| 199-57602 | ||||||||||||||||||
2677 | return executed 199 times by 9 tests: readonlyToken;return readonlyToken; Executed by:
executed 199 times by 9 tests: return readonlyToken; Executed by:
| 199 | ||||||||||||||||||
2678 | - | |||||||||||||||||||
2679 | return executed 57602 times by 102 tests: propertyToken;return propertyToken; Executed by:
executed 57602 times by 102 tests: return propertyToken; Executed by:
| 57602 | ||||||||||||||||||
2680 | } | - | ||||||||||||||||||
2681 | - | |||||||||||||||||||
2682 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2683 | { | - | ||||||||||||||||||
2684 | if (binding
| 2418-41523 | ||||||||||||||||||
2685 | return executed 2418 times by 1 test: binding->lastSourceLocation();return binding->lastSourceLocation(); Executed by:
executed 2418 times by 1 test: return binding->lastSourceLocation(); Executed by:
| 2418 | ||||||||||||||||||
2686 | if (statement
| 4556-36967 | ||||||||||||||||||
2687 | return executed 36967 times by 69 tests: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 36967 times by 69 tests: return statement->lastSourceLocation(); Executed by:
| 36967 | ||||||||||||||||||
2688 | - | |||||||||||||||||||
2689 | return executed 4556 times by 1 test: semicolonToken;return semicolonToken; Executed by:
executed 4556 times by 1 test: return semicolonToken; Executed by:
| 4556 | ||||||||||||||||||
2690 | } | - | ||||||||||||||||||
2691 | - | |||||||||||||||||||
2692 | - | |||||||||||||||||||
2693 | enum { Signal, Property } type; | - | ||||||||||||||||||
2694 | QStringRef typeModifier; | - | ||||||||||||||||||
2695 | UiQualifiedId *memberType; | - | ||||||||||||||||||
2696 | QStringRef name; | - | ||||||||||||||||||
2697 | Statement *statement; | - | ||||||||||||||||||
2698 | UiObjectMember *binding; | - | ||||||||||||||||||
2699 | bool isDefaultMember; | - | ||||||||||||||||||
2700 | bool isReadonlyMember; | - | ||||||||||||||||||
2701 | UiParameterList *parameters; | - | ||||||||||||||||||
2702 | SourceLocation defaultToken; | - | ||||||||||||||||||
2703 | SourceLocation readonlyToken; | - | ||||||||||||||||||
2704 | SourceLocation propertyToken; | - | ||||||||||||||||||
2705 | SourceLocation typeModifierToken; | - | ||||||||||||||||||
2706 | SourceLocation typeToken; | - | ||||||||||||||||||
2707 | SourceLocation identifierToken; | - | ||||||||||||||||||
2708 | SourceLocation colonToken; | - | ||||||||||||||||||
2709 | SourceLocation semicolonToken; | - | ||||||||||||||||||
2710 | }; | - | ||||||||||||||||||
2711 | - | |||||||||||||||||||
2712 | class __attribute__((visibility("default"))) UiObjectDefinition: public UiObjectMember | - | ||||||||||||||||||
2713 | { | - | ||||||||||||||||||
2714 | public: | - | ||||||||||||||||||
2715 | enum { K = Kind_UiObjectDefinition }; | - | ||||||||||||||||||
2716 | - | |||||||||||||||||||
2717 | UiObjectDefinition(UiQualifiedId *qualifiedTypeNameId, | - | ||||||||||||||||||
2718 | UiObjectInitializer *initializer) | - | ||||||||||||||||||
2719 | : qualifiedTypeNameId(qualifiedTypeNameId), initializer(initializer) | - | ||||||||||||||||||
2720 | { kind = K; } executed 109079 times by 143 tests: end of block Executed by:
| 109079 | ||||||||||||||||||
2721 | - | |||||||||||||||||||
2722 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2723 | - | |||||||||||||||||||
2724 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2725 | { return executed 210460 times by 1 test: qualifiedTypeNameId->identifierToken;return qualifiedTypeNameId->identifierToken; Executed by:
executed 210460 times by 1 test: }return qualifiedTypeNameId->identifierToken; Executed by:
| 210460 | ||||||||||||||||||
2726 | - | |||||||||||||||||||
2727 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2728 | { return executed 296546 times by 1 test: initializer->rbraceToken;return initializer->rbraceToken; Executed by:
executed 296546 times by 1 test: }return initializer->rbraceToken; Executed by:
| 296546 | ||||||||||||||||||
2729 | - | |||||||||||||||||||
2730 | - | |||||||||||||||||||
2731 | UiQualifiedId *qualifiedTypeNameId; | - | ||||||||||||||||||
2732 | UiObjectInitializer *initializer; | - | ||||||||||||||||||
2733 | }; | - | ||||||||||||||||||
2734 | - | |||||||||||||||||||
2735 | class __attribute__((visibility("default"))) UiSourceElement: public UiObjectMember | - | ||||||||||||||||||
2736 | { | - | ||||||||||||||||||
2737 | public: | - | ||||||||||||||||||
2738 | enum { K = Kind_UiSourceElement }; | - | ||||||||||||||||||
2739 | - | |||||||||||||||||||
2740 | UiSourceElement(Node *sourceElement) | - | ||||||||||||||||||
2741 | : sourceElement(sourceElement) | - | ||||||||||||||||||
2742 | { kind = K; } executed 5913 times by 56 tests: end of block Executed by:
| 5913 | ||||||||||||||||||
2743 | - | |||||||||||||||||||
2744 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2745 | { | - | ||||||||||||||||||
2746 | if (FunctionDeclaration *funDecl = cast<FunctionDeclaration *>(sourceElement)
| 0-8698 | ||||||||||||||||||
2747 | return executed 8698 times by 1 test: funDecl->firstSourceLocation();return funDecl->firstSourceLocation(); Executed by:
executed 8698 times by 1 test: return funDecl->firstSourceLocation(); Executed by:
| 8698 | ||||||||||||||||||
2748 | else if (VariableStatement *varStmt = cast<VariableStatement *>(sourceElement)
| 0 | ||||||||||||||||||
2749 | return never executed: varStmt->firstSourceLocation();return varStmt->firstSourceLocation(); never executed: return varStmt->firstSourceLocation(); | 0 | ||||||||||||||||||
2750 | - | |||||||||||||||||||
2751 | return never executed: SourceLocation();return SourceLocation(); never executed: return SourceLocation(); | 0 | ||||||||||||||||||
2752 | } | - | ||||||||||||||||||
2753 | - | |||||||||||||||||||
2754 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2755 | { | - | ||||||||||||||||||
2756 | if (FunctionDeclaration *funDecl = cast<FunctionDeclaration *>(sourceElement)
| 0-14070 | ||||||||||||||||||
2757 | return executed 14070 times by 1 test: funDecl->lastSourceLocation();return funDecl->lastSourceLocation(); Executed by:
executed 14070 times by 1 test: return funDecl->lastSourceLocation(); Executed by:
| 14070 | ||||||||||||||||||
2758 | else if (VariableStatement *varStmt = cast<VariableStatement *>(sourceElement)
| 0 | ||||||||||||||||||
2759 | return never executed: varStmt->lastSourceLocation();return varStmt->lastSourceLocation(); never executed: return varStmt->lastSourceLocation(); | 0 | ||||||||||||||||||
2760 | - | |||||||||||||||||||
2761 | return never executed: SourceLocation();return SourceLocation(); never executed: return SourceLocation(); | 0 | ||||||||||||||||||
2762 | } | - | ||||||||||||||||||
2763 | - | |||||||||||||||||||
2764 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2765 | - | |||||||||||||||||||
2766 | - | |||||||||||||||||||
2767 | - | |||||||||||||||||||
2768 | Node *sourceElement; | - | ||||||||||||||||||
2769 | }; | - | ||||||||||||||||||
2770 | - | |||||||||||||||||||
2771 | class __attribute__((visibility("default"))) UiObjectBinding: public UiObjectMember | - | ||||||||||||||||||
2772 | { | - | ||||||||||||||||||
2773 | public: | - | ||||||||||||||||||
2774 | enum { K = Kind_UiObjectBinding }; | - | ||||||||||||||||||
2775 | - | |||||||||||||||||||
2776 | UiObjectBinding(UiQualifiedId *qualifiedId, | - | ||||||||||||||||||
2777 | UiQualifiedId *qualifiedTypeNameId, | - | ||||||||||||||||||
2778 | UiObjectInitializer *initializer) | - | ||||||||||||||||||
2779 | : qualifiedId(qualifiedId), | - | ||||||||||||||||||
2780 | qualifiedTypeNameId(qualifiedTypeNameId), | - | ||||||||||||||||||
2781 | initializer(initializer), | - | ||||||||||||||||||
2782 | hasOnToken(false) | - | ||||||||||||||||||
2783 | { kind = K; } executed 6024 times by 78 tests: end of block Executed by:
| 6024 | ||||||||||||||||||
2784 | - | |||||||||||||||||||
2785 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2786 | { | - | ||||||||||||||||||
2787 | if (hasOnToken
| 0-17220 | ||||||||||||||||||
2788 | return executed 4444 times by 1 test: qualifiedTypeNameId->identifierToken;return qualifiedTypeNameId->identifierToken; Executed by:
executed 4444 times by 1 test: return qualifiedTypeNameId->identifierToken; Executed by:
| 4444 | ||||||||||||||||||
2789 | - | |||||||||||||||||||
2790 | return executed 17220 times by 1 test: qualifiedId->identifierToken;return qualifiedId->identifierToken; Executed by:
executed 17220 times by 1 test: return qualifiedId->identifierToken; Executed by:
| 17220 | ||||||||||||||||||
2791 | } | - | ||||||||||||||||||
2792 | - | |||||||||||||||||||
2793 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2794 | { return executed 37382 times by 1 test: initializer->rbraceToken;return initializer->rbraceToken; Executed by:
executed 37382 times by 1 test: }return initializer->rbraceToken; Executed by:
| 37382 | ||||||||||||||||||
2795 | - | |||||||||||||||||||
2796 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2797 | - | |||||||||||||||||||
2798 | - | |||||||||||||||||||
2799 | - | |||||||||||||||||||
2800 | UiQualifiedId *qualifiedId; | - | ||||||||||||||||||
2801 | UiQualifiedId *qualifiedTypeNameId; | - | ||||||||||||||||||
2802 | UiObjectInitializer *initializer; | - | ||||||||||||||||||
2803 | SourceLocation colonToken; | - | ||||||||||||||||||
2804 | bool hasOnToken; | - | ||||||||||||||||||
2805 | }; | - | ||||||||||||||||||
2806 | - | |||||||||||||||||||
2807 | class __attribute__((visibility("default"))) UiScriptBinding: public UiObjectMember | - | ||||||||||||||||||
2808 | { | - | ||||||||||||||||||
2809 | public: | - | ||||||||||||||||||
2810 | enum { K = Kind_UiScriptBinding }; | - | ||||||||||||||||||
2811 | - | |||||||||||||||||||
2812 | UiScriptBinding(UiQualifiedId *qualifiedId, | - | ||||||||||||||||||
2813 | Statement *statement) | - | ||||||||||||||||||
2814 | : qualifiedId(qualifiedId), | - | ||||||||||||||||||
2815 | statement(statement) | - | ||||||||||||||||||
2816 | { kind = K; } executed 226454 times by 138 tests: end of block Executed by:
| 226454 | ||||||||||||||||||
2817 | - | |||||||||||||||||||
2818 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2819 | { return executed 856692 times by 113 tests: qualifiedId->identifierToken;return qualifiedId->identifierToken; Executed by:
executed 856692 times by 113 tests: }return qualifiedId->identifierToken; Executed by:
| 856692 | ||||||||||||||||||
2820 | - | |||||||||||||||||||
2821 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2822 | { return executed 716708 times by 113 tests: statement->lastSourceLocation();return statement->lastSourceLocation(); Executed by:
executed 716708 times by 113 tests: }return statement->lastSourceLocation(); Executed by:
| 716708 | ||||||||||||||||||
2823 | - | |||||||||||||||||||
2824 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2825 | - | |||||||||||||||||||
2826 | - | |||||||||||||||||||
2827 | UiQualifiedId *qualifiedId; | - | ||||||||||||||||||
2828 | Statement *statement; | - | ||||||||||||||||||
2829 | SourceLocation colonToken; | - | ||||||||||||||||||
2830 | }; | - | ||||||||||||||||||
2831 | - | |||||||||||||||||||
2832 | class __attribute__((visibility("default"))) UiArrayBinding: public UiObjectMember | - | ||||||||||||||||||
2833 | { | - | ||||||||||||||||||
2834 | public: | - | ||||||||||||||||||
2835 | enum { K = Kind_UiArrayBinding }; | - | ||||||||||||||||||
2836 | - | |||||||||||||||||||
2837 | UiArrayBinding(UiQualifiedId *qualifiedId, | - | ||||||||||||||||||
2838 | UiArrayMemberList *members) | - | ||||||||||||||||||
2839 | : qualifiedId(qualifiedId), | - | ||||||||||||||||||
2840 | members(members) | - | ||||||||||||||||||
2841 | { kind = K; } executed 651 times by 25 tests: end of block Executed by:
| 651 | ||||||||||||||||||
2842 | - | |||||||||||||||||||
2843 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2844 | { return executed 1860 times by 1 test: qualifiedId->identifierToken;return qualifiedId->identifierToken; Executed by:
executed 1860 times by 1 test: }return qualifiedId->identifierToken; Executed by:
| 1860 | ||||||||||||||||||
2845 | - | |||||||||||||||||||
2846 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2847 | { return executed 4028 times by 1 test: rbracketToken;return rbracketToken; Executed by:
executed 4028 times by 1 test: }return rbracketToken; Executed by:
| 4028 | ||||||||||||||||||
2848 | - | |||||||||||||||||||
2849 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2850 | - | |||||||||||||||||||
2851 | - | |||||||||||||||||||
2852 | UiQualifiedId *qualifiedId; | - | ||||||||||||||||||
2853 | UiArrayMemberList *members; | - | ||||||||||||||||||
2854 | SourceLocation colonToken; | - | ||||||||||||||||||
2855 | SourceLocation lbracketToken; | - | ||||||||||||||||||
2856 | SourceLocation rbracketToken; | - | ||||||||||||||||||
2857 | }; | - | ||||||||||||||||||
2858 | - | |||||||||||||||||||
2859 | class __attribute__((visibility("default"))) UiEnumMemberList: public Node | - | ||||||||||||||||||
2860 | { | - | ||||||||||||||||||
2861 | enum { K = Kind_UiEnumMemberList }; | - | ||||||||||||||||||
2862 | public: | - | ||||||||||||||||||
2863 | UiEnumMemberList(const QStringRef &member, double v = 0.0) | - | ||||||||||||||||||
2864 | : next(this), member(member), value(v) | - | ||||||||||||||||||
2865 | { kind = K; } executed 22 times by 1 test: end of block Executed by:
| 22 | ||||||||||||||||||
2866 | - | |||||||||||||||||||
2867 | UiEnumMemberList(UiEnumMemberList *previous, const QStringRef &member) | - | ||||||||||||||||||
2868 | : member(member) | - | ||||||||||||||||||
2869 | { | - | ||||||||||||||||||
2870 | kind = K; | - | ||||||||||||||||||
2871 | next = previous->next; | - | ||||||||||||||||||
2872 | previous->next = this; | - | ||||||||||||||||||
2873 | value = previous->value + 1; | - | ||||||||||||||||||
2874 | } executed 24 times by 1 test: end of block Executed by:
| 24 | ||||||||||||||||||
2875 | - | |||||||||||||||||||
2876 | UiEnumMemberList(UiEnumMemberList *previous, const QStringRef &member, double v) | - | ||||||||||||||||||
2877 | : member(member), value(v) | - | ||||||||||||||||||
2878 | { | - | ||||||||||||||||||
2879 | kind = K; | - | ||||||||||||||||||
2880 | next = previous->next; | - | ||||||||||||||||||
2881 | previous->next = this; | - | ||||||||||||||||||
2882 | } executed 14 times by 1 test: end of block Executed by:
| 14 | ||||||||||||||||||
2883 | - | |||||||||||||||||||
2884 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2885 | { return executed 36 times by 1 test: memberToken;return memberToken; Executed by:
executed 36 times by 1 test: }return memberToken; Executed by:
| 36 | ||||||||||||||||||
2886 | - | |||||||||||||||||||
2887 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2888 | { return executed 104 times by 1 test: next ? next->lastSourceLocation() :return next ? next->lastSourceLocation() : valueToken.isValid() ? valueToken : memberToken; Executed by:
executed 104 times by 1 test: return next ? next->lastSourceLocation() : valueToken.isValid() ? valueToken : memberToken; Executed by:
| 104 | ||||||||||||||||||
2889 | valueToken.isValid() ? valueToken : memberToken; executed 104 times by 1 test: }return next ? next->lastSourceLocation() : valueToken.isValid() ? valueToken : memberToken; Executed by:
| 104 | ||||||||||||||||||
2890 | - | |||||||||||||||||||
2891 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2892 | - | |||||||||||||||||||
2893 | UiEnumMemberList *finish() | - | ||||||||||||||||||
2894 | { | - | ||||||||||||||||||
2895 | UiEnumMemberList *head = next; | - | ||||||||||||||||||
2896 | next = nullptr; | - | ||||||||||||||||||
2897 | return executed 18 times by 1 test: head;return head; Executed by:
executed 18 times by 1 test: return head; Executed by:
| 18 | ||||||||||||||||||
2898 | } | - | ||||||||||||||||||
2899 | - | |||||||||||||||||||
2900 | - | |||||||||||||||||||
2901 | UiEnumMemberList *next; | - | ||||||||||||||||||
2902 | QStringRef member; | - | ||||||||||||||||||
2903 | double value; | - | ||||||||||||||||||
2904 | SourceLocation memberToken; | - | ||||||||||||||||||
2905 | SourceLocation valueToken; | - | ||||||||||||||||||
2906 | }; | - | ||||||||||||||||||
2907 | - | |||||||||||||||||||
2908 | class __attribute__((visibility("default"))) UiEnumDeclaration: public UiObjectMember | - | ||||||||||||||||||
2909 | { | - | ||||||||||||||||||
2910 | public: | - | ||||||||||||||||||
2911 | enum { K = Kind_UiEnumDeclaration }; | - | ||||||||||||||||||
2912 | - | |||||||||||||||||||
2913 | UiEnumDeclaration(const QStringRef &name, | - | ||||||||||||||||||
2914 | UiEnumMemberList *members) | - | ||||||||||||||||||
2915 | : name(name) | - | ||||||||||||||||||
2916 | , members(members) | - | ||||||||||||||||||
2917 | { kind = K; } executed 18 times by 1 test: end of block Executed by:
| 18 | ||||||||||||||||||
2918 | - | |||||||||||||||||||
2919 | SourceLocation firstSourceLocation() const override | - | ||||||||||||||||||
2920 | { return executed 128 times by 1 test: enumToken;return enumToken; Executed by:
executed 128 times by 1 test: }return enumToken; Executed by:
| 128 | ||||||||||||||||||
2921 | - | |||||||||||||||||||
2922 | SourceLocation lastSourceLocation() const override | - | ||||||||||||||||||
2923 | { return executed 84 times by 1 test: rbraceToken;return rbraceToken; Executed by:
executed 84 times by 1 test: }return rbraceToken; Executed by:
| 84 | ||||||||||||||||||
2924 | - | |||||||||||||||||||
2925 | void accept0(Visitor *visitor) override; | - | ||||||||||||||||||
2926 | - | |||||||||||||||||||
2927 | - | |||||||||||||||||||
2928 | SourceLocation enumToken; | - | ||||||||||||||||||
2929 | SourceLocation rbraceToken; | - | ||||||||||||||||||
2930 | QStringRef name; | - | ||||||||||||||||||
2931 | UiEnumMemberList *members; | - | ||||||||||||||||||
2932 | }; | - | ||||||||||||||||||
2933 | - | |||||||||||||||||||
2934 | } } | - | ||||||||||||||||||
2935 | - | |||||||||||||||||||
2936 | - | |||||||||||||||||||
2937 | - | |||||||||||||||||||
2938 | - | |||||||||||||||||||
Switch to Source code | Preprocessed file |