OpenCoverage

qqmljsgrammar_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qqmljsgrammar_p.h
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:GPL-EXCEPT$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU-
19** General Public License version 3 as published by the Free Software-
20** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT-
21** included in the packaging of this file. Please review the following-
22** information to ensure the GNU General Public License requirements will-
23** be met: https://www.gnu.org/licenses/gpl-3.0.html.-
24**-
25** $QT_END_LICENSE$-
26**-
27****************************************************************************/-
28-
29//-
30// W A R N I N G-
31// --------------
32//-
33// This file is not part of the Qt API. It exists for the convenience-
34// of other Qt classes. This header file may change from version to-
35// version without notice, or even be removed.-
36//-
37// We mean it.-
38//-
39-
40// This file was generated by qlalr - DO NOT EDIT!-
41#ifndef QQMLJSGRAMMAR_P_H-
42#define QQMLJSGRAMMAR_P_H-
43-
44#include <QtCore/qglobal.h>-
45-
46QT_BEGIN_NAMESPACE-
47-
48class QQmlJSGrammar-
49{-
50public:-
51 enum VariousConstants {-
52 EOF_SYMBOL = 0,-
53 REDUCE_HERE = 125,-
54 T_AND = 1,-
55 T_AND_AND = 2,-
56 T_AND_EQ = 3,-
57 T_ARROW = 93,-
58 T_AS = 110,-
59 T_AUTOMATIC_SEMICOLON = 62,-
60 T_BREAK = 4,-
61 T_CASE = 5,-
62 T_CATCH = 6,-
63 T_CLASS = 98,-
64 T_COLON = 7,-
65 T_COMMA = 8,-
66 T_COMMENT = 91,-
67 T_COMPATIBILITY_SEMICOLON = 92,-
68 T_CONST = 86,-
69 T_CONTINUE = 9,-
70 T_DEBUGGER = 88,-
71 T_DEFAULT = 10,-
72 T_DELETE = 11,-
73 T_DIVIDE_ = 12,-
74 T_DIVIDE_EQ = 13,-
75 T_DO = 14,-
76 T_DOT = 15,-
77 T_ELLIPSIS = 95,-
78 T_ELSE = 16,-
79 T_ENUM = 94,-
80 T_EQ = 17,-
81 T_EQ_EQ = 18,-
82 T_EQ_EQ_EQ = 19,-
83 T_ERROR = 114,-
84 T_EXPORT = 101,-
85 T_EXTENDS = 99,-
86 T_FALSE = 85,-
87 T_FEED_JS_EXPRESSION = 118,-
88 T_FEED_JS_MODULE = 120,-
89 T_FEED_JS_SCRIPT = 119,-
90 T_FEED_JS_STATEMENT = 117,-
91 T_FEED_UI_OBJECT_MEMBER = 116,-
92 T_FEED_UI_PROGRAM = 115,-
93 T_FINALLY = 20,-
94 T_FOR = 21,-
95 T_FORCE_BLOCK = 122,-
96 T_FORCE_DECLARATION = 121,-
97 T_FOR_LOOKAHEAD_OK = 123,-
98 T_FROM = 102,-
99 T_FUNCTION = 22,-
100 T_GE = 23,-
101 T_GET = 112,-
102 T_GT = 24,-
103 T_GT_GT = 25,-
104 T_GT_GT_EQ = 26,-
105 T_GT_GT_GT = 27,-
106 T_GT_GT_GT_EQ = 28,-
107 T_IDENTIFIER = 29,-
108 T_IF = 30,-
109 T_IMPORT = 108,-
110 T_IN = 31,-
111 T_INSTANCEOF = 32,-
112 T_LBRACE = 33,-
113 T_LBRACKET = 34,-
114 T_LE = 35,-
115 T_LET = 87,-
116 T_LPAREN = 36,-
117 T_LT = 37,-
118 T_LT_LT = 38,-
119 T_LT_LT_EQ = 39,-
120 T_MINUS = 40,-
121 T_MINUS_EQ = 41,-
122 T_MINUS_MINUS = 42,-
123 T_MULTILINE_STRING_LITERAL = 90,-
124 T_NEW = 43,-
125 T_NOT = 44,-
126 T_NOT_EQ = 45,-
127 T_NOT_EQ_EQ = 46,-
128 T_NO_SUBSTITUTION_TEMPLATE = 103,-
129 T_NULL = 83,-
130 T_NUMERIC_LITERAL = 47,-
131 T_OF = 111,-
132 T_ON = 124,-
133 T_OR = 48,-
134 T_OR_EQ = 49,-
135 T_OR_OR = 50,-
136 T_PLUS = 51,-
137 T_PLUS_EQ = 52,-
138 T_PLUS_PLUS = 53,-
139 T_PRAGMA = 109,-
140 T_PROPERTY = 68,-
141 T_PUBLIC = 107,-
142 T_QUESTION = 54,-
143 T_RBRACE = 55,-
144 T_RBRACKET = 56,-
145 T_READONLY = 70,-
146 T_REMAINDER = 57,-
147 T_REMAINDER_EQ = 58,-
148 T_RESERVED_WORD = 89,-
149 T_RETURN = 59,-
150 T_RPAREN = 60,-
151 T_SEMICOLON = 61,-
152 T_SET = 113,-
153 T_SIGNAL = 69,-
154 T_STAR = 63,-
155 T_STAR_EQ = 66,-
156 T_STAR_STAR = 64,-
157 T_STAR_STAR_EQ = 65,-
158 T_STATIC = 100,-
159 T_STRING_LITERAL = 67,-
160 T_SUPER = 97,-
161 T_SWITCH = 71,-
162 T_TEMPLATE_HEAD = 104,-
163 T_TEMPLATE_MIDDLE = 105,-
164 T_TEMPLATE_TAIL = 106,-
165 T_THIS = 72,-
166 T_THROW = 73,-
167 T_TILDE = 74,-
168 T_TRUE = 84,-
169 T_TRY = 75,-
170 T_TYPEOF = 76,-
171 T_VAR = 77,-
172 T_VOID = 78,-
173 T_WHILE = 79,-
174 T_WITH = 80,-
175 T_XOR = 81,-
176 T_XOR_EQ = 82,-
177 T_YIELD = 96,-
178-
179 ACCEPT_STATE = 1007,-
180 RULE_COUNT = 585,-
181 STATE_COUNT = 1008,-
182 TERMINAL_COUNT = 126,-
183 NON_TERMINAL_COUNT = 214,-
184-
185 GOTO_INDEX_OFFSET = 1008,-
186 GOTO_INFO_OFFSET = 5992,-
187 GOTO_CHECK_OFFSET = 5992-
188 };-
189-
190 static const char *const spell[];-
191 static const short lhs[];-
192 static const short rhs[];-
193 static const short goto_default[];-
194 static const short action_default[];-
195 static const short action_index[];-
196 static const short action_info[];-
197 static const short action_check[];-
198-
199 static inline int nt_action (int state, int nt)-
200 {-
201 const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;-
202 if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
yyn < 0Description
TRUEevaluated 18635972 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
FALSEevaluated 531120363 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
action_check [...T + yyn] != ntDescription
TRUEevaluated 445424619 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
FALSEevaluated 89711793 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
18635972-531120363
203 return goto_default [nt];
executed 463814366 times by 148 tests: return goto_default [nt];
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
463814366
204-
205 return action_info [GOTO_INFO_OFFSET + yyn];
executed 89739519 times by 148 tests: return action_info [GOTO_INFO_OFFSET + yyn];
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
89739519
206 }-
207-
208 static inline int t_action (int state, int token)-
209 {-
210 const int yyn = action_index [state] + token;-
211-
212 if (yyn < 0 || action_check [yyn] != token)
yyn < 0Description
TRUEevaluated 279019973 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
FALSEevaluated 372241474 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
action_check [yyn] != tokenDescription
TRUEevaluated 273332098 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
FALSEevaluated 101065379 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
101065379-372241474
213 return - action_default [state];
executed 547024540 times by 148 tests: return - action_default [state];
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
547024540
214-
215 return action_info [yyn];
executed 101047112 times by 148 tests: return action_info [yyn];
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qmlmin
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • ...
101047112
216 }-
217};-
218-
219-
220QT_END_NAMESPACE-
221#endif // QQMLJSGRAMMAR_P_H-
222-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0