/src/testdir/build/tests/luaL_loadbuffer_proto/lua_grammar.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: lua_grammar.proto |
3 | | |
4 | | #include "lua_grammar.pb.h" |
5 | | |
6 | | #include <algorithm> |
7 | | |
8 | | #include <google/protobuf/io/coded_stream.h> |
9 | | #include <google/protobuf/extension_set.h> |
10 | | #include <google/protobuf/wire_format_lite.h> |
11 | | #include <google/protobuf/descriptor.h> |
12 | | #include <google/protobuf/generated_message_reflection.h> |
13 | | #include <google/protobuf/reflection_ops.h> |
14 | | #include <google/protobuf/wire_format.h> |
15 | | // @@protoc_insertion_point(includes) |
16 | | #include <google/protobuf/port_def.inc> |
17 | | |
18 | | PROTOBUF_PRAGMA_INIT_SEG |
19 | | |
20 | | namespace _pb = ::PROTOBUF_NAMESPACE_ID; |
21 | | namespace _pbi = _pb::internal; |
22 | | |
23 | | namespace lua_grammar { |
24 | | PROTOBUF_CONSTEXPR Block::Block( |
25 | | ::_pbi::ConstantInitialized): _impl_{ |
26 | | /*decltype(_impl_._has_bits_)*/{} |
27 | | , /*decltype(_impl_._cached_size_)*/{} |
28 | | , /*decltype(_impl_.chunk_)*/nullptr} {} |
29 | | struct BlockDefaultTypeInternal { |
30 | | PROTOBUF_CONSTEXPR BlockDefaultTypeInternal() |
31 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
32 | 0 | ~BlockDefaultTypeInternal() {} |
33 | | union { |
34 | | Block _instance; |
35 | | }; |
36 | | }; |
37 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockDefaultTypeInternal _Block_default_instance_; |
38 | | PROTOBUF_CONSTEXPR Chunk::Chunk( |
39 | | ::_pbi::ConstantInitialized): _impl_{ |
40 | | /*decltype(_impl_._has_bits_)*/{} |
41 | | , /*decltype(_impl_._cached_size_)*/{} |
42 | | , /*decltype(_impl_.stat_)*/{} |
43 | | , /*decltype(_impl_.laststat_)*/nullptr} {} |
44 | | struct ChunkDefaultTypeInternal { |
45 | | PROTOBUF_CONSTEXPR ChunkDefaultTypeInternal() |
46 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
47 | 0 | ~ChunkDefaultTypeInternal() {} |
48 | | union { |
49 | | Chunk _instance; |
50 | | }; |
51 | | }; |
52 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunkDefaultTypeInternal _Chunk_default_instance_; |
53 | | PROTOBUF_CONSTEXPR Statement::Statement( |
54 | | ::_pbi::ConstantInitialized): _impl_{ |
55 | | /*decltype(_impl_._has_bits_)*/{} |
56 | | , /*decltype(_impl_._cached_size_)*/{} |
57 | | , /*decltype(_impl_.semicolon_)*/false |
58 | | , /*decltype(_impl_.stat_oneof_)*/{} |
59 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
60 | | struct StatementDefaultTypeInternal { |
61 | | PROTOBUF_CONSTEXPR StatementDefaultTypeInternal() |
62 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
63 | 0 | ~StatementDefaultTypeInternal() {} |
64 | | union { |
65 | | Statement _instance; |
66 | | }; |
67 | | }; |
68 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatementDefaultTypeInternal _Statement_default_instance_; |
69 | | PROTOBUF_CONSTEXPR AssignmentList_VariableList::AssignmentList_VariableList( |
70 | | ::_pbi::ConstantInitialized): _impl_{ |
71 | | /*decltype(_impl_._has_bits_)*/{} |
72 | | , /*decltype(_impl_._cached_size_)*/{} |
73 | | , /*decltype(_impl_.vars_)*/{} |
74 | | , /*decltype(_impl_.var_)*/nullptr} {} |
75 | | struct AssignmentList_VariableListDefaultTypeInternal { |
76 | | PROTOBUF_CONSTEXPR AssignmentList_VariableListDefaultTypeInternal() |
77 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
78 | 0 | ~AssignmentList_VariableListDefaultTypeInternal() {} |
79 | | union { |
80 | | AssignmentList_VariableList _instance; |
81 | | }; |
82 | | }; |
83 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AssignmentList_VariableListDefaultTypeInternal _AssignmentList_VariableList_default_instance_; |
84 | | PROTOBUF_CONSTEXPR AssignmentList::AssignmentList( |
85 | | ::_pbi::ConstantInitialized): _impl_{ |
86 | | /*decltype(_impl_._has_bits_)*/{} |
87 | | , /*decltype(_impl_._cached_size_)*/{} |
88 | | , /*decltype(_impl_.varlist_)*/nullptr |
89 | | , /*decltype(_impl_.explist_)*/nullptr} {} |
90 | | struct AssignmentListDefaultTypeInternal { |
91 | | PROTOBUF_CONSTEXPR AssignmentListDefaultTypeInternal() |
92 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
93 | 0 | ~AssignmentListDefaultTypeInternal() {} |
94 | | union { |
95 | | AssignmentList _instance; |
96 | | }; |
97 | | }; |
98 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AssignmentListDefaultTypeInternal _AssignmentList_default_instance_; |
99 | | PROTOBUF_CONSTEXPR FunctionCall_Args::FunctionCall_Args( |
100 | | ::_pbi::ConstantInitialized): _impl_{ |
101 | | /*decltype(_impl_.args_oneof_)*/{} |
102 | | , /*decltype(_impl_._cached_size_)*/{} |
103 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
104 | | struct FunctionCall_ArgsDefaultTypeInternal { |
105 | | PROTOBUF_CONSTEXPR FunctionCall_ArgsDefaultTypeInternal() |
106 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
107 | 0 | ~FunctionCall_ArgsDefaultTypeInternal() {} |
108 | | union { |
109 | | FunctionCall_Args _instance; |
110 | | }; |
111 | | }; |
112 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionCall_ArgsDefaultTypeInternal _FunctionCall_Args_default_instance_; |
113 | | PROTOBUF_CONSTEXPR FunctionCall_PrefixArgs::FunctionCall_PrefixArgs( |
114 | | ::_pbi::ConstantInitialized): _impl_{ |
115 | | /*decltype(_impl_._has_bits_)*/{} |
116 | | , /*decltype(_impl_._cached_size_)*/{} |
117 | | , /*decltype(_impl_.prefixexp_)*/nullptr |
118 | | , /*decltype(_impl_.args_)*/nullptr} {} |
119 | | struct FunctionCall_PrefixArgsDefaultTypeInternal { |
120 | | PROTOBUF_CONSTEXPR FunctionCall_PrefixArgsDefaultTypeInternal() |
121 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
122 | 0 | ~FunctionCall_PrefixArgsDefaultTypeInternal() {} |
123 | | union { |
124 | | FunctionCall_PrefixArgs _instance; |
125 | | }; |
126 | | }; |
127 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionCall_PrefixArgsDefaultTypeInternal _FunctionCall_PrefixArgs_default_instance_; |
128 | | PROTOBUF_CONSTEXPR FunctionCall_PrefixNamedArgs::FunctionCall_PrefixNamedArgs( |
129 | | ::_pbi::ConstantInitialized): _impl_{ |
130 | | /*decltype(_impl_._has_bits_)*/{} |
131 | | , /*decltype(_impl_._cached_size_)*/{} |
132 | | , /*decltype(_impl_.prefixexp_)*/nullptr |
133 | | , /*decltype(_impl_.name_)*/nullptr |
134 | | , /*decltype(_impl_.args_)*/nullptr} {} |
135 | | struct FunctionCall_PrefixNamedArgsDefaultTypeInternal { |
136 | | PROTOBUF_CONSTEXPR FunctionCall_PrefixNamedArgsDefaultTypeInternal() |
137 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
138 | 0 | ~FunctionCall_PrefixNamedArgsDefaultTypeInternal() {} |
139 | | union { |
140 | | FunctionCall_PrefixNamedArgs _instance; |
141 | | }; |
142 | | }; |
143 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionCall_PrefixNamedArgsDefaultTypeInternal _FunctionCall_PrefixNamedArgs_default_instance_; |
144 | | PROTOBUF_CONSTEXPR FunctionCall::FunctionCall( |
145 | | ::_pbi::ConstantInitialized): _impl_{ |
146 | | /*decltype(_impl_.call_oneof_)*/{} |
147 | | , /*decltype(_impl_._cached_size_)*/{} |
148 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
149 | | struct FunctionCallDefaultTypeInternal { |
150 | | PROTOBUF_CONSTEXPR FunctionCallDefaultTypeInternal() |
151 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
152 | 0 | ~FunctionCallDefaultTypeInternal() {} |
153 | | union { |
154 | | FunctionCall _instance; |
155 | | }; |
156 | | }; |
157 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionCallDefaultTypeInternal _FunctionCall_default_instance_; |
158 | | PROTOBUF_CONSTEXPR DoBlock::DoBlock( |
159 | | ::_pbi::ConstantInitialized): _impl_{ |
160 | | /*decltype(_impl_._has_bits_)*/{} |
161 | | , /*decltype(_impl_._cached_size_)*/{} |
162 | | , /*decltype(_impl_.block_)*/nullptr} {} |
163 | | struct DoBlockDefaultTypeInternal { |
164 | | PROTOBUF_CONSTEXPR DoBlockDefaultTypeInternal() |
165 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
166 | 0 | ~DoBlockDefaultTypeInternal() {} |
167 | | union { |
168 | | DoBlock _instance; |
169 | | }; |
170 | | }; |
171 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DoBlockDefaultTypeInternal _DoBlock_default_instance_; |
172 | | PROTOBUF_CONSTEXPR WhileCycle::WhileCycle( |
173 | | ::_pbi::ConstantInitialized): _impl_{ |
174 | | /*decltype(_impl_._has_bits_)*/{} |
175 | | , /*decltype(_impl_._cached_size_)*/{} |
176 | | , /*decltype(_impl_.condition_)*/nullptr |
177 | | , /*decltype(_impl_.doblock_)*/nullptr} {} |
178 | | struct WhileCycleDefaultTypeInternal { |
179 | | PROTOBUF_CONSTEXPR WhileCycleDefaultTypeInternal() |
180 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
181 | 0 | ~WhileCycleDefaultTypeInternal() {} |
182 | | union { |
183 | | WhileCycle _instance; |
184 | | }; |
185 | | }; |
186 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WhileCycleDefaultTypeInternal _WhileCycle_default_instance_; |
187 | | PROTOBUF_CONSTEXPR RepeatCycle::RepeatCycle( |
188 | | ::_pbi::ConstantInitialized): _impl_{ |
189 | | /*decltype(_impl_._has_bits_)*/{} |
190 | | , /*decltype(_impl_._cached_size_)*/{} |
191 | | , /*decltype(_impl_.block_)*/nullptr |
192 | | , /*decltype(_impl_.condition_)*/nullptr} {} |
193 | | struct RepeatCycleDefaultTypeInternal { |
194 | | PROTOBUF_CONSTEXPR RepeatCycleDefaultTypeInternal() |
195 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
196 | 0 | ~RepeatCycleDefaultTypeInternal() {} |
197 | | union { |
198 | | RepeatCycle _instance; |
199 | | }; |
200 | | }; |
201 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RepeatCycleDefaultTypeInternal _RepeatCycle_default_instance_; |
202 | | PROTOBUF_CONSTEXPR IfStatement_ElseIfBlock::IfStatement_ElseIfBlock( |
203 | | ::_pbi::ConstantInitialized): _impl_{ |
204 | | /*decltype(_impl_._has_bits_)*/{} |
205 | | , /*decltype(_impl_._cached_size_)*/{} |
206 | | , /*decltype(_impl_.condition_)*/nullptr |
207 | | , /*decltype(_impl_.block_)*/nullptr} {} |
208 | | struct IfStatement_ElseIfBlockDefaultTypeInternal { |
209 | | PROTOBUF_CONSTEXPR IfStatement_ElseIfBlockDefaultTypeInternal() |
210 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
211 | 0 | ~IfStatement_ElseIfBlockDefaultTypeInternal() {} |
212 | | union { |
213 | | IfStatement_ElseIfBlock _instance; |
214 | | }; |
215 | | }; |
216 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IfStatement_ElseIfBlockDefaultTypeInternal _IfStatement_ElseIfBlock_default_instance_; |
217 | | PROTOBUF_CONSTEXPR IfStatement::IfStatement( |
218 | | ::_pbi::ConstantInitialized): _impl_{ |
219 | | /*decltype(_impl_._has_bits_)*/{} |
220 | | , /*decltype(_impl_._cached_size_)*/{} |
221 | | , /*decltype(_impl_.clauses_)*/{} |
222 | | , /*decltype(_impl_.condition_)*/nullptr |
223 | | , /*decltype(_impl_.first_)*/nullptr |
224 | | , /*decltype(_impl_.last_)*/nullptr} {} |
225 | | struct IfStatementDefaultTypeInternal { |
226 | | PROTOBUF_CONSTEXPR IfStatementDefaultTypeInternal() |
227 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
228 | 0 | ~IfStatementDefaultTypeInternal() {} |
229 | | union { |
230 | | IfStatement _instance; |
231 | | }; |
232 | | }; |
233 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IfStatementDefaultTypeInternal _IfStatement_default_instance_; |
234 | | PROTOBUF_CONSTEXPR ForCycleName::ForCycleName( |
235 | | ::_pbi::ConstantInitialized): _impl_{ |
236 | | /*decltype(_impl_._has_bits_)*/{} |
237 | | , /*decltype(_impl_._cached_size_)*/{} |
238 | | , /*decltype(_impl_.name_)*/nullptr |
239 | | , /*decltype(_impl_.startexp_)*/nullptr |
240 | | , /*decltype(_impl_.stopexp_)*/nullptr |
241 | | , /*decltype(_impl_.stepexp_)*/nullptr |
242 | | , /*decltype(_impl_.doblock_)*/nullptr} {} |
243 | | struct ForCycleNameDefaultTypeInternal { |
244 | | PROTOBUF_CONSTEXPR ForCycleNameDefaultTypeInternal() |
245 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
246 | 0 | ~ForCycleNameDefaultTypeInternal() {} |
247 | | union { |
248 | | ForCycleName _instance; |
249 | | }; |
250 | | }; |
251 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ForCycleNameDefaultTypeInternal _ForCycleName_default_instance_; |
252 | | PROTOBUF_CONSTEXPR ForCycleList::ForCycleList( |
253 | | ::_pbi::ConstantInitialized): _impl_{ |
254 | | /*decltype(_impl_._has_bits_)*/{} |
255 | | , /*decltype(_impl_._cached_size_)*/{} |
256 | | , /*decltype(_impl_.names_)*/nullptr |
257 | | , /*decltype(_impl_.expressions_)*/nullptr |
258 | | , /*decltype(_impl_.doblock_)*/nullptr} {} |
259 | | struct ForCycleListDefaultTypeInternal { |
260 | | PROTOBUF_CONSTEXPR ForCycleListDefaultTypeInternal() |
261 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
262 | 0 | ~ForCycleListDefaultTypeInternal() {} |
263 | | union { |
264 | | ForCycleList _instance; |
265 | | }; |
266 | | }; |
267 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ForCycleListDefaultTypeInternal _ForCycleList_default_instance_; |
268 | | PROTOBUF_CONSTEXPR Function_FuncName::Function_FuncName( |
269 | | ::_pbi::ConstantInitialized): _impl_{ |
270 | | /*decltype(_impl_._has_bits_)*/{} |
271 | | , /*decltype(_impl_._cached_size_)*/{} |
272 | | , /*decltype(_impl_.names_)*/{} |
273 | | , /*decltype(_impl_.firstname_)*/nullptr |
274 | | , /*decltype(_impl_.lastname_)*/nullptr} {} |
275 | | struct Function_FuncNameDefaultTypeInternal { |
276 | | PROTOBUF_CONSTEXPR Function_FuncNameDefaultTypeInternal() |
277 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
278 | 0 | ~Function_FuncNameDefaultTypeInternal() {} |
279 | | union { |
280 | | Function_FuncName _instance; |
281 | | }; |
282 | | }; |
283 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Function_FuncNameDefaultTypeInternal _Function_FuncName_default_instance_; |
284 | | PROTOBUF_CONSTEXPR Function::Function( |
285 | | ::_pbi::ConstantInitialized): _impl_{ |
286 | | /*decltype(_impl_._has_bits_)*/{} |
287 | | , /*decltype(_impl_._cached_size_)*/{} |
288 | | , /*decltype(_impl_.name_)*/nullptr |
289 | | , /*decltype(_impl_.body_)*/nullptr} {} |
290 | | struct FunctionDefaultTypeInternal { |
291 | | PROTOBUF_CONSTEXPR FunctionDefaultTypeInternal() |
292 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
293 | 0 | ~FunctionDefaultTypeInternal() {} |
294 | | union { |
295 | | Function _instance; |
296 | | }; |
297 | | }; |
298 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionDefaultTypeInternal _Function_default_instance_; |
299 | | PROTOBUF_CONSTEXPR FuncBody_NameListWithEllipsis::FuncBody_NameListWithEllipsis( |
300 | | ::_pbi::ConstantInitialized): _impl_{ |
301 | | /*decltype(_impl_._has_bits_)*/{} |
302 | | , /*decltype(_impl_._cached_size_)*/{} |
303 | | , /*decltype(_impl_.ellipsis_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
304 | | , /*decltype(_impl_.namelist_)*/nullptr} {} |
305 | | struct FuncBody_NameListWithEllipsisDefaultTypeInternal { |
306 | | PROTOBUF_CONSTEXPR FuncBody_NameListWithEllipsisDefaultTypeInternal() |
307 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
308 | 0 | ~FuncBody_NameListWithEllipsisDefaultTypeInternal() {} |
309 | | union { |
310 | | FuncBody_NameListWithEllipsis _instance; |
311 | | }; |
312 | | }; |
313 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FuncBody_NameListWithEllipsisDefaultTypeInternal _FuncBody_NameListWithEllipsis_default_instance_; |
314 | | PROTOBUF_CONSTEXPR FuncBody_ParList::FuncBody_ParList( |
315 | | ::_pbi::ConstantInitialized): _impl_{ |
316 | | /*decltype(_impl_.parlist_oneof_)*/{} |
317 | | , /*decltype(_impl_._cached_size_)*/{} |
318 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
319 | | struct FuncBody_ParListDefaultTypeInternal { |
320 | | PROTOBUF_CONSTEXPR FuncBody_ParListDefaultTypeInternal() |
321 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
322 | 0 | ~FuncBody_ParListDefaultTypeInternal() {} |
323 | | union { |
324 | | FuncBody_ParList _instance; |
325 | | }; |
326 | | }; |
327 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FuncBody_ParListDefaultTypeInternal _FuncBody_ParList_default_instance_; |
328 | | PROTOBUF_CONSTEXPR FuncBody::FuncBody( |
329 | | ::_pbi::ConstantInitialized): _impl_{ |
330 | | /*decltype(_impl_._has_bits_)*/{} |
331 | | , /*decltype(_impl_._cached_size_)*/{} |
332 | | , /*decltype(_impl_.parlist_)*/nullptr |
333 | | , /*decltype(_impl_.block_)*/nullptr} {} |
334 | | struct FuncBodyDefaultTypeInternal { |
335 | | PROTOBUF_CONSTEXPR FuncBodyDefaultTypeInternal() |
336 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
337 | 0 | ~FuncBodyDefaultTypeInternal() {} |
338 | | union { |
339 | | FuncBody _instance; |
340 | | }; |
341 | | }; |
342 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FuncBodyDefaultTypeInternal _FuncBody_default_instance_; |
343 | | PROTOBUF_CONSTEXPR NameList::NameList( |
344 | | ::_pbi::ConstantInitialized): _impl_{ |
345 | | /*decltype(_impl_._has_bits_)*/{} |
346 | | , /*decltype(_impl_._cached_size_)*/{} |
347 | | , /*decltype(_impl_.names_)*/{} |
348 | | , /*decltype(_impl_.firstname_)*/nullptr} {} |
349 | | struct NameListDefaultTypeInternal { |
350 | | PROTOBUF_CONSTEXPR NameListDefaultTypeInternal() |
351 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
352 | 0 | ~NameListDefaultTypeInternal() {} |
353 | | union { |
354 | | NameList _instance; |
355 | | }; |
356 | | }; |
357 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NameListDefaultTypeInternal _NameList_default_instance_; |
358 | | PROTOBUF_CONSTEXPR LocalFunc::LocalFunc( |
359 | | ::_pbi::ConstantInitialized): _impl_{ |
360 | | /*decltype(_impl_._has_bits_)*/{} |
361 | | , /*decltype(_impl_._cached_size_)*/{} |
362 | | , /*decltype(_impl_.name_)*/nullptr |
363 | | , /*decltype(_impl_.funcbody_)*/nullptr} {} |
364 | | struct LocalFuncDefaultTypeInternal { |
365 | | PROTOBUF_CONSTEXPR LocalFuncDefaultTypeInternal() |
366 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
367 | 0 | ~LocalFuncDefaultTypeInternal() {} |
368 | | union { |
369 | | LocalFunc _instance; |
370 | | }; |
371 | | }; |
372 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalFuncDefaultTypeInternal _LocalFunc_default_instance_; |
373 | | PROTOBUF_CONSTEXPR LocalNames::LocalNames( |
374 | | ::_pbi::ConstantInitialized): _impl_{ |
375 | | /*decltype(_impl_._has_bits_)*/{} |
376 | | , /*decltype(_impl_._cached_size_)*/{} |
377 | | , /*decltype(_impl_.namelist_)*/nullptr |
378 | | , /*decltype(_impl_.explist_)*/nullptr} {} |
379 | | struct LocalNamesDefaultTypeInternal { |
380 | | PROTOBUF_CONSTEXPR LocalNamesDefaultTypeInternal() |
381 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
382 | 0 | ~LocalNamesDefaultTypeInternal() {} |
383 | | union { |
384 | | LocalNames _instance; |
385 | | }; |
386 | | }; |
387 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocalNamesDefaultTypeInternal _LocalNames_default_instance_; |
388 | | PROTOBUF_CONSTEXPR LastStatement_ReturnOptionalExpressionList::LastStatement_ReturnOptionalExpressionList( |
389 | | ::_pbi::ConstantInitialized): _impl_{ |
390 | | /*decltype(_impl_._has_bits_)*/{} |
391 | | , /*decltype(_impl_._cached_size_)*/{} |
392 | | , /*decltype(_impl_.explist_)*/nullptr} {} |
393 | | struct LastStatement_ReturnOptionalExpressionListDefaultTypeInternal { |
394 | | PROTOBUF_CONSTEXPR LastStatement_ReturnOptionalExpressionListDefaultTypeInternal() |
395 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
396 | 0 | ~LastStatement_ReturnOptionalExpressionListDefaultTypeInternal() {} |
397 | | union { |
398 | | LastStatement_ReturnOptionalExpressionList _instance; |
399 | | }; |
400 | | }; |
401 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LastStatement_ReturnOptionalExpressionListDefaultTypeInternal _LastStatement_ReturnOptionalExpressionList_default_instance_; |
402 | | PROTOBUF_CONSTEXPR LastStatement::LastStatement( |
403 | | ::_pbi::ConstantInitialized): _impl_{ |
404 | | /*decltype(_impl_._has_bits_)*/{} |
405 | | , /*decltype(_impl_._cached_size_)*/{} |
406 | | , /*decltype(_impl_.semicolon_)*/false |
407 | | , /*decltype(_impl_.last_oneof_)*/{} |
408 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
409 | | struct LastStatementDefaultTypeInternal { |
410 | | PROTOBUF_CONSTEXPR LastStatementDefaultTypeInternal() |
411 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
412 | 0 | ~LastStatementDefaultTypeInternal() {} |
413 | | union { |
414 | | LastStatement _instance; |
415 | | }; |
416 | | }; |
417 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LastStatementDefaultTypeInternal _LastStatement_default_instance_; |
418 | | PROTOBUF_CONSTEXPR ExpressionList::ExpressionList( |
419 | | ::_pbi::ConstantInitialized): _impl_{ |
420 | | /*decltype(_impl_._has_bits_)*/{} |
421 | | , /*decltype(_impl_._cached_size_)*/{} |
422 | | , /*decltype(_impl_.expressions_)*/{} |
423 | | , /*decltype(_impl_.explast_)*/nullptr} {} |
424 | | struct ExpressionListDefaultTypeInternal { |
425 | | PROTOBUF_CONSTEXPR ExpressionListDefaultTypeInternal() |
426 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
427 | 0 | ~ExpressionListDefaultTypeInternal() {} |
428 | | union { |
429 | | ExpressionList _instance; |
430 | | }; |
431 | | }; |
432 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExpressionListDefaultTypeInternal _ExpressionList_default_instance_; |
433 | | PROTOBUF_CONSTEXPR OptionalExpressionList::OptionalExpressionList( |
434 | | ::_pbi::ConstantInitialized): _impl_{ |
435 | | /*decltype(_impl_._has_bits_)*/{} |
436 | | , /*decltype(_impl_._cached_size_)*/{} |
437 | | , /*decltype(_impl_.explist_)*/nullptr} {} |
438 | | struct OptionalExpressionListDefaultTypeInternal { |
439 | | PROTOBUF_CONSTEXPR OptionalExpressionListDefaultTypeInternal() |
440 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
441 | 0 | ~OptionalExpressionListDefaultTypeInternal() {} |
442 | | union { |
443 | | OptionalExpressionList _instance; |
444 | | }; |
445 | | }; |
446 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionalExpressionListDefaultTypeInternal _OptionalExpressionList_default_instance_; |
447 | | PROTOBUF_CONSTEXPR Variable_IndexWithExpression::Variable_IndexWithExpression( |
448 | | ::_pbi::ConstantInitialized): _impl_{ |
449 | | /*decltype(_impl_._has_bits_)*/{} |
450 | | , /*decltype(_impl_._cached_size_)*/{} |
451 | | , /*decltype(_impl_.prefixexp_)*/nullptr |
452 | | , /*decltype(_impl_.exp_)*/nullptr} {} |
453 | | struct Variable_IndexWithExpressionDefaultTypeInternal { |
454 | | PROTOBUF_CONSTEXPR Variable_IndexWithExpressionDefaultTypeInternal() |
455 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
456 | 0 | ~Variable_IndexWithExpressionDefaultTypeInternal() {} |
457 | | union { |
458 | | Variable_IndexWithExpression _instance; |
459 | | }; |
460 | | }; |
461 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Variable_IndexWithExpressionDefaultTypeInternal _Variable_IndexWithExpression_default_instance_; |
462 | | PROTOBUF_CONSTEXPR Variable_IndexWithName::Variable_IndexWithName( |
463 | | ::_pbi::ConstantInitialized): _impl_{ |
464 | | /*decltype(_impl_._has_bits_)*/{} |
465 | | , /*decltype(_impl_._cached_size_)*/{} |
466 | | , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
467 | | , /*decltype(_impl_.prefixexp_)*/nullptr} {} |
468 | | struct Variable_IndexWithNameDefaultTypeInternal { |
469 | | PROTOBUF_CONSTEXPR Variable_IndexWithNameDefaultTypeInternal() |
470 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
471 | 0 | ~Variable_IndexWithNameDefaultTypeInternal() {} |
472 | | union { |
473 | | Variable_IndexWithName _instance; |
474 | | }; |
475 | | }; |
476 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Variable_IndexWithNameDefaultTypeInternal _Variable_IndexWithName_default_instance_; |
477 | | PROTOBUF_CONSTEXPR Variable::Variable( |
478 | | ::_pbi::ConstantInitialized): _impl_{ |
479 | | /*decltype(_impl_.var_oneof_)*/{} |
480 | | , /*decltype(_impl_._cached_size_)*/{} |
481 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
482 | | struct VariableDefaultTypeInternal { |
483 | | PROTOBUF_CONSTEXPR VariableDefaultTypeInternal() |
484 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
485 | 0 | ~VariableDefaultTypeInternal() {} |
486 | | union { |
487 | | Variable _instance; |
488 | | }; |
489 | | }; |
490 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VariableDefaultTypeInternal _Variable_default_instance_; |
491 | | PROTOBUF_CONSTEXPR PrefixExpression::PrefixExpression( |
492 | | ::_pbi::ConstantInitialized): _impl_{ |
493 | | /*decltype(_impl_.prefix_oneof_)*/{} |
494 | | , /*decltype(_impl_._cached_size_)*/{} |
495 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
496 | | struct PrefixExpressionDefaultTypeInternal { |
497 | | PROTOBUF_CONSTEXPR PrefixExpressionDefaultTypeInternal() |
498 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
499 | 0 | ~PrefixExpressionDefaultTypeInternal() {} |
500 | | union { |
501 | | PrefixExpression _instance; |
502 | | }; |
503 | | }; |
504 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrefixExpressionDefaultTypeInternal _PrefixExpression_default_instance_; |
505 | | PROTOBUF_CONSTEXPR Expression_AnonFunc::Expression_AnonFunc( |
506 | | ::_pbi::ConstantInitialized): _impl_{ |
507 | | /*decltype(_impl_._has_bits_)*/{} |
508 | | , /*decltype(_impl_._cached_size_)*/{} |
509 | | , /*decltype(_impl_.body_)*/nullptr} {} |
510 | | struct Expression_AnonFuncDefaultTypeInternal { |
511 | | PROTOBUF_CONSTEXPR Expression_AnonFuncDefaultTypeInternal() |
512 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
513 | 0 | ~Expression_AnonFuncDefaultTypeInternal() {} |
514 | | union { |
515 | | Expression_AnonFunc _instance; |
516 | | }; |
517 | | }; |
518 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expression_AnonFuncDefaultTypeInternal _Expression_AnonFunc_default_instance_; |
519 | | PROTOBUF_CONSTEXPR Expression_ExpBinaryOpExp::Expression_ExpBinaryOpExp( |
520 | | ::_pbi::ConstantInitialized): _impl_{ |
521 | | /*decltype(_impl_._has_bits_)*/{} |
522 | | , /*decltype(_impl_._cached_size_)*/{} |
523 | | , /*decltype(_impl_.leftexp_)*/nullptr |
524 | | , /*decltype(_impl_.binop_)*/nullptr |
525 | | , /*decltype(_impl_.rightexp_)*/nullptr} {} |
526 | | struct Expression_ExpBinaryOpExpDefaultTypeInternal { |
527 | | PROTOBUF_CONSTEXPR Expression_ExpBinaryOpExpDefaultTypeInternal() |
528 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
529 | 0 | ~Expression_ExpBinaryOpExpDefaultTypeInternal() {} |
530 | | union { |
531 | | Expression_ExpBinaryOpExp _instance; |
532 | | }; |
533 | | }; |
534 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expression_ExpBinaryOpExpDefaultTypeInternal _Expression_ExpBinaryOpExp_default_instance_; |
535 | | PROTOBUF_CONSTEXPR Expression_UnaryOpExp::Expression_UnaryOpExp( |
536 | | ::_pbi::ConstantInitialized): _impl_{ |
537 | | /*decltype(_impl_._has_bits_)*/{} |
538 | | , /*decltype(_impl_._cached_size_)*/{} |
539 | | , /*decltype(_impl_.unop_)*/nullptr |
540 | | , /*decltype(_impl_.exp_)*/nullptr} {} |
541 | | struct Expression_UnaryOpExpDefaultTypeInternal { |
542 | | PROTOBUF_CONSTEXPR Expression_UnaryOpExpDefaultTypeInternal() |
543 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
544 | 0 | ~Expression_UnaryOpExpDefaultTypeInternal() {} |
545 | | union { |
546 | | Expression_UnaryOpExp _instance; |
547 | | }; |
548 | | }; |
549 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Expression_UnaryOpExpDefaultTypeInternal _Expression_UnaryOpExp_default_instance_; |
550 | | PROTOBUF_CONSTEXPR Expression::Expression( |
551 | | ::_pbi::ConstantInitialized): _impl_{ |
552 | | /*decltype(_impl_.expr_oneof_)*/{} |
553 | | , /*decltype(_impl_._cached_size_)*/{} |
554 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
555 | | struct ExpressionDefaultTypeInternal { |
556 | | PROTOBUF_CONSTEXPR ExpressionDefaultTypeInternal() |
557 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
558 | 0 | ~ExpressionDefaultTypeInternal() {} |
559 | | union { |
560 | | Expression _instance; |
561 | | }; |
562 | | }; |
563 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExpressionDefaultTypeInternal _Expression_default_instance_; |
564 | | PROTOBUF_CONSTEXPR TableConstructor::TableConstructor( |
565 | | ::_pbi::ConstantInitialized): _impl_{ |
566 | | /*decltype(_impl_._has_bits_)*/{} |
567 | | , /*decltype(_impl_._cached_size_)*/{} |
568 | | , /*decltype(_impl_.fieldlist_)*/nullptr} {} |
569 | | struct TableConstructorDefaultTypeInternal { |
570 | | PROTOBUF_CONSTEXPR TableConstructorDefaultTypeInternal() |
571 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
572 | 0 | ~TableConstructorDefaultTypeInternal() {} |
573 | | union { |
574 | | TableConstructor _instance; |
575 | | }; |
576 | | }; |
577 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableConstructorDefaultTypeInternal _TableConstructor_default_instance_; |
578 | | PROTOBUF_CONSTEXPR FieldList_FieldWithFieldSep::FieldList_FieldWithFieldSep( |
579 | | ::_pbi::ConstantInitialized): _impl_{ |
580 | | /*decltype(_impl_._has_bits_)*/{} |
581 | | , /*decltype(_impl_._cached_size_)*/{} |
582 | | , /*decltype(_impl_.field_)*/nullptr |
583 | | , /*decltype(_impl_.sep_)*/nullptr} {} |
584 | | struct FieldList_FieldWithFieldSepDefaultTypeInternal { |
585 | | PROTOBUF_CONSTEXPR FieldList_FieldWithFieldSepDefaultTypeInternal() |
586 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
587 | 0 | ~FieldList_FieldWithFieldSepDefaultTypeInternal() {} |
588 | | union { |
589 | | FieldList_FieldWithFieldSep _instance; |
590 | | }; |
591 | | }; |
592 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldList_FieldWithFieldSepDefaultTypeInternal _FieldList_FieldWithFieldSep_default_instance_; |
593 | | PROTOBUF_CONSTEXPR FieldList::FieldList( |
594 | | ::_pbi::ConstantInitialized): _impl_{ |
595 | | /*decltype(_impl_._has_bits_)*/{} |
596 | | , /*decltype(_impl_._cached_size_)*/{} |
597 | | , /*decltype(_impl_.fields_)*/{} |
598 | | , /*decltype(_impl_.firstfield_)*/nullptr |
599 | | , /*decltype(_impl_.lastsep_)*/nullptr} {} |
600 | | struct FieldListDefaultTypeInternal { |
601 | | PROTOBUF_CONSTEXPR FieldListDefaultTypeInternal() |
602 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
603 | 0 | ~FieldListDefaultTypeInternal() {} |
604 | | union { |
605 | | FieldList _instance; |
606 | | }; |
607 | | }; |
608 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldListDefaultTypeInternal _FieldList_default_instance_; |
609 | | PROTOBUF_CONSTEXPR Field_ExpressionAssignment::Field_ExpressionAssignment( |
610 | | ::_pbi::ConstantInitialized): _impl_{ |
611 | | /*decltype(_impl_._has_bits_)*/{} |
612 | | , /*decltype(_impl_._cached_size_)*/{} |
613 | | , /*decltype(_impl_.key_)*/nullptr |
614 | | , /*decltype(_impl_.value_)*/nullptr} {} |
615 | | struct Field_ExpressionAssignmentDefaultTypeInternal { |
616 | | PROTOBUF_CONSTEXPR Field_ExpressionAssignmentDefaultTypeInternal() |
617 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
618 | 0 | ~Field_ExpressionAssignmentDefaultTypeInternal() {} |
619 | | union { |
620 | | Field_ExpressionAssignment _instance; |
621 | | }; |
622 | | }; |
623 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Field_ExpressionAssignmentDefaultTypeInternal _Field_ExpressionAssignment_default_instance_; |
624 | | PROTOBUF_CONSTEXPR Field_NameAssignment::Field_NameAssignment( |
625 | | ::_pbi::ConstantInitialized): _impl_{ |
626 | | /*decltype(_impl_._has_bits_)*/{} |
627 | | , /*decltype(_impl_._cached_size_)*/{} |
628 | | , /*decltype(_impl_.name_)*/nullptr |
629 | | , /*decltype(_impl_.value_)*/nullptr} {} |
630 | | struct Field_NameAssignmentDefaultTypeInternal { |
631 | | PROTOBUF_CONSTEXPR Field_NameAssignmentDefaultTypeInternal() |
632 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
633 | 0 | ~Field_NameAssignmentDefaultTypeInternal() {} |
634 | | union { |
635 | | Field_NameAssignment _instance; |
636 | | }; |
637 | | }; |
638 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Field_NameAssignmentDefaultTypeInternal _Field_NameAssignment_default_instance_; |
639 | | PROTOBUF_CONSTEXPR Field::Field( |
640 | | ::_pbi::ConstantInitialized): _impl_{ |
641 | | /*decltype(_impl_.field_oneof_)*/{} |
642 | | , /*decltype(_impl_._cached_size_)*/{} |
643 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
644 | | struct FieldDefaultTypeInternal { |
645 | | PROTOBUF_CONSTEXPR FieldDefaultTypeInternal() |
646 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
647 | 0 | ~FieldDefaultTypeInternal() {} |
648 | | union { |
649 | | Field _instance; |
650 | | }; |
651 | | }; |
652 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldDefaultTypeInternal _Field_default_instance_; |
653 | | PROTOBUF_CONSTEXPR FieldSep::FieldSep( |
654 | | ::_pbi::ConstantInitialized): _impl_{ |
655 | | /*decltype(_impl_.sep_oneof_)*/{} |
656 | | , /*decltype(_impl_._cached_size_)*/{} |
657 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
658 | | struct FieldSepDefaultTypeInternal { |
659 | | PROTOBUF_CONSTEXPR FieldSepDefaultTypeInternal() |
660 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
661 | 0 | ~FieldSepDefaultTypeInternal() {} |
662 | | union { |
663 | | FieldSep _instance; |
664 | | }; |
665 | | }; |
666 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldSepDefaultTypeInternal _FieldSep_default_instance_; |
667 | | PROTOBUF_CONSTEXPR BinaryOperator::BinaryOperator( |
668 | | ::_pbi::ConstantInitialized): _impl_{ |
669 | | /*decltype(_impl_.binary_oneof_)*/{} |
670 | | , /*decltype(_impl_._cached_size_)*/{} |
671 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
672 | | struct BinaryOperatorDefaultTypeInternal { |
673 | | PROTOBUF_CONSTEXPR BinaryOperatorDefaultTypeInternal() |
674 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
675 | 0 | ~BinaryOperatorDefaultTypeInternal() {} |
676 | | union { |
677 | | BinaryOperator _instance; |
678 | | }; |
679 | | }; |
680 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BinaryOperatorDefaultTypeInternal _BinaryOperator_default_instance_; |
681 | | PROTOBUF_CONSTEXPR UnaryOperator::UnaryOperator( |
682 | | ::_pbi::ConstantInitialized): _impl_{ |
683 | | /*decltype(_impl_.unary_oneof_)*/{} |
684 | | , /*decltype(_impl_._cached_size_)*/{} |
685 | | , /*decltype(_impl_._oneof_case_)*/{}} {} |
686 | | struct UnaryOperatorDefaultTypeInternal { |
687 | | PROTOBUF_CONSTEXPR UnaryOperatorDefaultTypeInternal() |
688 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
689 | 0 | ~UnaryOperatorDefaultTypeInternal() {} |
690 | | union { |
691 | | UnaryOperator _instance; |
692 | | }; |
693 | | }; |
694 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnaryOperatorDefaultTypeInternal _UnaryOperator_default_instance_; |
695 | | PROTOBUF_CONSTEXPR Name::Name( |
696 | | ::_pbi::ConstantInitialized): _impl_{ |
697 | | /*decltype(_impl_._has_bits_)*/{} |
698 | | , /*decltype(_impl_._cached_size_)*/{} |
699 | | , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
700 | | , /*decltype(_impl_.num_)*/0u} {} |
701 | | struct NameDefaultTypeInternal { |
702 | | PROTOBUF_CONSTEXPR NameDefaultTypeInternal() |
703 | 0 | : _instance(::_pbi::ConstantInitialized{}) {} |
704 | 0 | ~NameDefaultTypeInternal() {} |
705 | | union { |
706 | | Name _instance; |
707 | | }; |
708 | | }; |
709 | | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NameDefaultTypeInternal _Name_default_instance_; |
710 | | } // namespace lua_grammar |
711 | | static ::_pb::Metadata file_level_metadata_lua_5fgrammar_2eproto[46]; |
712 | | static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_lua_5fgrammar_2eproto = nullptr; |
713 | | static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_lua_5fgrammar_2eproto = nullptr; |
714 | | |
715 | | const uint32_t TableStruct_lua_5fgrammar_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
716 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Block, _impl_._has_bits_), |
717 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Block, _internal_metadata_), |
718 | | ~0u, // no _extensions_ |
719 | | ~0u, // no _oneof_case_ |
720 | | ~0u, // no _weak_field_map_ |
721 | | ~0u, // no _inlined_string_donated_ |
722 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Block, _impl_.chunk_), |
723 | | 0, |
724 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Chunk, _impl_._has_bits_), |
725 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Chunk, _internal_metadata_), |
726 | | ~0u, // no _extensions_ |
727 | | ~0u, // no _oneof_case_ |
728 | | ~0u, // no _weak_field_map_ |
729 | | ~0u, // no _inlined_string_donated_ |
730 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Chunk, _impl_.stat_), |
731 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Chunk, _impl_.laststat_), |
732 | | ~0u, |
733 | | 0, |
734 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Statement, _impl_._has_bits_), |
735 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Statement, _internal_metadata_), |
736 | | ~0u, // no _extensions_ |
737 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Statement, _impl_._oneof_case_[0]), |
738 | | ~0u, // no _weak_field_map_ |
739 | | ~0u, // no _inlined_string_donated_ |
740 | | ::_pbi::kInvalidFieldOffsetTag, |
741 | | ::_pbi::kInvalidFieldOffsetTag, |
742 | | ::_pbi::kInvalidFieldOffsetTag, |
743 | | ::_pbi::kInvalidFieldOffsetTag, |
744 | | ::_pbi::kInvalidFieldOffsetTag, |
745 | | ::_pbi::kInvalidFieldOffsetTag, |
746 | | ::_pbi::kInvalidFieldOffsetTag, |
747 | | ::_pbi::kInvalidFieldOffsetTag, |
748 | | ::_pbi::kInvalidFieldOffsetTag, |
749 | | ::_pbi::kInvalidFieldOffsetTag, |
750 | | ::_pbi::kInvalidFieldOffsetTag, |
751 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Statement, _impl_.semicolon_), |
752 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Statement, _impl_.stat_oneof_), |
753 | | ~0u, |
754 | | ~0u, |
755 | | ~0u, |
756 | | ~0u, |
757 | | ~0u, |
758 | | ~0u, |
759 | | ~0u, |
760 | | ~0u, |
761 | | ~0u, |
762 | | ~0u, |
763 | | ~0u, |
764 | | 0, |
765 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList_VariableList, _impl_._has_bits_), |
766 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList_VariableList, _internal_metadata_), |
767 | | ~0u, // no _extensions_ |
768 | | ~0u, // no _oneof_case_ |
769 | | ~0u, // no _weak_field_map_ |
770 | | ~0u, // no _inlined_string_donated_ |
771 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList_VariableList, _impl_.var_), |
772 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList_VariableList, _impl_.vars_), |
773 | | 0, |
774 | | ~0u, |
775 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList, _impl_._has_bits_), |
776 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList, _internal_metadata_), |
777 | | ~0u, // no _extensions_ |
778 | | ~0u, // no _oneof_case_ |
779 | | ~0u, // no _weak_field_map_ |
780 | | ~0u, // no _inlined_string_donated_ |
781 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList, _impl_.varlist_), |
782 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::AssignmentList, _impl_.explist_), |
783 | | 0, |
784 | | 1, |
785 | | ~0u, // no _has_bits_ |
786 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_Args, _internal_metadata_), |
787 | | ~0u, // no _extensions_ |
788 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_Args, _impl_._oneof_case_[0]), |
789 | | ~0u, // no _weak_field_map_ |
790 | | ~0u, // no _inlined_string_donated_ |
791 | | ::_pbi::kInvalidFieldOffsetTag, |
792 | | ::_pbi::kInvalidFieldOffsetTag, |
793 | | ::_pbi::kInvalidFieldOffsetTag, |
794 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_Args, _impl_.args_oneof_), |
795 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixArgs, _impl_._has_bits_), |
796 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixArgs, _internal_metadata_), |
797 | | ~0u, // no _extensions_ |
798 | | ~0u, // no _oneof_case_ |
799 | | ~0u, // no _weak_field_map_ |
800 | | ~0u, // no _inlined_string_donated_ |
801 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixArgs, _impl_.prefixexp_), |
802 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixArgs, _impl_.args_), |
803 | | 0, |
804 | | 1, |
805 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixNamedArgs, _impl_._has_bits_), |
806 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixNamedArgs, _internal_metadata_), |
807 | | ~0u, // no _extensions_ |
808 | | ~0u, // no _oneof_case_ |
809 | | ~0u, // no _weak_field_map_ |
810 | | ~0u, // no _inlined_string_donated_ |
811 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixNamedArgs, _impl_.prefixexp_), |
812 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixNamedArgs, _impl_.name_), |
813 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall_PrefixNamedArgs, _impl_.args_), |
814 | | 0, |
815 | | 1, |
816 | | 2, |
817 | | ~0u, // no _has_bits_ |
818 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall, _internal_metadata_), |
819 | | ~0u, // no _extensions_ |
820 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall, _impl_._oneof_case_[0]), |
821 | | ~0u, // no _weak_field_map_ |
822 | | ~0u, // no _inlined_string_donated_ |
823 | | ::_pbi::kInvalidFieldOffsetTag, |
824 | | ::_pbi::kInvalidFieldOffsetTag, |
825 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FunctionCall, _impl_.call_oneof_), |
826 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::DoBlock, _impl_._has_bits_), |
827 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::DoBlock, _internal_metadata_), |
828 | | ~0u, // no _extensions_ |
829 | | ~0u, // no _oneof_case_ |
830 | | ~0u, // no _weak_field_map_ |
831 | | ~0u, // no _inlined_string_donated_ |
832 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::DoBlock, _impl_.block_), |
833 | | 0, |
834 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::WhileCycle, _impl_._has_bits_), |
835 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::WhileCycle, _internal_metadata_), |
836 | | ~0u, // no _extensions_ |
837 | | ~0u, // no _oneof_case_ |
838 | | ~0u, // no _weak_field_map_ |
839 | | ~0u, // no _inlined_string_donated_ |
840 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::WhileCycle, _impl_.condition_), |
841 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::WhileCycle, _impl_.doblock_), |
842 | | 0, |
843 | | 1, |
844 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::RepeatCycle, _impl_._has_bits_), |
845 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::RepeatCycle, _internal_metadata_), |
846 | | ~0u, // no _extensions_ |
847 | | ~0u, // no _oneof_case_ |
848 | | ~0u, // no _weak_field_map_ |
849 | | ~0u, // no _inlined_string_donated_ |
850 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::RepeatCycle, _impl_.block_), |
851 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::RepeatCycle, _impl_.condition_), |
852 | | 0, |
853 | | 1, |
854 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement_ElseIfBlock, _impl_._has_bits_), |
855 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement_ElseIfBlock, _internal_metadata_), |
856 | | ~0u, // no _extensions_ |
857 | | ~0u, // no _oneof_case_ |
858 | | ~0u, // no _weak_field_map_ |
859 | | ~0u, // no _inlined_string_donated_ |
860 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement_ElseIfBlock, _impl_.condition_), |
861 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement_ElseIfBlock, _impl_.block_), |
862 | | 0, |
863 | | 1, |
864 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement, _impl_._has_bits_), |
865 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement, _internal_metadata_), |
866 | | ~0u, // no _extensions_ |
867 | | ~0u, // no _oneof_case_ |
868 | | ~0u, // no _weak_field_map_ |
869 | | ~0u, // no _inlined_string_donated_ |
870 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement, _impl_.condition_), |
871 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement, _impl_.first_), |
872 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement, _impl_.clauses_), |
873 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::IfStatement, _impl_.last_), |
874 | | 0, |
875 | | 1, |
876 | | ~0u, |
877 | | 2, |
878 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleName, _impl_._has_bits_), |
879 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleName, _internal_metadata_), |
880 | | ~0u, // no _extensions_ |
881 | | ~0u, // no _oneof_case_ |
882 | | ~0u, // no _weak_field_map_ |
883 | | ~0u, // no _inlined_string_donated_ |
884 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleName, _impl_.name_), |
885 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleName, _impl_.startexp_), |
886 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleName, _impl_.stopexp_), |
887 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleName, _impl_.stepexp_), |
888 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleName, _impl_.doblock_), |
889 | | 0, |
890 | | 1, |
891 | | 2, |
892 | | 3, |
893 | | 4, |
894 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleList, _impl_._has_bits_), |
895 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleList, _internal_metadata_), |
896 | | ~0u, // no _extensions_ |
897 | | ~0u, // no _oneof_case_ |
898 | | ~0u, // no _weak_field_map_ |
899 | | ~0u, // no _inlined_string_donated_ |
900 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleList, _impl_.names_), |
901 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleList, _impl_.expressions_), |
902 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ForCycleList, _impl_.doblock_), |
903 | | 0, |
904 | | 1, |
905 | | 2, |
906 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function_FuncName, _impl_._has_bits_), |
907 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function_FuncName, _internal_metadata_), |
908 | | ~0u, // no _extensions_ |
909 | | ~0u, // no _oneof_case_ |
910 | | ~0u, // no _weak_field_map_ |
911 | | ~0u, // no _inlined_string_donated_ |
912 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function_FuncName, _impl_.firstname_), |
913 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function_FuncName, _impl_.names_), |
914 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function_FuncName, _impl_.lastname_), |
915 | | 0, |
916 | | ~0u, |
917 | | 1, |
918 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function, _impl_._has_bits_), |
919 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function, _internal_metadata_), |
920 | | ~0u, // no _extensions_ |
921 | | ~0u, // no _oneof_case_ |
922 | | ~0u, // no _weak_field_map_ |
923 | | ~0u, // no _inlined_string_donated_ |
924 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function, _impl_.name_), |
925 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Function, _impl_.body_), |
926 | | 0, |
927 | | 1, |
928 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody_NameListWithEllipsis, _impl_._has_bits_), |
929 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody_NameListWithEllipsis, _internal_metadata_), |
930 | | ~0u, // no _extensions_ |
931 | | ~0u, // no _oneof_case_ |
932 | | ~0u, // no _weak_field_map_ |
933 | | ~0u, // no _inlined_string_donated_ |
934 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody_NameListWithEllipsis, _impl_.namelist_), |
935 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody_NameListWithEllipsis, _impl_.ellipsis_), |
936 | | 1, |
937 | | 0, |
938 | | ~0u, // no _has_bits_ |
939 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody_ParList, _internal_metadata_), |
940 | | ~0u, // no _extensions_ |
941 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody_ParList, _impl_._oneof_case_[0]), |
942 | | ~0u, // no _weak_field_map_ |
943 | | ~0u, // no _inlined_string_donated_ |
944 | | ::_pbi::kInvalidFieldOffsetTag, |
945 | | ::_pbi::kInvalidFieldOffsetTag, |
946 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody_ParList, _impl_.parlist_oneof_), |
947 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody, _impl_._has_bits_), |
948 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody, _internal_metadata_), |
949 | | ~0u, // no _extensions_ |
950 | | ~0u, // no _oneof_case_ |
951 | | ~0u, // no _weak_field_map_ |
952 | | ~0u, // no _inlined_string_donated_ |
953 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody, _impl_.parlist_), |
954 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FuncBody, _impl_.block_), |
955 | | 0, |
956 | | 1, |
957 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::NameList, _impl_._has_bits_), |
958 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::NameList, _internal_metadata_), |
959 | | ~0u, // no _extensions_ |
960 | | ~0u, // no _oneof_case_ |
961 | | ~0u, // no _weak_field_map_ |
962 | | ~0u, // no _inlined_string_donated_ |
963 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::NameList, _impl_.firstname_), |
964 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::NameList, _impl_.names_), |
965 | | 0, |
966 | | ~0u, |
967 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalFunc, _impl_._has_bits_), |
968 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalFunc, _internal_metadata_), |
969 | | ~0u, // no _extensions_ |
970 | | ~0u, // no _oneof_case_ |
971 | | ~0u, // no _weak_field_map_ |
972 | | ~0u, // no _inlined_string_donated_ |
973 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalFunc, _impl_.name_), |
974 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalFunc, _impl_.funcbody_), |
975 | | 0, |
976 | | 1, |
977 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalNames, _impl_._has_bits_), |
978 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalNames, _internal_metadata_), |
979 | | ~0u, // no _extensions_ |
980 | | ~0u, // no _oneof_case_ |
981 | | ~0u, // no _weak_field_map_ |
982 | | ~0u, // no _inlined_string_donated_ |
983 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalNames, _impl_.namelist_), |
984 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LocalNames, _impl_.explist_), |
985 | | 0, |
986 | | 1, |
987 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement_ReturnOptionalExpressionList, _impl_._has_bits_), |
988 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement_ReturnOptionalExpressionList, _internal_metadata_), |
989 | | ~0u, // no _extensions_ |
990 | | ~0u, // no _oneof_case_ |
991 | | ~0u, // no _weak_field_map_ |
992 | | ~0u, // no _inlined_string_donated_ |
993 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement_ReturnOptionalExpressionList, _impl_.explist_), |
994 | | 0, |
995 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement, _impl_._has_bits_), |
996 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement, _internal_metadata_), |
997 | | ~0u, // no _extensions_ |
998 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement, _impl_._oneof_case_[0]), |
999 | | ~0u, // no _weak_field_map_ |
1000 | | ~0u, // no _inlined_string_donated_ |
1001 | | ::_pbi::kInvalidFieldOffsetTag, |
1002 | | ::_pbi::kInvalidFieldOffsetTag, |
1003 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement, _impl_.semicolon_), |
1004 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::LastStatement, _impl_.last_oneof_), |
1005 | | ~0u, |
1006 | | ~0u, |
1007 | | 0, |
1008 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ExpressionList, _impl_._has_bits_), |
1009 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ExpressionList, _internal_metadata_), |
1010 | | ~0u, // no _extensions_ |
1011 | | ~0u, // no _oneof_case_ |
1012 | | ~0u, // no _weak_field_map_ |
1013 | | ~0u, // no _inlined_string_donated_ |
1014 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ExpressionList, _impl_.expressions_), |
1015 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::ExpressionList, _impl_.explast_), |
1016 | | ~0u, |
1017 | | 0, |
1018 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::OptionalExpressionList, _impl_._has_bits_), |
1019 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::OptionalExpressionList, _internal_metadata_), |
1020 | | ~0u, // no _extensions_ |
1021 | | ~0u, // no _oneof_case_ |
1022 | | ~0u, // no _weak_field_map_ |
1023 | | ~0u, // no _inlined_string_donated_ |
1024 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::OptionalExpressionList, _impl_.explist_), |
1025 | | 0, |
1026 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithExpression, _impl_._has_bits_), |
1027 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithExpression, _internal_metadata_), |
1028 | | ~0u, // no _extensions_ |
1029 | | ~0u, // no _oneof_case_ |
1030 | | ~0u, // no _weak_field_map_ |
1031 | | ~0u, // no _inlined_string_donated_ |
1032 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithExpression, _impl_.prefixexp_), |
1033 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithExpression, _impl_.exp_), |
1034 | | 0, |
1035 | | 1, |
1036 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithName, _impl_._has_bits_), |
1037 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithName, _internal_metadata_), |
1038 | | ~0u, // no _extensions_ |
1039 | | ~0u, // no _oneof_case_ |
1040 | | ~0u, // no _weak_field_map_ |
1041 | | ~0u, // no _inlined_string_donated_ |
1042 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithName, _impl_.prefixexp_), |
1043 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable_IndexWithName, _impl_.name_), |
1044 | | 1, |
1045 | | 0, |
1046 | | ~0u, // no _has_bits_ |
1047 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable, _internal_metadata_), |
1048 | | ~0u, // no _extensions_ |
1049 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable, _impl_._oneof_case_[0]), |
1050 | | ~0u, // no _weak_field_map_ |
1051 | | ~0u, // no _inlined_string_donated_ |
1052 | | ::_pbi::kInvalidFieldOffsetTag, |
1053 | | ::_pbi::kInvalidFieldOffsetTag, |
1054 | | ::_pbi::kInvalidFieldOffsetTag, |
1055 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Variable, _impl_.var_oneof_), |
1056 | | ~0u, // no _has_bits_ |
1057 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::PrefixExpression, _internal_metadata_), |
1058 | | ~0u, // no _extensions_ |
1059 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::PrefixExpression, _impl_._oneof_case_[0]), |
1060 | | ~0u, // no _weak_field_map_ |
1061 | | ~0u, // no _inlined_string_donated_ |
1062 | | ::_pbi::kInvalidFieldOffsetTag, |
1063 | | ::_pbi::kInvalidFieldOffsetTag, |
1064 | | ::_pbi::kInvalidFieldOffsetTag, |
1065 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::PrefixExpression, _impl_.prefix_oneof_), |
1066 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_AnonFunc, _impl_._has_bits_), |
1067 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_AnonFunc, _internal_metadata_), |
1068 | | ~0u, // no _extensions_ |
1069 | | ~0u, // no _oneof_case_ |
1070 | | ~0u, // no _weak_field_map_ |
1071 | | ~0u, // no _inlined_string_donated_ |
1072 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_AnonFunc, _impl_.body_), |
1073 | | 0, |
1074 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_ExpBinaryOpExp, _impl_._has_bits_), |
1075 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_ExpBinaryOpExp, _internal_metadata_), |
1076 | | ~0u, // no _extensions_ |
1077 | | ~0u, // no _oneof_case_ |
1078 | | ~0u, // no _weak_field_map_ |
1079 | | ~0u, // no _inlined_string_donated_ |
1080 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_ExpBinaryOpExp, _impl_.leftexp_), |
1081 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_ExpBinaryOpExp, _impl_.binop_), |
1082 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_ExpBinaryOpExp, _impl_.rightexp_), |
1083 | | 0, |
1084 | | 1, |
1085 | | 2, |
1086 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_UnaryOpExp, _impl_._has_bits_), |
1087 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_UnaryOpExp, _internal_metadata_), |
1088 | | ~0u, // no _extensions_ |
1089 | | ~0u, // no _oneof_case_ |
1090 | | ~0u, // no _weak_field_map_ |
1091 | | ~0u, // no _inlined_string_donated_ |
1092 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_UnaryOpExp, _impl_.unop_), |
1093 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression_UnaryOpExp, _impl_.exp_), |
1094 | | 0, |
1095 | | 1, |
1096 | | ~0u, // no _has_bits_ |
1097 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression, _internal_metadata_), |
1098 | | ~0u, // no _extensions_ |
1099 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression, _impl_._oneof_case_[0]), |
1100 | | ~0u, // no _weak_field_map_ |
1101 | | ~0u, // no _inlined_string_donated_ |
1102 | | ::_pbi::kInvalidFieldOffsetTag, |
1103 | | ::_pbi::kInvalidFieldOffsetTag, |
1104 | | ::_pbi::kInvalidFieldOffsetTag, |
1105 | | ::_pbi::kInvalidFieldOffsetTag, |
1106 | | ::_pbi::kInvalidFieldOffsetTag, |
1107 | | ::_pbi::kInvalidFieldOffsetTag, |
1108 | | ::_pbi::kInvalidFieldOffsetTag, |
1109 | | ::_pbi::kInvalidFieldOffsetTag, |
1110 | | ::_pbi::kInvalidFieldOffsetTag, |
1111 | | ::_pbi::kInvalidFieldOffsetTag, |
1112 | | ::_pbi::kInvalidFieldOffsetTag, |
1113 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Expression, _impl_.expr_oneof_), |
1114 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::TableConstructor, _impl_._has_bits_), |
1115 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::TableConstructor, _internal_metadata_), |
1116 | | ~0u, // no _extensions_ |
1117 | | ~0u, // no _oneof_case_ |
1118 | | ~0u, // no _weak_field_map_ |
1119 | | ~0u, // no _inlined_string_donated_ |
1120 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::TableConstructor, _impl_.fieldlist_), |
1121 | | 0, |
1122 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList_FieldWithFieldSep, _impl_._has_bits_), |
1123 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList_FieldWithFieldSep, _internal_metadata_), |
1124 | | ~0u, // no _extensions_ |
1125 | | ~0u, // no _oneof_case_ |
1126 | | ~0u, // no _weak_field_map_ |
1127 | | ~0u, // no _inlined_string_donated_ |
1128 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList_FieldWithFieldSep, _impl_.field_), |
1129 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList_FieldWithFieldSep, _impl_.sep_), |
1130 | | 0, |
1131 | | 1, |
1132 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList, _impl_._has_bits_), |
1133 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList, _internal_metadata_), |
1134 | | ~0u, // no _extensions_ |
1135 | | ~0u, // no _oneof_case_ |
1136 | | ~0u, // no _weak_field_map_ |
1137 | | ~0u, // no _inlined_string_donated_ |
1138 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList, _impl_.firstfield_), |
1139 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList, _impl_.fields_), |
1140 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldList, _impl_.lastsep_), |
1141 | | 0, |
1142 | | ~0u, |
1143 | | 1, |
1144 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_ExpressionAssignment, _impl_._has_bits_), |
1145 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_ExpressionAssignment, _internal_metadata_), |
1146 | | ~0u, // no _extensions_ |
1147 | | ~0u, // no _oneof_case_ |
1148 | | ~0u, // no _weak_field_map_ |
1149 | | ~0u, // no _inlined_string_donated_ |
1150 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_ExpressionAssignment, _impl_.key_), |
1151 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_ExpressionAssignment, _impl_.value_), |
1152 | | 0, |
1153 | | 1, |
1154 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_NameAssignment, _impl_._has_bits_), |
1155 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_NameAssignment, _internal_metadata_), |
1156 | | ~0u, // no _extensions_ |
1157 | | ~0u, // no _oneof_case_ |
1158 | | ~0u, // no _weak_field_map_ |
1159 | | ~0u, // no _inlined_string_donated_ |
1160 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_NameAssignment, _impl_.name_), |
1161 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field_NameAssignment, _impl_.value_), |
1162 | | 0, |
1163 | | 1, |
1164 | | ~0u, // no _has_bits_ |
1165 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field, _internal_metadata_), |
1166 | | ~0u, // no _extensions_ |
1167 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field, _impl_._oneof_case_[0]), |
1168 | | ~0u, // no _weak_field_map_ |
1169 | | ~0u, // no _inlined_string_donated_ |
1170 | | ::_pbi::kInvalidFieldOffsetTag, |
1171 | | ::_pbi::kInvalidFieldOffsetTag, |
1172 | | ::_pbi::kInvalidFieldOffsetTag, |
1173 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Field, _impl_.field_oneof_), |
1174 | | ~0u, // no _has_bits_ |
1175 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldSep, _internal_metadata_), |
1176 | | ~0u, // no _extensions_ |
1177 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldSep, _impl_._oneof_case_[0]), |
1178 | | ~0u, // no _weak_field_map_ |
1179 | | ~0u, // no _inlined_string_donated_ |
1180 | | ::_pbi::kInvalidFieldOffsetTag, |
1181 | | ::_pbi::kInvalidFieldOffsetTag, |
1182 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::FieldSep, _impl_.sep_oneof_), |
1183 | | ~0u, // no _has_bits_ |
1184 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::BinaryOperator, _internal_metadata_), |
1185 | | ~0u, // no _extensions_ |
1186 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::BinaryOperator, _impl_._oneof_case_[0]), |
1187 | | ~0u, // no _weak_field_map_ |
1188 | | ~0u, // no _inlined_string_donated_ |
1189 | | ::_pbi::kInvalidFieldOffsetTag, |
1190 | | ::_pbi::kInvalidFieldOffsetTag, |
1191 | | ::_pbi::kInvalidFieldOffsetTag, |
1192 | | ::_pbi::kInvalidFieldOffsetTag, |
1193 | | ::_pbi::kInvalidFieldOffsetTag, |
1194 | | ::_pbi::kInvalidFieldOffsetTag, |
1195 | | ::_pbi::kInvalidFieldOffsetTag, |
1196 | | ::_pbi::kInvalidFieldOffsetTag, |
1197 | | ::_pbi::kInvalidFieldOffsetTag, |
1198 | | ::_pbi::kInvalidFieldOffsetTag, |
1199 | | ::_pbi::kInvalidFieldOffsetTag, |
1200 | | ::_pbi::kInvalidFieldOffsetTag, |
1201 | | ::_pbi::kInvalidFieldOffsetTag, |
1202 | | ::_pbi::kInvalidFieldOffsetTag, |
1203 | | ::_pbi::kInvalidFieldOffsetTag, |
1204 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::BinaryOperator, _impl_.binary_oneof_), |
1205 | | ~0u, // no _has_bits_ |
1206 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::UnaryOperator, _internal_metadata_), |
1207 | | ~0u, // no _extensions_ |
1208 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::UnaryOperator, _impl_._oneof_case_[0]), |
1209 | | ~0u, // no _weak_field_map_ |
1210 | | ~0u, // no _inlined_string_donated_ |
1211 | | ::_pbi::kInvalidFieldOffsetTag, |
1212 | | ::_pbi::kInvalidFieldOffsetTag, |
1213 | | ::_pbi::kInvalidFieldOffsetTag, |
1214 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::UnaryOperator, _impl_.unary_oneof_), |
1215 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Name, _impl_._has_bits_), |
1216 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Name, _internal_metadata_), |
1217 | | ~0u, // no _extensions_ |
1218 | | ~0u, // no _oneof_case_ |
1219 | | ~0u, // no _weak_field_map_ |
1220 | | ~0u, // no _inlined_string_donated_ |
1221 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Name, _impl_.name_), |
1222 | | PROTOBUF_FIELD_OFFSET(::lua_grammar::Name, _impl_.num_), |
1223 | | 0, |
1224 | | 1, |
1225 | | }; |
1226 | | static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
1227 | | { 0, 7, -1, sizeof(::lua_grammar::Block)}, |
1228 | | { 8, 16, -1, sizeof(::lua_grammar::Chunk)}, |
1229 | | { 18, 37, -1, sizeof(::lua_grammar::Statement)}, |
1230 | | { 49, 57, -1, sizeof(::lua_grammar::AssignmentList_VariableList)}, |
1231 | | { 59, 67, -1, sizeof(::lua_grammar::AssignmentList)}, |
1232 | | { 69, -1, -1, sizeof(::lua_grammar::FunctionCall_Args)}, |
1233 | | { 79, 87, -1, sizeof(::lua_grammar::FunctionCall_PrefixArgs)}, |
1234 | | { 89, 98, -1, sizeof(::lua_grammar::FunctionCall_PrefixNamedArgs)}, |
1235 | | { 101, -1, -1, sizeof(::lua_grammar::FunctionCall)}, |
1236 | | { 110, 117, -1, sizeof(::lua_grammar::DoBlock)}, |
1237 | | { 118, 126, -1, sizeof(::lua_grammar::WhileCycle)}, |
1238 | | { 128, 136, -1, sizeof(::lua_grammar::RepeatCycle)}, |
1239 | | { 138, 146, -1, sizeof(::lua_grammar::IfStatement_ElseIfBlock)}, |
1240 | | { 148, 158, -1, sizeof(::lua_grammar::IfStatement)}, |
1241 | | { 162, 173, -1, sizeof(::lua_grammar::ForCycleName)}, |
1242 | | { 178, 187, -1, sizeof(::lua_grammar::ForCycleList)}, |
1243 | | { 190, 199, -1, sizeof(::lua_grammar::Function_FuncName)}, |
1244 | | { 202, 210, -1, sizeof(::lua_grammar::Function)}, |
1245 | | { 212, 220, -1, sizeof(::lua_grammar::FuncBody_NameListWithEllipsis)}, |
1246 | | { 222, -1, -1, sizeof(::lua_grammar::FuncBody_ParList)}, |
1247 | | { 231, 239, -1, sizeof(::lua_grammar::FuncBody)}, |
1248 | | { 241, 249, -1, sizeof(::lua_grammar::NameList)}, |
1249 | | { 251, 259, -1, sizeof(::lua_grammar::LocalFunc)}, |
1250 | | { 261, 269, -1, sizeof(::lua_grammar::LocalNames)}, |
1251 | | { 271, 278, -1, sizeof(::lua_grammar::LastStatement_ReturnOptionalExpressionList)}, |
1252 | | { 279, 289, -1, sizeof(::lua_grammar::LastStatement)}, |
1253 | | { 292, 300, -1, sizeof(::lua_grammar::ExpressionList)}, |
1254 | | { 302, 309, -1, sizeof(::lua_grammar::OptionalExpressionList)}, |
1255 | | { 310, 318, -1, sizeof(::lua_grammar::Variable_IndexWithExpression)}, |
1256 | | { 320, 328, -1, sizeof(::lua_grammar::Variable_IndexWithName)}, |
1257 | | { 330, -1, -1, sizeof(::lua_grammar::Variable)}, |
1258 | | { 340, -1, -1, sizeof(::lua_grammar::PrefixExpression)}, |
1259 | | { 350, 357, -1, sizeof(::lua_grammar::Expression_AnonFunc)}, |
1260 | | { 358, 367, -1, sizeof(::lua_grammar::Expression_ExpBinaryOpExp)}, |
1261 | | { 370, 378, -1, sizeof(::lua_grammar::Expression_UnaryOpExp)}, |
1262 | | { 380, -1, -1, sizeof(::lua_grammar::Expression)}, |
1263 | | { 398, 405, -1, sizeof(::lua_grammar::TableConstructor)}, |
1264 | | { 406, 414, -1, sizeof(::lua_grammar::FieldList_FieldWithFieldSep)}, |
1265 | | { 416, 425, -1, sizeof(::lua_grammar::FieldList)}, |
1266 | | { 428, 436, -1, sizeof(::lua_grammar::Field_ExpressionAssignment)}, |
1267 | | { 438, 446, -1, sizeof(::lua_grammar::Field_NameAssignment)}, |
1268 | | { 448, -1, -1, sizeof(::lua_grammar::Field)}, |
1269 | | { 458, -1, -1, sizeof(::lua_grammar::FieldSep)}, |
1270 | | { 467, -1, -1, sizeof(::lua_grammar::BinaryOperator)}, |
1271 | | { 489, -1, -1, sizeof(::lua_grammar::UnaryOperator)}, |
1272 | | { 499, 507, -1, sizeof(::lua_grammar::Name)}, |
1273 | | }; |
1274 | | |
1275 | | static const ::_pb::Message* const file_default_instances[] = { |
1276 | | &::lua_grammar::_Block_default_instance_._instance, |
1277 | | &::lua_grammar::_Chunk_default_instance_._instance, |
1278 | | &::lua_grammar::_Statement_default_instance_._instance, |
1279 | | &::lua_grammar::_AssignmentList_VariableList_default_instance_._instance, |
1280 | | &::lua_grammar::_AssignmentList_default_instance_._instance, |
1281 | | &::lua_grammar::_FunctionCall_Args_default_instance_._instance, |
1282 | | &::lua_grammar::_FunctionCall_PrefixArgs_default_instance_._instance, |
1283 | | &::lua_grammar::_FunctionCall_PrefixNamedArgs_default_instance_._instance, |
1284 | | &::lua_grammar::_FunctionCall_default_instance_._instance, |
1285 | | &::lua_grammar::_DoBlock_default_instance_._instance, |
1286 | | &::lua_grammar::_WhileCycle_default_instance_._instance, |
1287 | | &::lua_grammar::_RepeatCycle_default_instance_._instance, |
1288 | | &::lua_grammar::_IfStatement_ElseIfBlock_default_instance_._instance, |
1289 | | &::lua_grammar::_IfStatement_default_instance_._instance, |
1290 | | &::lua_grammar::_ForCycleName_default_instance_._instance, |
1291 | | &::lua_grammar::_ForCycleList_default_instance_._instance, |
1292 | | &::lua_grammar::_Function_FuncName_default_instance_._instance, |
1293 | | &::lua_grammar::_Function_default_instance_._instance, |
1294 | | &::lua_grammar::_FuncBody_NameListWithEllipsis_default_instance_._instance, |
1295 | | &::lua_grammar::_FuncBody_ParList_default_instance_._instance, |
1296 | | &::lua_grammar::_FuncBody_default_instance_._instance, |
1297 | | &::lua_grammar::_NameList_default_instance_._instance, |
1298 | | &::lua_grammar::_LocalFunc_default_instance_._instance, |
1299 | | &::lua_grammar::_LocalNames_default_instance_._instance, |
1300 | | &::lua_grammar::_LastStatement_ReturnOptionalExpressionList_default_instance_._instance, |
1301 | | &::lua_grammar::_LastStatement_default_instance_._instance, |
1302 | | &::lua_grammar::_ExpressionList_default_instance_._instance, |
1303 | | &::lua_grammar::_OptionalExpressionList_default_instance_._instance, |
1304 | | &::lua_grammar::_Variable_IndexWithExpression_default_instance_._instance, |
1305 | | &::lua_grammar::_Variable_IndexWithName_default_instance_._instance, |
1306 | | &::lua_grammar::_Variable_default_instance_._instance, |
1307 | | &::lua_grammar::_PrefixExpression_default_instance_._instance, |
1308 | | &::lua_grammar::_Expression_AnonFunc_default_instance_._instance, |
1309 | | &::lua_grammar::_Expression_ExpBinaryOpExp_default_instance_._instance, |
1310 | | &::lua_grammar::_Expression_UnaryOpExp_default_instance_._instance, |
1311 | | &::lua_grammar::_Expression_default_instance_._instance, |
1312 | | &::lua_grammar::_TableConstructor_default_instance_._instance, |
1313 | | &::lua_grammar::_FieldList_FieldWithFieldSep_default_instance_._instance, |
1314 | | &::lua_grammar::_FieldList_default_instance_._instance, |
1315 | | &::lua_grammar::_Field_ExpressionAssignment_default_instance_._instance, |
1316 | | &::lua_grammar::_Field_NameAssignment_default_instance_._instance, |
1317 | | &::lua_grammar::_Field_default_instance_._instance, |
1318 | | &::lua_grammar::_FieldSep_default_instance_._instance, |
1319 | | &::lua_grammar::_BinaryOperator_default_instance_._instance, |
1320 | | &::lua_grammar::_UnaryOperator_default_instance_._instance, |
1321 | | &::lua_grammar::_Name_default_instance_._instance, |
1322 | | }; |
1323 | | |
1324 | | const char descriptor_table_protodef_lua_5fgrammar_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
1325 | | "\n\021lua_grammar.proto\022\013lua_grammar\"*\n\005Bloc" |
1326 | | "k\022!\n\005chunk\030\001 \002(\0132\022.lua_grammar.Chunk\"[\n\005" |
1327 | | "Chunk\022$\n\004stat\030\001 \003(\0132\026.lua_grammar.Statem" |
1328 | | "ent\022,\n\010laststat\030\002 \001(\0132\032.lua_grammar.Last" |
1329 | | "Statement\"\240\004\n\tStatement\022+\n\004list\030\001 \001(\0132\033." |
1330 | | "lua_grammar.AssignmentListH\000\022)\n\004call\030\002 \001" |
1331 | | "(\0132\031.lua_grammar.FunctionCallH\000\022%\n\005block" |
1332 | | "\030\003 \001(\0132\024.lua_grammar.DoBlockH\000\022-\n\nwhilec" |
1333 | | "ycle\030\004 \001(\0132\027.lua_grammar.WhileCycleH\000\022/\n" |
1334 | | "\013repeatcycle\030\005 \001(\0132\030.lua_grammar.RepeatC" |
1335 | | "ycleH\000\022*\n\006ifstat\030\006 \001(\0132\030.lua_grammar.IfS" |
1336 | | "tatementH\000\0221\n\014forcyclename\030\007 \001(\0132\031.lua_g" |
1337 | | "rammar.ForCycleNameH\000\0221\n\014forcyclelist\030\010 " |
1338 | | "\001(\0132\031.lua_grammar.ForCycleListH\000\022%\n\004func" |
1339 | | "\030\t \001(\0132\025.lua_grammar.FunctionH\000\022+\n\tlocal" |
1340 | | "func\030\n \001(\0132\026.lua_grammar.LocalFuncH\000\022-\n\n" |
1341 | | "localnames\030\013 \001(\0132\027.lua_grammar.LocalName" |
1342 | | "sH\000\022\021\n\tsemicolon\030\014 \001(\010B\014\n\nstat_oneof\"\322\001\n" |
1343 | | "\016AssignmentList\0229\n\007varlist\030\001 \002(\0132(.lua_g" |
1344 | | "rammar.AssignmentList.VariableList\022,\n\007ex" |
1345 | | "plist\030\002 \002(\0132\033.lua_grammar.ExpressionList" |
1346 | | "\032W\n\014VariableList\022\"\n\003var\030\001 \002(\0132\025.lua_gram" |
1347 | | "mar.Variable\022#\n\004vars\030\002 \003(\0132\025.lua_grammar" |
1348 | | ".Variable\"\262\004\n\014FunctionCall\0228\n\010prefArgs\030\001" |
1349 | | " \001(\0132$.lua_grammar.FunctionCall.PrefixAr" |
1350 | | "gsH\000\022>\n\tnamedArgs\030\002 \001(\0132).lua_grammar.Fu" |
1351 | | "nctionCall.PrefixNamedArgsH\000\032\226\001\n\004Args\0226\n" |
1352 | | "\007explist\030\001 \001(\0132#.lua_grammar.OptionalExp" |
1353 | | "ressionListH\000\0229\n\020tableconstructor\030\002 \001(\0132" |
1354 | | "\035.lua_grammar.TableConstructorH\000\022\r\n\003str\030" |
1355 | | "\003 \001(\tH\000B\014\n\nargs_oneof\032l\n\nPrefixArgs\0220\n\tp" |
1356 | | "refixexp\030\001 \002(\0132\035.lua_grammar.PrefixExpre" |
1357 | | "ssion\022,\n\004args\030\002 \002(\0132\036.lua_grammar.Functi" |
1358 | | "onCall.Args\032\222\001\n\017PrefixNamedArgs\0220\n\tprefi" |
1359 | | "xexp\030\001 \002(\0132\035.lua_grammar.PrefixExpressio" |
1360 | | "n\022\037\n\004name\030\002 \002(\0132\021.lua_grammar.Name\022,\n\004ar" |
1361 | | "gs\030\003 \002(\0132\036.lua_grammar.FunctionCall.Args" |
1362 | | "B\014\n\ncall_oneof\",\n\007DoBlock\022!\n\005block\030\001 \002(\013" |
1363 | | "2\022.lua_grammar.Block\"_\n\nWhileCycle\022*\n\tco" |
1364 | | "ndition\030\001 \002(\0132\027.lua_grammar.Expression\022%" |
1365 | | "\n\007doblock\030\002 \002(\0132\024.lua_grammar.DoBlock\"\\\n" |
1366 | | "\013RepeatCycle\022!\n\005block\030\001 \002(\0132\022.lua_gramma" |
1367 | | "r.Block\022*\n\tcondition\030\002 \002(\0132\027.lua_grammar" |
1368 | | ".Expression\"\223\002\n\013IfStatement\022*\n\tcondition" |
1369 | | "\030\001 \002(\0132\027.lua_grammar.Expression\022!\n\005first" |
1370 | | "\030\002 \002(\0132\022.lua_grammar.Block\0225\n\007clauses\030\003 " |
1371 | | "\003(\0132$.lua_grammar.IfStatement.ElseIfBloc" |
1372 | | "k\022 \n\004last\030\004 \001(\0132\022.lua_grammar.Block\032\\\n\013E" |
1373 | | "lseIfBlock\022*\n\tcondition\030\001 \002(\0132\027.lua_gram" |
1374 | | "mar.Expression\022!\n\005block\030\002 \002(\0132\022.lua_gram" |
1375 | | "mar.Block\"\325\001\n\014ForCycleName\022\037\n\004name\030\001 \002(\013" |
1376 | | "2\021.lua_grammar.Name\022)\n\010startexp\030\002 \002(\0132\027." |
1377 | | "lua_grammar.Expression\022(\n\007stopexp\030\003 \002(\0132" |
1378 | | "\027.lua_grammar.Expression\022(\n\007stepexp\030\004 \001(" |
1379 | | "\0132\027.lua_grammar.Expression\022%\n\007doblock\030\005 " |
1380 | | "\002(\0132\024.lua_grammar.DoBlock\"\215\001\n\014ForCycleLi" |
1381 | | "st\022$\n\005names\030\001 \002(\0132\025.lua_grammar.NameList" |
1382 | | "\0220\n\013expressions\030\002 \002(\0132\033.lua_grammar.Expr" |
1383 | | "essionList\022%\n\007doblock\030\003 \002(\0132\024.lua_gramma" |
1384 | | "r.DoBlock\"\326\001\n\010Function\022,\n\004name\030\001 \002(\0132\036.l" |
1385 | | "ua_grammar.Function.FuncName\022#\n\004body\030\002 \002" |
1386 | | "(\0132\025.lua_grammar.FuncBody\032w\n\010FuncName\022$\n" |
1387 | | "\tfirstname\030\001 \002(\0132\021.lua_grammar.Name\022 \n\005n" |
1388 | | "ames\030\002 \003(\0132\021.lua_grammar.Name\022#\n\010lastnam" |
1389 | | "e\030\003 \001(\0132\021.lua_grammar.Name\"\240\002\n\010FuncBody\022" |
1390 | | ".\n\007parlist\030\001 \001(\0132\035.lua_grammar.FuncBody." |
1391 | | "ParList\022!\n\005block\030\002 \002(\0132\022.lua_grammar.Blo" |
1392 | | "ck\032Q\n\024NameListWithEllipsis\022\'\n\010namelist\030\001" |
1393 | | " \002(\0132\025.lua_grammar.NameList\022\020\n\010ellipsis\030" |
1394 | | "\002 \001(\t\032n\n\007ParList\022>\n\010namelist\030\001 \001(\0132*.lua" |
1395 | | "_grammar.FuncBody.NameListWithEllipsisH\000" |
1396 | | "\022\022\n\010ellipsis\030\002 \001(\tH\000B\017\n\rparlist_oneof\"R\n" |
1397 | | "\010NameList\022$\n\tfirstname\030\001 \002(\0132\021.lua_gramm" |
1398 | | "ar.Name\022 \n\005names\030\002 \003(\0132\021.lua_grammar.Nam" |
1399 | | "e\"U\n\tLocalFunc\022\037\n\004name\030\001 \002(\0132\021.lua_gramm" |
1400 | | "ar.Name\022\'\n\010funcbody\030\002 \002(\0132\025.lua_grammar." |
1401 | | "FuncBody\"c\n\nLocalNames\022\'\n\010namelist\030\001 \002(\013" |
1402 | | "2\025.lua_grammar.NameList\022,\n\007explist\030\002 \001(\013" |
1403 | | "2\033.lua_grammar.ExpressionList\"\333\001\n\rLastSt" |
1404 | | "atement\022J\n\007explist\030\001 \001(\01327.lua_grammar.L" |
1405 | | "astStatement.ReturnOptionalExpressionLis" |
1406 | | "tH\000\022\017\n\005break\030\002 \001(\rH\000\022\021\n\tsemicolon\030\003 \001(\010\032" |
1407 | | "L\n\034ReturnOptionalExpressionList\022,\n\007expli" |
1408 | | "st\030\001 \001(\0132\033.lua_grammar.ExpressionListB\014\n" |
1409 | | "\nlast_oneof\"h\n\016ExpressionList\022,\n\013express" |
1410 | | "ions\030\001 \003(\0132\027.lua_grammar.Expression\022(\n\007e" |
1411 | | "xplast\030\002 \002(\0132\027.lua_grammar.Expression\"F\n" |
1412 | | "\026OptionalExpressionList\022,\n\007explist\030\001 \001(\013" |
1413 | | "2\033.lua_grammar.ExpressionList\"\364\002\n\010Variab" |
1414 | | "le\022!\n\004name\030\001 \001(\0132\021.lua_grammar.NameH\000\022>\n" |
1415 | | "\tindexexpr\030\002 \001(\0132).lua_grammar.Variable." |
1416 | | "IndexWithExpressionH\000\0228\n\tindexname\030\003 \001(\013" |
1417 | | "2#.lua_grammar.Variable.IndexWithNameH\000\032" |
1418 | | "m\n\023IndexWithExpression\0220\n\tprefixexp\030\001 \002(" |
1419 | | "\0132\035.lua_grammar.PrefixExpression\022$\n\003exp\030" |
1420 | | "\002 \002(\0132\027.lua_grammar.Expression\032O\n\rIndexW" |
1421 | | "ithName\0220\n\tprefixexp\030\001 \002(\0132\035.lua_grammar" |
1422 | | ".PrefixExpression\022\014\n\004Name\030\002 \002(\tB\013\n\tvar_o" |
1423 | | "neof\"\243\001\n\020PrefixExpression\022$\n\003var\030\001 \001(\0132\025" |
1424 | | ".lua_grammar.VariableH\000\0221\n\014functioncall\030" |
1425 | | "\002 \001(\0132\031.lua_grammar.FunctionCallH\000\022&\n\003ex" |
1426 | | "p\030\003 \001(\0132\027.lua_grammar.ExpressionH\000B\016\n\014pr" |
1427 | | "efix_oneof\"\266\005\n\nExpression\022\r\n\003nil\030\001 \001(\rH\000" |
1428 | | "\022\017\n\005false\030\002 \001(\rH\000\022\016\n\004true\030\003 \001(\rH\000\022\020\n\006num" |
1429 | | "ber\030\004 \001(\001H\000\022\r\n\003str\030\005 \001(\tH\000\022\022\n\010ellipsis\030\006" |
1430 | | " \001(\tH\000\0224\n\010function\030\007 \001(\0132 .lua_grammar.E" |
1431 | | "xpression.AnonFuncH\000\0222\n\tprefixexp\030\010 \001(\0132" |
1432 | | "\035.lua_grammar.PrefixExpressionH\000\0229\n\020tabl" |
1433 | | "econstructor\030\t \001(\0132\035.lua_grammar.TableCo" |
1434 | | "nstructorH\000\0228\n\006binary\030\n \001(\0132&.lua_gramma" |
1435 | | "r.Expression.ExpBinaryOpExpH\000\0223\n\005unary\030\013" |
1436 | | " \001(\0132\".lua_grammar.Expression.UnaryOpExp" |
1437 | | "H\000\032/\n\010AnonFunc\022#\n\004body\030\001 \002(\0132\025.lua_gramm" |
1438 | | "ar.FuncBody\032\221\001\n\016ExpBinaryOpExp\022(\n\007leftex" |
1439 | | "p\030\001 \002(\0132\027.lua_grammar.Expression\022*\n\005bino" |
1440 | | "p\030\002 \002(\0132\033.lua_grammar.BinaryOperator\022)\n\010" |
1441 | | "rightexp\030\003 \002(\0132\027.lua_grammar.Expression\032" |
1442 | | "\\\n\nUnaryOpExp\022(\n\004unop\030\001 \002(\0132\032.lua_gramma" |
1443 | | "r.UnaryOperator\022$\n\003exp\030\002 \002(\0132\027.lua_gramm" |
1444 | | "ar.ExpressionB\014\n\nexpr_oneof\"=\n\020TableCons" |
1445 | | "tructor\022)\n\tfieldlist\030\001 \001(\0132\026.lua_grammar" |
1446 | | ".FieldList\"\361\001\n\tFieldList\022&\n\nfirstField\030\001" |
1447 | | " \002(\0132\022.lua_grammar.Field\0228\n\006fields\030\002 \003(\013" |
1448 | | "2(.lua_grammar.FieldList.FieldWithFieldS" |
1449 | | "ep\022&\n\007lastSep\030\003 \001(\0132\025.lua_grammar.FieldS" |
1450 | | "ep\032Z\n\021FieldWithFieldSep\022!\n\005field\030\001 \002(\0132\022" |
1451 | | ".lua_grammar.Field\022\"\n\003sep\030\002 \002(\0132\025.lua_gr" |
1452 | | "ammar.FieldSep\"\377\002\n\005Field\022=\n\nexprassign\030\001" |
1453 | | " \001(\0132\'.lua_grammar.Field.ExpressionAssig" |
1454 | | "nmentH\000\0228\n\013namedassign\030\002 \001(\0132!.lua_gramm" |
1455 | | "ar.Field.NameAssignmentH\000\022-\n\nexpression\030" |
1456 | | "\003 \001(\0132\027.lua_grammar.ExpressionH\000\032d\n\024Expr" |
1457 | | "essionAssignment\022$\n\003key\030\001 \002(\0132\027.lua_gram" |
1458 | | "mar.Expression\022&\n\005value\030\002 \002(\0132\027.lua_gram" |
1459 | | "mar.Expression\032Y\n\016NameAssignment\022\037\n\004name" |
1460 | | "\030\001 \002(\0132\021.lua_grammar.Name\022&\n\005value\030\002 \002(\013" |
1461 | | "2\027.lua_grammar.ExpressionB\r\n\013field_oneof" |
1462 | | "\"=\n\010FieldSep\022\017\n\005comma\030\001 \001(\rH\000\022\023\n\tsemicol" |
1463 | | "on\030\002 \001(\rH\000B\013\n\tsep_oneof\"\237\002\n\016BinaryOperat" |
1464 | | "or\022\r\n\003add\030\001 \001(\rH\000\022\r\n\003sub\030\002 \001(\rH\000\022\016\n\004mult" |
1465 | | "\030\003 \001(\rH\000\022\r\n\003div\030\004 \001(\rH\000\022\r\n\003exp\030\005 \001(\rH\000\022\r" |
1466 | | "\n\003mod\030\006 \001(\rH\000\022\020\n\006concat\030\007 \001(\rH\000\022\016\n\004less\030" |
1467 | | "\010 \001(\rH\000\022\023\n\tlessEqual\030\t \001(\rH\000\022\021\n\007greater\030" |
1468 | | "\n \001(\rH\000\022\026\n\014greaterEqual\030\013 \001(\rH\000\022\017\n\005equal" |
1469 | | "\030\014 \001(\rH\000\022\022\n\010notEqual\030\r \001(\rH\000\022\r\n\003and\030\016 \001(" |
1470 | | "\rH\000\022\014\n\002or\030\017 \001(\rH\000B\016\n\014binary_oneof\"Q\n\rUna" |
1471 | | "ryOperator\022\020\n\006negate\030\001 \001(\rH\000\022\r\n\003not\030\002 \001(" |
1472 | | "\rH\000\022\020\n\006length\030\003 \001(\rH\000B\r\n\013unary_oneof\"!\n\004" |
1473 | | "Name\022\014\n\004name\030\001 \002(\t\022\013\n\003num\030\002 \002(\r" |
1474 | | ; |
1475 | | static ::_pbi::once_flag descriptor_table_lua_5fgrammar_2eproto_once; |
1476 | | const ::_pbi::DescriptorTable descriptor_table_lua_5fgrammar_2eproto = { |
1477 | | false, false, 5951, descriptor_table_protodef_lua_5fgrammar_2eproto, |
1478 | | "lua_grammar.proto", |
1479 | | &descriptor_table_lua_5fgrammar_2eproto_once, nullptr, 0, 46, |
1480 | | schemas, file_default_instances, TableStruct_lua_5fgrammar_2eproto::offsets, |
1481 | | file_level_metadata_lua_5fgrammar_2eproto, file_level_enum_descriptors_lua_5fgrammar_2eproto, |
1482 | | file_level_service_descriptors_lua_5fgrammar_2eproto, |
1483 | | }; |
1484 | 1 | PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_lua_5fgrammar_2eproto_getter() { |
1485 | 1 | return &descriptor_table_lua_5fgrammar_2eproto; |
1486 | 1 | } |
1487 | | |
1488 | | // Force running AddDescriptors() at dynamic initialization time. |
1489 | | PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_lua_5fgrammar_2eproto(&descriptor_table_lua_5fgrammar_2eproto); |
1490 | | namespace lua_grammar { |
1491 | | |
1492 | | // =================================================================== |
1493 | | |
1494 | | class Block::_Internal { |
1495 | | public: |
1496 | | using HasBits = decltype(std::declval<Block>()._impl_._has_bits_); |
1497 | | static const ::lua_grammar::Chunk& chunk(const Block* msg); |
1498 | 0 | static void set_has_chunk(HasBits* has_bits) { |
1499 | 0 | (*has_bits)[0] |= 1u; |
1500 | 0 | } |
1501 | 60.8k | static bool MissingRequiredFields(const HasBits& has_bits) { |
1502 | 60.8k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
1503 | 60.8k | } |
1504 | | }; |
1505 | | |
1506 | | const ::lua_grammar::Chunk& |
1507 | 0 | Block::_Internal::chunk(const Block* msg) { |
1508 | 0 | return *msg->_impl_.chunk_; |
1509 | 0 | } |
1510 | | Block::Block(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1511 | | bool is_message_owned) |
1512 | 61.7k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1513 | 61.7k | SharedCtor(arena, is_message_owned); |
1514 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Block) |
1515 | 61.7k | } |
1516 | | Block::Block(const Block& from) |
1517 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1518 | 0 | Block* const _this = this; (void)_this; |
1519 | 0 | new (&_impl_) Impl_{ |
1520 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
1521 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1522 | 0 | , decltype(_impl_.chunk_){nullptr}}; |
1523 | |
|
1524 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1525 | 0 | if (from._internal_has_chunk()) { |
1526 | 0 | _this->_impl_.chunk_ = new ::lua_grammar::Chunk(*from._impl_.chunk_); |
1527 | 0 | } |
1528 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Block) |
1529 | 0 | } |
1530 | | |
1531 | | inline void Block::SharedCtor( |
1532 | 61.7k | ::_pb::Arena* arena, bool is_message_owned) { |
1533 | 61.7k | (void)arena; |
1534 | 61.7k | (void)is_message_owned; |
1535 | 61.7k | new (&_impl_) Impl_{ |
1536 | 61.7k | decltype(_impl_._has_bits_){} |
1537 | 61.7k | , /*decltype(_impl_._cached_size_)*/{} |
1538 | 61.7k | , decltype(_impl_.chunk_){nullptr} |
1539 | 61.7k | }; |
1540 | 61.7k | } |
1541 | | |
1542 | 61.7k | Block::~Block() { |
1543 | | // @@protoc_insertion_point(destructor:lua_grammar.Block) |
1544 | 61.7k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1545 | 0 | (void)arena; |
1546 | 0 | return; |
1547 | 0 | } |
1548 | 61.7k | SharedDtor(); |
1549 | 61.7k | } |
1550 | | |
1551 | 61.7k | inline void Block::SharedDtor() { |
1552 | 61.7k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1553 | 61.7k | if (this != internal_default_instance()) delete _impl_.chunk_; |
1554 | 61.7k | } |
1555 | | |
1556 | 0 | void Block::SetCachedSize(int size) const { |
1557 | 0 | _impl_._cached_size_.Set(size); |
1558 | 0 | } |
1559 | | |
1560 | 2.34k | void Block::Clear() { |
1561 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Block) |
1562 | 2.34k | uint32_t cached_has_bits = 0; |
1563 | | // Prevent compiler warnings about cached_has_bits being unused |
1564 | 2.34k | (void) cached_has_bits; |
1565 | | |
1566 | 2.34k | cached_has_bits = _impl_._has_bits_[0]; |
1567 | 2.34k | if (cached_has_bits & 0x00000001u) { |
1568 | 41 | GOOGLE_DCHECK(_impl_.chunk_ != nullptr); |
1569 | 41 | _impl_.chunk_->Clear(); |
1570 | 41 | } |
1571 | 2.34k | _impl_._has_bits_.Clear(); |
1572 | 2.34k | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1573 | 2.34k | } |
1574 | | |
1575 | 0 | const char* Block::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1576 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1577 | 0 | _Internal::HasBits has_bits{}; |
1578 | 0 | while (!ctx->Done(&ptr)) { |
1579 | 0 | uint32_t tag; |
1580 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
1581 | 0 | switch (tag >> 3) { |
1582 | | // required .lua_grammar.Chunk chunk = 1; |
1583 | 0 | case 1: |
1584 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1585 | 0 | ptr = ctx->ParseMessage(_internal_mutable_chunk(), ptr); |
1586 | 0 | CHK_(ptr); |
1587 | 0 | } else |
1588 | 0 | goto handle_unusual; |
1589 | 0 | continue; |
1590 | 0 | default: |
1591 | 0 | goto handle_unusual; |
1592 | 0 | } // switch |
1593 | 0 | handle_unusual: |
1594 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
1595 | 0 | CHK_(ptr); |
1596 | 0 | ctx->SetLastTag(tag); |
1597 | 0 | goto message_done; |
1598 | 0 | } |
1599 | 0 | ptr = UnknownFieldParse( |
1600 | 0 | tag, |
1601 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1602 | 0 | ptr, ctx); |
1603 | 0 | CHK_(ptr != nullptr); |
1604 | 0 | } // while |
1605 | 0 | message_done: |
1606 | 0 | _impl_._has_bits_.Or(has_bits); |
1607 | 0 | return ptr; |
1608 | 0 | failure: |
1609 | 0 | ptr = nullptr; |
1610 | 0 | goto message_done; |
1611 | 0 | #undef CHK_ |
1612 | 0 | } |
1613 | | |
1614 | | uint8_t* Block::_InternalSerialize( |
1615 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1616 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Block) |
1617 | 0 | uint32_t cached_has_bits = 0; |
1618 | 0 | (void) cached_has_bits; |
1619 | |
|
1620 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1621 | | // required .lua_grammar.Chunk chunk = 1; |
1622 | 0 | if (cached_has_bits & 0x00000001u) { |
1623 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1624 | 0 | InternalWriteMessage(1, _Internal::chunk(this), |
1625 | 0 | _Internal::chunk(this).GetCachedSize(), target, stream); |
1626 | 0 | } |
1627 | |
|
1628 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1629 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1630 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1631 | 0 | } |
1632 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Block) |
1633 | 0 | return target; |
1634 | 0 | } |
1635 | | |
1636 | 0 | size_t Block::ByteSizeLong() const { |
1637 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Block) |
1638 | 0 | size_t total_size = 0; |
1639 | | |
1640 | | // required .lua_grammar.Chunk chunk = 1; |
1641 | 0 | if (_internal_has_chunk()) { |
1642 | 0 | total_size += 1 + |
1643 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1644 | 0 | *_impl_.chunk_); |
1645 | 0 | } |
1646 | 0 | uint32_t cached_has_bits = 0; |
1647 | | // Prevent compiler warnings about cached_has_bits being unused |
1648 | 0 | (void) cached_has_bits; |
1649 | |
|
1650 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
1651 | 0 | } |
1652 | | |
1653 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Block::_class_data_ = { |
1654 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1655 | | Block::MergeImpl |
1656 | | }; |
1657 | 480 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Block::GetClassData() const { return &_class_data_; } |
1658 | | |
1659 | | |
1660 | 160 | void Block::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1661 | 160 | auto* const _this = static_cast<Block*>(&to_msg); |
1662 | 160 | auto& from = static_cast<const Block&>(from_msg); |
1663 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Block) |
1664 | 160 | GOOGLE_DCHECK_NE(&from, _this); |
1665 | 160 | uint32_t cached_has_bits = 0; |
1666 | 160 | (void) cached_has_bits; |
1667 | | |
1668 | 160 | if (from._internal_has_chunk()) { |
1669 | 0 | _this->_internal_mutable_chunk()->::lua_grammar::Chunk::MergeFrom( |
1670 | 0 | from._internal_chunk()); |
1671 | 0 | } |
1672 | 160 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1673 | 160 | } |
1674 | | |
1675 | 0 | void Block::CopyFrom(const Block& from) { |
1676 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Block) |
1677 | 0 | if (&from == this) return; |
1678 | 0 | Clear(); |
1679 | 0 | MergeFrom(from); |
1680 | 0 | } |
1681 | | |
1682 | 60.8k | bool Block::IsInitialized() const { |
1683 | 60.8k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
1684 | 60.8k | if (_internal_has_chunk()) { |
1685 | 60.8k | if (!_impl_.chunk_->IsInitialized()) return false; |
1686 | 60.8k | } |
1687 | 60.8k | return true; |
1688 | 60.8k | } |
1689 | | |
1690 | 0 | void Block::InternalSwap(Block* other) { |
1691 | 0 | using std::swap; |
1692 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1693 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1694 | 0 | swap(_impl_.chunk_, other->_impl_.chunk_); |
1695 | 0 | } |
1696 | | |
1697 | 550k | ::PROTOBUF_NAMESPACE_ID::Metadata Block::GetMetadata() const { |
1698 | 550k | return ::_pbi::AssignDescriptors( |
1699 | 550k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
1700 | 550k | file_level_metadata_lua_5fgrammar_2eproto[0]); |
1701 | 550k | } |
1702 | | |
1703 | | // =================================================================== |
1704 | | |
1705 | | class Chunk::_Internal { |
1706 | | public: |
1707 | | using HasBits = decltype(std::declval<Chunk>()._impl_._has_bits_); |
1708 | | static const ::lua_grammar::LastStatement& laststat(const Chunk* msg); |
1709 | 0 | static void set_has_laststat(HasBits* has_bits) { |
1710 | 0 | (*has_bits)[0] |= 1u; |
1711 | 0 | } |
1712 | | }; |
1713 | | |
1714 | | const ::lua_grammar::LastStatement& |
1715 | 0 | Chunk::_Internal::laststat(const Chunk* msg) { |
1716 | 0 | return *msg->_impl_.laststat_; |
1717 | 0 | } |
1718 | | Chunk::Chunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1719 | | bool is_message_owned) |
1720 | 61.7k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
1721 | 61.7k | SharedCtor(arena, is_message_owned); |
1722 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Chunk) |
1723 | 61.7k | } |
1724 | | Chunk::Chunk(const Chunk& from) |
1725 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
1726 | 0 | Chunk* const _this = this; (void)_this; |
1727 | 0 | new (&_impl_) Impl_{ |
1728 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
1729 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
1730 | 0 | , decltype(_impl_.stat_){from._impl_.stat_} |
1731 | 0 | , decltype(_impl_.laststat_){nullptr}}; |
1732 | |
|
1733 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1734 | 0 | if (from._internal_has_laststat()) { |
1735 | 0 | _this->_impl_.laststat_ = new ::lua_grammar::LastStatement(*from._impl_.laststat_); |
1736 | 0 | } |
1737 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Chunk) |
1738 | 0 | } |
1739 | | |
1740 | | inline void Chunk::SharedCtor( |
1741 | 61.7k | ::_pb::Arena* arena, bool is_message_owned) { |
1742 | 61.7k | (void)arena; |
1743 | 61.7k | (void)is_message_owned; |
1744 | 61.7k | new (&_impl_) Impl_{ |
1745 | 61.7k | decltype(_impl_._has_bits_){} |
1746 | 61.7k | , /*decltype(_impl_._cached_size_)*/{} |
1747 | 61.7k | , decltype(_impl_.stat_){arena} |
1748 | 61.7k | , decltype(_impl_.laststat_){nullptr} |
1749 | 61.7k | }; |
1750 | 61.7k | } |
1751 | | |
1752 | 61.7k | Chunk::~Chunk() { |
1753 | | // @@protoc_insertion_point(destructor:lua_grammar.Chunk) |
1754 | 61.7k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
1755 | 0 | (void)arena; |
1756 | 0 | return; |
1757 | 0 | } |
1758 | 61.7k | SharedDtor(); |
1759 | 61.7k | } |
1760 | | |
1761 | 61.7k | inline void Chunk::SharedDtor() { |
1762 | 61.7k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
1763 | 61.7k | _impl_.stat_.~RepeatedPtrField(); |
1764 | 61.7k | if (this != internal_default_instance()) delete _impl_.laststat_; |
1765 | 61.7k | } |
1766 | | |
1767 | 0 | void Chunk::SetCachedSize(int size) const { |
1768 | 0 | _impl_._cached_size_.Set(size); |
1769 | 0 | } |
1770 | | |
1771 | 361 | void Chunk::Clear() { |
1772 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Chunk) |
1773 | 361 | uint32_t cached_has_bits = 0; |
1774 | | // Prevent compiler warnings about cached_has_bits being unused |
1775 | 361 | (void) cached_has_bits; |
1776 | | |
1777 | 361 | _impl_.stat_.Clear(); |
1778 | 361 | cached_has_bits = _impl_._has_bits_[0]; |
1779 | 361 | if (cached_has_bits & 0x00000001u) { |
1780 | 10 | GOOGLE_DCHECK(_impl_.laststat_ != nullptr); |
1781 | 10 | _impl_.laststat_->Clear(); |
1782 | 10 | } |
1783 | 361 | _impl_._has_bits_.Clear(); |
1784 | 361 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1785 | 361 | } |
1786 | | |
1787 | 0 | const char* Chunk::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
1788 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1789 | 0 | _Internal::HasBits has_bits{}; |
1790 | 0 | while (!ctx->Done(&ptr)) { |
1791 | 0 | uint32_t tag; |
1792 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
1793 | 0 | switch (tag >> 3) { |
1794 | | // repeated .lua_grammar.Statement stat = 1; |
1795 | 0 | case 1: |
1796 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
1797 | 0 | ptr -= 1; |
1798 | 0 | do { |
1799 | 0 | ptr += 1; |
1800 | 0 | ptr = ctx->ParseMessage(_internal_add_stat(), ptr); |
1801 | 0 | CHK_(ptr); |
1802 | 0 | if (!ctx->DataAvailable(ptr)) break; |
1803 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); |
1804 | 0 | } else |
1805 | 0 | goto handle_unusual; |
1806 | 0 | continue; |
1807 | | // optional .lua_grammar.LastStatement laststat = 2; |
1808 | 0 | case 2: |
1809 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
1810 | 0 | ptr = ctx->ParseMessage(_internal_mutable_laststat(), ptr); |
1811 | 0 | CHK_(ptr); |
1812 | 0 | } else |
1813 | 0 | goto handle_unusual; |
1814 | 0 | continue; |
1815 | 0 | default: |
1816 | 0 | goto handle_unusual; |
1817 | 0 | } // switch |
1818 | 0 | handle_unusual: |
1819 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
1820 | 0 | CHK_(ptr); |
1821 | 0 | ctx->SetLastTag(tag); |
1822 | 0 | goto message_done; |
1823 | 0 | } |
1824 | 0 | ptr = UnknownFieldParse( |
1825 | 0 | tag, |
1826 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
1827 | 0 | ptr, ctx); |
1828 | 0 | CHK_(ptr != nullptr); |
1829 | 0 | } // while |
1830 | 0 | message_done: |
1831 | 0 | _impl_._has_bits_.Or(has_bits); |
1832 | 0 | return ptr; |
1833 | 0 | failure: |
1834 | 0 | ptr = nullptr; |
1835 | 0 | goto message_done; |
1836 | 0 | #undef CHK_ |
1837 | 0 | } |
1838 | | |
1839 | | uint8_t* Chunk::_InternalSerialize( |
1840 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
1841 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Chunk) |
1842 | 0 | uint32_t cached_has_bits = 0; |
1843 | 0 | (void) cached_has_bits; |
1844 | | |
1845 | | // repeated .lua_grammar.Statement stat = 1; |
1846 | 0 | for (unsigned i = 0, |
1847 | 0 | n = static_cast<unsigned>(this->_internal_stat_size()); i < n; i++) { |
1848 | 0 | const auto& repfield = this->_internal_stat(i); |
1849 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1850 | 0 | InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); |
1851 | 0 | } |
1852 | |
|
1853 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1854 | | // optional .lua_grammar.LastStatement laststat = 2; |
1855 | 0 | if (cached_has_bits & 0x00000001u) { |
1856 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1857 | 0 | InternalWriteMessage(2, _Internal::laststat(this), |
1858 | 0 | _Internal::laststat(this).GetCachedSize(), target, stream); |
1859 | 0 | } |
1860 | |
|
1861 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
1862 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
1863 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
1864 | 0 | } |
1865 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Chunk) |
1866 | 0 | return target; |
1867 | 0 | } |
1868 | | |
1869 | 0 | size_t Chunk::ByteSizeLong() const { |
1870 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Chunk) |
1871 | 0 | size_t total_size = 0; |
1872 | |
|
1873 | 0 | uint32_t cached_has_bits = 0; |
1874 | | // Prevent compiler warnings about cached_has_bits being unused |
1875 | 0 | (void) cached_has_bits; |
1876 | | |
1877 | | // repeated .lua_grammar.Statement stat = 1; |
1878 | 0 | total_size += 1UL * this->_internal_stat_size(); |
1879 | 0 | for (const auto& msg : this->_impl_.stat_) { |
1880 | 0 | total_size += |
1881 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
1882 | 0 | } |
1883 | | |
1884 | | // optional .lua_grammar.LastStatement laststat = 2; |
1885 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
1886 | 0 | if (cached_has_bits & 0x00000001u) { |
1887 | 0 | total_size += 1 + |
1888 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1889 | 0 | *_impl_.laststat_); |
1890 | 0 | } |
1891 | |
|
1892 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
1893 | 0 | } |
1894 | | |
1895 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Chunk::_class_data_ = { |
1896 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
1897 | | Chunk::MergeImpl |
1898 | | }; |
1899 | 480 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Chunk::GetClassData() const { return &_class_data_; } |
1900 | | |
1901 | | |
1902 | 160 | void Chunk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
1903 | 160 | auto* const _this = static_cast<Chunk*>(&to_msg); |
1904 | 160 | auto& from = static_cast<const Chunk&>(from_msg); |
1905 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Chunk) |
1906 | 160 | GOOGLE_DCHECK_NE(&from, _this); |
1907 | 160 | uint32_t cached_has_bits = 0; |
1908 | 160 | (void) cached_has_bits; |
1909 | | |
1910 | 160 | _this->_impl_.stat_.MergeFrom(from._impl_.stat_); |
1911 | 160 | if (from._internal_has_laststat()) { |
1912 | 0 | _this->_internal_mutable_laststat()->::lua_grammar::LastStatement::MergeFrom( |
1913 | 0 | from._internal_laststat()); |
1914 | 0 | } |
1915 | 160 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
1916 | 160 | } |
1917 | | |
1918 | 0 | void Chunk::CopyFrom(const Chunk& from) { |
1919 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Chunk) |
1920 | 0 | if (&from == this) return; |
1921 | 0 | Clear(); |
1922 | 0 | MergeFrom(from); |
1923 | 0 | } |
1924 | | |
1925 | 60.8k | bool Chunk::IsInitialized() const { |
1926 | 60.8k | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.stat_)) |
1927 | 0 | return false; |
1928 | 60.8k | if (_internal_has_laststat()) { |
1929 | 7.13k | if (!_impl_.laststat_->IsInitialized()) return false; |
1930 | 7.13k | } |
1931 | 60.8k | return true; |
1932 | 60.8k | } |
1933 | | |
1934 | 0 | void Chunk::InternalSwap(Chunk* other) { |
1935 | 0 | using std::swap; |
1936 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
1937 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
1938 | 0 | _impl_.stat_.InternalSwap(&other->_impl_.stat_); |
1939 | 0 | swap(_impl_.laststat_, other->_impl_.laststat_); |
1940 | 0 | } |
1941 | | |
1942 | 594k | ::PROTOBUF_NAMESPACE_ID::Metadata Chunk::GetMetadata() const { |
1943 | 594k | return ::_pbi::AssignDescriptors( |
1944 | 594k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
1945 | 594k | file_level_metadata_lua_5fgrammar_2eproto[1]); |
1946 | 594k | } |
1947 | | |
1948 | | // =================================================================== |
1949 | | |
1950 | | class Statement::_Internal { |
1951 | | public: |
1952 | | using HasBits = decltype(std::declval<Statement>()._impl_._has_bits_); |
1953 | | static const ::lua_grammar::AssignmentList& list(const Statement* msg); |
1954 | | static const ::lua_grammar::FunctionCall& call(const Statement* msg); |
1955 | | static const ::lua_grammar::DoBlock& block(const Statement* msg); |
1956 | | static const ::lua_grammar::WhileCycle& whilecycle(const Statement* msg); |
1957 | | static const ::lua_grammar::RepeatCycle& repeatcycle(const Statement* msg); |
1958 | | static const ::lua_grammar::IfStatement& ifstat(const Statement* msg); |
1959 | | static const ::lua_grammar::ForCycleName& forcyclename(const Statement* msg); |
1960 | | static const ::lua_grammar::ForCycleList& forcyclelist(const Statement* msg); |
1961 | | static const ::lua_grammar::Function& func(const Statement* msg); |
1962 | | static const ::lua_grammar::LocalFunc& localfunc(const Statement* msg); |
1963 | | static const ::lua_grammar::LocalNames& localnames(const Statement* msg); |
1964 | 0 | static void set_has_semicolon(HasBits* has_bits) { |
1965 | 0 | (*has_bits)[0] |= 1u; |
1966 | 0 | } |
1967 | | }; |
1968 | | |
1969 | | const ::lua_grammar::AssignmentList& |
1970 | 0 | Statement::_Internal::list(const Statement* msg) { |
1971 | 0 | return *msg->_impl_.stat_oneof_.list_; |
1972 | 0 | } |
1973 | | const ::lua_grammar::FunctionCall& |
1974 | 0 | Statement::_Internal::call(const Statement* msg) { |
1975 | 0 | return *msg->_impl_.stat_oneof_.call_; |
1976 | 0 | } |
1977 | | const ::lua_grammar::DoBlock& |
1978 | 0 | Statement::_Internal::block(const Statement* msg) { |
1979 | 0 | return *msg->_impl_.stat_oneof_.block_; |
1980 | 0 | } |
1981 | | const ::lua_grammar::WhileCycle& |
1982 | 0 | Statement::_Internal::whilecycle(const Statement* msg) { |
1983 | 0 | return *msg->_impl_.stat_oneof_.whilecycle_; |
1984 | 0 | } |
1985 | | const ::lua_grammar::RepeatCycle& |
1986 | 0 | Statement::_Internal::repeatcycle(const Statement* msg) { |
1987 | 0 | return *msg->_impl_.stat_oneof_.repeatcycle_; |
1988 | 0 | } |
1989 | | const ::lua_grammar::IfStatement& |
1990 | 0 | Statement::_Internal::ifstat(const Statement* msg) { |
1991 | 0 | return *msg->_impl_.stat_oneof_.ifstat_; |
1992 | 0 | } |
1993 | | const ::lua_grammar::ForCycleName& |
1994 | 0 | Statement::_Internal::forcyclename(const Statement* msg) { |
1995 | 0 | return *msg->_impl_.stat_oneof_.forcyclename_; |
1996 | 0 | } |
1997 | | const ::lua_grammar::ForCycleList& |
1998 | 0 | Statement::_Internal::forcyclelist(const Statement* msg) { |
1999 | 0 | return *msg->_impl_.stat_oneof_.forcyclelist_; |
2000 | 0 | } |
2001 | | const ::lua_grammar::Function& |
2002 | 0 | Statement::_Internal::func(const Statement* msg) { |
2003 | 0 | return *msg->_impl_.stat_oneof_.func_; |
2004 | 0 | } |
2005 | | const ::lua_grammar::LocalFunc& |
2006 | 0 | Statement::_Internal::localfunc(const Statement* msg) { |
2007 | 0 | return *msg->_impl_.stat_oneof_.localfunc_; |
2008 | 0 | } |
2009 | | const ::lua_grammar::LocalNames& |
2010 | 0 | Statement::_Internal::localnames(const Statement* msg) { |
2011 | 0 | return *msg->_impl_.stat_oneof_.localnames_; |
2012 | 0 | } |
2013 | 0 | void Statement::set_allocated_list(::lua_grammar::AssignmentList* list) { |
2014 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2015 | 0 | clear_stat_oneof(); |
2016 | 0 | if (list) { |
2017 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2018 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list); |
2019 | 0 | if (message_arena != submessage_arena) { |
2020 | 0 | list = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2021 | 0 | message_arena, list, submessage_arena); |
2022 | 0 | } |
2023 | 0 | set_has_list(); |
2024 | 0 | _impl_.stat_oneof_.list_ = list; |
2025 | 0 | } |
2026 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.list) |
2027 | 0 | } |
2028 | 0 | void Statement::set_allocated_call(::lua_grammar::FunctionCall* call) { |
2029 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2030 | 0 | clear_stat_oneof(); |
2031 | 0 | if (call) { |
2032 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2033 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(call); |
2034 | 0 | if (message_arena != submessage_arena) { |
2035 | 0 | call = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2036 | 0 | message_arena, call, submessage_arena); |
2037 | 0 | } |
2038 | 0 | set_has_call(); |
2039 | 0 | _impl_.stat_oneof_.call_ = call; |
2040 | 0 | } |
2041 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.call) |
2042 | 0 | } |
2043 | 0 | void Statement::set_allocated_block(::lua_grammar::DoBlock* block) { |
2044 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2045 | 0 | clear_stat_oneof(); |
2046 | 0 | if (block) { |
2047 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2048 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(block); |
2049 | 0 | if (message_arena != submessage_arena) { |
2050 | 0 | block = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2051 | 0 | message_arena, block, submessage_arena); |
2052 | 0 | } |
2053 | 0 | set_has_block(); |
2054 | 0 | _impl_.stat_oneof_.block_ = block; |
2055 | 0 | } |
2056 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.block) |
2057 | 0 | } |
2058 | 0 | void Statement::set_allocated_whilecycle(::lua_grammar::WhileCycle* whilecycle) { |
2059 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2060 | 0 | clear_stat_oneof(); |
2061 | 0 | if (whilecycle) { |
2062 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2063 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(whilecycle); |
2064 | 0 | if (message_arena != submessage_arena) { |
2065 | 0 | whilecycle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2066 | 0 | message_arena, whilecycle, submessage_arena); |
2067 | 0 | } |
2068 | 0 | set_has_whilecycle(); |
2069 | 0 | _impl_.stat_oneof_.whilecycle_ = whilecycle; |
2070 | 0 | } |
2071 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.whilecycle) |
2072 | 0 | } |
2073 | 0 | void Statement::set_allocated_repeatcycle(::lua_grammar::RepeatCycle* repeatcycle) { |
2074 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2075 | 0 | clear_stat_oneof(); |
2076 | 0 | if (repeatcycle) { |
2077 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2078 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(repeatcycle); |
2079 | 0 | if (message_arena != submessage_arena) { |
2080 | 0 | repeatcycle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2081 | 0 | message_arena, repeatcycle, submessage_arena); |
2082 | 0 | } |
2083 | 0 | set_has_repeatcycle(); |
2084 | 0 | _impl_.stat_oneof_.repeatcycle_ = repeatcycle; |
2085 | 0 | } |
2086 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.repeatcycle) |
2087 | 0 | } |
2088 | 0 | void Statement::set_allocated_ifstat(::lua_grammar::IfStatement* ifstat) { |
2089 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2090 | 0 | clear_stat_oneof(); |
2091 | 0 | if (ifstat) { |
2092 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2093 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ifstat); |
2094 | 0 | if (message_arena != submessage_arena) { |
2095 | 0 | ifstat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2096 | 0 | message_arena, ifstat, submessage_arena); |
2097 | 0 | } |
2098 | 0 | set_has_ifstat(); |
2099 | 0 | _impl_.stat_oneof_.ifstat_ = ifstat; |
2100 | 0 | } |
2101 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.ifstat) |
2102 | 0 | } |
2103 | 0 | void Statement::set_allocated_forcyclename(::lua_grammar::ForCycleName* forcyclename) { |
2104 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2105 | 0 | clear_stat_oneof(); |
2106 | 0 | if (forcyclename) { |
2107 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2108 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(forcyclename); |
2109 | 0 | if (message_arena != submessage_arena) { |
2110 | 0 | forcyclename = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2111 | 0 | message_arena, forcyclename, submessage_arena); |
2112 | 0 | } |
2113 | 0 | set_has_forcyclename(); |
2114 | 0 | _impl_.stat_oneof_.forcyclename_ = forcyclename; |
2115 | 0 | } |
2116 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.forcyclename) |
2117 | 0 | } |
2118 | 0 | void Statement::set_allocated_forcyclelist(::lua_grammar::ForCycleList* forcyclelist) { |
2119 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2120 | 0 | clear_stat_oneof(); |
2121 | 0 | if (forcyclelist) { |
2122 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2123 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(forcyclelist); |
2124 | 0 | if (message_arena != submessage_arena) { |
2125 | 0 | forcyclelist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2126 | 0 | message_arena, forcyclelist, submessage_arena); |
2127 | 0 | } |
2128 | 0 | set_has_forcyclelist(); |
2129 | 0 | _impl_.stat_oneof_.forcyclelist_ = forcyclelist; |
2130 | 0 | } |
2131 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.forcyclelist) |
2132 | 0 | } |
2133 | 0 | void Statement::set_allocated_func(::lua_grammar::Function* func) { |
2134 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2135 | 0 | clear_stat_oneof(); |
2136 | 0 | if (func) { |
2137 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2138 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(func); |
2139 | 0 | if (message_arena != submessage_arena) { |
2140 | 0 | func = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2141 | 0 | message_arena, func, submessage_arena); |
2142 | 0 | } |
2143 | 0 | set_has_func(); |
2144 | 0 | _impl_.stat_oneof_.func_ = func; |
2145 | 0 | } |
2146 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.func) |
2147 | 0 | } |
2148 | 0 | void Statement::set_allocated_localfunc(::lua_grammar::LocalFunc* localfunc) { |
2149 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2150 | 0 | clear_stat_oneof(); |
2151 | 0 | if (localfunc) { |
2152 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2153 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(localfunc); |
2154 | 0 | if (message_arena != submessage_arena) { |
2155 | 0 | localfunc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2156 | 0 | message_arena, localfunc, submessage_arena); |
2157 | 0 | } |
2158 | 0 | set_has_localfunc(); |
2159 | 0 | _impl_.stat_oneof_.localfunc_ = localfunc; |
2160 | 0 | } |
2161 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.localfunc) |
2162 | 0 | } |
2163 | 0 | void Statement::set_allocated_localnames(::lua_grammar::LocalNames* localnames) { |
2164 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
2165 | 0 | clear_stat_oneof(); |
2166 | 0 | if (localnames) { |
2167 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2168 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(localnames); |
2169 | 0 | if (message_arena != submessage_arena) { |
2170 | 0 | localnames = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2171 | 0 | message_arena, localnames, submessage_arena); |
2172 | 0 | } |
2173 | 0 | set_has_localnames(); |
2174 | 0 | _impl_.stat_oneof_.localnames_ = localnames; |
2175 | 0 | } |
2176 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Statement.localnames) |
2177 | 0 | } |
2178 | | Statement::Statement(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2179 | | bool is_message_owned) |
2180 | 69.1k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
2181 | 69.1k | SharedCtor(arena, is_message_owned); |
2182 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Statement) |
2183 | 69.1k | } |
2184 | | Statement::Statement(const Statement& from) |
2185 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
2186 | 0 | Statement* const _this = this; (void)_this; |
2187 | 0 | new (&_impl_) Impl_{ |
2188 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
2189 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2190 | 0 | , decltype(_impl_.semicolon_){} |
2191 | 0 | , decltype(_impl_.stat_oneof_){} |
2192 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
2193 | |
|
2194 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2195 | 0 | _this->_impl_.semicolon_ = from._impl_.semicolon_; |
2196 | 0 | clear_has_stat_oneof(); |
2197 | 0 | switch (from.stat_oneof_case()) { |
2198 | 0 | case kList: { |
2199 | 0 | _this->_internal_mutable_list()->::lua_grammar::AssignmentList::MergeFrom( |
2200 | 0 | from._internal_list()); |
2201 | 0 | break; |
2202 | 0 | } |
2203 | 0 | case kCall: { |
2204 | 0 | _this->_internal_mutable_call()->::lua_grammar::FunctionCall::MergeFrom( |
2205 | 0 | from._internal_call()); |
2206 | 0 | break; |
2207 | 0 | } |
2208 | 0 | case kBlock: { |
2209 | 0 | _this->_internal_mutable_block()->::lua_grammar::DoBlock::MergeFrom( |
2210 | 0 | from._internal_block()); |
2211 | 0 | break; |
2212 | 0 | } |
2213 | 0 | case kWhilecycle: { |
2214 | 0 | _this->_internal_mutable_whilecycle()->::lua_grammar::WhileCycle::MergeFrom( |
2215 | 0 | from._internal_whilecycle()); |
2216 | 0 | break; |
2217 | 0 | } |
2218 | 0 | case kRepeatcycle: { |
2219 | 0 | _this->_internal_mutable_repeatcycle()->::lua_grammar::RepeatCycle::MergeFrom( |
2220 | 0 | from._internal_repeatcycle()); |
2221 | 0 | break; |
2222 | 0 | } |
2223 | 0 | case kIfstat: { |
2224 | 0 | _this->_internal_mutable_ifstat()->::lua_grammar::IfStatement::MergeFrom( |
2225 | 0 | from._internal_ifstat()); |
2226 | 0 | break; |
2227 | 0 | } |
2228 | 0 | case kForcyclename: { |
2229 | 0 | _this->_internal_mutable_forcyclename()->::lua_grammar::ForCycleName::MergeFrom( |
2230 | 0 | from._internal_forcyclename()); |
2231 | 0 | break; |
2232 | 0 | } |
2233 | 0 | case kForcyclelist: { |
2234 | 0 | _this->_internal_mutable_forcyclelist()->::lua_grammar::ForCycleList::MergeFrom( |
2235 | 0 | from._internal_forcyclelist()); |
2236 | 0 | break; |
2237 | 0 | } |
2238 | 0 | case kFunc: { |
2239 | 0 | _this->_internal_mutable_func()->::lua_grammar::Function::MergeFrom( |
2240 | 0 | from._internal_func()); |
2241 | 0 | break; |
2242 | 0 | } |
2243 | 0 | case kLocalfunc: { |
2244 | 0 | _this->_internal_mutable_localfunc()->::lua_grammar::LocalFunc::MergeFrom( |
2245 | 0 | from._internal_localfunc()); |
2246 | 0 | break; |
2247 | 0 | } |
2248 | 0 | case kLocalnames: { |
2249 | 0 | _this->_internal_mutable_localnames()->::lua_grammar::LocalNames::MergeFrom( |
2250 | 0 | from._internal_localnames()); |
2251 | 0 | break; |
2252 | 0 | } |
2253 | 0 | case STAT_ONEOF_NOT_SET: { |
2254 | 0 | break; |
2255 | 0 | } |
2256 | 0 | } |
2257 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Statement) |
2258 | 0 | } |
2259 | | |
2260 | | inline void Statement::SharedCtor( |
2261 | 69.1k | ::_pb::Arena* arena, bool is_message_owned) { |
2262 | 69.1k | (void)arena; |
2263 | 69.1k | (void)is_message_owned; |
2264 | 69.1k | new (&_impl_) Impl_{ |
2265 | 69.1k | decltype(_impl_._has_bits_){} |
2266 | 69.1k | , /*decltype(_impl_._cached_size_)*/{} |
2267 | 69.1k | , decltype(_impl_.semicolon_){false} |
2268 | 69.1k | , decltype(_impl_.stat_oneof_){} |
2269 | 69.1k | , /*decltype(_impl_._oneof_case_)*/{} |
2270 | 69.1k | }; |
2271 | 69.1k | clear_has_stat_oneof(); |
2272 | 69.1k | } |
2273 | | |
2274 | 69.1k | Statement::~Statement() { |
2275 | | // @@protoc_insertion_point(destructor:lua_grammar.Statement) |
2276 | 69.1k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
2277 | 0 | (void)arena; |
2278 | 0 | return; |
2279 | 0 | } |
2280 | 69.1k | SharedDtor(); |
2281 | 69.1k | } |
2282 | | |
2283 | 69.1k | inline void Statement::SharedDtor() { |
2284 | 69.1k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
2285 | 69.1k | if (has_stat_oneof()) { |
2286 | 55.4k | clear_stat_oneof(); |
2287 | 55.4k | } |
2288 | 69.1k | } |
2289 | | |
2290 | 0 | void Statement::SetCachedSize(int size) const { |
2291 | 0 | _impl_._cached_size_.Set(size); |
2292 | 0 | } |
2293 | | |
2294 | 57.2k | void Statement::clear_stat_oneof() { |
2295 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.Statement) |
2296 | 57.2k | switch (stat_oneof_case()) { |
2297 | 4.46k | case kList: { |
2298 | 4.46k | if (GetArenaForAllocation() == nullptr) { |
2299 | 4.46k | delete _impl_.stat_oneof_.list_; |
2300 | 4.46k | } |
2301 | 4.46k | break; |
2302 | 0 | } |
2303 | 5.55k | case kCall: { |
2304 | 5.55k | if (GetArenaForAllocation() == nullptr) { |
2305 | 5.55k | delete _impl_.stat_oneof_.call_; |
2306 | 5.55k | } |
2307 | 5.55k | break; |
2308 | 0 | } |
2309 | 1.20k | case kBlock: { |
2310 | 1.20k | if (GetArenaForAllocation() == nullptr) { |
2311 | 1.20k | delete _impl_.stat_oneof_.block_; |
2312 | 1.20k | } |
2313 | 1.20k | break; |
2314 | 0 | } |
2315 | 3.09k | case kWhilecycle: { |
2316 | 3.09k | if (GetArenaForAllocation() == nullptr) { |
2317 | 3.09k | delete _impl_.stat_oneof_.whilecycle_; |
2318 | 3.09k | } |
2319 | 3.09k | break; |
2320 | 0 | } |
2321 | 6.39k | case kRepeatcycle: { |
2322 | 6.39k | if (GetArenaForAllocation() == nullptr) { |
2323 | 6.39k | delete _impl_.stat_oneof_.repeatcycle_; |
2324 | 6.39k | } |
2325 | 6.39k | break; |
2326 | 0 | } |
2327 | 3.27k | case kIfstat: { |
2328 | 3.27k | if (GetArenaForAllocation() == nullptr) { |
2329 | 3.27k | delete _impl_.stat_oneof_.ifstat_; |
2330 | 3.27k | } |
2331 | 3.27k | break; |
2332 | 0 | } |
2333 | 1.35k | case kForcyclename: { |
2334 | 1.35k | if (GetArenaForAllocation() == nullptr) { |
2335 | 1.35k | delete _impl_.stat_oneof_.forcyclename_; |
2336 | 1.35k | } |
2337 | 1.35k | break; |
2338 | 0 | } |
2339 | 25.4k | case kForcyclelist: { |
2340 | 25.4k | if (GetArenaForAllocation() == nullptr) { |
2341 | 25.4k | delete _impl_.stat_oneof_.forcyclelist_; |
2342 | 25.4k | } |
2343 | 25.4k | break; |
2344 | 0 | } |
2345 | 2.33k | case kFunc: { |
2346 | 2.33k | if (GetArenaForAllocation() == nullptr) { |
2347 | 2.33k | delete _impl_.stat_oneof_.func_; |
2348 | 2.33k | } |
2349 | 2.33k | break; |
2350 | 0 | } |
2351 | 2.11k | case kLocalfunc: { |
2352 | 2.11k | if (GetArenaForAllocation() == nullptr) { |
2353 | 2.11k | delete _impl_.stat_oneof_.localfunc_; |
2354 | 2.11k | } |
2355 | 2.11k | break; |
2356 | 0 | } |
2357 | 1.95k | case kLocalnames: { |
2358 | 1.95k | if (GetArenaForAllocation() == nullptr) { |
2359 | 1.95k | delete _impl_.stat_oneof_.localnames_; |
2360 | 1.95k | } |
2361 | 1.95k | break; |
2362 | 0 | } |
2363 | 19 | case STAT_ONEOF_NOT_SET: { |
2364 | 19 | break; |
2365 | 0 | } |
2366 | 57.2k | } |
2367 | 57.2k | _impl_._oneof_case_[0] = STAT_ONEOF_NOT_SET; |
2368 | 57.2k | } |
2369 | | |
2370 | | |
2371 | 1.80k | void Statement::Clear() { |
2372 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Statement) |
2373 | 1.80k | uint32_t cached_has_bits = 0; |
2374 | | // Prevent compiler warnings about cached_has_bits being unused |
2375 | 1.80k | (void) cached_has_bits; |
2376 | | |
2377 | 1.80k | _impl_.semicolon_ = false; |
2378 | 1.80k | clear_stat_oneof(); |
2379 | 1.80k | _impl_._has_bits_.Clear(); |
2380 | 1.80k | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2381 | 1.80k | } |
2382 | | |
2383 | 0 | const char* Statement::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
2384 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2385 | 0 | _Internal::HasBits has_bits{}; |
2386 | 0 | while (!ctx->Done(&ptr)) { |
2387 | 0 | uint32_t tag; |
2388 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
2389 | 0 | switch (tag >> 3) { |
2390 | | // .lua_grammar.AssignmentList list = 1; |
2391 | 0 | case 1: |
2392 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
2393 | 0 | ptr = ctx->ParseMessage(_internal_mutable_list(), ptr); |
2394 | 0 | CHK_(ptr); |
2395 | 0 | } else |
2396 | 0 | goto handle_unusual; |
2397 | 0 | continue; |
2398 | | // .lua_grammar.FunctionCall call = 2; |
2399 | 0 | case 2: |
2400 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
2401 | 0 | ptr = ctx->ParseMessage(_internal_mutable_call(), ptr); |
2402 | 0 | CHK_(ptr); |
2403 | 0 | } else |
2404 | 0 | goto handle_unusual; |
2405 | 0 | continue; |
2406 | | // .lua_grammar.DoBlock block = 3; |
2407 | 0 | case 3: |
2408 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
2409 | 0 | ptr = ctx->ParseMessage(_internal_mutable_block(), ptr); |
2410 | 0 | CHK_(ptr); |
2411 | 0 | } else |
2412 | 0 | goto handle_unusual; |
2413 | 0 | continue; |
2414 | | // .lua_grammar.WhileCycle whilecycle = 4; |
2415 | 0 | case 4: |
2416 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { |
2417 | 0 | ptr = ctx->ParseMessage(_internal_mutable_whilecycle(), ptr); |
2418 | 0 | CHK_(ptr); |
2419 | 0 | } else |
2420 | 0 | goto handle_unusual; |
2421 | 0 | continue; |
2422 | | // .lua_grammar.RepeatCycle repeatcycle = 5; |
2423 | 0 | case 5: |
2424 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { |
2425 | 0 | ptr = ctx->ParseMessage(_internal_mutable_repeatcycle(), ptr); |
2426 | 0 | CHK_(ptr); |
2427 | 0 | } else |
2428 | 0 | goto handle_unusual; |
2429 | 0 | continue; |
2430 | | // .lua_grammar.IfStatement ifstat = 6; |
2431 | 0 | case 6: |
2432 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { |
2433 | 0 | ptr = ctx->ParseMessage(_internal_mutable_ifstat(), ptr); |
2434 | 0 | CHK_(ptr); |
2435 | 0 | } else |
2436 | 0 | goto handle_unusual; |
2437 | 0 | continue; |
2438 | | // .lua_grammar.ForCycleName forcyclename = 7; |
2439 | 0 | case 7: |
2440 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { |
2441 | 0 | ptr = ctx->ParseMessage(_internal_mutable_forcyclename(), ptr); |
2442 | 0 | CHK_(ptr); |
2443 | 0 | } else |
2444 | 0 | goto handle_unusual; |
2445 | 0 | continue; |
2446 | | // .lua_grammar.ForCycleList forcyclelist = 8; |
2447 | 0 | case 8: |
2448 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { |
2449 | 0 | ptr = ctx->ParseMessage(_internal_mutable_forcyclelist(), ptr); |
2450 | 0 | CHK_(ptr); |
2451 | 0 | } else |
2452 | 0 | goto handle_unusual; |
2453 | 0 | continue; |
2454 | | // .lua_grammar.Function func = 9; |
2455 | 0 | case 9: |
2456 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { |
2457 | 0 | ptr = ctx->ParseMessage(_internal_mutable_func(), ptr); |
2458 | 0 | CHK_(ptr); |
2459 | 0 | } else |
2460 | 0 | goto handle_unusual; |
2461 | 0 | continue; |
2462 | | // .lua_grammar.LocalFunc localfunc = 10; |
2463 | 0 | case 10: |
2464 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { |
2465 | 0 | ptr = ctx->ParseMessage(_internal_mutable_localfunc(), ptr); |
2466 | 0 | CHK_(ptr); |
2467 | 0 | } else |
2468 | 0 | goto handle_unusual; |
2469 | 0 | continue; |
2470 | | // .lua_grammar.LocalNames localnames = 11; |
2471 | 0 | case 11: |
2472 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { |
2473 | 0 | ptr = ctx->ParseMessage(_internal_mutable_localnames(), ptr); |
2474 | 0 | CHK_(ptr); |
2475 | 0 | } else |
2476 | 0 | goto handle_unusual; |
2477 | 0 | continue; |
2478 | | // optional bool semicolon = 12; |
2479 | 0 | case 12: |
2480 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) { |
2481 | 0 | _Internal::set_has_semicolon(&has_bits); |
2482 | 0 | _impl_.semicolon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
2483 | 0 | CHK_(ptr); |
2484 | 0 | } else |
2485 | 0 | goto handle_unusual; |
2486 | 0 | continue; |
2487 | 0 | default: |
2488 | 0 | goto handle_unusual; |
2489 | 0 | } // switch |
2490 | 0 | handle_unusual: |
2491 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
2492 | 0 | CHK_(ptr); |
2493 | 0 | ctx->SetLastTag(tag); |
2494 | 0 | goto message_done; |
2495 | 0 | } |
2496 | 0 | ptr = UnknownFieldParse( |
2497 | 0 | tag, |
2498 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
2499 | 0 | ptr, ctx); |
2500 | 0 | CHK_(ptr != nullptr); |
2501 | 0 | } // while |
2502 | 0 | message_done: |
2503 | 0 | _impl_._has_bits_.Or(has_bits); |
2504 | 0 | return ptr; |
2505 | 0 | failure: |
2506 | 0 | ptr = nullptr; |
2507 | 0 | goto message_done; |
2508 | 0 | #undef CHK_ |
2509 | 0 | } |
2510 | | |
2511 | | uint8_t* Statement::_InternalSerialize( |
2512 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
2513 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Statement) |
2514 | 0 | uint32_t cached_has_bits = 0; |
2515 | 0 | (void) cached_has_bits; |
2516 | |
|
2517 | 0 | switch (stat_oneof_case()) { |
2518 | 0 | case kList: { |
2519 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2520 | 0 | InternalWriteMessage(1, _Internal::list(this), |
2521 | 0 | _Internal::list(this).GetCachedSize(), target, stream); |
2522 | 0 | break; |
2523 | 0 | } |
2524 | 0 | case kCall: { |
2525 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2526 | 0 | InternalWriteMessage(2, _Internal::call(this), |
2527 | 0 | _Internal::call(this).GetCachedSize(), target, stream); |
2528 | 0 | break; |
2529 | 0 | } |
2530 | 0 | case kBlock: { |
2531 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2532 | 0 | InternalWriteMessage(3, _Internal::block(this), |
2533 | 0 | _Internal::block(this).GetCachedSize(), target, stream); |
2534 | 0 | break; |
2535 | 0 | } |
2536 | 0 | case kWhilecycle: { |
2537 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2538 | 0 | InternalWriteMessage(4, _Internal::whilecycle(this), |
2539 | 0 | _Internal::whilecycle(this).GetCachedSize(), target, stream); |
2540 | 0 | break; |
2541 | 0 | } |
2542 | 0 | case kRepeatcycle: { |
2543 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2544 | 0 | InternalWriteMessage(5, _Internal::repeatcycle(this), |
2545 | 0 | _Internal::repeatcycle(this).GetCachedSize(), target, stream); |
2546 | 0 | break; |
2547 | 0 | } |
2548 | 0 | case kIfstat: { |
2549 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2550 | 0 | InternalWriteMessage(6, _Internal::ifstat(this), |
2551 | 0 | _Internal::ifstat(this).GetCachedSize(), target, stream); |
2552 | 0 | break; |
2553 | 0 | } |
2554 | 0 | case kForcyclename: { |
2555 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2556 | 0 | InternalWriteMessage(7, _Internal::forcyclename(this), |
2557 | 0 | _Internal::forcyclename(this).GetCachedSize(), target, stream); |
2558 | 0 | break; |
2559 | 0 | } |
2560 | 0 | case kForcyclelist: { |
2561 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2562 | 0 | InternalWriteMessage(8, _Internal::forcyclelist(this), |
2563 | 0 | _Internal::forcyclelist(this).GetCachedSize(), target, stream); |
2564 | 0 | break; |
2565 | 0 | } |
2566 | 0 | case kFunc: { |
2567 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2568 | 0 | InternalWriteMessage(9, _Internal::func(this), |
2569 | 0 | _Internal::func(this).GetCachedSize(), target, stream); |
2570 | 0 | break; |
2571 | 0 | } |
2572 | 0 | case kLocalfunc: { |
2573 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2574 | 0 | InternalWriteMessage(10, _Internal::localfunc(this), |
2575 | 0 | _Internal::localfunc(this).GetCachedSize(), target, stream); |
2576 | 0 | break; |
2577 | 0 | } |
2578 | 0 | case kLocalnames: { |
2579 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
2580 | 0 | InternalWriteMessage(11, _Internal::localnames(this), |
2581 | 0 | _Internal::localnames(this).GetCachedSize(), target, stream); |
2582 | 0 | break; |
2583 | 0 | } |
2584 | 0 | default: ; |
2585 | 0 | } |
2586 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2587 | | // optional bool semicolon = 12; |
2588 | 0 | if (cached_has_bits & 0x00000001u) { |
2589 | 0 | target = stream->EnsureSpace(target); |
2590 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray(12, this->_internal_semicolon(), target); |
2591 | 0 | } |
2592 | |
|
2593 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
2594 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
2595 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
2596 | 0 | } |
2597 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Statement) |
2598 | 0 | return target; |
2599 | 0 | } |
2600 | | |
2601 | 0 | size_t Statement::ByteSizeLong() const { |
2602 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Statement) |
2603 | 0 | size_t total_size = 0; |
2604 | |
|
2605 | 0 | uint32_t cached_has_bits = 0; |
2606 | | // Prevent compiler warnings about cached_has_bits being unused |
2607 | 0 | (void) cached_has_bits; |
2608 | | |
2609 | | // optional bool semicolon = 12; |
2610 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
2611 | 0 | if (cached_has_bits & 0x00000001u) { |
2612 | 0 | total_size += 1 + 1; |
2613 | 0 | } |
2614 | |
|
2615 | 0 | switch (stat_oneof_case()) { |
2616 | | // .lua_grammar.AssignmentList list = 1; |
2617 | 0 | case kList: { |
2618 | 0 | total_size += 1 + |
2619 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2620 | 0 | *_impl_.stat_oneof_.list_); |
2621 | 0 | break; |
2622 | 0 | } |
2623 | | // .lua_grammar.FunctionCall call = 2; |
2624 | 0 | case kCall: { |
2625 | 0 | total_size += 1 + |
2626 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2627 | 0 | *_impl_.stat_oneof_.call_); |
2628 | 0 | break; |
2629 | 0 | } |
2630 | | // .lua_grammar.DoBlock block = 3; |
2631 | 0 | case kBlock: { |
2632 | 0 | total_size += 1 + |
2633 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2634 | 0 | *_impl_.stat_oneof_.block_); |
2635 | 0 | break; |
2636 | 0 | } |
2637 | | // .lua_grammar.WhileCycle whilecycle = 4; |
2638 | 0 | case kWhilecycle: { |
2639 | 0 | total_size += 1 + |
2640 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2641 | 0 | *_impl_.stat_oneof_.whilecycle_); |
2642 | 0 | break; |
2643 | 0 | } |
2644 | | // .lua_grammar.RepeatCycle repeatcycle = 5; |
2645 | 0 | case kRepeatcycle: { |
2646 | 0 | total_size += 1 + |
2647 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2648 | 0 | *_impl_.stat_oneof_.repeatcycle_); |
2649 | 0 | break; |
2650 | 0 | } |
2651 | | // .lua_grammar.IfStatement ifstat = 6; |
2652 | 0 | case kIfstat: { |
2653 | 0 | total_size += 1 + |
2654 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2655 | 0 | *_impl_.stat_oneof_.ifstat_); |
2656 | 0 | break; |
2657 | 0 | } |
2658 | | // .lua_grammar.ForCycleName forcyclename = 7; |
2659 | 0 | case kForcyclename: { |
2660 | 0 | total_size += 1 + |
2661 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2662 | 0 | *_impl_.stat_oneof_.forcyclename_); |
2663 | 0 | break; |
2664 | 0 | } |
2665 | | // .lua_grammar.ForCycleList forcyclelist = 8; |
2666 | 0 | case kForcyclelist: { |
2667 | 0 | total_size += 1 + |
2668 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2669 | 0 | *_impl_.stat_oneof_.forcyclelist_); |
2670 | 0 | break; |
2671 | 0 | } |
2672 | | // .lua_grammar.Function func = 9; |
2673 | 0 | case kFunc: { |
2674 | 0 | total_size += 1 + |
2675 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2676 | 0 | *_impl_.stat_oneof_.func_); |
2677 | 0 | break; |
2678 | 0 | } |
2679 | | // .lua_grammar.LocalFunc localfunc = 10; |
2680 | 0 | case kLocalfunc: { |
2681 | 0 | total_size += 1 + |
2682 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2683 | 0 | *_impl_.stat_oneof_.localfunc_); |
2684 | 0 | break; |
2685 | 0 | } |
2686 | | // .lua_grammar.LocalNames localnames = 11; |
2687 | 0 | case kLocalnames: { |
2688 | 0 | total_size += 1 + |
2689 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
2690 | 0 | *_impl_.stat_oneof_.localnames_); |
2691 | 0 | break; |
2692 | 0 | } |
2693 | 0 | case STAT_ONEOF_NOT_SET: { |
2694 | 0 | break; |
2695 | 0 | } |
2696 | 0 | } |
2697 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
2698 | 0 | } |
2699 | | |
2700 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Statement::_class_data_ = { |
2701 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
2702 | | Statement::MergeImpl |
2703 | | }; |
2704 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Statement::GetClassData() const { return &_class_data_; } |
2705 | | |
2706 | | |
2707 | 0 | void Statement::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
2708 | 0 | auto* const _this = static_cast<Statement*>(&to_msg); |
2709 | 0 | auto& from = static_cast<const Statement&>(from_msg); |
2710 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Statement) |
2711 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
2712 | 0 | uint32_t cached_has_bits = 0; |
2713 | 0 | (void) cached_has_bits; |
2714 | |
|
2715 | 0 | if (from._internal_has_semicolon()) { |
2716 | 0 | _this->_internal_set_semicolon(from._internal_semicolon()); |
2717 | 0 | } |
2718 | 0 | switch (from.stat_oneof_case()) { |
2719 | 0 | case kList: { |
2720 | 0 | _this->_internal_mutable_list()->::lua_grammar::AssignmentList::MergeFrom( |
2721 | 0 | from._internal_list()); |
2722 | 0 | break; |
2723 | 0 | } |
2724 | 0 | case kCall: { |
2725 | 0 | _this->_internal_mutable_call()->::lua_grammar::FunctionCall::MergeFrom( |
2726 | 0 | from._internal_call()); |
2727 | 0 | break; |
2728 | 0 | } |
2729 | 0 | case kBlock: { |
2730 | 0 | _this->_internal_mutable_block()->::lua_grammar::DoBlock::MergeFrom( |
2731 | 0 | from._internal_block()); |
2732 | 0 | break; |
2733 | 0 | } |
2734 | 0 | case kWhilecycle: { |
2735 | 0 | _this->_internal_mutable_whilecycle()->::lua_grammar::WhileCycle::MergeFrom( |
2736 | 0 | from._internal_whilecycle()); |
2737 | 0 | break; |
2738 | 0 | } |
2739 | 0 | case kRepeatcycle: { |
2740 | 0 | _this->_internal_mutable_repeatcycle()->::lua_grammar::RepeatCycle::MergeFrom( |
2741 | 0 | from._internal_repeatcycle()); |
2742 | 0 | break; |
2743 | 0 | } |
2744 | 0 | case kIfstat: { |
2745 | 0 | _this->_internal_mutable_ifstat()->::lua_grammar::IfStatement::MergeFrom( |
2746 | 0 | from._internal_ifstat()); |
2747 | 0 | break; |
2748 | 0 | } |
2749 | 0 | case kForcyclename: { |
2750 | 0 | _this->_internal_mutable_forcyclename()->::lua_grammar::ForCycleName::MergeFrom( |
2751 | 0 | from._internal_forcyclename()); |
2752 | 0 | break; |
2753 | 0 | } |
2754 | 0 | case kForcyclelist: { |
2755 | 0 | _this->_internal_mutable_forcyclelist()->::lua_grammar::ForCycleList::MergeFrom( |
2756 | 0 | from._internal_forcyclelist()); |
2757 | 0 | break; |
2758 | 0 | } |
2759 | 0 | case kFunc: { |
2760 | 0 | _this->_internal_mutable_func()->::lua_grammar::Function::MergeFrom( |
2761 | 0 | from._internal_func()); |
2762 | 0 | break; |
2763 | 0 | } |
2764 | 0 | case kLocalfunc: { |
2765 | 0 | _this->_internal_mutable_localfunc()->::lua_grammar::LocalFunc::MergeFrom( |
2766 | 0 | from._internal_localfunc()); |
2767 | 0 | break; |
2768 | 0 | } |
2769 | 0 | case kLocalnames: { |
2770 | 0 | _this->_internal_mutable_localnames()->::lua_grammar::LocalNames::MergeFrom( |
2771 | 0 | from._internal_localnames()); |
2772 | 0 | break; |
2773 | 0 | } |
2774 | 0 | case STAT_ONEOF_NOT_SET: { |
2775 | 0 | break; |
2776 | 0 | } |
2777 | 0 | } |
2778 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2779 | 0 | } |
2780 | | |
2781 | 0 | void Statement::CopyFrom(const Statement& from) { |
2782 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Statement) |
2783 | 0 | if (&from == this) return; |
2784 | 0 | Clear(); |
2785 | 0 | MergeFrom(from); |
2786 | 0 | } |
2787 | | |
2788 | 66.5k | bool Statement::IsInitialized() const { |
2789 | 66.5k | switch (stat_oneof_case()) { |
2790 | 3.79k | case kList: { |
2791 | 3.79k | if (_internal_has_list()) { |
2792 | 3.79k | if (!_impl_.stat_oneof_.list_->IsInitialized()) return false; |
2793 | 3.79k | } |
2794 | 3.79k | break; |
2795 | 3.79k | } |
2796 | 5.03k | case kCall: { |
2797 | 5.03k | if (_internal_has_call()) { |
2798 | 5.03k | if (!_impl_.stat_oneof_.call_->IsInitialized()) return false; |
2799 | 5.03k | } |
2800 | 5.03k | break; |
2801 | 5.03k | } |
2802 | 5.03k | case kBlock: { |
2803 | 1.19k | if (_internal_has_block()) { |
2804 | 1.19k | if (!_impl_.stat_oneof_.block_->IsInitialized()) return false; |
2805 | 1.19k | } |
2806 | 1.19k | break; |
2807 | 1.19k | } |
2808 | 3.07k | case kWhilecycle: { |
2809 | 3.07k | if (_internal_has_whilecycle()) { |
2810 | 3.07k | if (!_impl_.stat_oneof_.whilecycle_->IsInitialized()) return false; |
2811 | 3.07k | } |
2812 | 3.07k | break; |
2813 | 3.07k | } |
2814 | 6.27k | case kRepeatcycle: { |
2815 | 6.27k | if (_internal_has_repeatcycle()) { |
2816 | 6.27k | if (!_impl_.stat_oneof_.repeatcycle_->IsInitialized()) return false; |
2817 | 6.27k | } |
2818 | 6.27k | break; |
2819 | 6.27k | } |
2820 | 6.27k | case kIfstat: { |
2821 | 3.05k | if (_internal_has_ifstat()) { |
2822 | 3.05k | if (!_impl_.stat_oneof_.ifstat_->IsInitialized()) return false; |
2823 | 3.05k | } |
2824 | 3.05k | break; |
2825 | 3.05k | } |
2826 | 3.05k | case kForcyclename: { |
2827 | 1.31k | if (_internal_has_forcyclename()) { |
2828 | 1.31k | if (!_impl_.stat_oneof_.forcyclename_->IsInitialized()) return false; |
2829 | 1.31k | } |
2830 | 1.31k | break; |
2831 | 1.31k | } |
2832 | 24.9k | case kForcyclelist: { |
2833 | 24.9k | if (_internal_has_forcyclelist()) { |
2834 | 24.9k | if (!_impl_.stat_oneof_.forcyclelist_->IsInitialized()) return false; |
2835 | 24.9k | } |
2836 | 24.9k | break; |
2837 | 24.9k | } |
2838 | 24.9k | case kFunc: { |
2839 | 2.21k | if (_internal_has_func()) { |
2840 | 2.21k | if (!_impl_.stat_oneof_.func_->IsInitialized()) return false; |
2841 | 2.21k | } |
2842 | 2.21k | break; |
2843 | 2.21k | } |
2844 | 2.21k | case kLocalfunc: { |
2845 | 1.97k | if (_internal_has_localfunc()) { |
2846 | 1.97k | if (!_impl_.stat_oneof_.localfunc_->IsInitialized()) return false; |
2847 | 1.97k | } |
2848 | 1.97k | break; |
2849 | 1.97k | } |
2850 | 1.97k | case kLocalnames: { |
2851 | 1.93k | if (_internal_has_localnames()) { |
2852 | 1.93k | if (!_impl_.stat_oneof_.localnames_->IsInitialized()) return false; |
2853 | 1.93k | } |
2854 | 1.93k | break; |
2855 | 1.93k | } |
2856 | 11.7k | case STAT_ONEOF_NOT_SET: { |
2857 | 11.7k | break; |
2858 | 1.93k | } |
2859 | 66.5k | } |
2860 | 66.5k | return true; |
2861 | 66.5k | } |
2862 | | |
2863 | 0 | void Statement::InternalSwap(Statement* other) { |
2864 | 0 | using std::swap; |
2865 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
2866 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
2867 | 0 | swap(_impl_.semicolon_, other->_impl_.semicolon_); |
2868 | 0 | swap(_impl_.stat_oneof_, other->_impl_.stat_oneof_); |
2869 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
2870 | 0 | } |
2871 | | |
2872 | 684k | ::PROTOBUF_NAMESPACE_ID::Metadata Statement::GetMetadata() const { |
2873 | 684k | return ::_pbi::AssignDescriptors( |
2874 | 684k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
2875 | 684k | file_level_metadata_lua_5fgrammar_2eproto[2]); |
2876 | 684k | } |
2877 | | |
2878 | | // =================================================================== |
2879 | | |
2880 | | class AssignmentList_VariableList::_Internal { |
2881 | | public: |
2882 | | using HasBits = decltype(std::declval<AssignmentList_VariableList>()._impl_._has_bits_); |
2883 | | static const ::lua_grammar::Variable& var(const AssignmentList_VariableList* msg); |
2884 | 0 | static void set_has_var(HasBits* has_bits) { |
2885 | 0 | (*has_bits)[0] |= 1u; |
2886 | 0 | } |
2887 | 3.79k | static bool MissingRequiredFields(const HasBits& has_bits) { |
2888 | 3.79k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
2889 | 3.79k | } |
2890 | | }; |
2891 | | |
2892 | | const ::lua_grammar::Variable& |
2893 | 0 | AssignmentList_VariableList::_Internal::var(const AssignmentList_VariableList* msg) { |
2894 | 0 | return *msg->_impl_.var_; |
2895 | 0 | } |
2896 | | AssignmentList_VariableList::AssignmentList_VariableList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2897 | | bool is_message_owned) |
2898 | 4.47k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
2899 | 4.47k | SharedCtor(arena, is_message_owned); |
2900 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.AssignmentList.VariableList) |
2901 | 4.47k | } |
2902 | | AssignmentList_VariableList::AssignmentList_VariableList(const AssignmentList_VariableList& from) |
2903 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
2904 | 0 | AssignmentList_VariableList* const _this = this; (void)_this; |
2905 | 0 | new (&_impl_) Impl_{ |
2906 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
2907 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
2908 | 0 | , decltype(_impl_.vars_){from._impl_.vars_} |
2909 | 0 | , decltype(_impl_.var_){nullptr}}; |
2910 | |
|
2911 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
2912 | 0 | if (from._internal_has_var()) { |
2913 | 0 | _this->_impl_.var_ = new ::lua_grammar::Variable(*from._impl_.var_); |
2914 | 0 | } |
2915 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.AssignmentList.VariableList) |
2916 | 0 | } |
2917 | | |
2918 | | inline void AssignmentList_VariableList::SharedCtor( |
2919 | 4.47k | ::_pb::Arena* arena, bool is_message_owned) { |
2920 | 4.47k | (void)arena; |
2921 | 4.47k | (void)is_message_owned; |
2922 | 4.47k | new (&_impl_) Impl_{ |
2923 | 4.47k | decltype(_impl_._has_bits_){} |
2924 | 4.47k | , /*decltype(_impl_._cached_size_)*/{} |
2925 | 4.47k | , decltype(_impl_.vars_){arena} |
2926 | 4.47k | , decltype(_impl_.var_){nullptr} |
2927 | 4.47k | }; |
2928 | 4.47k | } |
2929 | | |
2930 | 4.47k | AssignmentList_VariableList::~AssignmentList_VariableList() { |
2931 | | // @@protoc_insertion_point(destructor:lua_grammar.AssignmentList.VariableList) |
2932 | 4.47k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
2933 | 0 | (void)arena; |
2934 | 0 | return; |
2935 | 0 | } |
2936 | 4.47k | SharedDtor(); |
2937 | 4.47k | } |
2938 | | |
2939 | 4.47k | inline void AssignmentList_VariableList::SharedDtor() { |
2940 | 4.47k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
2941 | 4.47k | _impl_.vars_.~RepeatedPtrField(); |
2942 | 4.47k | if (this != internal_default_instance()) delete _impl_.var_; |
2943 | 4.47k | } |
2944 | | |
2945 | 0 | void AssignmentList_VariableList::SetCachedSize(int size) const { |
2946 | 0 | _impl_._cached_size_.Set(size); |
2947 | 0 | } |
2948 | | |
2949 | 174 | void AssignmentList_VariableList::Clear() { |
2950 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.AssignmentList.VariableList) |
2951 | 174 | uint32_t cached_has_bits = 0; |
2952 | | // Prevent compiler warnings about cached_has_bits being unused |
2953 | 174 | (void) cached_has_bits; |
2954 | | |
2955 | 174 | _impl_.vars_.Clear(); |
2956 | 174 | cached_has_bits = _impl_._has_bits_[0]; |
2957 | 174 | if (cached_has_bits & 0x00000001u) { |
2958 | 0 | GOOGLE_DCHECK(_impl_.var_ != nullptr); |
2959 | 0 | _impl_.var_->Clear(); |
2960 | 0 | } |
2961 | 174 | _impl_._has_bits_.Clear(); |
2962 | 174 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2963 | 174 | } |
2964 | | |
2965 | 0 | const char* AssignmentList_VariableList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
2966 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
2967 | 0 | _Internal::HasBits has_bits{}; |
2968 | 0 | while (!ctx->Done(&ptr)) { |
2969 | 0 | uint32_t tag; |
2970 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
2971 | 0 | switch (tag >> 3) { |
2972 | | // required .lua_grammar.Variable var = 1; |
2973 | 0 | case 1: |
2974 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
2975 | 0 | ptr = ctx->ParseMessage(_internal_mutable_var(), ptr); |
2976 | 0 | CHK_(ptr); |
2977 | 0 | } else |
2978 | 0 | goto handle_unusual; |
2979 | 0 | continue; |
2980 | | // repeated .lua_grammar.Variable vars = 2; |
2981 | 0 | case 2: |
2982 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
2983 | 0 | ptr -= 1; |
2984 | 0 | do { |
2985 | 0 | ptr += 1; |
2986 | 0 | ptr = ctx->ParseMessage(_internal_add_vars(), ptr); |
2987 | 0 | CHK_(ptr); |
2988 | 0 | if (!ctx->DataAvailable(ptr)) break; |
2989 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
2990 | 0 | } else |
2991 | 0 | goto handle_unusual; |
2992 | 0 | continue; |
2993 | 0 | default: |
2994 | 0 | goto handle_unusual; |
2995 | 0 | } // switch |
2996 | 0 | handle_unusual: |
2997 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
2998 | 0 | CHK_(ptr); |
2999 | 0 | ctx->SetLastTag(tag); |
3000 | 0 | goto message_done; |
3001 | 0 | } |
3002 | 0 | ptr = UnknownFieldParse( |
3003 | 0 | tag, |
3004 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
3005 | 0 | ptr, ctx); |
3006 | 0 | CHK_(ptr != nullptr); |
3007 | 0 | } // while |
3008 | 0 | message_done: |
3009 | 0 | _impl_._has_bits_.Or(has_bits); |
3010 | 0 | return ptr; |
3011 | 0 | failure: |
3012 | 0 | ptr = nullptr; |
3013 | 0 | goto message_done; |
3014 | 0 | #undef CHK_ |
3015 | 0 | } |
3016 | | |
3017 | | uint8_t* AssignmentList_VariableList::_InternalSerialize( |
3018 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
3019 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.AssignmentList.VariableList) |
3020 | 0 | uint32_t cached_has_bits = 0; |
3021 | 0 | (void) cached_has_bits; |
3022 | |
|
3023 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
3024 | | // required .lua_grammar.Variable var = 1; |
3025 | 0 | if (cached_has_bits & 0x00000001u) { |
3026 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3027 | 0 | InternalWriteMessage(1, _Internal::var(this), |
3028 | 0 | _Internal::var(this).GetCachedSize(), target, stream); |
3029 | 0 | } |
3030 | | |
3031 | | // repeated .lua_grammar.Variable vars = 2; |
3032 | 0 | for (unsigned i = 0, |
3033 | 0 | n = static_cast<unsigned>(this->_internal_vars_size()); i < n; i++) { |
3034 | 0 | const auto& repfield = this->_internal_vars(i); |
3035 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3036 | 0 | InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); |
3037 | 0 | } |
3038 | |
|
3039 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
3040 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3041 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
3042 | 0 | } |
3043 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.AssignmentList.VariableList) |
3044 | 0 | return target; |
3045 | 0 | } |
3046 | | |
3047 | 0 | size_t AssignmentList_VariableList::ByteSizeLong() const { |
3048 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.AssignmentList.VariableList) |
3049 | 0 | size_t total_size = 0; |
3050 | | |
3051 | | // required .lua_grammar.Variable var = 1; |
3052 | 0 | if (_internal_has_var()) { |
3053 | 0 | total_size += 1 + |
3054 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3055 | 0 | *_impl_.var_); |
3056 | 0 | } |
3057 | 0 | uint32_t cached_has_bits = 0; |
3058 | | // Prevent compiler warnings about cached_has_bits being unused |
3059 | 0 | (void) cached_has_bits; |
3060 | | |
3061 | | // repeated .lua_grammar.Variable vars = 2; |
3062 | 0 | total_size += 1UL * this->_internal_vars_size(); |
3063 | 0 | for (const auto& msg : this->_impl_.vars_) { |
3064 | 0 | total_size += |
3065 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
3066 | 0 | } |
3067 | |
|
3068 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
3069 | 0 | } |
3070 | | |
3071 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AssignmentList_VariableList::_class_data_ = { |
3072 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
3073 | | AssignmentList_VariableList::MergeImpl |
3074 | | }; |
3075 | 261 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AssignmentList_VariableList::GetClassData() const { return &_class_data_; } |
3076 | | |
3077 | | |
3078 | 87 | void AssignmentList_VariableList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
3079 | 87 | auto* const _this = static_cast<AssignmentList_VariableList*>(&to_msg); |
3080 | 87 | auto& from = static_cast<const AssignmentList_VariableList&>(from_msg); |
3081 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.AssignmentList.VariableList) |
3082 | 87 | GOOGLE_DCHECK_NE(&from, _this); |
3083 | 87 | uint32_t cached_has_bits = 0; |
3084 | 87 | (void) cached_has_bits; |
3085 | | |
3086 | 87 | _this->_impl_.vars_.MergeFrom(from._impl_.vars_); |
3087 | 87 | if (from._internal_has_var()) { |
3088 | 0 | _this->_internal_mutable_var()->::lua_grammar::Variable::MergeFrom( |
3089 | 0 | from._internal_var()); |
3090 | 0 | } |
3091 | 87 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
3092 | 87 | } |
3093 | | |
3094 | 0 | void AssignmentList_VariableList::CopyFrom(const AssignmentList_VariableList& from) { |
3095 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.AssignmentList.VariableList) |
3096 | 0 | if (&from == this) return; |
3097 | 0 | Clear(); |
3098 | 0 | MergeFrom(from); |
3099 | 0 | } |
3100 | | |
3101 | 3.79k | bool AssignmentList_VariableList::IsInitialized() const { |
3102 | 3.79k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
3103 | 3.79k | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.vars_)) |
3104 | 0 | return false; |
3105 | 3.79k | if (_internal_has_var()) { |
3106 | 3.79k | if (!_impl_.var_->IsInitialized()) return false; |
3107 | 3.79k | } |
3108 | 3.79k | return true; |
3109 | 3.79k | } |
3110 | | |
3111 | 0 | void AssignmentList_VariableList::InternalSwap(AssignmentList_VariableList* other) { |
3112 | 0 | using std::swap; |
3113 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3114 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
3115 | 0 | _impl_.vars_.InternalSwap(&other->_impl_.vars_); |
3116 | 0 | swap(_impl_.var_, other->_impl_.var_); |
3117 | 0 | } |
3118 | | |
3119 | 67.8k | ::PROTOBUF_NAMESPACE_ID::Metadata AssignmentList_VariableList::GetMetadata() const { |
3120 | 67.8k | return ::_pbi::AssignDescriptors( |
3121 | 67.8k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
3122 | 67.8k | file_level_metadata_lua_5fgrammar_2eproto[3]); |
3123 | 67.8k | } |
3124 | | |
3125 | | // =================================================================== |
3126 | | |
3127 | | class AssignmentList::_Internal { |
3128 | | public: |
3129 | | using HasBits = decltype(std::declval<AssignmentList>()._impl_._has_bits_); |
3130 | | static const ::lua_grammar::AssignmentList_VariableList& varlist(const AssignmentList* msg); |
3131 | 0 | static void set_has_varlist(HasBits* has_bits) { |
3132 | 0 | (*has_bits)[0] |= 1u; |
3133 | 0 | } |
3134 | | static const ::lua_grammar::ExpressionList& explist(const AssignmentList* msg); |
3135 | 0 | static void set_has_explist(HasBits* has_bits) { |
3136 | 0 | (*has_bits)[0] |= 2u; |
3137 | 0 | } |
3138 | 3.79k | static bool MissingRequiredFields(const HasBits& has_bits) { |
3139 | 3.79k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
3140 | 3.79k | } |
3141 | | }; |
3142 | | |
3143 | | const ::lua_grammar::AssignmentList_VariableList& |
3144 | 0 | AssignmentList::_Internal::varlist(const AssignmentList* msg) { |
3145 | 0 | return *msg->_impl_.varlist_; |
3146 | 0 | } |
3147 | | const ::lua_grammar::ExpressionList& |
3148 | 0 | AssignmentList::_Internal::explist(const AssignmentList* msg) { |
3149 | 0 | return *msg->_impl_.explist_; |
3150 | 0 | } |
3151 | | AssignmentList::AssignmentList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3152 | | bool is_message_owned) |
3153 | 4.46k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
3154 | 4.46k | SharedCtor(arena, is_message_owned); |
3155 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.AssignmentList) |
3156 | 4.46k | } |
3157 | | AssignmentList::AssignmentList(const AssignmentList& from) |
3158 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
3159 | 0 | AssignmentList* const _this = this; (void)_this; |
3160 | 0 | new (&_impl_) Impl_{ |
3161 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
3162 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
3163 | 0 | , decltype(_impl_.varlist_){nullptr} |
3164 | 0 | , decltype(_impl_.explist_){nullptr}}; |
3165 | |
|
3166 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
3167 | 0 | if (from._internal_has_varlist()) { |
3168 | 0 | _this->_impl_.varlist_ = new ::lua_grammar::AssignmentList_VariableList(*from._impl_.varlist_); |
3169 | 0 | } |
3170 | 0 | if (from._internal_has_explist()) { |
3171 | 0 | _this->_impl_.explist_ = new ::lua_grammar::ExpressionList(*from._impl_.explist_); |
3172 | 0 | } |
3173 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.AssignmentList) |
3174 | 0 | } |
3175 | | |
3176 | | inline void AssignmentList::SharedCtor( |
3177 | 4.46k | ::_pb::Arena* arena, bool is_message_owned) { |
3178 | 4.46k | (void)arena; |
3179 | 4.46k | (void)is_message_owned; |
3180 | 4.46k | new (&_impl_) Impl_{ |
3181 | 4.46k | decltype(_impl_._has_bits_){} |
3182 | 4.46k | , /*decltype(_impl_._cached_size_)*/{} |
3183 | 4.46k | , decltype(_impl_.varlist_){nullptr} |
3184 | 4.46k | , decltype(_impl_.explist_){nullptr} |
3185 | 4.46k | }; |
3186 | 4.46k | } |
3187 | | |
3188 | 4.46k | AssignmentList::~AssignmentList() { |
3189 | | // @@protoc_insertion_point(destructor:lua_grammar.AssignmentList) |
3190 | 4.46k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
3191 | 0 | (void)arena; |
3192 | 0 | return; |
3193 | 0 | } |
3194 | 4.46k | SharedDtor(); |
3195 | 4.46k | } |
3196 | | |
3197 | 4.46k | inline void AssignmentList::SharedDtor() { |
3198 | 4.46k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
3199 | 4.46k | if (this != internal_default_instance()) delete _impl_.varlist_; |
3200 | 4.46k | if (this != internal_default_instance()) delete _impl_.explist_; |
3201 | 4.46k | } |
3202 | | |
3203 | 0 | void AssignmentList::SetCachedSize(int size) const { |
3204 | 0 | _impl_._cached_size_.Set(size); |
3205 | 0 | } |
3206 | | |
3207 | 0 | void AssignmentList::Clear() { |
3208 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.AssignmentList) |
3209 | 0 | uint32_t cached_has_bits = 0; |
3210 | | // Prevent compiler warnings about cached_has_bits being unused |
3211 | 0 | (void) cached_has_bits; |
3212 | |
|
3213 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
3214 | 0 | if (cached_has_bits & 0x00000003u) { |
3215 | 0 | if (cached_has_bits & 0x00000001u) { |
3216 | 0 | GOOGLE_DCHECK(_impl_.varlist_ != nullptr); |
3217 | 0 | _impl_.varlist_->Clear(); |
3218 | 0 | } |
3219 | 0 | if (cached_has_bits & 0x00000002u) { |
3220 | 0 | GOOGLE_DCHECK(_impl_.explist_ != nullptr); |
3221 | 0 | _impl_.explist_->Clear(); |
3222 | 0 | } |
3223 | 0 | } |
3224 | 0 | _impl_._has_bits_.Clear(); |
3225 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3226 | 0 | } |
3227 | | |
3228 | 0 | const char* AssignmentList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
3229 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3230 | 0 | _Internal::HasBits has_bits{}; |
3231 | 0 | while (!ctx->Done(&ptr)) { |
3232 | 0 | uint32_t tag; |
3233 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
3234 | 0 | switch (tag >> 3) { |
3235 | | // required .lua_grammar.AssignmentList.VariableList varlist = 1; |
3236 | 0 | case 1: |
3237 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
3238 | 0 | ptr = ctx->ParseMessage(_internal_mutable_varlist(), ptr); |
3239 | 0 | CHK_(ptr); |
3240 | 0 | } else |
3241 | 0 | goto handle_unusual; |
3242 | 0 | continue; |
3243 | | // required .lua_grammar.ExpressionList explist = 2; |
3244 | 0 | case 2: |
3245 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
3246 | 0 | ptr = ctx->ParseMessage(_internal_mutable_explist(), ptr); |
3247 | 0 | CHK_(ptr); |
3248 | 0 | } else |
3249 | 0 | goto handle_unusual; |
3250 | 0 | continue; |
3251 | 0 | default: |
3252 | 0 | goto handle_unusual; |
3253 | 0 | } // switch |
3254 | 0 | handle_unusual: |
3255 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
3256 | 0 | CHK_(ptr); |
3257 | 0 | ctx->SetLastTag(tag); |
3258 | 0 | goto message_done; |
3259 | 0 | } |
3260 | 0 | ptr = UnknownFieldParse( |
3261 | 0 | tag, |
3262 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
3263 | 0 | ptr, ctx); |
3264 | 0 | CHK_(ptr != nullptr); |
3265 | 0 | } // while |
3266 | 0 | message_done: |
3267 | 0 | _impl_._has_bits_.Or(has_bits); |
3268 | 0 | return ptr; |
3269 | 0 | failure: |
3270 | 0 | ptr = nullptr; |
3271 | 0 | goto message_done; |
3272 | 0 | #undef CHK_ |
3273 | 0 | } |
3274 | | |
3275 | | uint8_t* AssignmentList::_InternalSerialize( |
3276 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
3277 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.AssignmentList) |
3278 | 0 | uint32_t cached_has_bits = 0; |
3279 | 0 | (void) cached_has_bits; |
3280 | |
|
3281 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
3282 | | // required .lua_grammar.AssignmentList.VariableList varlist = 1; |
3283 | 0 | if (cached_has_bits & 0x00000001u) { |
3284 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3285 | 0 | InternalWriteMessage(1, _Internal::varlist(this), |
3286 | 0 | _Internal::varlist(this).GetCachedSize(), target, stream); |
3287 | 0 | } |
3288 | | |
3289 | | // required .lua_grammar.ExpressionList explist = 2; |
3290 | 0 | if (cached_has_bits & 0x00000002u) { |
3291 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3292 | 0 | InternalWriteMessage(2, _Internal::explist(this), |
3293 | 0 | _Internal::explist(this).GetCachedSize(), target, stream); |
3294 | 0 | } |
3295 | |
|
3296 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
3297 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3298 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
3299 | 0 | } |
3300 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.AssignmentList) |
3301 | 0 | return target; |
3302 | 0 | } |
3303 | | |
3304 | 0 | size_t AssignmentList::RequiredFieldsByteSizeFallback() const { |
3305 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.AssignmentList) |
3306 | 0 | size_t total_size = 0; |
3307 | |
|
3308 | 0 | if (_internal_has_varlist()) { |
3309 | | // required .lua_grammar.AssignmentList.VariableList varlist = 1; |
3310 | 0 | total_size += 1 + |
3311 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3312 | 0 | *_impl_.varlist_); |
3313 | 0 | } |
3314 | |
|
3315 | 0 | if (_internal_has_explist()) { |
3316 | | // required .lua_grammar.ExpressionList explist = 2; |
3317 | 0 | total_size += 1 + |
3318 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3319 | 0 | *_impl_.explist_); |
3320 | 0 | } |
3321 | |
|
3322 | 0 | return total_size; |
3323 | 0 | } |
3324 | 0 | size_t AssignmentList::ByteSizeLong() const { |
3325 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.AssignmentList) |
3326 | 0 | size_t total_size = 0; |
3327 | |
|
3328 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
3329 | | // required .lua_grammar.AssignmentList.VariableList varlist = 1; |
3330 | 0 | total_size += 1 + |
3331 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3332 | 0 | *_impl_.varlist_); |
3333 | | |
3334 | | // required .lua_grammar.ExpressionList explist = 2; |
3335 | 0 | total_size += 1 + |
3336 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3337 | 0 | *_impl_.explist_); |
3338 | |
|
3339 | 0 | } else { |
3340 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
3341 | 0 | } |
3342 | 0 | uint32_t cached_has_bits = 0; |
3343 | | // Prevent compiler warnings about cached_has_bits being unused |
3344 | 0 | (void) cached_has_bits; |
3345 | |
|
3346 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
3347 | 0 | } |
3348 | | |
3349 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AssignmentList::_class_data_ = { |
3350 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
3351 | | AssignmentList::MergeImpl |
3352 | | }; |
3353 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AssignmentList::GetClassData() const { return &_class_data_; } |
3354 | | |
3355 | | |
3356 | 0 | void AssignmentList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
3357 | 0 | auto* const _this = static_cast<AssignmentList*>(&to_msg); |
3358 | 0 | auto& from = static_cast<const AssignmentList&>(from_msg); |
3359 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.AssignmentList) |
3360 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
3361 | 0 | uint32_t cached_has_bits = 0; |
3362 | 0 | (void) cached_has_bits; |
3363 | |
|
3364 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
3365 | 0 | if (cached_has_bits & 0x00000003u) { |
3366 | 0 | if (cached_has_bits & 0x00000001u) { |
3367 | 0 | _this->_internal_mutable_varlist()->::lua_grammar::AssignmentList_VariableList::MergeFrom( |
3368 | 0 | from._internal_varlist()); |
3369 | 0 | } |
3370 | 0 | if (cached_has_bits & 0x00000002u) { |
3371 | 0 | _this->_internal_mutable_explist()->::lua_grammar::ExpressionList::MergeFrom( |
3372 | 0 | from._internal_explist()); |
3373 | 0 | } |
3374 | 0 | } |
3375 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
3376 | 0 | } |
3377 | | |
3378 | 0 | void AssignmentList::CopyFrom(const AssignmentList& from) { |
3379 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.AssignmentList) |
3380 | 0 | if (&from == this) return; |
3381 | 0 | Clear(); |
3382 | 0 | MergeFrom(from); |
3383 | 0 | } |
3384 | | |
3385 | 3.79k | bool AssignmentList::IsInitialized() const { |
3386 | 3.79k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
3387 | 3.79k | if (_internal_has_varlist()) { |
3388 | 3.79k | if (!_impl_.varlist_->IsInitialized()) return false; |
3389 | 3.79k | } |
3390 | 3.79k | if (_internal_has_explist()) { |
3391 | 3.79k | if (!_impl_.explist_->IsInitialized()) return false; |
3392 | 3.79k | } |
3393 | 3.79k | return true; |
3394 | 3.79k | } |
3395 | | |
3396 | 0 | void AssignmentList::InternalSwap(AssignmentList* other) { |
3397 | 0 | using std::swap; |
3398 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3399 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
3400 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
3401 | 0 | PROTOBUF_FIELD_OFFSET(AssignmentList, _impl_.explist_) |
3402 | 0 | + sizeof(AssignmentList::_impl_.explist_) |
3403 | 0 | - PROTOBUF_FIELD_OFFSET(AssignmentList, _impl_.varlist_)>( |
3404 | 0 | reinterpret_cast<char*>(&_impl_.varlist_), |
3405 | 0 | reinterpret_cast<char*>(&other->_impl_.varlist_)); |
3406 | 0 | } |
3407 | | |
3408 | 48.0k | ::PROTOBUF_NAMESPACE_ID::Metadata AssignmentList::GetMetadata() const { |
3409 | 48.0k | return ::_pbi::AssignDescriptors( |
3410 | 48.0k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
3411 | 48.0k | file_level_metadata_lua_5fgrammar_2eproto[4]); |
3412 | 48.0k | } |
3413 | | |
3414 | | // =================================================================== |
3415 | | |
3416 | | class FunctionCall_Args::_Internal { |
3417 | | public: |
3418 | | static const ::lua_grammar::OptionalExpressionList& explist(const FunctionCall_Args* msg); |
3419 | | static const ::lua_grammar::TableConstructor& tableconstructor(const FunctionCall_Args* msg); |
3420 | | }; |
3421 | | |
3422 | | const ::lua_grammar::OptionalExpressionList& |
3423 | 0 | FunctionCall_Args::_Internal::explist(const FunctionCall_Args* msg) { |
3424 | 0 | return *msg->_impl_.args_oneof_.explist_; |
3425 | 0 | } |
3426 | | const ::lua_grammar::TableConstructor& |
3427 | 0 | FunctionCall_Args::_Internal::tableconstructor(const FunctionCall_Args* msg) { |
3428 | 0 | return *msg->_impl_.args_oneof_.tableconstructor_; |
3429 | 0 | } |
3430 | 0 | void FunctionCall_Args::set_allocated_explist(::lua_grammar::OptionalExpressionList* explist) { |
3431 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
3432 | 0 | clear_args_oneof(); |
3433 | 0 | if (explist) { |
3434 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3435 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(explist); |
3436 | 0 | if (message_arena != submessage_arena) { |
3437 | 0 | explist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3438 | 0 | message_arena, explist, submessage_arena); |
3439 | 0 | } |
3440 | 0 | set_has_explist(); |
3441 | 0 | _impl_.args_oneof_.explist_ = explist; |
3442 | 0 | } |
3443 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.Args.explist) |
3444 | 0 | } |
3445 | 0 | void FunctionCall_Args::set_allocated_tableconstructor(::lua_grammar::TableConstructor* tableconstructor) { |
3446 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
3447 | 0 | clear_args_oneof(); |
3448 | 0 | if (tableconstructor) { |
3449 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3450 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tableconstructor); |
3451 | 0 | if (message_arena != submessage_arena) { |
3452 | 0 | tableconstructor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3453 | 0 | message_arena, tableconstructor, submessage_arena); |
3454 | 0 | } |
3455 | 0 | set_has_tableconstructor(); |
3456 | 0 | _impl_.args_oneof_.tableconstructor_ = tableconstructor; |
3457 | 0 | } |
3458 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.Args.tableconstructor) |
3459 | 0 | } |
3460 | | FunctionCall_Args::FunctionCall_Args(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3461 | | bool is_message_owned) |
3462 | 6.30k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
3463 | 6.30k | SharedCtor(arena, is_message_owned); |
3464 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FunctionCall.Args) |
3465 | 6.30k | } |
3466 | | FunctionCall_Args::FunctionCall_Args(const FunctionCall_Args& from) |
3467 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
3468 | 0 | FunctionCall_Args* const _this = this; (void)_this; |
3469 | 0 | new (&_impl_) Impl_{ |
3470 | 0 | decltype(_impl_.args_oneof_){} |
3471 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
3472 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
3473 | |
|
3474 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
3475 | 0 | clear_has_args_oneof(); |
3476 | 0 | switch (from.args_oneof_case()) { |
3477 | 0 | case kExplist: { |
3478 | 0 | _this->_internal_mutable_explist()->::lua_grammar::OptionalExpressionList::MergeFrom( |
3479 | 0 | from._internal_explist()); |
3480 | 0 | break; |
3481 | 0 | } |
3482 | 0 | case kTableconstructor: { |
3483 | 0 | _this->_internal_mutable_tableconstructor()->::lua_grammar::TableConstructor::MergeFrom( |
3484 | 0 | from._internal_tableconstructor()); |
3485 | 0 | break; |
3486 | 0 | } |
3487 | 0 | case kStr: { |
3488 | 0 | _this->_internal_set_str(from._internal_str()); |
3489 | 0 | break; |
3490 | 0 | } |
3491 | 0 | case ARGS_ONEOF_NOT_SET: { |
3492 | 0 | break; |
3493 | 0 | } |
3494 | 0 | } |
3495 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FunctionCall.Args) |
3496 | 0 | } |
3497 | | |
3498 | | inline void FunctionCall_Args::SharedCtor( |
3499 | 6.30k | ::_pb::Arena* arena, bool is_message_owned) { |
3500 | 6.30k | (void)arena; |
3501 | 6.30k | (void)is_message_owned; |
3502 | 6.30k | new (&_impl_) Impl_{ |
3503 | 6.30k | decltype(_impl_.args_oneof_){} |
3504 | 6.30k | , /*decltype(_impl_._cached_size_)*/{} |
3505 | 6.30k | , /*decltype(_impl_._oneof_case_)*/{} |
3506 | 6.30k | }; |
3507 | 6.30k | clear_has_args_oneof(); |
3508 | 6.30k | } |
3509 | | |
3510 | 6.30k | FunctionCall_Args::~FunctionCall_Args() { |
3511 | | // @@protoc_insertion_point(destructor:lua_grammar.FunctionCall.Args) |
3512 | 6.30k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
3513 | 0 | (void)arena; |
3514 | 0 | return; |
3515 | 0 | } |
3516 | 6.30k | SharedDtor(); |
3517 | 6.30k | } |
3518 | | |
3519 | 6.30k | inline void FunctionCall_Args::SharedDtor() { |
3520 | 6.30k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
3521 | 6.30k | if (has_args_oneof()) { |
3522 | 3.65k | clear_args_oneof(); |
3523 | 3.65k | } |
3524 | 6.30k | } |
3525 | | |
3526 | 0 | void FunctionCall_Args::SetCachedSize(int size) const { |
3527 | 0 | _impl_._cached_size_.Set(size); |
3528 | 0 | } |
3529 | | |
3530 | 4.01k | void FunctionCall_Args::clear_args_oneof() { |
3531 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.FunctionCall.Args) |
3532 | 4.01k | switch (args_oneof_case()) { |
3533 | 3.08k | case kExplist: { |
3534 | 3.08k | if (GetArenaForAllocation() == nullptr) { |
3535 | 3.08k | delete _impl_.args_oneof_.explist_; |
3536 | 3.08k | } |
3537 | 3.08k | break; |
3538 | 0 | } |
3539 | 283 | case kTableconstructor: { |
3540 | 283 | if (GetArenaForAllocation() == nullptr) { |
3541 | 283 | delete _impl_.args_oneof_.tableconstructor_; |
3542 | 283 | } |
3543 | 283 | break; |
3544 | 0 | } |
3545 | 286 | case kStr: { |
3546 | 286 | _impl_.args_oneof_.str_.Destroy(); |
3547 | 286 | break; |
3548 | 0 | } |
3549 | 364 | case ARGS_ONEOF_NOT_SET: { |
3550 | 364 | break; |
3551 | 0 | } |
3552 | 4.01k | } |
3553 | 4.01k | _impl_._oneof_case_[0] = ARGS_ONEOF_NOT_SET; |
3554 | 4.01k | } |
3555 | | |
3556 | | |
3557 | 364 | void FunctionCall_Args::Clear() { |
3558 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FunctionCall.Args) |
3559 | 364 | uint32_t cached_has_bits = 0; |
3560 | | // Prevent compiler warnings about cached_has_bits being unused |
3561 | 364 | (void) cached_has_bits; |
3562 | | |
3563 | 364 | clear_args_oneof(); |
3564 | 364 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3565 | 364 | } |
3566 | | |
3567 | 0 | const char* FunctionCall_Args::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
3568 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3569 | 0 | while (!ctx->Done(&ptr)) { |
3570 | 0 | uint32_t tag; |
3571 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
3572 | 0 | switch (tag >> 3) { |
3573 | | // .lua_grammar.OptionalExpressionList explist = 1; |
3574 | 0 | case 1: |
3575 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
3576 | 0 | ptr = ctx->ParseMessage(_internal_mutable_explist(), ptr); |
3577 | 0 | CHK_(ptr); |
3578 | 0 | } else |
3579 | 0 | goto handle_unusual; |
3580 | 0 | continue; |
3581 | | // .lua_grammar.TableConstructor tableconstructor = 2; |
3582 | 0 | case 2: |
3583 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
3584 | 0 | ptr = ctx->ParseMessage(_internal_mutable_tableconstructor(), ptr); |
3585 | 0 | CHK_(ptr); |
3586 | 0 | } else |
3587 | 0 | goto handle_unusual; |
3588 | 0 | continue; |
3589 | | // string str = 3; |
3590 | 0 | case 3: |
3591 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
3592 | 0 | auto str = _internal_mutable_str(); |
3593 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
3594 | 0 | CHK_(ptr); |
3595 | 0 | #ifndef NDEBUG |
3596 | 0 | ::_pbi::VerifyUTF8(str, "lua_grammar.FunctionCall.Args.str"); |
3597 | 0 | #endif // !NDEBUG |
3598 | 0 | } else |
3599 | 0 | goto handle_unusual; |
3600 | 0 | continue; |
3601 | 0 | default: |
3602 | 0 | goto handle_unusual; |
3603 | 0 | } // switch |
3604 | 0 | handle_unusual: |
3605 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
3606 | 0 | CHK_(ptr); |
3607 | 0 | ctx->SetLastTag(tag); |
3608 | 0 | goto message_done; |
3609 | 0 | } |
3610 | 0 | ptr = UnknownFieldParse( |
3611 | 0 | tag, |
3612 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
3613 | 0 | ptr, ctx); |
3614 | 0 | CHK_(ptr != nullptr); |
3615 | 0 | } // while |
3616 | 0 | message_done: |
3617 | 0 | return ptr; |
3618 | 0 | failure: |
3619 | 0 | ptr = nullptr; |
3620 | 0 | goto message_done; |
3621 | 0 | #undef CHK_ |
3622 | 0 | } |
3623 | | |
3624 | | uint8_t* FunctionCall_Args::_InternalSerialize( |
3625 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
3626 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FunctionCall.Args) |
3627 | 0 | uint32_t cached_has_bits = 0; |
3628 | 0 | (void) cached_has_bits; |
3629 | |
|
3630 | 0 | switch (args_oneof_case()) { |
3631 | 0 | case kExplist: { |
3632 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3633 | 0 | InternalWriteMessage(1, _Internal::explist(this), |
3634 | 0 | _Internal::explist(this).GetCachedSize(), target, stream); |
3635 | 0 | break; |
3636 | 0 | } |
3637 | 0 | case kTableconstructor: { |
3638 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3639 | 0 | InternalWriteMessage(2, _Internal::tableconstructor(this), |
3640 | 0 | _Internal::tableconstructor(this).GetCachedSize(), target, stream); |
3641 | 0 | break; |
3642 | 0 | } |
3643 | 0 | case kStr: { |
3644 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
3645 | 0 | this->_internal_str().data(), static_cast<int>(this->_internal_str().length()), |
3646 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
3647 | 0 | "lua_grammar.FunctionCall.Args.str"); |
3648 | 0 | target = stream->WriteStringMaybeAliased( |
3649 | 0 | 3, this->_internal_str(), target); |
3650 | 0 | break; |
3651 | 0 | } |
3652 | 0 | default: ; |
3653 | 0 | } |
3654 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
3655 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3656 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
3657 | 0 | } |
3658 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FunctionCall.Args) |
3659 | 0 | return target; |
3660 | 0 | } |
3661 | | |
3662 | 0 | size_t FunctionCall_Args::ByteSizeLong() const { |
3663 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FunctionCall.Args) |
3664 | 0 | size_t total_size = 0; |
3665 | |
|
3666 | 0 | uint32_t cached_has_bits = 0; |
3667 | | // Prevent compiler warnings about cached_has_bits being unused |
3668 | 0 | (void) cached_has_bits; |
3669 | |
|
3670 | 0 | switch (args_oneof_case()) { |
3671 | | // .lua_grammar.OptionalExpressionList explist = 1; |
3672 | 0 | case kExplist: { |
3673 | 0 | total_size += 1 + |
3674 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3675 | 0 | *_impl_.args_oneof_.explist_); |
3676 | 0 | break; |
3677 | 0 | } |
3678 | | // .lua_grammar.TableConstructor tableconstructor = 2; |
3679 | 0 | case kTableconstructor: { |
3680 | 0 | total_size += 1 + |
3681 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3682 | 0 | *_impl_.args_oneof_.tableconstructor_); |
3683 | 0 | break; |
3684 | 0 | } |
3685 | | // string str = 3; |
3686 | 0 | case kStr: { |
3687 | 0 | total_size += 1 + |
3688 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
3689 | 0 | this->_internal_str()); |
3690 | 0 | break; |
3691 | 0 | } |
3692 | 0 | case ARGS_ONEOF_NOT_SET: { |
3693 | 0 | break; |
3694 | 0 | } |
3695 | 0 | } |
3696 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
3697 | 0 | } |
3698 | | |
3699 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionCall_Args::_class_data_ = { |
3700 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
3701 | | FunctionCall_Args::MergeImpl |
3702 | | }; |
3703 | 546 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionCall_Args::GetClassData() const { return &_class_data_; } |
3704 | | |
3705 | | |
3706 | 182 | void FunctionCall_Args::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
3707 | 182 | auto* const _this = static_cast<FunctionCall_Args*>(&to_msg); |
3708 | 182 | auto& from = static_cast<const FunctionCall_Args&>(from_msg); |
3709 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FunctionCall.Args) |
3710 | 182 | GOOGLE_DCHECK_NE(&from, _this); |
3711 | 182 | uint32_t cached_has_bits = 0; |
3712 | 182 | (void) cached_has_bits; |
3713 | | |
3714 | 182 | switch (from.args_oneof_case()) { |
3715 | 0 | case kExplist: { |
3716 | 0 | _this->_internal_mutable_explist()->::lua_grammar::OptionalExpressionList::MergeFrom( |
3717 | 0 | from._internal_explist()); |
3718 | 0 | break; |
3719 | 0 | } |
3720 | 0 | case kTableconstructor: { |
3721 | 0 | _this->_internal_mutable_tableconstructor()->::lua_grammar::TableConstructor::MergeFrom( |
3722 | 0 | from._internal_tableconstructor()); |
3723 | 0 | break; |
3724 | 0 | } |
3725 | 0 | case kStr: { |
3726 | 0 | _this->_internal_set_str(from._internal_str()); |
3727 | 0 | break; |
3728 | 0 | } |
3729 | 182 | case ARGS_ONEOF_NOT_SET: { |
3730 | 182 | break; |
3731 | 0 | } |
3732 | 182 | } |
3733 | 182 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
3734 | 182 | } |
3735 | | |
3736 | 0 | void FunctionCall_Args::CopyFrom(const FunctionCall_Args& from) { |
3737 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FunctionCall.Args) |
3738 | 0 | if (&from == this) return; |
3739 | 0 | Clear(); |
3740 | 0 | MergeFrom(from); |
3741 | 0 | } |
3742 | | |
3743 | 5.45k | bool FunctionCall_Args::IsInitialized() const { |
3744 | 5.45k | switch (args_oneof_case()) { |
3745 | 2.87k | case kExplist: { |
3746 | 2.87k | if (_internal_has_explist()) { |
3747 | 2.87k | if (!_impl_.args_oneof_.explist_->IsInitialized()) return false; |
3748 | 2.87k | } |
3749 | 2.87k | break; |
3750 | 2.87k | } |
3751 | 2.87k | case kTableconstructor: { |
3752 | 281 | if (_internal_has_tableconstructor()) { |
3753 | 281 | if (!_impl_.args_oneof_.tableconstructor_->IsInitialized()) return false; |
3754 | 281 | } |
3755 | 281 | break; |
3756 | 281 | } |
3757 | 281 | case kStr: { |
3758 | 139 | break; |
3759 | 281 | } |
3760 | 2.15k | case ARGS_ONEOF_NOT_SET: { |
3761 | 2.15k | break; |
3762 | 281 | } |
3763 | 5.45k | } |
3764 | 5.45k | return true; |
3765 | 5.45k | } |
3766 | | |
3767 | 0 | void FunctionCall_Args::InternalSwap(FunctionCall_Args* other) { |
3768 | 0 | using std::swap; |
3769 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
3770 | 0 | swap(_impl_.args_oneof_, other->_impl_.args_oneof_); |
3771 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
3772 | 0 | } |
3773 | | |
3774 | 43.3k | ::PROTOBUF_NAMESPACE_ID::Metadata FunctionCall_Args::GetMetadata() const { |
3775 | 43.3k | return ::_pbi::AssignDescriptors( |
3776 | 43.3k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
3777 | 43.3k | file_level_metadata_lua_5fgrammar_2eproto[5]); |
3778 | 43.3k | } |
3779 | | |
3780 | | // =================================================================== |
3781 | | |
3782 | | class FunctionCall_PrefixArgs::_Internal { |
3783 | | public: |
3784 | | using HasBits = decltype(std::declval<FunctionCall_PrefixArgs>()._impl_._has_bits_); |
3785 | | static const ::lua_grammar::PrefixExpression& prefixexp(const FunctionCall_PrefixArgs* msg); |
3786 | 0 | static void set_has_prefixexp(HasBits* has_bits) { |
3787 | 0 | (*has_bits)[0] |= 1u; |
3788 | 0 | } |
3789 | | static const ::lua_grammar::FunctionCall_Args& args(const FunctionCall_PrefixArgs* msg); |
3790 | 0 | static void set_has_args(HasBits* has_bits) { |
3791 | 0 | (*has_bits)[0] |= 2u; |
3792 | 0 | } |
3793 | 3.66k | static bool MissingRequiredFields(const HasBits& has_bits) { |
3794 | 3.66k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
3795 | 3.66k | } |
3796 | | }; |
3797 | | |
3798 | | const ::lua_grammar::PrefixExpression& |
3799 | 0 | FunctionCall_PrefixArgs::_Internal::prefixexp(const FunctionCall_PrefixArgs* msg) { |
3800 | 0 | return *msg->_impl_.prefixexp_; |
3801 | 0 | } |
3802 | | const ::lua_grammar::FunctionCall_Args& |
3803 | 0 | FunctionCall_PrefixArgs::_Internal::args(const FunctionCall_PrefixArgs* msg) { |
3804 | 0 | return *msg->_impl_.args_; |
3805 | 0 | } |
3806 | | FunctionCall_PrefixArgs::FunctionCall_PrefixArgs(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3807 | | bool is_message_owned) |
3808 | 3.87k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
3809 | 3.87k | SharedCtor(arena, is_message_owned); |
3810 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FunctionCall.PrefixArgs) |
3811 | 3.87k | } |
3812 | | FunctionCall_PrefixArgs::FunctionCall_PrefixArgs(const FunctionCall_PrefixArgs& from) |
3813 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
3814 | 0 | FunctionCall_PrefixArgs* const _this = this; (void)_this; |
3815 | 0 | new (&_impl_) Impl_{ |
3816 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
3817 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
3818 | 0 | , decltype(_impl_.prefixexp_){nullptr} |
3819 | 0 | , decltype(_impl_.args_){nullptr}}; |
3820 | |
|
3821 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
3822 | 0 | if (from._internal_has_prefixexp()) { |
3823 | 0 | _this->_impl_.prefixexp_ = new ::lua_grammar::PrefixExpression(*from._impl_.prefixexp_); |
3824 | 0 | } |
3825 | 0 | if (from._internal_has_args()) { |
3826 | 0 | _this->_impl_.args_ = new ::lua_grammar::FunctionCall_Args(*from._impl_.args_); |
3827 | 0 | } |
3828 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FunctionCall.PrefixArgs) |
3829 | 0 | } |
3830 | | |
3831 | | inline void FunctionCall_PrefixArgs::SharedCtor( |
3832 | 3.87k | ::_pb::Arena* arena, bool is_message_owned) { |
3833 | 3.87k | (void)arena; |
3834 | 3.87k | (void)is_message_owned; |
3835 | 3.87k | new (&_impl_) Impl_{ |
3836 | 3.87k | decltype(_impl_._has_bits_){} |
3837 | 3.87k | , /*decltype(_impl_._cached_size_)*/{} |
3838 | 3.87k | , decltype(_impl_.prefixexp_){nullptr} |
3839 | 3.87k | , decltype(_impl_.args_){nullptr} |
3840 | 3.87k | }; |
3841 | 3.87k | } |
3842 | | |
3843 | 3.87k | FunctionCall_PrefixArgs::~FunctionCall_PrefixArgs() { |
3844 | | // @@protoc_insertion_point(destructor:lua_grammar.FunctionCall.PrefixArgs) |
3845 | 3.87k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
3846 | 0 | (void)arena; |
3847 | 0 | return; |
3848 | 0 | } |
3849 | 3.87k | SharedDtor(); |
3850 | 3.87k | } |
3851 | | |
3852 | 3.87k | inline void FunctionCall_PrefixArgs::SharedDtor() { |
3853 | 3.87k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
3854 | 3.87k | if (this != internal_default_instance()) delete _impl_.prefixexp_; |
3855 | 3.87k | if (this != internal_default_instance()) delete _impl_.args_; |
3856 | 3.87k | } |
3857 | | |
3858 | 0 | void FunctionCall_PrefixArgs::SetCachedSize(int size) const { |
3859 | 0 | _impl_._cached_size_.Set(size); |
3860 | 0 | } |
3861 | | |
3862 | 0 | void FunctionCall_PrefixArgs::Clear() { |
3863 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FunctionCall.PrefixArgs) |
3864 | 0 | uint32_t cached_has_bits = 0; |
3865 | | // Prevent compiler warnings about cached_has_bits being unused |
3866 | 0 | (void) cached_has_bits; |
3867 | |
|
3868 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
3869 | 0 | if (cached_has_bits & 0x00000003u) { |
3870 | 0 | if (cached_has_bits & 0x00000001u) { |
3871 | 0 | GOOGLE_DCHECK(_impl_.prefixexp_ != nullptr); |
3872 | 0 | _impl_.prefixexp_->Clear(); |
3873 | 0 | } |
3874 | 0 | if (cached_has_bits & 0x00000002u) { |
3875 | 0 | GOOGLE_DCHECK(_impl_.args_ != nullptr); |
3876 | 0 | _impl_.args_->Clear(); |
3877 | 0 | } |
3878 | 0 | } |
3879 | 0 | _impl_._has_bits_.Clear(); |
3880 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3881 | 0 | } |
3882 | | |
3883 | 0 | const char* FunctionCall_PrefixArgs::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
3884 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
3885 | 0 | _Internal::HasBits has_bits{}; |
3886 | 0 | while (!ctx->Done(&ptr)) { |
3887 | 0 | uint32_t tag; |
3888 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
3889 | 0 | switch (tag >> 3) { |
3890 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
3891 | 0 | case 1: |
3892 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
3893 | 0 | ptr = ctx->ParseMessage(_internal_mutable_prefixexp(), ptr); |
3894 | 0 | CHK_(ptr); |
3895 | 0 | } else |
3896 | 0 | goto handle_unusual; |
3897 | 0 | continue; |
3898 | | // required .lua_grammar.FunctionCall.Args args = 2; |
3899 | 0 | case 2: |
3900 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
3901 | 0 | ptr = ctx->ParseMessage(_internal_mutable_args(), ptr); |
3902 | 0 | CHK_(ptr); |
3903 | 0 | } else |
3904 | 0 | goto handle_unusual; |
3905 | 0 | continue; |
3906 | 0 | default: |
3907 | 0 | goto handle_unusual; |
3908 | 0 | } // switch |
3909 | 0 | handle_unusual: |
3910 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
3911 | 0 | CHK_(ptr); |
3912 | 0 | ctx->SetLastTag(tag); |
3913 | 0 | goto message_done; |
3914 | 0 | } |
3915 | 0 | ptr = UnknownFieldParse( |
3916 | 0 | tag, |
3917 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
3918 | 0 | ptr, ctx); |
3919 | 0 | CHK_(ptr != nullptr); |
3920 | 0 | } // while |
3921 | 0 | message_done: |
3922 | 0 | _impl_._has_bits_.Or(has_bits); |
3923 | 0 | return ptr; |
3924 | 0 | failure: |
3925 | 0 | ptr = nullptr; |
3926 | 0 | goto message_done; |
3927 | 0 | #undef CHK_ |
3928 | 0 | } |
3929 | | |
3930 | | uint8_t* FunctionCall_PrefixArgs::_InternalSerialize( |
3931 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
3932 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FunctionCall.PrefixArgs) |
3933 | 0 | uint32_t cached_has_bits = 0; |
3934 | 0 | (void) cached_has_bits; |
3935 | |
|
3936 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
3937 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
3938 | 0 | if (cached_has_bits & 0x00000001u) { |
3939 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3940 | 0 | InternalWriteMessage(1, _Internal::prefixexp(this), |
3941 | 0 | _Internal::prefixexp(this).GetCachedSize(), target, stream); |
3942 | 0 | } |
3943 | | |
3944 | | // required .lua_grammar.FunctionCall.Args args = 2; |
3945 | 0 | if (cached_has_bits & 0x00000002u) { |
3946 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
3947 | 0 | InternalWriteMessage(2, _Internal::args(this), |
3948 | 0 | _Internal::args(this).GetCachedSize(), target, stream); |
3949 | 0 | } |
3950 | |
|
3951 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
3952 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
3953 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
3954 | 0 | } |
3955 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FunctionCall.PrefixArgs) |
3956 | 0 | return target; |
3957 | 0 | } |
3958 | | |
3959 | 0 | size_t FunctionCall_PrefixArgs::RequiredFieldsByteSizeFallback() const { |
3960 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.FunctionCall.PrefixArgs) |
3961 | 0 | size_t total_size = 0; |
3962 | |
|
3963 | 0 | if (_internal_has_prefixexp()) { |
3964 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
3965 | 0 | total_size += 1 + |
3966 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3967 | 0 | *_impl_.prefixexp_); |
3968 | 0 | } |
3969 | |
|
3970 | 0 | if (_internal_has_args()) { |
3971 | | // required .lua_grammar.FunctionCall.Args args = 2; |
3972 | 0 | total_size += 1 + |
3973 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3974 | 0 | *_impl_.args_); |
3975 | 0 | } |
3976 | |
|
3977 | 0 | return total_size; |
3978 | 0 | } |
3979 | 0 | size_t FunctionCall_PrefixArgs::ByteSizeLong() const { |
3980 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FunctionCall.PrefixArgs) |
3981 | 0 | size_t total_size = 0; |
3982 | |
|
3983 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
3984 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
3985 | 0 | total_size += 1 + |
3986 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3987 | 0 | *_impl_.prefixexp_); |
3988 | | |
3989 | | // required .lua_grammar.FunctionCall.Args args = 2; |
3990 | 0 | total_size += 1 + |
3991 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
3992 | 0 | *_impl_.args_); |
3993 | |
|
3994 | 0 | } else { |
3995 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
3996 | 0 | } |
3997 | 0 | uint32_t cached_has_bits = 0; |
3998 | | // Prevent compiler warnings about cached_has_bits being unused |
3999 | 0 | (void) cached_has_bits; |
4000 | |
|
4001 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
4002 | 0 | } |
4003 | | |
4004 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionCall_PrefixArgs::_class_data_ = { |
4005 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
4006 | | FunctionCall_PrefixArgs::MergeImpl |
4007 | | }; |
4008 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionCall_PrefixArgs::GetClassData() const { return &_class_data_; } |
4009 | | |
4010 | | |
4011 | 0 | void FunctionCall_PrefixArgs::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
4012 | 0 | auto* const _this = static_cast<FunctionCall_PrefixArgs*>(&to_msg); |
4013 | 0 | auto& from = static_cast<const FunctionCall_PrefixArgs&>(from_msg); |
4014 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FunctionCall.PrefixArgs) |
4015 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
4016 | 0 | uint32_t cached_has_bits = 0; |
4017 | 0 | (void) cached_has_bits; |
4018 | |
|
4019 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
4020 | 0 | if (cached_has_bits & 0x00000003u) { |
4021 | 0 | if (cached_has_bits & 0x00000001u) { |
4022 | 0 | _this->_internal_mutable_prefixexp()->::lua_grammar::PrefixExpression::MergeFrom( |
4023 | 0 | from._internal_prefixexp()); |
4024 | 0 | } |
4025 | 0 | if (cached_has_bits & 0x00000002u) { |
4026 | 0 | _this->_internal_mutable_args()->::lua_grammar::FunctionCall_Args::MergeFrom( |
4027 | 0 | from._internal_args()); |
4028 | 0 | } |
4029 | 0 | } |
4030 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4031 | 0 | } |
4032 | | |
4033 | 0 | void FunctionCall_PrefixArgs::CopyFrom(const FunctionCall_PrefixArgs& from) { |
4034 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FunctionCall.PrefixArgs) |
4035 | 0 | if (&from == this) return; |
4036 | 0 | Clear(); |
4037 | 0 | MergeFrom(from); |
4038 | 0 | } |
4039 | | |
4040 | 3.66k | bool FunctionCall_PrefixArgs::IsInitialized() const { |
4041 | 3.66k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
4042 | 3.66k | if (_internal_has_prefixexp()) { |
4043 | 3.66k | if (!_impl_.prefixexp_->IsInitialized()) return false; |
4044 | 3.66k | } |
4045 | 3.66k | if (_internal_has_args()) { |
4046 | 3.66k | if (!_impl_.args_->IsInitialized()) return false; |
4047 | 3.66k | } |
4048 | 3.66k | return true; |
4049 | 3.66k | } |
4050 | | |
4051 | 0 | void FunctionCall_PrefixArgs::InternalSwap(FunctionCall_PrefixArgs* other) { |
4052 | 0 | using std::swap; |
4053 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4054 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
4055 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
4056 | 0 | PROTOBUF_FIELD_OFFSET(FunctionCall_PrefixArgs, _impl_.args_) |
4057 | 0 | + sizeof(FunctionCall_PrefixArgs::_impl_.args_) |
4058 | 0 | - PROTOBUF_FIELD_OFFSET(FunctionCall_PrefixArgs, _impl_.prefixexp_)>( |
4059 | 0 | reinterpret_cast<char*>(&_impl_.prefixexp_), |
4060 | 0 | reinterpret_cast<char*>(&other->_impl_.prefixexp_)); |
4061 | 0 | } |
4062 | | |
4063 | 45.1k | ::PROTOBUF_NAMESPACE_ID::Metadata FunctionCall_PrefixArgs::GetMetadata() const { |
4064 | 45.1k | return ::_pbi::AssignDescriptors( |
4065 | 45.1k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
4066 | 45.1k | file_level_metadata_lua_5fgrammar_2eproto[6]); |
4067 | 45.1k | } |
4068 | | |
4069 | | // =================================================================== |
4070 | | |
4071 | | class FunctionCall_PrefixNamedArgs::_Internal { |
4072 | | public: |
4073 | | using HasBits = decltype(std::declval<FunctionCall_PrefixNamedArgs>()._impl_._has_bits_); |
4074 | | static const ::lua_grammar::PrefixExpression& prefixexp(const FunctionCall_PrefixNamedArgs* msg); |
4075 | 0 | static void set_has_prefixexp(HasBits* has_bits) { |
4076 | 0 | (*has_bits)[0] |= 1u; |
4077 | 0 | } |
4078 | | static const ::lua_grammar::Name& name(const FunctionCall_PrefixNamedArgs* msg); |
4079 | 0 | static void set_has_name(HasBits* has_bits) { |
4080 | 0 | (*has_bits)[0] |= 2u; |
4081 | 0 | } |
4082 | | static const ::lua_grammar::FunctionCall_Args& args(const FunctionCall_PrefixNamedArgs* msg); |
4083 | 0 | static void set_has_args(HasBits* has_bits) { |
4084 | 0 | (*has_bits)[0] |= 4u; |
4085 | 0 | } |
4086 | 1.78k | static bool MissingRequiredFields(const HasBits& has_bits) { |
4087 | 1.78k | return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; |
4088 | 1.78k | } |
4089 | | }; |
4090 | | |
4091 | | const ::lua_grammar::PrefixExpression& |
4092 | 0 | FunctionCall_PrefixNamedArgs::_Internal::prefixexp(const FunctionCall_PrefixNamedArgs* msg) { |
4093 | 0 | return *msg->_impl_.prefixexp_; |
4094 | 0 | } |
4095 | | const ::lua_grammar::Name& |
4096 | 0 | FunctionCall_PrefixNamedArgs::_Internal::name(const FunctionCall_PrefixNamedArgs* msg) { |
4097 | 0 | return *msg->_impl_.name_; |
4098 | 0 | } |
4099 | | const ::lua_grammar::FunctionCall_Args& |
4100 | 0 | FunctionCall_PrefixNamedArgs::_Internal::args(const FunctionCall_PrefixNamedArgs* msg) { |
4101 | 0 | return *msg->_impl_.args_; |
4102 | 0 | } |
4103 | | FunctionCall_PrefixNamedArgs::FunctionCall_PrefixNamedArgs(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4104 | | bool is_message_owned) |
4105 | 2.53k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
4106 | 2.53k | SharedCtor(arena, is_message_owned); |
4107 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FunctionCall.PrefixNamedArgs) |
4108 | 2.53k | } |
4109 | | FunctionCall_PrefixNamedArgs::FunctionCall_PrefixNamedArgs(const FunctionCall_PrefixNamedArgs& from) |
4110 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
4111 | 0 | FunctionCall_PrefixNamedArgs* const _this = this; (void)_this; |
4112 | 0 | new (&_impl_) Impl_{ |
4113 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
4114 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
4115 | 0 | , decltype(_impl_.prefixexp_){nullptr} |
4116 | 0 | , decltype(_impl_.name_){nullptr} |
4117 | 0 | , decltype(_impl_.args_){nullptr}}; |
4118 | |
|
4119 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4120 | 0 | if (from._internal_has_prefixexp()) { |
4121 | 0 | _this->_impl_.prefixexp_ = new ::lua_grammar::PrefixExpression(*from._impl_.prefixexp_); |
4122 | 0 | } |
4123 | 0 | if (from._internal_has_name()) { |
4124 | 0 | _this->_impl_.name_ = new ::lua_grammar::Name(*from._impl_.name_); |
4125 | 0 | } |
4126 | 0 | if (from._internal_has_args()) { |
4127 | 0 | _this->_impl_.args_ = new ::lua_grammar::FunctionCall_Args(*from._impl_.args_); |
4128 | 0 | } |
4129 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FunctionCall.PrefixNamedArgs) |
4130 | 0 | } |
4131 | | |
4132 | | inline void FunctionCall_PrefixNamedArgs::SharedCtor( |
4133 | 2.53k | ::_pb::Arena* arena, bool is_message_owned) { |
4134 | 2.53k | (void)arena; |
4135 | 2.53k | (void)is_message_owned; |
4136 | 2.53k | new (&_impl_) Impl_{ |
4137 | 2.53k | decltype(_impl_._has_bits_){} |
4138 | 2.53k | , /*decltype(_impl_._cached_size_)*/{} |
4139 | 2.53k | , decltype(_impl_.prefixexp_){nullptr} |
4140 | 2.53k | , decltype(_impl_.name_){nullptr} |
4141 | 2.53k | , decltype(_impl_.args_){nullptr} |
4142 | 2.53k | }; |
4143 | 2.53k | } |
4144 | | |
4145 | 2.53k | FunctionCall_PrefixNamedArgs::~FunctionCall_PrefixNamedArgs() { |
4146 | | // @@protoc_insertion_point(destructor:lua_grammar.FunctionCall.PrefixNamedArgs) |
4147 | 2.53k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
4148 | 0 | (void)arena; |
4149 | 0 | return; |
4150 | 0 | } |
4151 | 2.53k | SharedDtor(); |
4152 | 2.53k | } |
4153 | | |
4154 | 2.53k | inline void FunctionCall_PrefixNamedArgs::SharedDtor() { |
4155 | 2.53k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
4156 | 2.53k | if (this != internal_default_instance()) delete _impl_.prefixexp_; |
4157 | 2.53k | if (this != internal_default_instance()) delete _impl_.name_; |
4158 | 2.53k | if (this != internal_default_instance()) delete _impl_.args_; |
4159 | 2.53k | } |
4160 | | |
4161 | 0 | void FunctionCall_PrefixNamedArgs::SetCachedSize(int size) const { |
4162 | 0 | _impl_._cached_size_.Set(size); |
4163 | 0 | } |
4164 | | |
4165 | 0 | void FunctionCall_PrefixNamedArgs::Clear() { |
4166 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FunctionCall.PrefixNamedArgs) |
4167 | 0 | uint32_t cached_has_bits = 0; |
4168 | | // Prevent compiler warnings about cached_has_bits being unused |
4169 | 0 | (void) cached_has_bits; |
4170 | |
|
4171 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
4172 | 0 | if (cached_has_bits & 0x00000007u) { |
4173 | 0 | if (cached_has_bits & 0x00000001u) { |
4174 | 0 | GOOGLE_DCHECK(_impl_.prefixexp_ != nullptr); |
4175 | 0 | _impl_.prefixexp_->Clear(); |
4176 | 0 | } |
4177 | 0 | if (cached_has_bits & 0x00000002u) { |
4178 | 0 | GOOGLE_DCHECK(_impl_.name_ != nullptr); |
4179 | 0 | _impl_.name_->Clear(); |
4180 | 0 | } |
4181 | 0 | if (cached_has_bits & 0x00000004u) { |
4182 | 0 | GOOGLE_DCHECK(_impl_.args_ != nullptr); |
4183 | 0 | _impl_.args_->Clear(); |
4184 | 0 | } |
4185 | 0 | } |
4186 | 0 | _impl_._has_bits_.Clear(); |
4187 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4188 | 0 | } |
4189 | | |
4190 | 0 | const char* FunctionCall_PrefixNamedArgs::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
4191 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4192 | 0 | _Internal::HasBits has_bits{}; |
4193 | 0 | while (!ctx->Done(&ptr)) { |
4194 | 0 | uint32_t tag; |
4195 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
4196 | 0 | switch (tag >> 3) { |
4197 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
4198 | 0 | case 1: |
4199 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
4200 | 0 | ptr = ctx->ParseMessage(_internal_mutable_prefixexp(), ptr); |
4201 | 0 | CHK_(ptr); |
4202 | 0 | } else |
4203 | 0 | goto handle_unusual; |
4204 | 0 | continue; |
4205 | | // required .lua_grammar.Name name = 2; |
4206 | 0 | case 2: |
4207 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
4208 | 0 | ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); |
4209 | 0 | CHK_(ptr); |
4210 | 0 | } else |
4211 | 0 | goto handle_unusual; |
4212 | 0 | continue; |
4213 | | // required .lua_grammar.FunctionCall.Args args = 3; |
4214 | 0 | case 3: |
4215 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
4216 | 0 | ptr = ctx->ParseMessage(_internal_mutable_args(), ptr); |
4217 | 0 | CHK_(ptr); |
4218 | 0 | } else |
4219 | 0 | goto handle_unusual; |
4220 | 0 | continue; |
4221 | 0 | default: |
4222 | 0 | goto handle_unusual; |
4223 | 0 | } // switch |
4224 | 0 | handle_unusual: |
4225 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
4226 | 0 | CHK_(ptr); |
4227 | 0 | ctx->SetLastTag(tag); |
4228 | 0 | goto message_done; |
4229 | 0 | } |
4230 | 0 | ptr = UnknownFieldParse( |
4231 | 0 | tag, |
4232 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
4233 | 0 | ptr, ctx); |
4234 | 0 | CHK_(ptr != nullptr); |
4235 | 0 | } // while |
4236 | 0 | message_done: |
4237 | 0 | _impl_._has_bits_.Or(has_bits); |
4238 | 0 | return ptr; |
4239 | 0 | failure: |
4240 | 0 | ptr = nullptr; |
4241 | 0 | goto message_done; |
4242 | 0 | #undef CHK_ |
4243 | 0 | } |
4244 | | |
4245 | | uint8_t* FunctionCall_PrefixNamedArgs::_InternalSerialize( |
4246 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
4247 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FunctionCall.PrefixNamedArgs) |
4248 | 0 | uint32_t cached_has_bits = 0; |
4249 | 0 | (void) cached_has_bits; |
4250 | |
|
4251 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
4252 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
4253 | 0 | if (cached_has_bits & 0x00000001u) { |
4254 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4255 | 0 | InternalWriteMessage(1, _Internal::prefixexp(this), |
4256 | 0 | _Internal::prefixexp(this).GetCachedSize(), target, stream); |
4257 | 0 | } |
4258 | | |
4259 | | // required .lua_grammar.Name name = 2; |
4260 | 0 | if (cached_has_bits & 0x00000002u) { |
4261 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4262 | 0 | InternalWriteMessage(2, _Internal::name(this), |
4263 | 0 | _Internal::name(this).GetCachedSize(), target, stream); |
4264 | 0 | } |
4265 | | |
4266 | | // required .lua_grammar.FunctionCall.Args args = 3; |
4267 | 0 | if (cached_has_bits & 0x00000004u) { |
4268 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4269 | 0 | InternalWriteMessage(3, _Internal::args(this), |
4270 | 0 | _Internal::args(this).GetCachedSize(), target, stream); |
4271 | 0 | } |
4272 | |
|
4273 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
4274 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4275 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
4276 | 0 | } |
4277 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FunctionCall.PrefixNamedArgs) |
4278 | 0 | return target; |
4279 | 0 | } |
4280 | | |
4281 | 0 | size_t FunctionCall_PrefixNamedArgs::RequiredFieldsByteSizeFallback() const { |
4282 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.FunctionCall.PrefixNamedArgs) |
4283 | 0 | size_t total_size = 0; |
4284 | |
|
4285 | 0 | if (_internal_has_prefixexp()) { |
4286 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
4287 | 0 | total_size += 1 + |
4288 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4289 | 0 | *_impl_.prefixexp_); |
4290 | 0 | } |
4291 | |
|
4292 | 0 | if (_internal_has_name()) { |
4293 | | // required .lua_grammar.Name name = 2; |
4294 | 0 | total_size += 1 + |
4295 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4296 | 0 | *_impl_.name_); |
4297 | 0 | } |
4298 | |
|
4299 | 0 | if (_internal_has_args()) { |
4300 | | // required .lua_grammar.FunctionCall.Args args = 3; |
4301 | 0 | total_size += 1 + |
4302 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4303 | 0 | *_impl_.args_); |
4304 | 0 | } |
4305 | |
|
4306 | 0 | return total_size; |
4307 | 0 | } |
4308 | 0 | size_t FunctionCall_PrefixNamedArgs::ByteSizeLong() const { |
4309 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FunctionCall.PrefixNamedArgs) |
4310 | 0 | size_t total_size = 0; |
4311 | |
|
4312 | 0 | if (((_impl_._has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. |
4313 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
4314 | 0 | total_size += 1 + |
4315 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4316 | 0 | *_impl_.prefixexp_); |
4317 | | |
4318 | | // required .lua_grammar.Name name = 2; |
4319 | 0 | total_size += 1 + |
4320 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4321 | 0 | *_impl_.name_); |
4322 | | |
4323 | | // required .lua_grammar.FunctionCall.Args args = 3; |
4324 | 0 | total_size += 1 + |
4325 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4326 | 0 | *_impl_.args_); |
4327 | |
|
4328 | 0 | } else { |
4329 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
4330 | 0 | } |
4331 | 0 | uint32_t cached_has_bits = 0; |
4332 | | // Prevent compiler warnings about cached_has_bits being unused |
4333 | 0 | (void) cached_has_bits; |
4334 | |
|
4335 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
4336 | 0 | } |
4337 | | |
4338 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionCall_PrefixNamedArgs::_class_data_ = { |
4339 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
4340 | | FunctionCall_PrefixNamedArgs::MergeImpl |
4341 | | }; |
4342 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionCall_PrefixNamedArgs::GetClassData() const { return &_class_data_; } |
4343 | | |
4344 | | |
4345 | 0 | void FunctionCall_PrefixNamedArgs::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
4346 | 0 | auto* const _this = static_cast<FunctionCall_PrefixNamedArgs*>(&to_msg); |
4347 | 0 | auto& from = static_cast<const FunctionCall_PrefixNamedArgs&>(from_msg); |
4348 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FunctionCall.PrefixNamedArgs) |
4349 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
4350 | 0 | uint32_t cached_has_bits = 0; |
4351 | 0 | (void) cached_has_bits; |
4352 | |
|
4353 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
4354 | 0 | if (cached_has_bits & 0x00000007u) { |
4355 | 0 | if (cached_has_bits & 0x00000001u) { |
4356 | 0 | _this->_internal_mutable_prefixexp()->::lua_grammar::PrefixExpression::MergeFrom( |
4357 | 0 | from._internal_prefixexp()); |
4358 | 0 | } |
4359 | 0 | if (cached_has_bits & 0x00000002u) { |
4360 | 0 | _this->_internal_mutable_name()->::lua_grammar::Name::MergeFrom( |
4361 | 0 | from._internal_name()); |
4362 | 0 | } |
4363 | 0 | if (cached_has_bits & 0x00000004u) { |
4364 | 0 | _this->_internal_mutable_args()->::lua_grammar::FunctionCall_Args::MergeFrom( |
4365 | 0 | from._internal_args()); |
4366 | 0 | } |
4367 | 0 | } |
4368 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4369 | 0 | } |
4370 | | |
4371 | 0 | void FunctionCall_PrefixNamedArgs::CopyFrom(const FunctionCall_PrefixNamedArgs& from) { |
4372 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FunctionCall.PrefixNamedArgs) |
4373 | 0 | if (&from == this) return; |
4374 | 0 | Clear(); |
4375 | 0 | MergeFrom(from); |
4376 | 0 | } |
4377 | | |
4378 | 1.78k | bool FunctionCall_PrefixNamedArgs::IsInitialized() const { |
4379 | 1.78k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
4380 | 1.78k | if (_internal_has_prefixexp()) { |
4381 | 1.78k | if (!_impl_.prefixexp_->IsInitialized()) return false; |
4382 | 1.78k | } |
4383 | 1.78k | if (_internal_has_name()) { |
4384 | 1.78k | if (!_impl_.name_->IsInitialized()) return false; |
4385 | 1.78k | } |
4386 | 1.78k | if (_internal_has_args()) { |
4387 | 1.78k | if (!_impl_.args_->IsInitialized()) return false; |
4388 | 1.78k | } |
4389 | 1.78k | return true; |
4390 | 1.78k | } |
4391 | | |
4392 | 0 | void FunctionCall_PrefixNamedArgs::InternalSwap(FunctionCall_PrefixNamedArgs* other) { |
4393 | 0 | using std::swap; |
4394 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4395 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
4396 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
4397 | 0 | PROTOBUF_FIELD_OFFSET(FunctionCall_PrefixNamedArgs, _impl_.args_) |
4398 | 0 | + sizeof(FunctionCall_PrefixNamedArgs::_impl_.args_) |
4399 | 0 | - PROTOBUF_FIELD_OFFSET(FunctionCall_PrefixNamedArgs, _impl_.prefixexp_)>( |
4400 | 0 | reinterpret_cast<char*>(&_impl_.prefixexp_), |
4401 | 0 | reinterpret_cast<char*>(&other->_impl_.prefixexp_)); |
4402 | 0 | } |
4403 | | |
4404 | 32.3k | ::PROTOBUF_NAMESPACE_ID::Metadata FunctionCall_PrefixNamedArgs::GetMetadata() const { |
4405 | 32.3k | return ::_pbi::AssignDescriptors( |
4406 | 32.3k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
4407 | 32.3k | file_level_metadata_lua_5fgrammar_2eproto[7]); |
4408 | 32.3k | } |
4409 | | |
4410 | | // =================================================================== |
4411 | | |
4412 | | class FunctionCall::_Internal { |
4413 | | public: |
4414 | | static const ::lua_grammar::FunctionCall_PrefixArgs& prefargs(const FunctionCall* msg); |
4415 | | static const ::lua_grammar::FunctionCall_PrefixNamedArgs& namedargs(const FunctionCall* msg); |
4416 | | }; |
4417 | | |
4418 | | const ::lua_grammar::FunctionCall_PrefixArgs& |
4419 | 0 | FunctionCall::_Internal::prefargs(const FunctionCall* msg) { |
4420 | 0 | return *msg->_impl_.call_oneof_.prefargs_; |
4421 | 0 | } |
4422 | | const ::lua_grammar::FunctionCall_PrefixNamedArgs& |
4423 | 0 | FunctionCall::_Internal::namedargs(const FunctionCall* msg) { |
4424 | 0 | return *msg->_impl_.call_oneof_.namedargs_; |
4425 | 0 | } |
4426 | 0 | void FunctionCall::set_allocated_prefargs(::lua_grammar::FunctionCall_PrefixArgs* prefargs) { |
4427 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
4428 | 0 | clear_call_oneof(); |
4429 | 0 | if (prefargs) { |
4430 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
4431 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prefargs); |
4432 | 0 | if (message_arena != submessage_arena) { |
4433 | 0 | prefargs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4434 | 0 | message_arena, prefargs, submessage_arena); |
4435 | 0 | } |
4436 | 0 | set_has_prefargs(); |
4437 | 0 | _impl_.call_oneof_.prefargs_ = prefargs; |
4438 | 0 | } |
4439 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.prefArgs) |
4440 | 0 | } |
4441 | 0 | void FunctionCall::set_allocated_namedargs(::lua_grammar::FunctionCall_PrefixNamedArgs* namedargs) { |
4442 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
4443 | 0 | clear_call_oneof(); |
4444 | 0 | if (namedargs) { |
4445 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
4446 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(namedargs); |
4447 | 0 | if (message_arena != submessage_arena) { |
4448 | 0 | namedargs = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4449 | 0 | message_arena, namedargs, submessage_arena); |
4450 | 0 | } |
4451 | 0 | set_has_namedargs(); |
4452 | 0 | _impl_.call_oneof_.namedargs_ = namedargs; |
4453 | 0 | } |
4454 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.namedArgs) |
4455 | 0 | } |
4456 | | FunctionCall::FunctionCall(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4457 | | bool is_message_owned) |
4458 | 12.8k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
4459 | 12.8k | SharedCtor(arena, is_message_owned); |
4460 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FunctionCall) |
4461 | 12.8k | } |
4462 | | FunctionCall::FunctionCall(const FunctionCall& from) |
4463 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
4464 | 0 | FunctionCall* const _this = this; (void)_this; |
4465 | 0 | new (&_impl_) Impl_{ |
4466 | 0 | decltype(_impl_.call_oneof_){} |
4467 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
4468 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
4469 | |
|
4470 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4471 | 0 | clear_has_call_oneof(); |
4472 | 0 | switch (from.call_oneof_case()) { |
4473 | 0 | case kPrefArgs: { |
4474 | 0 | _this->_internal_mutable_prefargs()->::lua_grammar::FunctionCall_PrefixArgs::MergeFrom( |
4475 | 0 | from._internal_prefargs()); |
4476 | 0 | break; |
4477 | 0 | } |
4478 | 0 | case kNamedArgs: { |
4479 | 0 | _this->_internal_mutable_namedargs()->::lua_grammar::FunctionCall_PrefixNamedArgs::MergeFrom( |
4480 | 0 | from._internal_namedargs()); |
4481 | 0 | break; |
4482 | 0 | } |
4483 | 0 | case CALL_ONEOF_NOT_SET: { |
4484 | 0 | break; |
4485 | 0 | } |
4486 | 0 | } |
4487 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FunctionCall) |
4488 | 0 | } |
4489 | | |
4490 | | inline void FunctionCall::SharedCtor( |
4491 | 12.8k | ::_pb::Arena* arena, bool is_message_owned) { |
4492 | 12.8k | (void)arena; |
4493 | 12.8k | (void)is_message_owned; |
4494 | 12.8k | new (&_impl_) Impl_{ |
4495 | 12.8k | decltype(_impl_.call_oneof_){} |
4496 | 12.8k | , /*decltype(_impl_._cached_size_)*/{} |
4497 | 12.8k | , /*decltype(_impl_._oneof_case_)*/{} |
4498 | 12.8k | }; |
4499 | 12.8k | clear_has_call_oneof(); |
4500 | 12.8k | } |
4501 | | |
4502 | 12.8k | FunctionCall::~FunctionCall() { |
4503 | | // @@protoc_insertion_point(destructor:lua_grammar.FunctionCall) |
4504 | 12.8k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
4505 | 0 | (void)arena; |
4506 | 0 | return; |
4507 | 0 | } |
4508 | 12.8k | SharedDtor(); |
4509 | 12.8k | } |
4510 | | |
4511 | 12.8k | inline void FunctionCall::SharedDtor() { |
4512 | 12.8k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
4513 | 12.8k | if (has_call_oneof()) { |
4514 | 6.41k | clear_call_oneof(); |
4515 | 6.41k | } |
4516 | 12.8k | } |
4517 | | |
4518 | 0 | void FunctionCall::SetCachedSize(int size) const { |
4519 | 0 | _impl_._cached_size_.Set(size); |
4520 | 0 | } |
4521 | | |
4522 | 6.41k | void FunctionCall::clear_call_oneof() { |
4523 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.FunctionCall) |
4524 | 6.41k | switch (call_oneof_case()) { |
4525 | 3.87k | case kPrefArgs: { |
4526 | 3.87k | if (GetArenaForAllocation() == nullptr) { |
4527 | 3.87k | delete _impl_.call_oneof_.prefargs_; |
4528 | 3.87k | } |
4529 | 3.87k | break; |
4530 | 0 | } |
4531 | 2.53k | case kNamedArgs: { |
4532 | 2.53k | if (GetArenaForAllocation() == nullptr) { |
4533 | 2.53k | delete _impl_.call_oneof_.namedargs_; |
4534 | 2.53k | } |
4535 | 2.53k | break; |
4536 | 0 | } |
4537 | 0 | case CALL_ONEOF_NOT_SET: { |
4538 | 0 | break; |
4539 | 0 | } |
4540 | 6.41k | } |
4541 | 6.41k | _impl_._oneof_case_[0] = CALL_ONEOF_NOT_SET; |
4542 | 6.41k | } |
4543 | | |
4544 | | |
4545 | 0 | void FunctionCall::Clear() { |
4546 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FunctionCall) |
4547 | 0 | uint32_t cached_has_bits = 0; |
4548 | | // Prevent compiler warnings about cached_has_bits being unused |
4549 | 0 | (void) cached_has_bits; |
4550 | |
|
4551 | 0 | clear_call_oneof(); |
4552 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4553 | 0 | } |
4554 | | |
4555 | 0 | const char* FunctionCall::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
4556 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4557 | 0 | while (!ctx->Done(&ptr)) { |
4558 | 0 | uint32_t tag; |
4559 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
4560 | 0 | switch (tag >> 3) { |
4561 | | // .lua_grammar.FunctionCall.PrefixArgs prefArgs = 1; |
4562 | 0 | case 1: |
4563 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
4564 | 0 | ptr = ctx->ParseMessage(_internal_mutable_prefargs(), ptr); |
4565 | 0 | CHK_(ptr); |
4566 | 0 | } else |
4567 | 0 | goto handle_unusual; |
4568 | 0 | continue; |
4569 | | // .lua_grammar.FunctionCall.PrefixNamedArgs namedArgs = 2; |
4570 | 0 | case 2: |
4571 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
4572 | 0 | ptr = ctx->ParseMessage(_internal_mutable_namedargs(), ptr); |
4573 | 0 | CHK_(ptr); |
4574 | 0 | } else |
4575 | 0 | goto handle_unusual; |
4576 | 0 | continue; |
4577 | 0 | default: |
4578 | 0 | goto handle_unusual; |
4579 | 0 | } // switch |
4580 | 0 | handle_unusual: |
4581 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
4582 | 0 | CHK_(ptr); |
4583 | 0 | ctx->SetLastTag(tag); |
4584 | 0 | goto message_done; |
4585 | 0 | } |
4586 | 0 | ptr = UnknownFieldParse( |
4587 | 0 | tag, |
4588 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
4589 | 0 | ptr, ctx); |
4590 | 0 | CHK_(ptr != nullptr); |
4591 | 0 | } // while |
4592 | 0 | message_done: |
4593 | 0 | return ptr; |
4594 | 0 | failure: |
4595 | 0 | ptr = nullptr; |
4596 | 0 | goto message_done; |
4597 | 0 | #undef CHK_ |
4598 | 0 | } |
4599 | | |
4600 | | uint8_t* FunctionCall::_InternalSerialize( |
4601 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
4602 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FunctionCall) |
4603 | 0 | uint32_t cached_has_bits = 0; |
4604 | 0 | (void) cached_has_bits; |
4605 | |
|
4606 | 0 | switch (call_oneof_case()) { |
4607 | 0 | case kPrefArgs: { |
4608 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4609 | 0 | InternalWriteMessage(1, _Internal::prefargs(this), |
4610 | 0 | _Internal::prefargs(this).GetCachedSize(), target, stream); |
4611 | 0 | break; |
4612 | 0 | } |
4613 | 0 | case kNamedArgs: { |
4614 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4615 | 0 | InternalWriteMessage(2, _Internal::namedargs(this), |
4616 | 0 | _Internal::namedargs(this).GetCachedSize(), target, stream); |
4617 | 0 | break; |
4618 | 0 | } |
4619 | 0 | default: ; |
4620 | 0 | } |
4621 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
4622 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4623 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
4624 | 0 | } |
4625 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FunctionCall) |
4626 | 0 | return target; |
4627 | 0 | } |
4628 | | |
4629 | 0 | size_t FunctionCall::ByteSizeLong() const { |
4630 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FunctionCall) |
4631 | 0 | size_t total_size = 0; |
4632 | |
|
4633 | 0 | uint32_t cached_has_bits = 0; |
4634 | | // Prevent compiler warnings about cached_has_bits being unused |
4635 | 0 | (void) cached_has_bits; |
4636 | |
|
4637 | 0 | switch (call_oneof_case()) { |
4638 | | // .lua_grammar.FunctionCall.PrefixArgs prefArgs = 1; |
4639 | 0 | case kPrefArgs: { |
4640 | 0 | total_size += 1 + |
4641 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4642 | 0 | *_impl_.call_oneof_.prefargs_); |
4643 | 0 | break; |
4644 | 0 | } |
4645 | | // .lua_grammar.FunctionCall.PrefixNamedArgs namedArgs = 2; |
4646 | 0 | case kNamedArgs: { |
4647 | 0 | total_size += 1 + |
4648 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4649 | 0 | *_impl_.call_oneof_.namedargs_); |
4650 | 0 | break; |
4651 | 0 | } |
4652 | 0 | case CALL_ONEOF_NOT_SET: { |
4653 | 0 | break; |
4654 | 0 | } |
4655 | 0 | } |
4656 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
4657 | 0 | } |
4658 | | |
4659 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FunctionCall::_class_data_ = { |
4660 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
4661 | | FunctionCall::MergeImpl |
4662 | | }; |
4663 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FunctionCall::GetClassData() const { return &_class_data_; } |
4664 | | |
4665 | | |
4666 | 0 | void FunctionCall::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
4667 | 0 | auto* const _this = static_cast<FunctionCall*>(&to_msg); |
4668 | 0 | auto& from = static_cast<const FunctionCall&>(from_msg); |
4669 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FunctionCall) |
4670 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
4671 | 0 | uint32_t cached_has_bits = 0; |
4672 | 0 | (void) cached_has_bits; |
4673 | |
|
4674 | 0 | switch (from.call_oneof_case()) { |
4675 | 0 | case kPrefArgs: { |
4676 | 0 | _this->_internal_mutable_prefargs()->::lua_grammar::FunctionCall_PrefixArgs::MergeFrom( |
4677 | 0 | from._internal_prefargs()); |
4678 | 0 | break; |
4679 | 0 | } |
4680 | 0 | case kNamedArgs: { |
4681 | 0 | _this->_internal_mutable_namedargs()->::lua_grammar::FunctionCall_PrefixNamedArgs::MergeFrom( |
4682 | 0 | from._internal_namedargs()); |
4683 | 0 | break; |
4684 | 0 | } |
4685 | 0 | case CALL_ONEOF_NOT_SET: { |
4686 | 0 | break; |
4687 | 0 | } |
4688 | 0 | } |
4689 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4690 | 0 | } |
4691 | | |
4692 | 0 | void FunctionCall::CopyFrom(const FunctionCall& from) { |
4693 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FunctionCall) |
4694 | 0 | if (&from == this) return; |
4695 | 0 | Clear(); |
4696 | 0 | MergeFrom(from); |
4697 | 0 | } |
4698 | | |
4699 | 11.4k | bool FunctionCall::IsInitialized() const { |
4700 | 11.4k | switch (call_oneof_case()) { |
4701 | 3.66k | case kPrefArgs: { |
4702 | 3.66k | if (_internal_has_prefargs()) { |
4703 | 3.66k | if (!_impl_.call_oneof_.prefargs_->IsInitialized()) return false; |
4704 | 3.66k | } |
4705 | 3.66k | break; |
4706 | 3.66k | } |
4707 | 3.66k | case kNamedArgs: { |
4708 | 1.78k | if (_internal_has_namedargs()) { |
4709 | 1.78k | if (!_impl_.call_oneof_.namedargs_->IsInitialized()) return false; |
4710 | 1.78k | } |
4711 | 1.78k | break; |
4712 | 1.78k | } |
4713 | 6.01k | case CALL_ONEOF_NOT_SET: { |
4714 | 6.01k | break; |
4715 | 1.78k | } |
4716 | 11.4k | } |
4717 | 11.4k | return true; |
4718 | 11.4k | } |
4719 | | |
4720 | 0 | void FunctionCall::InternalSwap(FunctionCall* other) { |
4721 | 0 | using std::swap; |
4722 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4723 | 0 | swap(_impl_.call_oneof_, other->_impl_.call_oneof_); |
4724 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
4725 | 0 | } |
4726 | | |
4727 | 88.4k | ::PROTOBUF_NAMESPACE_ID::Metadata FunctionCall::GetMetadata() const { |
4728 | 88.4k | return ::_pbi::AssignDescriptors( |
4729 | 88.4k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
4730 | 88.4k | file_level_metadata_lua_5fgrammar_2eproto[8]); |
4731 | 88.4k | } |
4732 | | |
4733 | | // =================================================================== |
4734 | | |
4735 | | class DoBlock::_Internal { |
4736 | | public: |
4737 | | using HasBits = decltype(std::declval<DoBlock>()._impl_._has_bits_); |
4738 | | static const ::lua_grammar::Block& block(const DoBlock* msg); |
4739 | 0 | static void set_has_block(HasBits* has_bits) { |
4740 | 0 | (*has_bits)[0] |= 1u; |
4741 | 0 | } |
4742 | 30.5k | static bool MissingRequiredFields(const HasBits& has_bits) { |
4743 | 30.5k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
4744 | 30.5k | } |
4745 | | }; |
4746 | | |
4747 | | const ::lua_grammar::Block& |
4748 | 0 | DoBlock::_Internal::block(const DoBlock* msg) { |
4749 | 0 | return *msg->_impl_.block_; |
4750 | 0 | } |
4751 | | DoBlock::DoBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4752 | | bool is_message_owned) |
4753 | 30.8k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
4754 | 30.8k | SharedCtor(arena, is_message_owned); |
4755 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.DoBlock) |
4756 | 30.8k | } |
4757 | | DoBlock::DoBlock(const DoBlock& from) |
4758 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
4759 | 0 | DoBlock* const _this = this; (void)_this; |
4760 | 0 | new (&_impl_) Impl_{ |
4761 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
4762 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
4763 | 0 | , decltype(_impl_.block_){nullptr}}; |
4764 | |
|
4765 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4766 | 0 | if (from._internal_has_block()) { |
4767 | 0 | _this->_impl_.block_ = new ::lua_grammar::Block(*from._impl_.block_); |
4768 | 0 | } |
4769 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.DoBlock) |
4770 | 0 | } |
4771 | | |
4772 | | inline void DoBlock::SharedCtor( |
4773 | 30.8k | ::_pb::Arena* arena, bool is_message_owned) { |
4774 | 30.8k | (void)arena; |
4775 | 30.8k | (void)is_message_owned; |
4776 | 30.8k | new (&_impl_) Impl_{ |
4777 | 30.8k | decltype(_impl_._has_bits_){} |
4778 | 30.8k | , /*decltype(_impl_._cached_size_)*/{} |
4779 | 30.8k | , decltype(_impl_.block_){nullptr} |
4780 | 30.8k | }; |
4781 | 30.8k | } |
4782 | | |
4783 | 30.8k | DoBlock::~DoBlock() { |
4784 | | // @@protoc_insertion_point(destructor:lua_grammar.DoBlock) |
4785 | 30.8k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
4786 | 0 | (void)arena; |
4787 | 0 | return; |
4788 | 0 | } |
4789 | 30.8k | SharedDtor(); |
4790 | 30.8k | } |
4791 | | |
4792 | 30.8k | inline void DoBlock::SharedDtor() { |
4793 | 30.8k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
4794 | 30.8k | if (this != internal_default_instance()) delete _impl_.block_; |
4795 | 30.8k | } |
4796 | | |
4797 | 0 | void DoBlock::SetCachedSize(int size) const { |
4798 | 0 | _impl_._cached_size_.Set(size); |
4799 | 0 | } |
4800 | | |
4801 | 278 | void DoBlock::Clear() { |
4802 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.DoBlock) |
4803 | 278 | uint32_t cached_has_bits = 0; |
4804 | | // Prevent compiler warnings about cached_has_bits being unused |
4805 | 278 | (void) cached_has_bits; |
4806 | | |
4807 | 278 | cached_has_bits = _impl_._has_bits_[0]; |
4808 | 278 | if (cached_has_bits & 0x00000001u) { |
4809 | 0 | GOOGLE_DCHECK(_impl_.block_ != nullptr); |
4810 | 0 | _impl_.block_->Clear(); |
4811 | 0 | } |
4812 | 278 | _impl_._has_bits_.Clear(); |
4813 | 278 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4814 | 278 | } |
4815 | | |
4816 | 0 | const char* DoBlock::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
4817 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
4818 | 0 | _Internal::HasBits has_bits{}; |
4819 | 0 | while (!ctx->Done(&ptr)) { |
4820 | 0 | uint32_t tag; |
4821 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
4822 | 0 | switch (tag >> 3) { |
4823 | | // required .lua_grammar.Block block = 1; |
4824 | 0 | case 1: |
4825 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
4826 | 0 | ptr = ctx->ParseMessage(_internal_mutable_block(), ptr); |
4827 | 0 | CHK_(ptr); |
4828 | 0 | } else |
4829 | 0 | goto handle_unusual; |
4830 | 0 | continue; |
4831 | 0 | default: |
4832 | 0 | goto handle_unusual; |
4833 | 0 | } // switch |
4834 | 0 | handle_unusual: |
4835 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
4836 | 0 | CHK_(ptr); |
4837 | 0 | ctx->SetLastTag(tag); |
4838 | 0 | goto message_done; |
4839 | 0 | } |
4840 | 0 | ptr = UnknownFieldParse( |
4841 | 0 | tag, |
4842 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
4843 | 0 | ptr, ctx); |
4844 | 0 | CHK_(ptr != nullptr); |
4845 | 0 | } // while |
4846 | 0 | message_done: |
4847 | 0 | _impl_._has_bits_.Or(has_bits); |
4848 | 0 | return ptr; |
4849 | 0 | failure: |
4850 | 0 | ptr = nullptr; |
4851 | 0 | goto message_done; |
4852 | 0 | #undef CHK_ |
4853 | 0 | } |
4854 | | |
4855 | | uint8_t* DoBlock::_InternalSerialize( |
4856 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
4857 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.DoBlock) |
4858 | 0 | uint32_t cached_has_bits = 0; |
4859 | 0 | (void) cached_has_bits; |
4860 | |
|
4861 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
4862 | | // required .lua_grammar.Block block = 1; |
4863 | 0 | if (cached_has_bits & 0x00000001u) { |
4864 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
4865 | 0 | InternalWriteMessage(1, _Internal::block(this), |
4866 | 0 | _Internal::block(this).GetCachedSize(), target, stream); |
4867 | 0 | } |
4868 | |
|
4869 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
4870 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
4871 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
4872 | 0 | } |
4873 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.DoBlock) |
4874 | 0 | return target; |
4875 | 0 | } |
4876 | | |
4877 | 0 | size_t DoBlock::ByteSizeLong() const { |
4878 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.DoBlock) |
4879 | 0 | size_t total_size = 0; |
4880 | | |
4881 | | // required .lua_grammar.Block block = 1; |
4882 | 0 | if (_internal_has_block()) { |
4883 | 0 | total_size += 1 + |
4884 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
4885 | 0 | *_impl_.block_); |
4886 | 0 | } |
4887 | 0 | uint32_t cached_has_bits = 0; |
4888 | | // Prevent compiler warnings about cached_has_bits being unused |
4889 | 0 | (void) cached_has_bits; |
4890 | |
|
4891 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
4892 | 0 | } |
4893 | | |
4894 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DoBlock::_class_data_ = { |
4895 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
4896 | | DoBlock::MergeImpl |
4897 | | }; |
4898 | 417 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DoBlock::GetClassData() const { return &_class_data_; } |
4899 | | |
4900 | | |
4901 | 139 | void DoBlock::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
4902 | 139 | auto* const _this = static_cast<DoBlock*>(&to_msg); |
4903 | 139 | auto& from = static_cast<const DoBlock&>(from_msg); |
4904 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.DoBlock) |
4905 | 139 | GOOGLE_DCHECK_NE(&from, _this); |
4906 | 139 | uint32_t cached_has_bits = 0; |
4907 | 139 | (void) cached_has_bits; |
4908 | | |
4909 | 139 | if (from._internal_has_block()) { |
4910 | 0 | _this->_internal_mutable_block()->::lua_grammar::Block::MergeFrom( |
4911 | 0 | from._internal_block()); |
4912 | 0 | } |
4913 | 139 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4914 | 139 | } |
4915 | | |
4916 | 0 | void DoBlock::CopyFrom(const DoBlock& from) { |
4917 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.DoBlock) |
4918 | 0 | if (&from == this) return; |
4919 | 0 | Clear(); |
4920 | 0 | MergeFrom(from); |
4921 | 0 | } |
4922 | | |
4923 | 30.5k | bool DoBlock::IsInitialized() const { |
4924 | 30.5k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
4925 | 30.5k | if (_internal_has_block()) { |
4926 | 30.5k | if (!_impl_.block_->IsInitialized()) return false; |
4927 | 30.5k | } |
4928 | 30.5k | return true; |
4929 | 30.5k | } |
4930 | | |
4931 | 0 | void DoBlock::InternalSwap(DoBlock* other) { |
4932 | 0 | using std::swap; |
4933 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
4934 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
4935 | 0 | swap(_impl_.block_, other->_impl_.block_); |
4936 | 0 | } |
4937 | | |
4938 | 275k | ::PROTOBUF_NAMESPACE_ID::Metadata DoBlock::GetMetadata() const { |
4939 | 275k | return ::_pbi::AssignDescriptors( |
4940 | 275k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
4941 | 275k | file_level_metadata_lua_5fgrammar_2eproto[9]); |
4942 | 275k | } |
4943 | | |
4944 | | // =================================================================== |
4945 | | |
4946 | | class WhileCycle::_Internal { |
4947 | | public: |
4948 | | using HasBits = decltype(std::declval<WhileCycle>()._impl_._has_bits_); |
4949 | | static const ::lua_grammar::Expression& condition(const WhileCycle* msg); |
4950 | 0 | static void set_has_condition(HasBits* has_bits) { |
4951 | 0 | (*has_bits)[0] |= 1u; |
4952 | 0 | } |
4953 | | static const ::lua_grammar::DoBlock& doblock(const WhileCycle* msg); |
4954 | 0 | static void set_has_doblock(HasBits* has_bits) { |
4955 | 0 | (*has_bits)[0] |= 2u; |
4956 | 0 | } |
4957 | 3.07k | static bool MissingRequiredFields(const HasBits& has_bits) { |
4958 | 3.07k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
4959 | 3.07k | } |
4960 | | }; |
4961 | | |
4962 | | const ::lua_grammar::Expression& |
4963 | 0 | WhileCycle::_Internal::condition(const WhileCycle* msg) { |
4964 | 0 | return *msg->_impl_.condition_; |
4965 | 0 | } |
4966 | | const ::lua_grammar::DoBlock& |
4967 | 0 | WhileCycle::_Internal::doblock(const WhileCycle* msg) { |
4968 | 0 | return *msg->_impl_.doblock_; |
4969 | 0 | } |
4970 | | WhileCycle::WhileCycle(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4971 | | bool is_message_owned) |
4972 | 3.09k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
4973 | 3.09k | SharedCtor(arena, is_message_owned); |
4974 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.WhileCycle) |
4975 | 3.09k | } |
4976 | | WhileCycle::WhileCycle(const WhileCycle& from) |
4977 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
4978 | 0 | WhileCycle* const _this = this; (void)_this; |
4979 | 0 | new (&_impl_) Impl_{ |
4980 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
4981 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
4982 | 0 | , decltype(_impl_.condition_){nullptr} |
4983 | 0 | , decltype(_impl_.doblock_){nullptr}}; |
4984 | |
|
4985 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
4986 | 0 | if (from._internal_has_condition()) { |
4987 | 0 | _this->_impl_.condition_ = new ::lua_grammar::Expression(*from._impl_.condition_); |
4988 | 0 | } |
4989 | 0 | if (from._internal_has_doblock()) { |
4990 | 0 | _this->_impl_.doblock_ = new ::lua_grammar::DoBlock(*from._impl_.doblock_); |
4991 | 0 | } |
4992 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.WhileCycle) |
4993 | 0 | } |
4994 | | |
4995 | | inline void WhileCycle::SharedCtor( |
4996 | 3.09k | ::_pb::Arena* arena, bool is_message_owned) { |
4997 | 3.09k | (void)arena; |
4998 | 3.09k | (void)is_message_owned; |
4999 | 3.09k | new (&_impl_) Impl_{ |
5000 | 3.09k | decltype(_impl_._has_bits_){} |
5001 | 3.09k | , /*decltype(_impl_._cached_size_)*/{} |
5002 | 3.09k | , decltype(_impl_.condition_){nullptr} |
5003 | 3.09k | , decltype(_impl_.doblock_){nullptr} |
5004 | 3.09k | }; |
5005 | 3.09k | } |
5006 | | |
5007 | 3.09k | WhileCycle::~WhileCycle() { |
5008 | | // @@protoc_insertion_point(destructor:lua_grammar.WhileCycle) |
5009 | 3.09k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
5010 | 0 | (void)arena; |
5011 | 0 | return; |
5012 | 0 | } |
5013 | 3.09k | SharedDtor(); |
5014 | 3.09k | } |
5015 | | |
5016 | 3.09k | inline void WhileCycle::SharedDtor() { |
5017 | 3.09k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
5018 | 3.09k | if (this != internal_default_instance()) delete _impl_.condition_; |
5019 | 3.09k | if (this != internal_default_instance()) delete _impl_.doblock_; |
5020 | 3.09k | } |
5021 | | |
5022 | 0 | void WhileCycle::SetCachedSize(int size) const { |
5023 | 0 | _impl_._cached_size_.Set(size); |
5024 | 0 | } |
5025 | | |
5026 | 0 | void WhileCycle::Clear() { |
5027 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.WhileCycle) |
5028 | 0 | uint32_t cached_has_bits = 0; |
5029 | | // Prevent compiler warnings about cached_has_bits being unused |
5030 | 0 | (void) cached_has_bits; |
5031 | |
|
5032 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
5033 | 0 | if (cached_has_bits & 0x00000003u) { |
5034 | 0 | if (cached_has_bits & 0x00000001u) { |
5035 | 0 | GOOGLE_DCHECK(_impl_.condition_ != nullptr); |
5036 | 0 | _impl_.condition_->Clear(); |
5037 | 0 | } |
5038 | 0 | if (cached_has_bits & 0x00000002u) { |
5039 | 0 | GOOGLE_DCHECK(_impl_.doblock_ != nullptr); |
5040 | 0 | _impl_.doblock_->Clear(); |
5041 | 0 | } |
5042 | 0 | } |
5043 | 0 | _impl_._has_bits_.Clear(); |
5044 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5045 | 0 | } |
5046 | | |
5047 | 0 | const char* WhileCycle::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
5048 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5049 | 0 | _Internal::HasBits has_bits{}; |
5050 | 0 | while (!ctx->Done(&ptr)) { |
5051 | 0 | uint32_t tag; |
5052 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
5053 | 0 | switch (tag >> 3) { |
5054 | | // required .lua_grammar.Expression condition = 1; |
5055 | 0 | case 1: |
5056 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
5057 | 0 | ptr = ctx->ParseMessage(_internal_mutable_condition(), ptr); |
5058 | 0 | CHK_(ptr); |
5059 | 0 | } else |
5060 | 0 | goto handle_unusual; |
5061 | 0 | continue; |
5062 | | // required .lua_grammar.DoBlock doblock = 2; |
5063 | 0 | case 2: |
5064 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
5065 | 0 | ptr = ctx->ParseMessage(_internal_mutable_doblock(), ptr); |
5066 | 0 | CHK_(ptr); |
5067 | 0 | } else |
5068 | 0 | goto handle_unusual; |
5069 | 0 | continue; |
5070 | 0 | default: |
5071 | 0 | goto handle_unusual; |
5072 | 0 | } // switch |
5073 | 0 | handle_unusual: |
5074 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
5075 | 0 | CHK_(ptr); |
5076 | 0 | ctx->SetLastTag(tag); |
5077 | 0 | goto message_done; |
5078 | 0 | } |
5079 | 0 | ptr = UnknownFieldParse( |
5080 | 0 | tag, |
5081 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
5082 | 0 | ptr, ctx); |
5083 | 0 | CHK_(ptr != nullptr); |
5084 | 0 | } // while |
5085 | 0 | message_done: |
5086 | 0 | _impl_._has_bits_.Or(has_bits); |
5087 | 0 | return ptr; |
5088 | 0 | failure: |
5089 | 0 | ptr = nullptr; |
5090 | 0 | goto message_done; |
5091 | 0 | #undef CHK_ |
5092 | 0 | } |
5093 | | |
5094 | | uint8_t* WhileCycle::_InternalSerialize( |
5095 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
5096 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.WhileCycle) |
5097 | 0 | uint32_t cached_has_bits = 0; |
5098 | 0 | (void) cached_has_bits; |
5099 | |
|
5100 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
5101 | | // required .lua_grammar.Expression condition = 1; |
5102 | 0 | if (cached_has_bits & 0x00000001u) { |
5103 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5104 | 0 | InternalWriteMessage(1, _Internal::condition(this), |
5105 | 0 | _Internal::condition(this).GetCachedSize(), target, stream); |
5106 | 0 | } |
5107 | | |
5108 | | // required .lua_grammar.DoBlock doblock = 2; |
5109 | 0 | if (cached_has_bits & 0x00000002u) { |
5110 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5111 | 0 | InternalWriteMessage(2, _Internal::doblock(this), |
5112 | 0 | _Internal::doblock(this).GetCachedSize(), target, stream); |
5113 | 0 | } |
5114 | |
|
5115 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
5116 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
5117 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
5118 | 0 | } |
5119 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.WhileCycle) |
5120 | 0 | return target; |
5121 | 0 | } |
5122 | | |
5123 | 0 | size_t WhileCycle::RequiredFieldsByteSizeFallback() const { |
5124 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.WhileCycle) |
5125 | 0 | size_t total_size = 0; |
5126 | |
|
5127 | 0 | if (_internal_has_condition()) { |
5128 | | // required .lua_grammar.Expression condition = 1; |
5129 | 0 | total_size += 1 + |
5130 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5131 | 0 | *_impl_.condition_); |
5132 | 0 | } |
5133 | |
|
5134 | 0 | if (_internal_has_doblock()) { |
5135 | | // required .lua_grammar.DoBlock doblock = 2; |
5136 | 0 | total_size += 1 + |
5137 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5138 | 0 | *_impl_.doblock_); |
5139 | 0 | } |
5140 | |
|
5141 | 0 | return total_size; |
5142 | 0 | } |
5143 | 0 | size_t WhileCycle::ByteSizeLong() const { |
5144 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.WhileCycle) |
5145 | 0 | size_t total_size = 0; |
5146 | |
|
5147 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
5148 | | // required .lua_grammar.Expression condition = 1; |
5149 | 0 | total_size += 1 + |
5150 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5151 | 0 | *_impl_.condition_); |
5152 | | |
5153 | | // required .lua_grammar.DoBlock doblock = 2; |
5154 | 0 | total_size += 1 + |
5155 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5156 | 0 | *_impl_.doblock_); |
5157 | |
|
5158 | 0 | } else { |
5159 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
5160 | 0 | } |
5161 | 0 | uint32_t cached_has_bits = 0; |
5162 | | // Prevent compiler warnings about cached_has_bits being unused |
5163 | 0 | (void) cached_has_bits; |
5164 | |
|
5165 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
5166 | 0 | } |
5167 | | |
5168 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WhileCycle::_class_data_ = { |
5169 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
5170 | | WhileCycle::MergeImpl |
5171 | | }; |
5172 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WhileCycle::GetClassData() const { return &_class_data_; } |
5173 | | |
5174 | | |
5175 | 0 | void WhileCycle::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
5176 | 0 | auto* const _this = static_cast<WhileCycle*>(&to_msg); |
5177 | 0 | auto& from = static_cast<const WhileCycle&>(from_msg); |
5178 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.WhileCycle) |
5179 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
5180 | 0 | uint32_t cached_has_bits = 0; |
5181 | 0 | (void) cached_has_bits; |
5182 | |
|
5183 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
5184 | 0 | if (cached_has_bits & 0x00000003u) { |
5185 | 0 | if (cached_has_bits & 0x00000001u) { |
5186 | 0 | _this->_internal_mutable_condition()->::lua_grammar::Expression::MergeFrom( |
5187 | 0 | from._internal_condition()); |
5188 | 0 | } |
5189 | 0 | if (cached_has_bits & 0x00000002u) { |
5190 | 0 | _this->_internal_mutable_doblock()->::lua_grammar::DoBlock::MergeFrom( |
5191 | 0 | from._internal_doblock()); |
5192 | 0 | } |
5193 | 0 | } |
5194 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
5195 | 0 | } |
5196 | | |
5197 | 0 | void WhileCycle::CopyFrom(const WhileCycle& from) { |
5198 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.WhileCycle) |
5199 | 0 | if (&from == this) return; |
5200 | 0 | Clear(); |
5201 | 0 | MergeFrom(from); |
5202 | 0 | } |
5203 | | |
5204 | 3.07k | bool WhileCycle::IsInitialized() const { |
5205 | 3.07k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
5206 | 3.07k | if (_internal_has_condition()) { |
5207 | 3.07k | if (!_impl_.condition_->IsInitialized()) return false; |
5208 | 3.07k | } |
5209 | 3.07k | if (_internal_has_doblock()) { |
5210 | 3.07k | if (!_impl_.doblock_->IsInitialized()) return false; |
5211 | 3.07k | } |
5212 | 3.07k | return true; |
5213 | 3.07k | } |
5214 | | |
5215 | 0 | void WhileCycle::InternalSwap(WhileCycle* other) { |
5216 | 0 | using std::swap; |
5217 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5218 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
5219 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
5220 | 0 | PROTOBUF_FIELD_OFFSET(WhileCycle, _impl_.doblock_) |
5221 | 0 | + sizeof(WhileCycle::_impl_.doblock_) |
5222 | 0 | - PROTOBUF_FIELD_OFFSET(WhileCycle, _impl_.condition_)>( |
5223 | 0 | reinterpret_cast<char*>(&_impl_.condition_), |
5224 | 0 | reinterpret_cast<char*>(&other->_impl_.condition_)); |
5225 | 0 | } |
5226 | | |
5227 | 37.0k | ::PROTOBUF_NAMESPACE_ID::Metadata WhileCycle::GetMetadata() const { |
5228 | 37.0k | return ::_pbi::AssignDescriptors( |
5229 | 37.0k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
5230 | 37.0k | file_level_metadata_lua_5fgrammar_2eproto[10]); |
5231 | 37.0k | } |
5232 | | |
5233 | | // =================================================================== |
5234 | | |
5235 | | class RepeatCycle::_Internal { |
5236 | | public: |
5237 | | using HasBits = decltype(std::declval<RepeatCycle>()._impl_._has_bits_); |
5238 | | static const ::lua_grammar::Block& block(const RepeatCycle* msg); |
5239 | 0 | static void set_has_block(HasBits* has_bits) { |
5240 | 0 | (*has_bits)[0] |= 1u; |
5241 | 0 | } |
5242 | | static const ::lua_grammar::Expression& condition(const RepeatCycle* msg); |
5243 | 0 | static void set_has_condition(HasBits* has_bits) { |
5244 | 0 | (*has_bits)[0] |= 2u; |
5245 | 0 | } |
5246 | 6.27k | static bool MissingRequiredFields(const HasBits& has_bits) { |
5247 | 6.27k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
5248 | 6.27k | } |
5249 | | }; |
5250 | | |
5251 | | const ::lua_grammar::Block& |
5252 | 0 | RepeatCycle::_Internal::block(const RepeatCycle* msg) { |
5253 | 0 | return *msg->_impl_.block_; |
5254 | 0 | } |
5255 | | const ::lua_grammar::Expression& |
5256 | 0 | RepeatCycle::_Internal::condition(const RepeatCycle* msg) { |
5257 | 0 | return *msg->_impl_.condition_; |
5258 | 0 | } |
5259 | | RepeatCycle::RepeatCycle(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5260 | | bool is_message_owned) |
5261 | 6.39k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
5262 | 6.39k | SharedCtor(arena, is_message_owned); |
5263 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.RepeatCycle) |
5264 | 6.39k | } |
5265 | | RepeatCycle::RepeatCycle(const RepeatCycle& from) |
5266 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
5267 | 0 | RepeatCycle* const _this = this; (void)_this; |
5268 | 0 | new (&_impl_) Impl_{ |
5269 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
5270 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
5271 | 0 | , decltype(_impl_.block_){nullptr} |
5272 | 0 | , decltype(_impl_.condition_){nullptr}}; |
5273 | |
|
5274 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
5275 | 0 | if (from._internal_has_block()) { |
5276 | 0 | _this->_impl_.block_ = new ::lua_grammar::Block(*from._impl_.block_); |
5277 | 0 | } |
5278 | 0 | if (from._internal_has_condition()) { |
5279 | 0 | _this->_impl_.condition_ = new ::lua_grammar::Expression(*from._impl_.condition_); |
5280 | 0 | } |
5281 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.RepeatCycle) |
5282 | 0 | } |
5283 | | |
5284 | | inline void RepeatCycle::SharedCtor( |
5285 | 6.39k | ::_pb::Arena* arena, bool is_message_owned) { |
5286 | 6.39k | (void)arena; |
5287 | 6.39k | (void)is_message_owned; |
5288 | 6.39k | new (&_impl_) Impl_{ |
5289 | 6.39k | decltype(_impl_._has_bits_){} |
5290 | 6.39k | , /*decltype(_impl_._cached_size_)*/{} |
5291 | 6.39k | , decltype(_impl_.block_){nullptr} |
5292 | 6.39k | , decltype(_impl_.condition_){nullptr} |
5293 | 6.39k | }; |
5294 | 6.39k | } |
5295 | | |
5296 | 6.39k | RepeatCycle::~RepeatCycle() { |
5297 | | // @@protoc_insertion_point(destructor:lua_grammar.RepeatCycle) |
5298 | 6.39k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
5299 | 0 | (void)arena; |
5300 | 0 | return; |
5301 | 0 | } |
5302 | 6.39k | SharedDtor(); |
5303 | 6.39k | } |
5304 | | |
5305 | 6.39k | inline void RepeatCycle::SharedDtor() { |
5306 | 6.39k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
5307 | 6.39k | if (this != internal_default_instance()) delete _impl_.block_; |
5308 | 6.39k | if (this != internal_default_instance()) delete _impl_.condition_; |
5309 | 6.39k | } |
5310 | | |
5311 | 0 | void RepeatCycle::SetCachedSize(int size) const { |
5312 | 0 | _impl_._cached_size_.Set(size); |
5313 | 0 | } |
5314 | | |
5315 | 0 | void RepeatCycle::Clear() { |
5316 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.RepeatCycle) |
5317 | 0 | uint32_t cached_has_bits = 0; |
5318 | | // Prevent compiler warnings about cached_has_bits being unused |
5319 | 0 | (void) cached_has_bits; |
5320 | |
|
5321 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
5322 | 0 | if (cached_has_bits & 0x00000003u) { |
5323 | 0 | if (cached_has_bits & 0x00000001u) { |
5324 | 0 | GOOGLE_DCHECK(_impl_.block_ != nullptr); |
5325 | 0 | _impl_.block_->Clear(); |
5326 | 0 | } |
5327 | 0 | if (cached_has_bits & 0x00000002u) { |
5328 | 0 | GOOGLE_DCHECK(_impl_.condition_ != nullptr); |
5329 | 0 | _impl_.condition_->Clear(); |
5330 | 0 | } |
5331 | 0 | } |
5332 | 0 | _impl_._has_bits_.Clear(); |
5333 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5334 | 0 | } |
5335 | | |
5336 | 0 | const char* RepeatCycle::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
5337 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5338 | 0 | _Internal::HasBits has_bits{}; |
5339 | 0 | while (!ctx->Done(&ptr)) { |
5340 | 0 | uint32_t tag; |
5341 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
5342 | 0 | switch (tag >> 3) { |
5343 | | // required .lua_grammar.Block block = 1; |
5344 | 0 | case 1: |
5345 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
5346 | 0 | ptr = ctx->ParseMessage(_internal_mutable_block(), ptr); |
5347 | 0 | CHK_(ptr); |
5348 | 0 | } else |
5349 | 0 | goto handle_unusual; |
5350 | 0 | continue; |
5351 | | // required .lua_grammar.Expression condition = 2; |
5352 | 0 | case 2: |
5353 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
5354 | 0 | ptr = ctx->ParseMessage(_internal_mutable_condition(), ptr); |
5355 | 0 | CHK_(ptr); |
5356 | 0 | } else |
5357 | 0 | goto handle_unusual; |
5358 | 0 | continue; |
5359 | 0 | default: |
5360 | 0 | goto handle_unusual; |
5361 | 0 | } // switch |
5362 | 0 | handle_unusual: |
5363 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
5364 | 0 | CHK_(ptr); |
5365 | 0 | ctx->SetLastTag(tag); |
5366 | 0 | goto message_done; |
5367 | 0 | } |
5368 | 0 | ptr = UnknownFieldParse( |
5369 | 0 | tag, |
5370 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
5371 | 0 | ptr, ctx); |
5372 | 0 | CHK_(ptr != nullptr); |
5373 | 0 | } // while |
5374 | 0 | message_done: |
5375 | 0 | _impl_._has_bits_.Or(has_bits); |
5376 | 0 | return ptr; |
5377 | 0 | failure: |
5378 | 0 | ptr = nullptr; |
5379 | 0 | goto message_done; |
5380 | 0 | #undef CHK_ |
5381 | 0 | } |
5382 | | |
5383 | | uint8_t* RepeatCycle::_InternalSerialize( |
5384 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
5385 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.RepeatCycle) |
5386 | 0 | uint32_t cached_has_bits = 0; |
5387 | 0 | (void) cached_has_bits; |
5388 | |
|
5389 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
5390 | | // required .lua_grammar.Block block = 1; |
5391 | 0 | if (cached_has_bits & 0x00000001u) { |
5392 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5393 | 0 | InternalWriteMessage(1, _Internal::block(this), |
5394 | 0 | _Internal::block(this).GetCachedSize(), target, stream); |
5395 | 0 | } |
5396 | | |
5397 | | // required .lua_grammar.Expression condition = 2; |
5398 | 0 | if (cached_has_bits & 0x00000002u) { |
5399 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5400 | 0 | InternalWriteMessage(2, _Internal::condition(this), |
5401 | 0 | _Internal::condition(this).GetCachedSize(), target, stream); |
5402 | 0 | } |
5403 | |
|
5404 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
5405 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
5406 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
5407 | 0 | } |
5408 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.RepeatCycle) |
5409 | 0 | return target; |
5410 | 0 | } |
5411 | | |
5412 | 0 | size_t RepeatCycle::RequiredFieldsByteSizeFallback() const { |
5413 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.RepeatCycle) |
5414 | 0 | size_t total_size = 0; |
5415 | |
|
5416 | 0 | if (_internal_has_block()) { |
5417 | | // required .lua_grammar.Block block = 1; |
5418 | 0 | total_size += 1 + |
5419 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5420 | 0 | *_impl_.block_); |
5421 | 0 | } |
5422 | |
|
5423 | 0 | if (_internal_has_condition()) { |
5424 | | // required .lua_grammar.Expression condition = 2; |
5425 | 0 | total_size += 1 + |
5426 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5427 | 0 | *_impl_.condition_); |
5428 | 0 | } |
5429 | |
|
5430 | 0 | return total_size; |
5431 | 0 | } |
5432 | 0 | size_t RepeatCycle::ByteSizeLong() const { |
5433 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.RepeatCycle) |
5434 | 0 | size_t total_size = 0; |
5435 | |
|
5436 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
5437 | | // required .lua_grammar.Block block = 1; |
5438 | 0 | total_size += 1 + |
5439 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5440 | 0 | *_impl_.block_); |
5441 | | |
5442 | | // required .lua_grammar.Expression condition = 2; |
5443 | 0 | total_size += 1 + |
5444 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5445 | 0 | *_impl_.condition_); |
5446 | |
|
5447 | 0 | } else { |
5448 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
5449 | 0 | } |
5450 | 0 | uint32_t cached_has_bits = 0; |
5451 | | // Prevent compiler warnings about cached_has_bits being unused |
5452 | 0 | (void) cached_has_bits; |
5453 | |
|
5454 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
5455 | 0 | } |
5456 | | |
5457 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RepeatCycle::_class_data_ = { |
5458 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
5459 | | RepeatCycle::MergeImpl |
5460 | | }; |
5461 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RepeatCycle::GetClassData() const { return &_class_data_; } |
5462 | | |
5463 | | |
5464 | 0 | void RepeatCycle::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
5465 | 0 | auto* const _this = static_cast<RepeatCycle*>(&to_msg); |
5466 | 0 | auto& from = static_cast<const RepeatCycle&>(from_msg); |
5467 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.RepeatCycle) |
5468 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
5469 | 0 | uint32_t cached_has_bits = 0; |
5470 | 0 | (void) cached_has_bits; |
5471 | |
|
5472 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
5473 | 0 | if (cached_has_bits & 0x00000003u) { |
5474 | 0 | if (cached_has_bits & 0x00000001u) { |
5475 | 0 | _this->_internal_mutable_block()->::lua_grammar::Block::MergeFrom( |
5476 | 0 | from._internal_block()); |
5477 | 0 | } |
5478 | 0 | if (cached_has_bits & 0x00000002u) { |
5479 | 0 | _this->_internal_mutable_condition()->::lua_grammar::Expression::MergeFrom( |
5480 | 0 | from._internal_condition()); |
5481 | 0 | } |
5482 | 0 | } |
5483 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
5484 | 0 | } |
5485 | | |
5486 | 0 | void RepeatCycle::CopyFrom(const RepeatCycle& from) { |
5487 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.RepeatCycle) |
5488 | 0 | if (&from == this) return; |
5489 | 0 | Clear(); |
5490 | 0 | MergeFrom(from); |
5491 | 0 | } |
5492 | | |
5493 | 6.27k | bool RepeatCycle::IsInitialized() const { |
5494 | 6.27k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
5495 | 6.27k | if (_internal_has_block()) { |
5496 | 6.27k | if (!_impl_.block_->IsInitialized()) return false; |
5497 | 6.27k | } |
5498 | 6.27k | if (_internal_has_condition()) { |
5499 | 6.27k | if (!_impl_.condition_->IsInitialized()) return false; |
5500 | 6.27k | } |
5501 | 6.27k | return true; |
5502 | 6.27k | } |
5503 | | |
5504 | 0 | void RepeatCycle::InternalSwap(RepeatCycle* other) { |
5505 | 0 | using std::swap; |
5506 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5507 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
5508 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
5509 | 0 | PROTOBUF_FIELD_OFFSET(RepeatCycle, _impl_.condition_) |
5510 | 0 | + sizeof(RepeatCycle::_impl_.condition_) |
5511 | 0 | - PROTOBUF_FIELD_OFFSET(RepeatCycle, _impl_.block_)>( |
5512 | 0 | reinterpret_cast<char*>(&_impl_.block_), |
5513 | 0 | reinterpret_cast<char*>(&other->_impl_.block_)); |
5514 | 0 | } |
5515 | | |
5516 | 75.9k | ::PROTOBUF_NAMESPACE_ID::Metadata RepeatCycle::GetMetadata() const { |
5517 | 75.9k | return ::_pbi::AssignDescriptors( |
5518 | 75.9k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
5519 | 75.9k | file_level_metadata_lua_5fgrammar_2eproto[11]); |
5520 | 75.9k | } |
5521 | | |
5522 | | // =================================================================== |
5523 | | |
5524 | | class IfStatement_ElseIfBlock::_Internal { |
5525 | | public: |
5526 | | using HasBits = decltype(std::declval<IfStatement_ElseIfBlock>()._impl_._has_bits_); |
5527 | | static const ::lua_grammar::Expression& condition(const IfStatement_ElseIfBlock* msg); |
5528 | 0 | static void set_has_condition(HasBits* has_bits) { |
5529 | 0 | (*has_bits)[0] |= 1u; |
5530 | 0 | } |
5531 | | static const ::lua_grammar::Block& block(const IfStatement_ElseIfBlock* msg); |
5532 | 0 | static void set_has_block(HasBits* has_bits) { |
5533 | 0 | (*has_bits)[0] |= 2u; |
5534 | 0 | } |
5535 | 1.48k | static bool MissingRequiredFields(const HasBits& has_bits) { |
5536 | 1.48k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
5537 | 1.48k | } |
5538 | | }; |
5539 | | |
5540 | | const ::lua_grammar::Expression& |
5541 | 0 | IfStatement_ElseIfBlock::_Internal::condition(const IfStatement_ElseIfBlock* msg) { |
5542 | 0 | return *msg->_impl_.condition_; |
5543 | 0 | } |
5544 | | const ::lua_grammar::Block& |
5545 | 0 | IfStatement_ElseIfBlock::_Internal::block(const IfStatement_ElseIfBlock* msg) { |
5546 | 0 | return *msg->_impl_.block_; |
5547 | 0 | } |
5548 | | IfStatement_ElseIfBlock::IfStatement_ElseIfBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5549 | | bool is_message_owned) |
5550 | 1.64k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
5551 | 1.64k | SharedCtor(arena, is_message_owned); |
5552 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.IfStatement.ElseIfBlock) |
5553 | 1.64k | } |
5554 | | IfStatement_ElseIfBlock::IfStatement_ElseIfBlock(const IfStatement_ElseIfBlock& from) |
5555 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
5556 | 0 | IfStatement_ElseIfBlock* const _this = this; (void)_this; |
5557 | 0 | new (&_impl_) Impl_{ |
5558 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
5559 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
5560 | 0 | , decltype(_impl_.condition_){nullptr} |
5561 | 0 | , decltype(_impl_.block_){nullptr}}; |
5562 | |
|
5563 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
5564 | 0 | if (from._internal_has_condition()) { |
5565 | 0 | _this->_impl_.condition_ = new ::lua_grammar::Expression(*from._impl_.condition_); |
5566 | 0 | } |
5567 | 0 | if (from._internal_has_block()) { |
5568 | 0 | _this->_impl_.block_ = new ::lua_grammar::Block(*from._impl_.block_); |
5569 | 0 | } |
5570 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.IfStatement.ElseIfBlock) |
5571 | 0 | } |
5572 | | |
5573 | | inline void IfStatement_ElseIfBlock::SharedCtor( |
5574 | 1.64k | ::_pb::Arena* arena, bool is_message_owned) { |
5575 | 1.64k | (void)arena; |
5576 | 1.64k | (void)is_message_owned; |
5577 | 1.64k | new (&_impl_) Impl_{ |
5578 | 1.64k | decltype(_impl_._has_bits_){} |
5579 | 1.64k | , /*decltype(_impl_._cached_size_)*/{} |
5580 | 1.64k | , decltype(_impl_.condition_){nullptr} |
5581 | 1.64k | , decltype(_impl_.block_){nullptr} |
5582 | 1.64k | }; |
5583 | 1.64k | } |
5584 | | |
5585 | 1.64k | IfStatement_ElseIfBlock::~IfStatement_ElseIfBlock() { |
5586 | | // @@protoc_insertion_point(destructor:lua_grammar.IfStatement.ElseIfBlock) |
5587 | 1.64k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
5588 | 0 | (void)arena; |
5589 | 0 | return; |
5590 | 0 | } |
5591 | 1.64k | SharedDtor(); |
5592 | 1.64k | } |
5593 | | |
5594 | 1.64k | inline void IfStatement_ElseIfBlock::SharedDtor() { |
5595 | 1.64k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
5596 | 1.64k | if (this != internal_default_instance()) delete _impl_.condition_; |
5597 | 1.64k | if (this != internal_default_instance()) delete _impl_.block_; |
5598 | 1.64k | } |
5599 | | |
5600 | 0 | void IfStatement_ElseIfBlock::SetCachedSize(int size) const { |
5601 | 0 | _impl_._cached_size_.Set(size); |
5602 | 0 | } |
5603 | | |
5604 | 0 | void IfStatement_ElseIfBlock::Clear() { |
5605 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.IfStatement.ElseIfBlock) |
5606 | 0 | uint32_t cached_has_bits = 0; |
5607 | | // Prevent compiler warnings about cached_has_bits being unused |
5608 | 0 | (void) cached_has_bits; |
5609 | |
|
5610 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
5611 | 0 | if (cached_has_bits & 0x00000003u) { |
5612 | 0 | if (cached_has_bits & 0x00000001u) { |
5613 | 0 | GOOGLE_DCHECK(_impl_.condition_ != nullptr); |
5614 | 0 | _impl_.condition_->Clear(); |
5615 | 0 | } |
5616 | 0 | if (cached_has_bits & 0x00000002u) { |
5617 | 0 | GOOGLE_DCHECK(_impl_.block_ != nullptr); |
5618 | 0 | _impl_.block_->Clear(); |
5619 | 0 | } |
5620 | 0 | } |
5621 | 0 | _impl_._has_bits_.Clear(); |
5622 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5623 | 0 | } |
5624 | | |
5625 | 0 | const char* IfStatement_ElseIfBlock::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
5626 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5627 | 0 | _Internal::HasBits has_bits{}; |
5628 | 0 | while (!ctx->Done(&ptr)) { |
5629 | 0 | uint32_t tag; |
5630 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
5631 | 0 | switch (tag >> 3) { |
5632 | | // required .lua_grammar.Expression condition = 1; |
5633 | 0 | case 1: |
5634 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
5635 | 0 | ptr = ctx->ParseMessage(_internal_mutable_condition(), ptr); |
5636 | 0 | CHK_(ptr); |
5637 | 0 | } else |
5638 | 0 | goto handle_unusual; |
5639 | 0 | continue; |
5640 | | // required .lua_grammar.Block block = 2; |
5641 | 0 | case 2: |
5642 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
5643 | 0 | ptr = ctx->ParseMessage(_internal_mutable_block(), ptr); |
5644 | 0 | CHK_(ptr); |
5645 | 0 | } else |
5646 | 0 | goto handle_unusual; |
5647 | 0 | continue; |
5648 | 0 | default: |
5649 | 0 | goto handle_unusual; |
5650 | 0 | } // switch |
5651 | 0 | handle_unusual: |
5652 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
5653 | 0 | CHK_(ptr); |
5654 | 0 | ctx->SetLastTag(tag); |
5655 | 0 | goto message_done; |
5656 | 0 | } |
5657 | 0 | ptr = UnknownFieldParse( |
5658 | 0 | tag, |
5659 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
5660 | 0 | ptr, ctx); |
5661 | 0 | CHK_(ptr != nullptr); |
5662 | 0 | } // while |
5663 | 0 | message_done: |
5664 | 0 | _impl_._has_bits_.Or(has_bits); |
5665 | 0 | return ptr; |
5666 | 0 | failure: |
5667 | 0 | ptr = nullptr; |
5668 | 0 | goto message_done; |
5669 | 0 | #undef CHK_ |
5670 | 0 | } |
5671 | | |
5672 | | uint8_t* IfStatement_ElseIfBlock::_InternalSerialize( |
5673 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
5674 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.IfStatement.ElseIfBlock) |
5675 | 0 | uint32_t cached_has_bits = 0; |
5676 | 0 | (void) cached_has_bits; |
5677 | |
|
5678 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
5679 | | // required .lua_grammar.Expression condition = 1; |
5680 | 0 | if (cached_has_bits & 0x00000001u) { |
5681 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5682 | 0 | InternalWriteMessage(1, _Internal::condition(this), |
5683 | 0 | _Internal::condition(this).GetCachedSize(), target, stream); |
5684 | 0 | } |
5685 | | |
5686 | | // required .lua_grammar.Block block = 2; |
5687 | 0 | if (cached_has_bits & 0x00000002u) { |
5688 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
5689 | 0 | InternalWriteMessage(2, _Internal::block(this), |
5690 | 0 | _Internal::block(this).GetCachedSize(), target, stream); |
5691 | 0 | } |
5692 | |
|
5693 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
5694 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
5695 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
5696 | 0 | } |
5697 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.IfStatement.ElseIfBlock) |
5698 | 0 | return target; |
5699 | 0 | } |
5700 | | |
5701 | 0 | size_t IfStatement_ElseIfBlock::RequiredFieldsByteSizeFallback() const { |
5702 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.IfStatement.ElseIfBlock) |
5703 | 0 | size_t total_size = 0; |
5704 | |
|
5705 | 0 | if (_internal_has_condition()) { |
5706 | | // required .lua_grammar.Expression condition = 1; |
5707 | 0 | total_size += 1 + |
5708 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5709 | 0 | *_impl_.condition_); |
5710 | 0 | } |
5711 | |
|
5712 | 0 | if (_internal_has_block()) { |
5713 | | // required .lua_grammar.Block block = 2; |
5714 | 0 | total_size += 1 + |
5715 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5716 | 0 | *_impl_.block_); |
5717 | 0 | } |
5718 | |
|
5719 | 0 | return total_size; |
5720 | 0 | } |
5721 | 0 | size_t IfStatement_ElseIfBlock::ByteSizeLong() const { |
5722 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.IfStatement.ElseIfBlock) |
5723 | 0 | size_t total_size = 0; |
5724 | |
|
5725 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
5726 | | // required .lua_grammar.Expression condition = 1; |
5727 | 0 | total_size += 1 + |
5728 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5729 | 0 | *_impl_.condition_); |
5730 | | |
5731 | | // required .lua_grammar.Block block = 2; |
5732 | 0 | total_size += 1 + |
5733 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
5734 | 0 | *_impl_.block_); |
5735 | |
|
5736 | 0 | } else { |
5737 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
5738 | 0 | } |
5739 | 0 | uint32_t cached_has_bits = 0; |
5740 | | // Prevent compiler warnings about cached_has_bits being unused |
5741 | 0 | (void) cached_has_bits; |
5742 | |
|
5743 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
5744 | 0 | } |
5745 | | |
5746 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IfStatement_ElseIfBlock::_class_data_ = { |
5747 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
5748 | | IfStatement_ElseIfBlock::MergeImpl |
5749 | | }; |
5750 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IfStatement_ElseIfBlock::GetClassData() const { return &_class_data_; } |
5751 | | |
5752 | | |
5753 | 0 | void IfStatement_ElseIfBlock::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
5754 | 0 | auto* const _this = static_cast<IfStatement_ElseIfBlock*>(&to_msg); |
5755 | 0 | auto& from = static_cast<const IfStatement_ElseIfBlock&>(from_msg); |
5756 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.IfStatement.ElseIfBlock) |
5757 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
5758 | 0 | uint32_t cached_has_bits = 0; |
5759 | 0 | (void) cached_has_bits; |
5760 | |
|
5761 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
5762 | 0 | if (cached_has_bits & 0x00000003u) { |
5763 | 0 | if (cached_has_bits & 0x00000001u) { |
5764 | 0 | _this->_internal_mutable_condition()->::lua_grammar::Expression::MergeFrom( |
5765 | 0 | from._internal_condition()); |
5766 | 0 | } |
5767 | 0 | if (cached_has_bits & 0x00000002u) { |
5768 | 0 | _this->_internal_mutable_block()->::lua_grammar::Block::MergeFrom( |
5769 | 0 | from._internal_block()); |
5770 | 0 | } |
5771 | 0 | } |
5772 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
5773 | 0 | } |
5774 | | |
5775 | 0 | void IfStatement_ElseIfBlock::CopyFrom(const IfStatement_ElseIfBlock& from) { |
5776 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.IfStatement.ElseIfBlock) |
5777 | 0 | if (&from == this) return; |
5778 | 0 | Clear(); |
5779 | 0 | MergeFrom(from); |
5780 | 0 | } |
5781 | | |
5782 | 1.48k | bool IfStatement_ElseIfBlock::IsInitialized() const { |
5783 | 1.48k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
5784 | 1.48k | if (_internal_has_condition()) { |
5785 | 1.48k | if (!_impl_.condition_->IsInitialized()) return false; |
5786 | 1.48k | } |
5787 | 1.48k | if (_internal_has_block()) { |
5788 | 1.48k | if (!_impl_.block_->IsInitialized()) return false; |
5789 | 1.48k | } |
5790 | 1.48k | return true; |
5791 | 1.48k | } |
5792 | | |
5793 | 0 | void IfStatement_ElseIfBlock::InternalSwap(IfStatement_ElseIfBlock* other) { |
5794 | 0 | using std::swap; |
5795 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
5796 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
5797 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
5798 | 0 | PROTOBUF_FIELD_OFFSET(IfStatement_ElseIfBlock, _impl_.block_) |
5799 | 0 | + sizeof(IfStatement_ElseIfBlock::_impl_.block_) |
5800 | 0 | - PROTOBUF_FIELD_OFFSET(IfStatement_ElseIfBlock, _impl_.condition_)>( |
5801 | 0 | reinterpret_cast<char*>(&_impl_.condition_), |
5802 | 0 | reinterpret_cast<char*>(&other->_impl_.condition_)); |
5803 | 0 | } |
5804 | | |
5805 | 18.2k | ::PROTOBUF_NAMESPACE_ID::Metadata IfStatement_ElseIfBlock::GetMetadata() const { |
5806 | 18.2k | return ::_pbi::AssignDescriptors( |
5807 | 18.2k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
5808 | 18.2k | file_level_metadata_lua_5fgrammar_2eproto[12]); |
5809 | 18.2k | } |
5810 | | |
5811 | | // =================================================================== |
5812 | | |
5813 | | class IfStatement::_Internal { |
5814 | | public: |
5815 | | using HasBits = decltype(std::declval<IfStatement>()._impl_._has_bits_); |
5816 | | static const ::lua_grammar::Expression& condition(const IfStatement* msg); |
5817 | 0 | static void set_has_condition(HasBits* has_bits) { |
5818 | 0 | (*has_bits)[0] |= 1u; |
5819 | 0 | } |
5820 | | static const ::lua_grammar::Block& first(const IfStatement* msg); |
5821 | 0 | static void set_has_first(HasBits* has_bits) { |
5822 | 0 | (*has_bits)[0] |= 2u; |
5823 | 0 | } |
5824 | | static const ::lua_grammar::Block& last(const IfStatement* msg); |
5825 | 0 | static void set_has_last(HasBits* has_bits) { |
5826 | 0 | (*has_bits)[0] |= 4u; |
5827 | 0 | } |
5828 | 3.05k | static bool MissingRequiredFields(const HasBits& has_bits) { |
5829 | 3.05k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
5830 | 3.05k | } |
5831 | | }; |
5832 | | |
5833 | | const ::lua_grammar::Expression& |
5834 | 0 | IfStatement::_Internal::condition(const IfStatement* msg) { |
5835 | 0 | return *msg->_impl_.condition_; |
5836 | 0 | } |
5837 | | const ::lua_grammar::Block& |
5838 | 0 | IfStatement::_Internal::first(const IfStatement* msg) { |
5839 | 0 | return *msg->_impl_.first_; |
5840 | 0 | } |
5841 | | const ::lua_grammar::Block& |
5842 | 0 | IfStatement::_Internal::last(const IfStatement* msg) { |
5843 | 0 | return *msg->_impl_.last_; |
5844 | 0 | } |
5845 | | IfStatement::IfStatement(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5846 | | bool is_message_owned) |
5847 | 3.27k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
5848 | 3.27k | SharedCtor(arena, is_message_owned); |
5849 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.IfStatement) |
5850 | 3.27k | } |
5851 | | IfStatement::IfStatement(const IfStatement& from) |
5852 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
5853 | 0 | IfStatement* const _this = this; (void)_this; |
5854 | 0 | new (&_impl_) Impl_{ |
5855 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
5856 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
5857 | 0 | , decltype(_impl_.clauses_){from._impl_.clauses_} |
5858 | 0 | , decltype(_impl_.condition_){nullptr} |
5859 | 0 | , decltype(_impl_.first_){nullptr} |
5860 | 0 | , decltype(_impl_.last_){nullptr}}; |
5861 | |
|
5862 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
5863 | 0 | if (from._internal_has_condition()) { |
5864 | 0 | _this->_impl_.condition_ = new ::lua_grammar::Expression(*from._impl_.condition_); |
5865 | 0 | } |
5866 | 0 | if (from._internal_has_first()) { |
5867 | 0 | _this->_impl_.first_ = new ::lua_grammar::Block(*from._impl_.first_); |
5868 | 0 | } |
5869 | 0 | if (from._internal_has_last()) { |
5870 | 0 | _this->_impl_.last_ = new ::lua_grammar::Block(*from._impl_.last_); |
5871 | 0 | } |
5872 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.IfStatement) |
5873 | 0 | } |
5874 | | |
5875 | | inline void IfStatement::SharedCtor( |
5876 | 3.27k | ::_pb::Arena* arena, bool is_message_owned) { |
5877 | 3.27k | (void)arena; |
5878 | 3.27k | (void)is_message_owned; |
5879 | 3.27k | new (&_impl_) Impl_{ |
5880 | 3.27k | decltype(_impl_._has_bits_){} |
5881 | 3.27k | , /*decltype(_impl_._cached_size_)*/{} |
5882 | 3.27k | , decltype(_impl_.clauses_){arena} |
5883 | 3.27k | , decltype(_impl_.condition_){nullptr} |
5884 | 3.27k | , decltype(_impl_.first_){nullptr} |
5885 | 3.27k | , decltype(_impl_.last_){nullptr} |
5886 | 3.27k | }; |
5887 | 3.27k | } |
5888 | | |
5889 | 3.27k | IfStatement::~IfStatement() { |
5890 | | // @@protoc_insertion_point(destructor:lua_grammar.IfStatement) |
5891 | 3.27k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
5892 | 0 | (void)arena; |
5893 | 0 | return; |
5894 | 0 | } |
5895 | 3.27k | SharedDtor(); |
5896 | 3.27k | } |
5897 | | |
5898 | 3.27k | inline void IfStatement::SharedDtor() { |
5899 | 3.27k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
5900 | 3.27k | _impl_.clauses_.~RepeatedPtrField(); |
5901 | 3.27k | if (this != internal_default_instance()) delete _impl_.condition_; |
5902 | 3.27k | if (this != internal_default_instance()) delete _impl_.first_; |
5903 | 3.27k | if (this != internal_default_instance()) delete _impl_.last_; |
5904 | 3.27k | } |
5905 | | |
5906 | 0 | void IfStatement::SetCachedSize(int size) const { |
5907 | 0 | _impl_._cached_size_.Set(size); |
5908 | 0 | } |
5909 | | |
5910 | 0 | void IfStatement::Clear() { |
5911 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.IfStatement) |
5912 | 0 | uint32_t cached_has_bits = 0; |
5913 | | // Prevent compiler warnings about cached_has_bits being unused |
5914 | 0 | (void) cached_has_bits; |
5915 | |
|
5916 | 0 | _impl_.clauses_.Clear(); |
5917 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
5918 | 0 | if (cached_has_bits & 0x00000007u) { |
5919 | 0 | if (cached_has_bits & 0x00000001u) { |
5920 | 0 | GOOGLE_DCHECK(_impl_.condition_ != nullptr); |
5921 | 0 | _impl_.condition_->Clear(); |
5922 | 0 | } |
5923 | 0 | if (cached_has_bits & 0x00000002u) { |
5924 | 0 | GOOGLE_DCHECK(_impl_.first_ != nullptr); |
5925 | 0 | _impl_.first_->Clear(); |
5926 | 0 | } |
5927 | 0 | if (cached_has_bits & 0x00000004u) { |
5928 | 0 | GOOGLE_DCHECK(_impl_.last_ != nullptr); |
5929 | 0 | _impl_.last_->Clear(); |
5930 | 0 | } |
5931 | 0 | } |
5932 | 0 | _impl_._has_bits_.Clear(); |
5933 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5934 | 0 | } |
5935 | | |
5936 | 0 | const char* IfStatement::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
5937 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
5938 | 0 | _Internal::HasBits has_bits{}; |
5939 | 0 | while (!ctx->Done(&ptr)) { |
5940 | 0 | uint32_t tag; |
5941 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
5942 | 0 | switch (tag >> 3) { |
5943 | | // required .lua_grammar.Expression condition = 1; |
5944 | 0 | case 1: |
5945 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
5946 | 0 | ptr = ctx->ParseMessage(_internal_mutable_condition(), ptr); |
5947 | 0 | CHK_(ptr); |
5948 | 0 | } else |
5949 | 0 | goto handle_unusual; |
5950 | 0 | continue; |
5951 | | // required .lua_grammar.Block first = 2; |
5952 | 0 | case 2: |
5953 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
5954 | 0 | ptr = ctx->ParseMessage(_internal_mutable_first(), ptr); |
5955 | 0 | CHK_(ptr); |
5956 | 0 | } else |
5957 | 0 | goto handle_unusual; |
5958 | 0 | continue; |
5959 | | // repeated .lua_grammar.IfStatement.ElseIfBlock clauses = 3; |
5960 | 0 | case 3: |
5961 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
5962 | 0 | ptr -= 1; |
5963 | 0 | do { |
5964 | 0 | ptr += 1; |
5965 | 0 | ptr = ctx->ParseMessage(_internal_add_clauses(), ptr); |
5966 | 0 | CHK_(ptr); |
5967 | 0 | if (!ctx->DataAvailable(ptr)) break; |
5968 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); |
5969 | 0 | } else |
5970 | 0 | goto handle_unusual; |
5971 | 0 | continue; |
5972 | | // optional .lua_grammar.Block last = 4; |
5973 | 0 | case 4: |
5974 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { |
5975 | 0 | ptr = ctx->ParseMessage(_internal_mutable_last(), ptr); |
5976 | 0 | CHK_(ptr); |
5977 | 0 | } else |
5978 | 0 | goto handle_unusual; |
5979 | 0 | continue; |
5980 | 0 | default: |
5981 | 0 | goto handle_unusual; |
5982 | 0 | } // switch |
5983 | 0 | handle_unusual: |
5984 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
5985 | 0 | CHK_(ptr); |
5986 | 0 | ctx->SetLastTag(tag); |
5987 | 0 | goto message_done; |
5988 | 0 | } |
5989 | 0 | ptr = UnknownFieldParse( |
5990 | 0 | tag, |
5991 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
5992 | 0 | ptr, ctx); |
5993 | 0 | CHK_(ptr != nullptr); |
5994 | 0 | } // while |
5995 | 0 | message_done: |
5996 | 0 | _impl_._has_bits_.Or(has_bits); |
5997 | 0 | return ptr; |
5998 | 0 | failure: |
5999 | 0 | ptr = nullptr; |
6000 | 0 | goto message_done; |
6001 | 0 | #undef CHK_ |
6002 | 0 | } |
6003 | | |
6004 | | uint8_t* IfStatement::_InternalSerialize( |
6005 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
6006 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.IfStatement) |
6007 | 0 | uint32_t cached_has_bits = 0; |
6008 | 0 | (void) cached_has_bits; |
6009 | |
|
6010 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
6011 | | // required .lua_grammar.Expression condition = 1; |
6012 | 0 | if (cached_has_bits & 0x00000001u) { |
6013 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6014 | 0 | InternalWriteMessage(1, _Internal::condition(this), |
6015 | 0 | _Internal::condition(this).GetCachedSize(), target, stream); |
6016 | 0 | } |
6017 | | |
6018 | | // required .lua_grammar.Block first = 2; |
6019 | 0 | if (cached_has_bits & 0x00000002u) { |
6020 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6021 | 0 | InternalWriteMessage(2, _Internal::first(this), |
6022 | 0 | _Internal::first(this).GetCachedSize(), target, stream); |
6023 | 0 | } |
6024 | | |
6025 | | // repeated .lua_grammar.IfStatement.ElseIfBlock clauses = 3; |
6026 | 0 | for (unsigned i = 0, |
6027 | 0 | n = static_cast<unsigned>(this->_internal_clauses_size()); i < n; i++) { |
6028 | 0 | const auto& repfield = this->_internal_clauses(i); |
6029 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6030 | 0 | InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); |
6031 | 0 | } |
6032 | | |
6033 | | // optional .lua_grammar.Block last = 4; |
6034 | 0 | if (cached_has_bits & 0x00000004u) { |
6035 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6036 | 0 | InternalWriteMessage(4, _Internal::last(this), |
6037 | 0 | _Internal::last(this).GetCachedSize(), target, stream); |
6038 | 0 | } |
6039 | |
|
6040 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
6041 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
6042 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
6043 | 0 | } |
6044 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.IfStatement) |
6045 | 0 | return target; |
6046 | 0 | } |
6047 | | |
6048 | 0 | size_t IfStatement::RequiredFieldsByteSizeFallback() const { |
6049 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.IfStatement) |
6050 | 0 | size_t total_size = 0; |
6051 | |
|
6052 | 0 | if (_internal_has_condition()) { |
6053 | | // required .lua_grammar.Expression condition = 1; |
6054 | 0 | total_size += 1 + |
6055 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6056 | 0 | *_impl_.condition_); |
6057 | 0 | } |
6058 | |
|
6059 | 0 | if (_internal_has_first()) { |
6060 | | // required .lua_grammar.Block first = 2; |
6061 | 0 | total_size += 1 + |
6062 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6063 | 0 | *_impl_.first_); |
6064 | 0 | } |
6065 | |
|
6066 | 0 | return total_size; |
6067 | 0 | } |
6068 | 0 | size_t IfStatement::ByteSizeLong() const { |
6069 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.IfStatement) |
6070 | 0 | size_t total_size = 0; |
6071 | |
|
6072 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
6073 | | // required .lua_grammar.Expression condition = 1; |
6074 | 0 | total_size += 1 + |
6075 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6076 | 0 | *_impl_.condition_); |
6077 | | |
6078 | | // required .lua_grammar.Block first = 2; |
6079 | 0 | total_size += 1 + |
6080 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6081 | 0 | *_impl_.first_); |
6082 | |
|
6083 | 0 | } else { |
6084 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
6085 | 0 | } |
6086 | 0 | uint32_t cached_has_bits = 0; |
6087 | | // Prevent compiler warnings about cached_has_bits being unused |
6088 | 0 | (void) cached_has_bits; |
6089 | | |
6090 | | // repeated .lua_grammar.IfStatement.ElseIfBlock clauses = 3; |
6091 | 0 | total_size += 1UL * this->_internal_clauses_size(); |
6092 | 0 | for (const auto& msg : this->_impl_.clauses_) { |
6093 | 0 | total_size += |
6094 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
6095 | 0 | } |
6096 | | |
6097 | | // optional .lua_grammar.Block last = 4; |
6098 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
6099 | 0 | if (cached_has_bits & 0x00000004u) { |
6100 | 0 | total_size += 1 + |
6101 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6102 | 0 | *_impl_.last_); |
6103 | 0 | } |
6104 | |
|
6105 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
6106 | 0 | } |
6107 | | |
6108 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IfStatement::_class_data_ = { |
6109 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
6110 | | IfStatement::MergeImpl |
6111 | | }; |
6112 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IfStatement::GetClassData() const { return &_class_data_; } |
6113 | | |
6114 | | |
6115 | 0 | void IfStatement::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
6116 | 0 | auto* const _this = static_cast<IfStatement*>(&to_msg); |
6117 | 0 | auto& from = static_cast<const IfStatement&>(from_msg); |
6118 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.IfStatement) |
6119 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
6120 | 0 | uint32_t cached_has_bits = 0; |
6121 | 0 | (void) cached_has_bits; |
6122 | |
|
6123 | 0 | _this->_impl_.clauses_.MergeFrom(from._impl_.clauses_); |
6124 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
6125 | 0 | if (cached_has_bits & 0x00000007u) { |
6126 | 0 | if (cached_has_bits & 0x00000001u) { |
6127 | 0 | _this->_internal_mutable_condition()->::lua_grammar::Expression::MergeFrom( |
6128 | 0 | from._internal_condition()); |
6129 | 0 | } |
6130 | 0 | if (cached_has_bits & 0x00000002u) { |
6131 | 0 | _this->_internal_mutable_first()->::lua_grammar::Block::MergeFrom( |
6132 | 0 | from._internal_first()); |
6133 | 0 | } |
6134 | 0 | if (cached_has_bits & 0x00000004u) { |
6135 | 0 | _this->_internal_mutable_last()->::lua_grammar::Block::MergeFrom( |
6136 | 0 | from._internal_last()); |
6137 | 0 | } |
6138 | 0 | } |
6139 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
6140 | 0 | } |
6141 | | |
6142 | 0 | void IfStatement::CopyFrom(const IfStatement& from) { |
6143 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.IfStatement) |
6144 | 0 | if (&from == this) return; |
6145 | 0 | Clear(); |
6146 | 0 | MergeFrom(from); |
6147 | 0 | } |
6148 | | |
6149 | 3.05k | bool IfStatement::IsInitialized() const { |
6150 | 3.05k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
6151 | 3.05k | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.clauses_)) |
6152 | 0 | return false; |
6153 | 3.05k | if (_internal_has_condition()) { |
6154 | 3.05k | if (!_impl_.condition_->IsInitialized()) return false; |
6155 | 3.05k | } |
6156 | 3.05k | if (_internal_has_first()) { |
6157 | 3.05k | if (!_impl_.first_->IsInitialized()) return false; |
6158 | 3.05k | } |
6159 | 3.05k | if (_internal_has_last()) { |
6160 | 1.26k | if (!_impl_.last_->IsInitialized()) return false; |
6161 | 1.26k | } |
6162 | 3.05k | return true; |
6163 | 3.05k | } |
6164 | | |
6165 | 0 | void IfStatement::InternalSwap(IfStatement* other) { |
6166 | 0 | using std::swap; |
6167 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
6168 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
6169 | 0 | _impl_.clauses_.InternalSwap(&other->_impl_.clauses_); |
6170 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
6171 | 0 | PROTOBUF_FIELD_OFFSET(IfStatement, _impl_.last_) |
6172 | 0 | + sizeof(IfStatement::_impl_.last_) |
6173 | 0 | - PROTOBUF_FIELD_OFFSET(IfStatement, _impl_.condition_)>( |
6174 | 0 | reinterpret_cast<char*>(&_impl_.condition_), |
6175 | 0 | reinterpret_cast<char*>(&other->_impl_.condition_)); |
6176 | 0 | } |
6177 | | |
6178 | 46.2k | ::PROTOBUF_NAMESPACE_ID::Metadata IfStatement::GetMetadata() const { |
6179 | 46.2k | return ::_pbi::AssignDescriptors( |
6180 | 46.2k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
6181 | 46.2k | file_level_metadata_lua_5fgrammar_2eproto[13]); |
6182 | 46.2k | } |
6183 | | |
6184 | | // =================================================================== |
6185 | | |
6186 | | class ForCycleName::_Internal { |
6187 | | public: |
6188 | | using HasBits = decltype(std::declval<ForCycleName>()._impl_._has_bits_); |
6189 | | static const ::lua_grammar::Name& name(const ForCycleName* msg); |
6190 | 0 | static void set_has_name(HasBits* has_bits) { |
6191 | 0 | (*has_bits)[0] |= 1u; |
6192 | 0 | } |
6193 | | static const ::lua_grammar::Expression& startexp(const ForCycleName* msg); |
6194 | 0 | static void set_has_startexp(HasBits* has_bits) { |
6195 | 0 | (*has_bits)[0] |= 2u; |
6196 | 0 | } |
6197 | | static const ::lua_grammar::Expression& stopexp(const ForCycleName* msg); |
6198 | 0 | static void set_has_stopexp(HasBits* has_bits) { |
6199 | 0 | (*has_bits)[0] |= 4u; |
6200 | 0 | } |
6201 | | static const ::lua_grammar::Expression& stepexp(const ForCycleName* msg); |
6202 | 0 | static void set_has_stepexp(HasBits* has_bits) { |
6203 | 0 | (*has_bits)[0] |= 8u; |
6204 | 0 | } |
6205 | | static const ::lua_grammar::DoBlock& doblock(const ForCycleName* msg); |
6206 | 0 | static void set_has_doblock(HasBits* has_bits) { |
6207 | 0 | (*has_bits)[0] |= 16u; |
6208 | 0 | } |
6209 | 1.31k | static bool MissingRequiredFields(const HasBits& has_bits) { |
6210 | 1.31k | return ((has_bits[0] & 0x00000017) ^ 0x00000017) != 0; |
6211 | 1.31k | } |
6212 | | }; |
6213 | | |
6214 | | const ::lua_grammar::Name& |
6215 | 0 | ForCycleName::_Internal::name(const ForCycleName* msg) { |
6216 | 0 | return *msg->_impl_.name_; |
6217 | 0 | } |
6218 | | const ::lua_grammar::Expression& |
6219 | 0 | ForCycleName::_Internal::startexp(const ForCycleName* msg) { |
6220 | 0 | return *msg->_impl_.startexp_; |
6221 | 0 | } |
6222 | | const ::lua_grammar::Expression& |
6223 | 0 | ForCycleName::_Internal::stopexp(const ForCycleName* msg) { |
6224 | 0 | return *msg->_impl_.stopexp_; |
6225 | 0 | } |
6226 | | const ::lua_grammar::Expression& |
6227 | 0 | ForCycleName::_Internal::stepexp(const ForCycleName* msg) { |
6228 | 0 | return *msg->_impl_.stepexp_; |
6229 | 0 | } |
6230 | | const ::lua_grammar::DoBlock& |
6231 | 0 | ForCycleName::_Internal::doblock(const ForCycleName* msg) { |
6232 | 0 | return *msg->_impl_.doblock_; |
6233 | 0 | } |
6234 | | ForCycleName::ForCycleName(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6235 | | bool is_message_owned) |
6236 | 1.35k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
6237 | 1.35k | SharedCtor(arena, is_message_owned); |
6238 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.ForCycleName) |
6239 | 1.35k | } |
6240 | | ForCycleName::ForCycleName(const ForCycleName& from) |
6241 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
6242 | 0 | ForCycleName* const _this = this; (void)_this; |
6243 | 0 | new (&_impl_) Impl_{ |
6244 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
6245 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
6246 | 0 | , decltype(_impl_.name_){nullptr} |
6247 | 0 | , decltype(_impl_.startexp_){nullptr} |
6248 | 0 | , decltype(_impl_.stopexp_){nullptr} |
6249 | 0 | , decltype(_impl_.stepexp_){nullptr} |
6250 | 0 | , decltype(_impl_.doblock_){nullptr}}; |
6251 | |
|
6252 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
6253 | 0 | if (from._internal_has_name()) { |
6254 | 0 | _this->_impl_.name_ = new ::lua_grammar::Name(*from._impl_.name_); |
6255 | 0 | } |
6256 | 0 | if (from._internal_has_startexp()) { |
6257 | 0 | _this->_impl_.startexp_ = new ::lua_grammar::Expression(*from._impl_.startexp_); |
6258 | 0 | } |
6259 | 0 | if (from._internal_has_stopexp()) { |
6260 | 0 | _this->_impl_.stopexp_ = new ::lua_grammar::Expression(*from._impl_.stopexp_); |
6261 | 0 | } |
6262 | 0 | if (from._internal_has_stepexp()) { |
6263 | 0 | _this->_impl_.stepexp_ = new ::lua_grammar::Expression(*from._impl_.stepexp_); |
6264 | 0 | } |
6265 | 0 | if (from._internal_has_doblock()) { |
6266 | 0 | _this->_impl_.doblock_ = new ::lua_grammar::DoBlock(*from._impl_.doblock_); |
6267 | 0 | } |
6268 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.ForCycleName) |
6269 | 0 | } |
6270 | | |
6271 | | inline void ForCycleName::SharedCtor( |
6272 | 1.35k | ::_pb::Arena* arena, bool is_message_owned) { |
6273 | 1.35k | (void)arena; |
6274 | 1.35k | (void)is_message_owned; |
6275 | 1.35k | new (&_impl_) Impl_{ |
6276 | 1.35k | decltype(_impl_._has_bits_){} |
6277 | 1.35k | , /*decltype(_impl_._cached_size_)*/{} |
6278 | 1.35k | , decltype(_impl_.name_){nullptr} |
6279 | 1.35k | , decltype(_impl_.startexp_){nullptr} |
6280 | 1.35k | , decltype(_impl_.stopexp_){nullptr} |
6281 | 1.35k | , decltype(_impl_.stepexp_){nullptr} |
6282 | 1.35k | , decltype(_impl_.doblock_){nullptr} |
6283 | 1.35k | }; |
6284 | 1.35k | } |
6285 | | |
6286 | 1.35k | ForCycleName::~ForCycleName() { |
6287 | | // @@protoc_insertion_point(destructor:lua_grammar.ForCycleName) |
6288 | 1.35k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
6289 | 0 | (void)arena; |
6290 | 0 | return; |
6291 | 0 | } |
6292 | 1.35k | SharedDtor(); |
6293 | 1.35k | } |
6294 | | |
6295 | 1.35k | inline void ForCycleName::SharedDtor() { |
6296 | 1.35k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
6297 | 1.35k | if (this != internal_default_instance()) delete _impl_.name_; |
6298 | 1.35k | if (this != internal_default_instance()) delete _impl_.startexp_; |
6299 | 1.35k | if (this != internal_default_instance()) delete _impl_.stopexp_; |
6300 | 1.35k | if (this != internal_default_instance()) delete _impl_.stepexp_; |
6301 | 1.35k | if (this != internal_default_instance()) delete _impl_.doblock_; |
6302 | 1.35k | } |
6303 | | |
6304 | 0 | void ForCycleName::SetCachedSize(int size) const { |
6305 | 0 | _impl_._cached_size_.Set(size); |
6306 | 0 | } |
6307 | | |
6308 | 0 | void ForCycleName::Clear() { |
6309 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.ForCycleName) |
6310 | 0 | uint32_t cached_has_bits = 0; |
6311 | | // Prevent compiler warnings about cached_has_bits being unused |
6312 | 0 | (void) cached_has_bits; |
6313 | |
|
6314 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
6315 | 0 | if (cached_has_bits & 0x0000001fu) { |
6316 | 0 | if (cached_has_bits & 0x00000001u) { |
6317 | 0 | GOOGLE_DCHECK(_impl_.name_ != nullptr); |
6318 | 0 | _impl_.name_->Clear(); |
6319 | 0 | } |
6320 | 0 | if (cached_has_bits & 0x00000002u) { |
6321 | 0 | GOOGLE_DCHECK(_impl_.startexp_ != nullptr); |
6322 | 0 | _impl_.startexp_->Clear(); |
6323 | 0 | } |
6324 | 0 | if (cached_has_bits & 0x00000004u) { |
6325 | 0 | GOOGLE_DCHECK(_impl_.stopexp_ != nullptr); |
6326 | 0 | _impl_.stopexp_->Clear(); |
6327 | 0 | } |
6328 | 0 | if (cached_has_bits & 0x00000008u) { |
6329 | 0 | GOOGLE_DCHECK(_impl_.stepexp_ != nullptr); |
6330 | 0 | _impl_.stepexp_->Clear(); |
6331 | 0 | } |
6332 | 0 | if (cached_has_bits & 0x00000010u) { |
6333 | 0 | GOOGLE_DCHECK(_impl_.doblock_ != nullptr); |
6334 | 0 | _impl_.doblock_->Clear(); |
6335 | 0 | } |
6336 | 0 | } |
6337 | 0 | _impl_._has_bits_.Clear(); |
6338 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
6339 | 0 | } |
6340 | | |
6341 | 0 | const char* ForCycleName::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
6342 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6343 | 0 | _Internal::HasBits has_bits{}; |
6344 | 0 | while (!ctx->Done(&ptr)) { |
6345 | 0 | uint32_t tag; |
6346 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
6347 | 0 | switch (tag >> 3) { |
6348 | | // required .lua_grammar.Name name = 1; |
6349 | 0 | case 1: |
6350 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
6351 | 0 | ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); |
6352 | 0 | CHK_(ptr); |
6353 | 0 | } else |
6354 | 0 | goto handle_unusual; |
6355 | 0 | continue; |
6356 | | // required .lua_grammar.Expression startexp = 2; |
6357 | 0 | case 2: |
6358 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
6359 | 0 | ptr = ctx->ParseMessage(_internal_mutable_startexp(), ptr); |
6360 | 0 | CHK_(ptr); |
6361 | 0 | } else |
6362 | 0 | goto handle_unusual; |
6363 | 0 | continue; |
6364 | | // required .lua_grammar.Expression stopexp = 3; |
6365 | 0 | case 3: |
6366 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
6367 | 0 | ptr = ctx->ParseMessage(_internal_mutable_stopexp(), ptr); |
6368 | 0 | CHK_(ptr); |
6369 | 0 | } else |
6370 | 0 | goto handle_unusual; |
6371 | 0 | continue; |
6372 | | // optional .lua_grammar.Expression stepexp = 4; |
6373 | 0 | case 4: |
6374 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { |
6375 | 0 | ptr = ctx->ParseMessage(_internal_mutable_stepexp(), ptr); |
6376 | 0 | CHK_(ptr); |
6377 | 0 | } else |
6378 | 0 | goto handle_unusual; |
6379 | 0 | continue; |
6380 | | // required .lua_grammar.DoBlock doblock = 5; |
6381 | 0 | case 5: |
6382 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { |
6383 | 0 | ptr = ctx->ParseMessage(_internal_mutable_doblock(), ptr); |
6384 | 0 | CHK_(ptr); |
6385 | 0 | } else |
6386 | 0 | goto handle_unusual; |
6387 | 0 | continue; |
6388 | 0 | default: |
6389 | 0 | goto handle_unusual; |
6390 | 0 | } // switch |
6391 | 0 | handle_unusual: |
6392 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
6393 | 0 | CHK_(ptr); |
6394 | 0 | ctx->SetLastTag(tag); |
6395 | 0 | goto message_done; |
6396 | 0 | } |
6397 | 0 | ptr = UnknownFieldParse( |
6398 | 0 | tag, |
6399 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
6400 | 0 | ptr, ctx); |
6401 | 0 | CHK_(ptr != nullptr); |
6402 | 0 | } // while |
6403 | 0 | message_done: |
6404 | 0 | _impl_._has_bits_.Or(has_bits); |
6405 | 0 | return ptr; |
6406 | 0 | failure: |
6407 | 0 | ptr = nullptr; |
6408 | 0 | goto message_done; |
6409 | 0 | #undef CHK_ |
6410 | 0 | } |
6411 | | |
6412 | | uint8_t* ForCycleName::_InternalSerialize( |
6413 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
6414 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.ForCycleName) |
6415 | 0 | uint32_t cached_has_bits = 0; |
6416 | 0 | (void) cached_has_bits; |
6417 | |
|
6418 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
6419 | | // required .lua_grammar.Name name = 1; |
6420 | 0 | if (cached_has_bits & 0x00000001u) { |
6421 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6422 | 0 | InternalWriteMessage(1, _Internal::name(this), |
6423 | 0 | _Internal::name(this).GetCachedSize(), target, stream); |
6424 | 0 | } |
6425 | | |
6426 | | // required .lua_grammar.Expression startexp = 2; |
6427 | 0 | if (cached_has_bits & 0x00000002u) { |
6428 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6429 | 0 | InternalWriteMessage(2, _Internal::startexp(this), |
6430 | 0 | _Internal::startexp(this).GetCachedSize(), target, stream); |
6431 | 0 | } |
6432 | | |
6433 | | // required .lua_grammar.Expression stopexp = 3; |
6434 | 0 | if (cached_has_bits & 0x00000004u) { |
6435 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6436 | 0 | InternalWriteMessage(3, _Internal::stopexp(this), |
6437 | 0 | _Internal::stopexp(this).GetCachedSize(), target, stream); |
6438 | 0 | } |
6439 | | |
6440 | | // optional .lua_grammar.Expression stepexp = 4; |
6441 | 0 | if (cached_has_bits & 0x00000008u) { |
6442 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6443 | 0 | InternalWriteMessage(4, _Internal::stepexp(this), |
6444 | 0 | _Internal::stepexp(this).GetCachedSize(), target, stream); |
6445 | 0 | } |
6446 | | |
6447 | | // required .lua_grammar.DoBlock doblock = 5; |
6448 | 0 | if (cached_has_bits & 0x00000010u) { |
6449 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6450 | 0 | InternalWriteMessage(5, _Internal::doblock(this), |
6451 | 0 | _Internal::doblock(this).GetCachedSize(), target, stream); |
6452 | 0 | } |
6453 | |
|
6454 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
6455 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
6456 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
6457 | 0 | } |
6458 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.ForCycleName) |
6459 | 0 | return target; |
6460 | 0 | } |
6461 | | |
6462 | 0 | size_t ForCycleName::RequiredFieldsByteSizeFallback() const { |
6463 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.ForCycleName) |
6464 | 0 | size_t total_size = 0; |
6465 | |
|
6466 | 0 | if (_internal_has_name()) { |
6467 | | // required .lua_grammar.Name name = 1; |
6468 | 0 | total_size += 1 + |
6469 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6470 | 0 | *_impl_.name_); |
6471 | 0 | } |
6472 | |
|
6473 | 0 | if (_internal_has_startexp()) { |
6474 | | // required .lua_grammar.Expression startexp = 2; |
6475 | 0 | total_size += 1 + |
6476 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6477 | 0 | *_impl_.startexp_); |
6478 | 0 | } |
6479 | |
|
6480 | 0 | if (_internal_has_stopexp()) { |
6481 | | // required .lua_grammar.Expression stopexp = 3; |
6482 | 0 | total_size += 1 + |
6483 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6484 | 0 | *_impl_.stopexp_); |
6485 | 0 | } |
6486 | |
|
6487 | 0 | if (_internal_has_doblock()) { |
6488 | | // required .lua_grammar.DoBlock doblock = 5; |
6489 | 0 | total_size += 1 + |
6490 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6491 | 0 | *_impl_.doblock_); |
6492 | 0 | } |
6493 | |
|
6494 | 0 | return total_size; |
6495 | 0 | } |
6496 | 0 | size_t ForCycleName::ByteSizeLong() const { |
6497 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.ForCycleName) |
6498 | 0 | size_t total_size = 0; |
6499 | |
|
6500 | 0 | if (((_impl_._has_bits_[0] & 0x00000017) ^ 0x00000017) == 0) { // All required fields are present. |
6501 | | // required .lua_grammar.Name name = 1; |
6502 | 0 | total_size += 1 + |
6503 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6504 | 0 | *_impl_.name_); |
6505 | | |
6506 | | // required .lua_grammar.Expression startexp = 2; |
6507 | 0 | total_size += 1 + |
6508 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6509 | 0 | *_impl_.startexp_); |
6510 | | |
6511 | | // required .lua_grammar.Expression stopexp = 3; |
6512 | 0 | total_size += 1 + |
6513 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6514 | 0 | *_impl_.stopexp_); |
6515 | | |
6516 | | // required .lua_grammar.DoBlock doblock = 5; |
6517 | 0 | total_size += 1 + |
6518 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6519 | 0 | *_impl_.doblock_); |
6520 | |
|
6521 | 0 | } else { |
6522 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
6523 | 0 | } |
6524 | 0 | uint32_t cached_has_bits = 0; |
6525 | | // Prevent compiler warnings about cached_has_bits being unused |
6526 | 0 | (void) cached_has_bits; |
6527 | | |
6528 | | // optional .lua_grammar.Expression stepexp = 4; |
6529 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
6530 | 0 | if (cached_has_bits & 0x00000008u) { |
6531 | 0 | total_size += 1 + |
6532 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6533 | 0 | *_impl_.stepexp_); |
6534 | 0 | } |
6535 | |
|
6536 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
6537 | 0 | } |
6538 | | |
6539 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ForCycleName::_class_data_ = { |
6540 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
6541 | | ForCycleName::MergeImpl |
6542 | | }; |
6543 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ForCycleName::GetClassData() const { return &_class_data_; } |
6544 | | |
6545 | | |
6546 | 0 | void ForCycleName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
6547 | 0 | auto* const _this = static_cast<ForCycleName*>(&to_msg); |
6548 | 0 | auto& from = static_cast<const ForCycleName&>(from_msg); |
6549 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.ForCycleName) |
6550 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
6551 | 0 | uint32_t cached_has_bits = 0; |
6552 | 0 | (void) cached_has_bits; |
6553 | |
|
6554 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
6555 | 0 | if (cached_has_bits & 0x0000001fu) { |
6556 | 0 | if (cached_has_bits & 0x00000001u) { |
6557 | 0 | _this->_internal_mutable_name()->::lua_grammar::Name::MergeFrom( |
6558 | 0 | from._internal_name()); |
6559 | 0 | } |
6560 | 0 | if (cached_has_bits & 0x00000002u) { |
6561 | 0 | _this->_internal_mutable_startexp()->::lua_grammar::Expression::MergeFrom( |
6562 | 0 | from._internal_startexp()); |
6563 | 0 | } |
6564 | 0 | if (cached_has_bits & 0x00000004u) { |
6565 | 0 | _this->_internal_mutable_stopexp()->::lua_grammar::Expression::MergeFrom( |
6566 | 0 | from._internal_stopexp()); |
6567 | 0 | } |
6568 | 0 | if (cached_has_bits & 0x00000008u) { |
6569 | 0 | _this->_internal_mutable_stepexp()->::lua_grammar::Expression::MergeFrom( |
6570 | 0 | from._internal_stepexp()); |
6571 | 0 | } |
6572 | 0 | if (cached_has_bits & 0x00000010u) { |
6573 | 0 | _this->_internal_mutable_doblock()->::lua_grammar::DoBlock::MergeFrom( |
6574 | 0 | from._internal_doblock()); |
6575 | 0 | } |
6576 | 0 | } |
6577 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
6578 | 0 | } |
6579 | | |
6580 | 0 | void ForCycleName::CopyFrom(const ForCycleName& from) { |
6581 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.ForCycleName) |
6582 | 0 | if (&from == this) return; |
6583 | 0 | Clear(); |
6584 | 0 | MergeFrom(from); |
6585 | 0 | } |
6586 | | |
6587 | 1.31k | bool ForCycleName::IsInitialized() const { |
6588 | 1.31k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
6589 | 1.31k | if (_internal_has_name()) { |
6590 | 1.31k | if (!_impl_.name_->IsInitialized()) return false; |
6591 | 1.31k | } |
6592 | 1.31k | if (_internal_has_startexp()) { |
6593 | 1.31k | if (!_impl_.startexp_->IsInitialized()) return false; |
6594 | 1.31k | } |
6595 | 1.31k | if (_internal_has_stopexp()) { |
6596 | 1.31k | if (!_impl_.stopexp_->IsInitialized()) return false; |
6597 | 1.31k | } |
6598 | 1.31k | if (_internal_has_stepexp()) { |
6599 | 680 | if (!_impl_.stepexp_->IsInitialized()) return false; |
6600 | 680 | } |
6601 | 1.31k | if (_internal_has_doblock()) { |
6602 | 1.31k | if (!_impl_.doblock_->IsInitialized()) return false; |
6603 | 1.31k | } |
6604 | 1.31k | return true; |
6605 | 1.31k | } |
6606 | | |
6607 | 0 | void ForCycleName::InternalSwap(ForCycleName* other) { |
6608 | 0 | using std::swap; |
6609 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
6610 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
6611 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
6612 | 0 | PROTOBUF_FIELD_OFFSET(ForCycleName, _impl_.doblock_) |
6613 | 0 | + sizeof(ForCycleName::_impl_.doblock_) |
6614 | 0 | - PROTOBUF_FIELD_OFFSET(ForCycleName, _impl_.name_)>( |
6615 | 0 | reinterpret_cast<char*>(&_impl_.name_), |
6616 | 0 | reinterpret_cast<char*>(&other->_impl_.name_)); |
6617 | 0 | } |
6618 | | |
6619 | 26.1k | ::PROTOBUF_NAMESPACE_ID::Metadata ForCycleName::GetMetadata() const { |
6620 | 26.1k | return ::_pbi::AssignDescriptors( |
6621 | 26.1k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
6622 | 26.1k | file_level_metadata_lua_5fgrammar_2eproto[14]); |
6623 | 26.1k | } |
6624 | | |
6625 | | // =================================================================== |
6626 | | |
6627 | | class ForCycleList::_Internal { |
6628 | | public: |
6629 | | using HasBits = decltype(std::declval<ForCycleList>()._impl_._has_bits_); |
6630 | | static const ::lua_grammar::NameList& names(const ForCycleList* msg); |
6631 | 0 | static void set_has_names(HasBits* has_bits) { |
6632 | 0 | (*has_bits)[0] |= 1u; |
6633 | 0 | } |
6634 | | static const ::lua_grammar::ExpressionList& expressions(const ForCycleList* msg); |
6635 | 0 | static void set_has_expressions(HasBits* has_bits) { |
6636 | 0 | (*has_bits)[0] |= 2u; |
6637 | 0 | } |
6638 | | static const ::lua_grammar::DoBlock& doblock(const ForCycleList* msg); |
6639 | 0 | static void set_has_doblock(HasBits* has_bits) { |
6640 | 0 | (*has_bits)[0] |= 4u; |
6641 | 0 | } |
6642 | 24.9k | static bool MissingRequiredFields(const HasBits& has_bits) { |
6643 | 24.9k | return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; |
6644 | 24.9k | } |
6645 | | }; |
6646 | | |
6647 | | const ::lua_grammar::NameList& |
6648 | 0 | ForCycleList::_Internal::names(const ForCycleList* msg) { |
6649 | 0 | return *msg->_impl_.names_; |
6650 | 0 | } |
6651 | | const ::lua_grammar::ExpressionList& |
6652 | 0 | ForCycleList::_Internal::expressions(const ForCycleList* msg) { |
6653 | 0 | return *msg->_impl_.expressions_; |
6654 | 0 | } |
6655 | | const ::lua_grammar::DoBlock& |
6656 | 0 | ForCycleList::_Internal::doblock(const ForCycleList* msg) { |
6657 | 0 | return *msg->_impl_.doblock_; |
6658 | 0 | } |
6659 | | ForCycleList::ForCycleList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6660 | | bool is_message_owned) |
6661 | 25.4k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
6662 | 25.4k | SharedCtor(arena, is_message_owned); |
6663 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.ForCycleList) |
6664 | 25.4k | } |
6665 | | ForCycleList::ForCycleList(const ForCycleList& from) |
6666 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
6667 | 0 | ForCycleList* const _this = this; (void)_this; |
6668 | 0 | new (&_impl_) Impl_{ |
6669 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
6670 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
6671 | 0 | , decltype(_impl_.names_){nullptr} |
6672 | 0 | , decltype(_impl_.expressions_){nullptr} |
6673 | 0 | , decltype(_impl_.doblock_){nullptr}}; |
6674 | |
|
6675 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
6676 | 0 | if (from._internal_has_names()) { |
6677 | 0 | _this->_impl_.names_ = new ::lua_grammar::NameList(*from._impl_.names_); |
6678 | 0 | } |
6679 | 0 | if (from._internal_has_expressions()) { |
6680 | 0 | _this->_impl_.expressions_ = new ::lua_grammar::ExpressionList(*from._impl_.expressions_); |
6681 | 0 | } |
6682 | 0 | if (from._internal_has_doblock()) { |
6683 | 0 | _this->_impl_.doblock_ = new ::lua_grammar::DoBlock(*from._impl_.doblock_); |
6684 | 0 | } |
6685 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.ForCycleList) |
6686 | 0 | } |
6687 | | |
6688 | | inline void ForCycleList::SharedCtor( |
6689 | 25.4k | ::_pb::Arena* arena, bool is_message_owned) { |
6690 | 25.4k | (void)arena; |
6691 | 25.4k | (void)is_message_owned; |
6692 | 25.4k | new (&_impl_) Impl_{ |
6693 | 25.4k | decltype(_impl_._has_bits_){} |
6694 | 25.4k | , /*decltype(_impl_._cached_size_)*/{} |
6695 | 25.4k | , decltype(_impl_.names_){nullptr} |
6696 | 25.4k | , decltype(_impl_.expressions_){nullptr} |
6697 | 25.4k | , decltype(_impl_.doblock_){nullptr} |
6698 | 25.4k | }; |
6699 | 25.4k | } |
6700 | | |
6701 | 25.4k | ForCycleList::~ForCycleList() { |
6702 | | // @@protoc_insertion_point(destructor:lua_grammar.ForCycleList) |
6703 | 25.4k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
6704 | 0 | (void)arena; |
6705 | 0 | return; |
6706 | 0 | } |
6707 | 25.4k | SharedDtor(); |
6708 | 25.4k | } |
6709 | | |
6710 | 25.4k | inline void ForCycleList::SharedDtor() { |
6711 | 25.4k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
6712 | 25.4k | if (this != internal_default_instance()) delete _impl_.names_; |
6713 | 25.4k | if (this != internal_default_instance()) delete _impl_.expressions_; |
6714 | 25.4k | if (this != internal_default_instance()) delete _impl_.doblock_; |
6715 | 25.4k | } |
6716 | | |
6717 | 0 | void ForCycleList::SetCachedSize(int size) const { |
6718 | 0 | _impl_._cached_size_.Set(size); |
6719 | 0 | } |
6720 | | |
6721 | 0 | void ForCycleList::Clear() { |
6722 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.ForCycleList) |
6723 | 0 | uint32_t cached_has_bits = 0; |
6724 | | // Prevent compiler warnings about cached_has_bits being unused |
6725 | 0 | (void) cached_has_bits; |
6726 | |
|
6727 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
6728 | 0 | if (cached_has_bits & 0x00000007u) { |
6729 | 0 | if (cached_has_bits & 0x00000001u) { |
6730 | 0 | GOOGLE_DCHECK(_impl_.names_ != nullptr); |
6731 | 0 | _impl_.names_->Clear(); |
6732 | 0 | } |
6733 | 0 | if (cached_has_bits & 0x00000002u) { |
6734 | 0 | GOOGLE_DCHECK(_impl_.expressions_ != nullptr); |
6735 | 0 | _impl_.expressions_->Clear(); |
6736 | 0 | } |
6737 | 0 | if (cached_has_bits & 0x00000004u) { |
6738 | 0 | GOOGLE_DCHECK(_impl_.doblock_ != nullptr); |
6739 | 0 | _impl_.doblock_->Clear(); |
6740 | 0 | } |
6741 | 0 | } |
6742 | 0 | _impl_._has_bits_.Clear(); |
6743 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
6744 | 0 | } |
6745 | | |
6746 | 0 | const char* ForCycleList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
6747 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
6748 | 0 | _Internal::HasBits has_bits{}; |
6749 | 0 | while (!ctx->Done(&ptr)) { |
6750 | 0 | uint32_t tag; |
6751 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
6752 | 0 | switch (tag >> 3) { |
6753 | | // required .lua_grammar.NameList names = 1; |
6754 | 0 | case 1: |
6755 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
6756 | 0 | ptr = ctx->ParseMessage(_internal_mutable_names(), ptr); |
6757 | 0 | CHK_(ptr); |
6758 | 0 | } else |
6759 | 0 | goto handle_unusual; |
6760 | 0 | continue; |
6761 | | // required .lua_grammar.ExpressionList expressions = 2; |
6762 | 0 | case 2: |
6763 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
6764 | 0 | ptr = ctx->ParseMessage(_internal_mutable_expressions(), ptr); |
6765 | 0 | CHK_(ptr); |
6766 | 0 | } else |
6767 | 0 | goto handle_unusual; |
6768 | 0 | continue; |
6769 | | // required .lua_grammar.DoBlock doblock = 3; |
6770 | 0 | case 3: |
6771 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
6772 | 0 | ptr = ctx->ParseMessage(_internal_mutable_doblock(), ptr); |
6773 | 0 | CHK_(ptr); |
6774 | 0 | } else |
6775 | 0 | goto handle_unusual; |
6776 | 0 | continue; |
6777 | 0 | default: |
6778 | 0 | goto handle_unusual; |
6779 | 0 | } // switch |
6780 | 0 | handle_unusual: |
6781 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
6782 | 0 | CHK_(ptr); |
6783 | 0 | ctx->SetLastTag(tag); |
6784 | 0 | goto message_done; |
6785 | 0 | } |
6786 | 0 | ptr = UnknownFieldParse( |
6787 | 0 | tag, |
6788 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
6789 | 0 | ptr, ctx); |
6790 | 0 | CHK_(ptr != nullptr); |
6791 | 0 | } // while |
6792 | 0 | message_done: |
6793 | 0 | _impl_._has_bits_.Or(has_bits); |
6794 | 0 | return ptr; |
6795 | 0 | failure: |
6796 | 0 | ptr = nullptr; |
6797 | 0 | goto message_done; |
6798 | 0 | #undef CHK_ |
6799 | 0 | } |
6800 | | |
6801 | | uint8_t* ForCycleList::_InternalSerialize( |
6802 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
6803 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.ForCycleList) |
6804 | 0 | uint32_t cached_has_bits = 0; |
6805 | 0 | (void) cached_has_bits; |
6806 | |
|
6807 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
6808 | | // required .lua_grammar.NameList names = 1; |
6809 | 0 | if (cached_has_bits & 0x00000001u) { |
6810 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6811 | 0 | InternalWriteMessage(1, _Internal::names(this), |
6812 | 0 | _Internal::names(this).GetCachedSize(), target, stream); |
6813 | 0 | } |
6814 | | |
6815 | | // required .lua_grammar.ExpressionList expressions = 2; |
6816 | 0 | if (cached_has_bits & 0x00000002u) { |
6817 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6818 | 0 | InternalWriteMessage(2, _Internal::expressions(this), |
6819 | 0 | _Internal::expressions(this).GetCachedSize(), target, stream); |
6820 | 0 | } |
6821 | | |
6822 | | // required .lua_grammar.DoBlock doblock = 3; |
6823 | 0 | if (cached_has_bits & 0x00000004u) { |
6824 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
6825 | 0 | InternalWriteMessage(3, _Internal::doblock(this), |
6826 | 0 | _Internal::doblock(this).GetCachedSize(), target, stream); |
6827 | 0 | } |
6828 | |
|
6829 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
6830 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
6831 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
6832 | 0 | } |
6833 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.ForCycleList) |
6834 | 0 | return target; |
6835 | 0 | } |
6836 | | |
6837 | 0 | size_t ForCycleList::RequiredFieldsByteSizeFallback() const { |
6838 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.ForCycleList) |
6839 | 0 | size_t total_size = 0; |
6840 | |
|
6841 | 0 | if (_internal_has_names()) { |
6842 | | // required .lua_grammar.NameList names = 1; |
6843 | 0 | total_size += 1 + |
6844 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6845 | 0 | *_impl_.names_); |
6846 | 0 | } |
6847 | |
|
6848 | 0 | if (_internal_has_expressions()) { |
6849 | | // required .lua_grammar.ExpressionList expressions = 2; |
6850 | 0 | total_size += 1 + |
6851 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6852 | 0 | *_impl_.expressions_); |
6853 | 0 | } |
6854 | |
|
6855 | 0 | if (_internal_has_doblock()) { |
6856 | | // required .lua_grammar.DoBlock doblock = 3; |
6857 | 0 | total_size += 1 + |
6858 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6859 | 0 | *_impl_.doblock_); |
6860 | 0 | } |
6861 | |
|
6862 | 0 | return total_size; |
6863 | 0 | } |
6864 | 0 | size_t ForCycleList::ByteSizeLong() const { |
6865 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.ForCycleList) |
6866 | 0 | size_t total_size = 0; |
6867 | |
|
6868 | 0 | if (((_impl_._has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. |
6869 | | // required .lua_grammar.NameList names = 1; |
6870 | 0 | total_size += 1 + |
6871 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6872 | 0 | *_impl_.names_); |
6873 | | |
6874 | | // required .lua_grammar.ExpressionList expressions = 2; |
6875 | 0 | total_size += 1 + |
6876 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6877 | 0 | *_impl_.expressions_); |
6878 | | |
6879 | | // required .lua_grammar.DoBlock doblock = 3; |
6880 | 0 | total_size += 1 + |
6881 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
6882 | 0 | *_impl_.doblock_); |
6883 | |
|
6884 | 0 | } else { |
6885 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
6886 | 0 | } |
6887 | 0 | uint32_t cached_has_bits = 0; |
6888 | | // Prevent compiler warnings about cached_has_bits being unused |
6889 | 0 | (void) cached_has_bits; |
6890 | |
|
6891 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
6892 | 0 | } |
6893 | | |
6894 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ForCycleList::_class_data_ = { |
6895 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
6896 | | ForCycleList::MergeImpl |
6897 | | }; |
6898 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ForCycleList::GetClassData() const { return &_class_data_; } |
6899 | | |
6900 | | |
6901 | 0 | void ForCycleList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
6902 | 0 | auto* const _this = static_cast<ForCycleList*>(&to_msg); |
6903 | 0 | auto& from = static_cast<const ForCycleList&>(from_msg); |
6904 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.ForCycleList) |
6905 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
6906 | 0 | uint32_t cached_has_bits = 0; |
6907 | 0 | (void) cached_has_bits; |
6908 | |
|
6909 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
6910 | 0 | if (cached_has_bits & 0x00000007u) { |
6911 | 0 | if (cached_has_bits & 0x00000001u) { |
6912 | 0 | _this->_internal_mutable_names()->::lua_grammar::NameList::MergeFrom( |
6913 | 0 | from._internal_names()); |
6914 | 0 | } |
6915 | 0 | if (cached_has_bits & 0x00000002u) { |
6916 | 0 | _this->_internal_mutable_expressions()->::lua_grammar::ExpressionList::MergeFrom( |
6917 | 0 | from._internal_expressions()); |
6918 | 0 | } |
6919 | 0 | if (cached_has_bits & 0x00000004u) { |
6920 | 0 | _this->_internal_mutable_doblock()->::lua_grammar::DoBlock::MergeFrom( |
6921 | 0 | from._internal_doblock()); |
6922 | 0 | } |
6923 | 0 | } |
6924 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
6925 | 0 | } |
6926 | | |
6927 | 0 | void ForCycleList::CopyFrom(const ForCycleList& from) { |
6928 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.ForCycleList) |
6929 | 0 | if (&from == this) return; |
6930 | 0 | Clear(); |
6931 | 0 | MergeFrom(from); |
6932 | 0 | } |
6933 | | |
6934 | 24.9k | bool ForCycleList::IsInitialized() const { |
6935 | 24.9k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
6936 | 24.9k | if (_internal_has_names()) { |
6937 | 24.9k | if (!_impl_.names_->IsInitialized()) return false; |
6938 | 24.9k | } |
6939 | 24.9k | if (_internal_has_expressions()) { |
6940 | 24.9k | if (!_impl_.expressions_->IsInitialized()) return false; |
6941 | 24.9k | } |
6942 | 24.9k | if (_internal_has_doblock()) { |
6943 | 24.9k | if (!_impl_.doblock_->IsInitialized()) return false; |
6944 | 24.9k | } |
6945 | 24.9k | return true; |
6946 | 24.9k | } |
6947 | | |
6948 | 0 | void ForCycleList::InternalSwap(ForCycleList* other) { |
6949 | 0 | using std::swap; |
6950 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
6951 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
6952 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
6953 | 0 | PROTOBUF_FIELD_OFFSET(ForCycleList, _impl_.doblock_) |
6954 | 0 | + sizeof(ForCycleList::_impl_.doblock_) |
6955 | 0 | - PROTOBUF_FIELD_OFFSET(ForCycleList, _impl_.names_)>( |
6956 | 0 | reinterpret_cast<char*>(&_impl_.names_), |
6957 | 0 | reinterpret_cast<char*>(&other->_impl_.names_)); |
6958 | 0 | } |
6959 | | |
6960 | 376k | ::PROTOBUF_NAMESPACE_ID::Metadata ForCycleList::GetMetadata() const { |
6961 | 376k | return ::_pbi::AssignDescriptors( |
6962 | 376k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
6963 | 376k | file_level_metadata_lua_5fgrammar_2eproto[15]); |
6964 | 376k | } |
6965 | | |
6966 | | // =================================================================== |
6967 | | |
6968 | | class Function_FuncName::_Internal { |
6969 | | public: |
6970 | | using HasBits = decltype(std::declval<Function_FuncName>()._impl_._has_bits_); |
6971 | | static const ::lua_grammar::Name& firstname(const Function_FuncName* msg); |
6972 | 0 | static void set_has_firstname(HasBits* has_bits) { |
6973 | 0 | (*has_bits)[0] |= 1u; |
6974 | 0 | } |
6975 | | static const ::lua_grammar::Name& lastname(const Function_FuncName* msg); |
6976 | 0 | static void set_has_lastname(HasBits* has_bits) { |
6977 | 0 | (*has_bits)[0] |= 2u; |
6978 | 0 | } |
6979 | 2.21k | static bool MissingRequiredFields(const HasBits& has_bits) { |
6980 | 2.21k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
6981 | 2.21k | } |
6982 | | }; |
6983 | | |
6984 | | const ::lua_grammar::Name& |
6985 | 0 | Function_FuncName::_Internal::firstname(const Function_FuncName* msg) { |
6986 | 0 | return *msg->_impl_.firstname_; |
6987 | 0 | } |
6988 | | const ::lua_grammar::Name& |
6989 | 0 | Function_FuncName::_Internal::lastname(const Function_FuncName* msg) { |
6990 | 0 | return *msg->_impl_.lastname_; |
6991 | 0 | } |
6992 | | Function_FuncName::Function_FuncName(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6993 | | bool is_message_owned) |
6994 | 2.33k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
6995 | 2.33k | SharedCtor(arena, is_message_owned); |
6996 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Function.FuncName) |
6997 | 2.33k | } |
6998 | | Function_FuncName::Function_FuncName(const Function_FuncName& from) |
6999 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
7000 | 0 | Function_FuncName* const _this = this; (void)_this; |
7001 | 0 | new (&_impl_) Impl_{ |
7002 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
7003 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
7004 | 0 | , decltype(_impl_.names_){from._impl_.names_} |
7005 | 0 | , decltype(_impl_.firstname_){nullptr} |
7006 | 0 | , decltype(_impl_.lastname_){nullptr}}; |
7007 | |
|
7008 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
7009 | 0 | if (from._internal_has_firstname()) { |
7010 | 0 | _this->_impl_.firstname_ = new ::lua_grammar::Name(*from._impl_.firstname_); |
7011 | 0 | } |
7012 | 0 | if (from._internal_has_lastname()) { |
7013 | 0 | _this->_impl_.lastname_ = new ::lua_grammar::Name(*from._impl_.lastname_); |
7014 | 0 | } |
7015 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Function.FuncName) |
7016 | 0 | } |
7017 | | |
7018 | | inline void Function_FuncName::SharedCtor( |
7019 | 2.33k | ::_pb::Arena* arena, bool is_message_owned) { |
7020 | 2.33k | (void)arena; |
7021 | 2.33k | (void)is_message_owned; |
7022 | 2.33k | new (&_impl_) Impl_{ |
7023 | 2.33k | decltype(_impl_._has_bits_){} |
7024 | 2.33k | , /*decltype(_impl_._cached_size_)*/{} |
7025 | 2.33k | , decltype(_impl_.names_){arena} |
7026 | 2.33k | , decltype(_impl_.firstname_){nullptr} |
7027 | 2.33k | , decltype(_impl_.lastname_){nullptr} |
7028 | 2.33k | }; |
7029 | 2.33k | } |
7030 | | |
7031 | 2.33k | Function_FuncName::~Function_FuncName() { |
7032 | | // @@protoc_insertion_point(destructor:lua_grammar.Function.FuncName) |
7033 | 2.33k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
7034 | 0 | (void)arena; |
7035 | 0 | return; |
7036 | 0 | } |
7037 | 2.33k | SharedDtor(); |
7038 | 2.33k | } |
7039 | | |
7040 | 2.33k | inline void Function_FuncName::SharedDtor() { |
7041 | 2.33k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
7042 | 2.33k | _impl_.names_.~RepeatedPtrField(); |
7043 | 2.33k | if (this != internal_default_instance()) delete _impl_.firstname_; |
7044 | 2.33k | if (this != internal_default_instance()) delete _impl_.lastname_; |
7045 | 2.33k | } |
7046 | | |
7047 | 0 | void Function_FuncName::SetCachedSize(int size) const { |
7048 | 0 | _impl_._cached_size_.Set(size); |
7049 | 0 | } |
7050 | | |
7051 | 12 | void Function_FuncName::Clear() { |
7052 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Function.FuncName) |
7053 | 12 | uint32_t cached_has_bits = 0; |
7054 | | // Prevent compiler warnings about cached_has_bits being unused |
7055 | 12 | (void) cached_has_bits; |
7056 | | |
7057 | 12 | _impl_.names_.Clear(); |
7058 | 12 | cached_has_bits = _impl_._has_bits_[0]; |
7059 | 12 | if (cached_has_bits & 0x00000003u) { |
7060 | 0 | if (cached_has_bits & 0x00000001u) { |
7061 | 0 | GOOGLE_DCHECK(_impl_.firstname_ != nullptr); |
7062 | 0 | _impl_.firstname_->Clear(); |
7063 | 0 | } |
7064 | 0 | if (cached_has_bits & 0x00000002u) { |
7065 | 0 | GOOGLE_DCHECK(_impl_.lastname_ != nullptr); |
7066 | 0 | _impl_.lastname_->Clear(); |
7067 | 0 | } |
7068 | 0 | } |
7069 | 12 | _impl_._has_bits_.Clear(); |
7070 | 12 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7071 | 12 | } |
7072 | | |
7073 | 0 | const char* Function_FuncName::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
7074 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7075 | 0 | _Internal::HasBits has_bits{}; |
7076 | 0 | while (!ctx->Done(&ptr)) { |
7077 | 0 | uint32_t tag; |
7078 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
7079 | 0 | switch (tag >> 3) { |
7080 | | // required .lua_grammar.Name firstname = 1; |
7081 | 0 | case 1: |
7082 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
7083 | 0 | ptr = ctx->ParseMessage(_internal_mutable_firstname(), ptr); |
7084 | 0 | CHK_(ptr); |
7085 | 0 | } else |
7086 | 0 | goto handle_unusual; |
7087 | 0 | continue; |
7088 | | // repeated .lua_grammar.Name names = 2; |
7089 | 0 | case 2: |
7090 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
7091 | 0 | ptr -= 1; |
7092 | 0 | do { |
7093 | 0 | ptr += 1; |
7094 | 0 | ptr = ctx->ParseMessage(_internal_add_names(), ptr); |
7095 | 0 | CHK_(ptr); |
7096 | 0 | if (!ctx->DataAvailable(ptr)) break; |
7097 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
7098 | 0 | } else |
7099 | 0 | goto handle_unusual; |
7100 | 0 | continue; |
7101 | | // optional .lua_grammar.Name lastname = 3; |
7102 | 0 | case 3: |
7103 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
7104 | 0 | ptr = ctx->ParseMessage(_internal_mutable_lastname(), ptr); |
7105 | 0 | CHK_(ptr); |
7106 | 0 | } else |
7107 | 0 | goto handle_unusual; |
7108 | 0 | continue; |
7109 | 0 | default: |
7110 | 0 | goto handle_unusual; |
7111 | 0 | } // switch |
7112 | 0 | handle_unusual: |
7113 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
7114 | 0 | CHK_(ptr); |
7115 | 0 | ctx->SetLastTag(tag); |
7116 | 0 | goto message_done; |
7117 | 0 | } |
7118 | 0 | ptr = UnknownFieldParse( |
7119 | 0 | tag, |
7120 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
7121 | 0 | ptr, ctx); |
7122 | 0 | CHK_(ptr != nullptr); |
7123 | 0 | } // while |
7124 | 0 | message_done: |
7125 | 0 | _impl_._has_bits_.Or(has_bits); |
7126 | 0 | return ptr; |
7127 | 0 | failure: |
7128 | 0 | ptr = nullptr; |
7129 | 0 | goto message_done; |
7130 | 0 | #undef CHK_ |
7131 | 0 | } |
7132 | | |
7133 | | uint8_t* Function_FuncName::_InternalSerialize( |
7134 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
7135 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Function.FuncName) |
7136 | 0 | uint32_t cached_has_bits = 0; |
7137 | 0 | (void) cached_has_bits; |
7138 | |
|
7139 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
7140 | | // required .lua_grammar.Name firstname = 1; |
7141 | 0 | if (cached_has_bits & 0x00000001u) { |
7142 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7143 | 0 | InternalWriteMessage(1, _Internal::firstname(this), |
7144 | 0 | _Internal::firstname(this).GetCachedSize(), target, stream); |
7145 | 0 | } |
7146 | | |
7147 | | // repeated .lua_grammar.Name names = 2; |
7148 | 0 | for (unsigned i = 0, |
7149 | 0 | n = static_cast<unsigned>(this->_internal_names_size()); i < n; i++) { |
7150 | 0 | const auto& repfield = this->_internal_names(i); |
7151 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7152 | 0 | InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); |
7153 | 0 | } |
7154 | | |
7155 | | // optional .lua_grammar.Name lastname = 3; |
7156 | 0 | if (cached_has_bits & 0x00000002u) { |
7157 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7158 | 0 | InternalWriteMessage(3, _Internal::lastname(this), |
7159 | 0 | _Internal::lastname(this).GetCachedSize(), target, stream); |
7160 | 0 | } |
7161 | |
|
7162 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
7163 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
7164 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
7165 | 0 | } |
7166 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Function.FuncName) |
7167 | 0 | return target; |
7168 | 0 | } |
7169 | | |
7170 | 0 | size_t Function_FuncName::ByteSizeLong() const { |
7171 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Function.FuncName) |
7172 | 0 | size_t total_size = 0; |
7173 | | |
7174 | | // required .lua_grammar.Name firstname = 1; |
7175 | 0 | if (_internal_has_firstname()) { |
7176 | 0 | total_size += 1 + |
7177 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7178 | 0 | *_impl_.firstname_); |
7179 | 0 | } |
7180 | 0 | uint32_t cached_has_bits = 0; |
7181 | | // Prevent compiler warnings about cached_has_bits being unused |
7182 | 0 | (void) cached_has_bits; |
7183 | | |
7184 | | // repeated .lua_grammar.Name names = 2; |
7185 | 0 | total_size += 1UL * this->_internal_names_size(); |
7186 | 0 | for (const auto& msg : this->_impl_.names_) { |
7187 | 0 | total_size += |
7188 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
7189 | 0 | } |
7190 | | |
7191 | | // optional .lua_grammar.Name lastname = 3; |
7192 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
7193 | 0 | if (cached_has_bits & 0x00000002u) { |
7194 | 0 | total_size += 1 + |
7195 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7196 | 0 | *_impl_.lastname_); |
7197 | 0 | } |
7198 | |
|
7199 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
7200 | 0 | } |
7201 | | |
7202 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Function_FuncName::_class_data_ = { |
7203 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
7204 | | Function_FuncName::MergeImpl |
7205 | | }; |
7206 | 18 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Function_FuncName::GetClassData() const { return &_class_data_; } |
7207 | | |
7208 | | |
7209 | 6 | void Function_FuncName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
7210 | 6 | auto* const _this = static_cast<Function_FuncName*>(&to_msg); |
7211 | 6 | auto& from = static_cast<const Function_FuncName&>(from_msg); |
7212 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Function.FuncName) |
7213 | 6 | GOOGLE_DCHECK_NE(&from, _this); |
7214 | 6 | uint32_t cached_has_bits = 0; |
7215 | 6 | (void) cached_has_bits; |
7216 | | |
7217 | 6 | _this->_impl_.names_.MergeFrom(from._impl_.names_); |
7218 | 6 | cached_has_bits = from._impl_._has_bits_[0]; |
7219 | 6 | if (cached_has_bits & 0x00000003u) { |
7220 | 0 | if (cached_has_bits & 0x00000001u) { |
7221 | 0 | _this->_internal_mutable_firstname()->::lua_grammar::Name::MergeFrom( |
7222 | 0 | from._internal_firstname()); |
7223 | 0 | } |
7224 | 0 | if (cached_has_bits & 0x00000002u) { |
7225 | 0 | _this->_internal_mutable_lastname()->::lua_grammar::Name::MergeFrom( |
7226 | 0 | from._internal_lastname()); |
7227 | 0 | } |
7228 | 0 | } |
7229 | 6 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
7230 | 6 | } |
7231 | | |
7232 | 0 | void Function_FuncName::CopyFrom(const Function_FuncName& from) { |
7233 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Function.FuncName) |
7234 | 0 | if (&from == this) return; |
7235 | 0 | Clear(); |
7236 | 0 | MergeFrom(from); |
7237 | 0 | } |
7238 | | |
7239 | 2.21k | bool Function_FuncName::IsInitialized() const { |
7240 | 2.21k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
7241 | 2.21k | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.names_)) |
7242 | 0 | return false; |
7243 | 2.21k | if (_internal_has_firstname()) { |
7244 | 2.21k | if (!_impl_.firstname_->IsInitialized()) return false; |
7245 | 2.21k | } |
7246 | 2.21k | if (_internal_has_lastname()) { |
7247 | 115 | if (!_impl_.lastname_->IsInitialized()) return false; |
7248 | 115 | } |
7249 | 2.21k | return true; |
7250 | 2.21k | } |
7251 | | |
7252 | 0 | void Function_FuncName::InternalSwap(Function_FuncName* other) { |
7253 | 0 | using std::swap; |
7254 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
7255 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
7256 | 0 | _impl_.names_.InternalSwap(&other->_impl_.names_); |
7257 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
7258 | 0 | PROTOBUF_FIELD_OFFSET(Function_FuncName, _impl_.lastname_) |
7259 | 0 | + sizeof(Function_FuncName::_impl_.lastname_) |
7260 | 0 | - PROTOBUF_FIELD_OFFSET(Function_FuncName, _impl_.firstname_)>( |
7261 | 0 | reinterpret_cast<char*>(&_impl_.firstname_), |
7262 | 0 | reinterpret_cast<char*>(&other->_impl_.firstname_)); |
7263 | 0 | } |
7264 | | |
7265 | 22.6k | ::PROTOBUF_NAMESPACE_ID::Metadata Function_FuncName::GetMetadata() const { |
7266 | 22.6k | return ::_pbi::AssignDescriptors( |
7267 | 22.6k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
7268 | 22.6k | file_level_metadata_lua_5fgrammar_2eproto[16]); |
7269 | 22.6k | } |
7270 | | |
7271 | | // =================================================================== |
7272 | | |
7273 | | class Function::_Internal { |
7274 | | public: |
7275 | | using HasBits = decltype(std::declval<Function>()._impl_._has_bits_); |
7276 | | static const ::lua_grammar::Function_FuncName& name(const Function* msg); |
7277 | 0 | static void set_has_name(HasBits* has_bits) { |
7278 | 0 | (*has_bits)[0] |= 1u; |
7279 | 0 | } |
7280 | | static const ::lua_grammar::FuncBody& body(const Function* msg); |
7281 | 0 | static void set_has_body(HasBits* has_bits) { |
7282 | 0 | (*has_bits)[0] |= 2u; |
7283 | 0 | } |
7284 | 2.21k | static bool MissingRequiredFields(const HasBits& has_bits) { |
7285 | 2.21k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
7286 | 2.21k | } |
7287 | | }; |
7288 | | |
7289 | | const ::lua_grammar::Function_FuncName& |
7290 | 0 | Function::_Internal::name(const Function* msg) { |
7291 | 0 | return *msg->_impl_.name_; |
7292 | 0 | } |
7293 | | const ::lua_grammar::FuncBody& |
7294 | 0 | Function::_Internal::body(const Function* msg) { |
7295 | 0 | return *msg->_impl_.body_; |
7296 | 0 | } |
7297 | | Function::Function(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
7298 | | bool is_message_owned) |
7299 | 2.33k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
7300 | 2.33k | SharedCtor(arena, is_message_owned); |
7301 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Function) |
7302 | 2.33k | } |
7303 | | Function::Function(const Function& from) |
7304 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
7305 | 0 | Function* const _this = this; (void)_this; |
7306 | 0 | new (&_impl_) Impl_{ |
7307 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
7308 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
7309 | 0 | , decltype(_impl_.name_){nullptr} |
7310 | 0 | , decltype(_impl_.body_){nullptr}}; |
7311 | |
|
7312 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
7313 | 0 | if (from._internal_has_name()) { |
7314 | 0 | _this->_impl_.name_ = new ::lua_grammar::Function_FuncName(*from._impl_.name_); |
7315 | 0 | } |
7316 | 0 | if (from._internal_has_body()) { |
7317 | 0 | _this->_impl_.body_ = new ::lua_grammar::FuncBody(*from._impl_.body_); |
7318 | 0 | } |
7319 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Function) |
7320 | 0 | } |
7321 | | |
7322 | | inline void Function::SharedCtor( |
7323 | 2.33k | ::_pb::Arena* arena, bool is_message_owned) { |
7324 | 2.33k | (void)arena; |
7325 | 2.33k | (void)is_message_owned; |
7326 | 2.33k | new (&_impl_) Impl_{ |
7327 | 2.33k | decltype(_impl_._has_bits_){} |
7328 | 2.33k | , /*decltype(_impl_._cached_size_)*/{} |
7329 | 2.33k | , decltype(_impl_.name_){nullptr} |
7330 | 2.33k | , decltype(_impl_.body_){nullptr} |
7331 | 2.33k | }; |
7332 | 2.33k | } |
7333 | | |
7334 | 2.33k | Function::~Function() { |
7335 | | // @@protoc_insertion_point(destructor:lua_grammar.Function) |
7336 | 2.33k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
7337 | 0 | (void)arena; |
7338 | 0 | return; |
7339 | 0 | } |
7340 | 2.33k | SharedDtor(); |
7341 | 2.33k | } |
7342 | | |
7343 | 2.33k | inline void Function::SharedDtor() { |
7344 | 2.33k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
7345 | 2.33k | if (this != internal_default_instance()) delete _impl_.name_; |
7346 | 2.33k | if (this != internal_default_instance()) delete _impl_.body_; |
7347 | 2.33k | } |
7348 | | |
7349 | 0 | void Function::SetCachedSize(int size) const { |
7350 | 0 | _impl_._cached_size_.Set(size); |
7351 | 0 | } |
7352 | | |
7353 | 0 | void Function::Clear() { |
7354 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Function) |
7355 | 0 | uint32_t cached_has_bits = 0; |
7356 | | // Prevent compiler warnings about cached_has_bits being unused |
7357 | 0 | (void) cached_has_bits; |
7358 | |
|
7359 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
7360 | 0 | if (cached_has_bits & 0x00000003u) { |
7361 | 0 | if (cached_has_bits & 0x00000001u) { |
7362 | 0 | GOOGLE_DCHECK(_impl_.name_ != nullptr); |
7363 | 0 | _impl_.name_->Clear(); |
7364 | 0 | } |
7365 | 0 | if (cached_has_bits & 0x00000002u) { |
7366 | 0 | GOOGLE_DCHECK(_impl_.body_ != nullptr); |
7367 | 0 | _impl_.body_->Clear(); |
7368 | 0 | } |
7369 | 0 | } |
7370 | 0 | _impl_._has_bits_.Clear(); |
7371 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7372 | 0 | } |
7373 | | |
7374 | 0 | const char* Function::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
7375 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7376 | 0 | _Internal::HasBits has_bits{}; |
7377 | 0 | while (!ctx->Done(&ptr)) { |
7378 | 0 | uint32_t tag; |
7379 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
7380 | 0 | switch (tag >> 3) { |
7381 | | // required .lua_grammar.Function.FuncName name = 1; |
7382 | 0 | case 1: |
7383 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
7384 | 0 | ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); |
7385 | 0 | CHK_(ptr); |
7386 | 0 | } else |
7387 | 0 | goto handle_unusual; |
7388 | 0 | continue; |
7389 | | // required .lua_grammar.FuncBody body = 2; |
7390 | 0 | case 2: |
7391 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
7392 | 0 | ptr = ctx->ParseMessage(_internal_mutable_body(), ptr); |
7393 | 0 | CHK_(ptr); |
7394 | 0 | } else |
7395 | 0 | goto handle_unusual; |
7396 | 0 | continue; |
7397 | 0 | default: |
7398 | 0 | goto handle_unusual; |
7399 | 0 | } // switch |
7400 | 0 | handle_unusual: |
7401 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
7402 | 0 | CHK_(ptr); |
7403 | 0 | ctx->SetLastTag(tag); |
7404 | 0 | goto message_done; |
7405 | 0 | } |
7406 | 0 | ptr = UnknownFieldParse( |
7407 | 0 | tag, |
7408 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
7409 | 0 | ptr, ctx); |
7410 | 0 | CHK_(ptr != nullptr); |
7411 | 0 | } // while |
7412 | 0 | message_done: |
7413 | 0 | _impl_._has_bits_.Or(has_bits); |
7414 | 0 | return ptr; |
7415 | 0 | failure: |
7416 | 0 | ptr = nullptr; |
7417 | 0 | goto message_done; |
7418 | 0 | #undef CHK_ |
7419 | 0 | } |
7420 | | |
7421 | | uint8_t* Function::_InternalSerialize( |
7422 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
7423 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Function) |
7424 | 0 | uint32_t cached_has_bits = 0; |
7425 | 0 | (void) cached_has_bits; |
7426 | |
|
7427 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
7428 | | // required .lua_grammar.Function.FuncName name = 1; |
7429 | 0 | if (cached_has_bits & 0x00000001u) { |
7430 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7431 | 0 | InternalWriteMessage(1, _Internal::name(this), |
7432 | 0 | _Internal::name(this).GetCachedSize(), target, stream); |
7433 | 0 | } |
7434 | | |
7435 | | // required .lua_grammar.FuncBody body = 2; |
7436 | 0 | if (cached_has_bits & 0x00000002u) { |
7437 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7438 | 0 | InternalWriteMessage(2, _Internal::body(this), |
7439 | 0 | _Internal::body(this).GetCachedSize(), target, stream); |
7440 | 0 | } |
7441 | |
|
7442 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
7443 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
7444 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
7445 | 0 | } |
7446 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Function) |
7447 | 0 | return target; |
7448 | 0 | } |
7449 | | |
7450 | 0 | size_t Function::RequiredFieldsByteSizeFallback() const { |
7451 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Function) |
7452 | 0 | size_t total_size = 0; |
7453 | |
|
7454 | 0 | if (_internal_has_name()) { |
7455 | | // required .lua_grammar.Function.FuncName name = 1; |
7456 | 0 | total_size += 1 + |
7457 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7458 | 0 | *_impl_.name_); |
7459 | 0 | } |
7460 | |
|
7461 | 0 | if (_internal_has_body()) { |
7462 | | // required .lua_grammar.FuncBody body = 2; |
7463 | 0 | total_size += 1 + |
7464 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7465 | 0 | *_impl_.body_); |
7466 | 0 | } |
7467 | |
|
7468 | 0 | return total_size; |
7469 | 0 | } |
7470 | 0 | size_t Function::ByteSizeLong() const { |
7471 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Function) |
7472 | 0 | size_t total_size = 0; |
7473 | |
|
7474 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
7475 | | // required .lua_grammar.Function.FuncName name = 1; |
7476 | 0 | total_size += 1 + |
7477 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7478 | 0 | *_impl_.name_); |
7479 | | |
7480 | | // required .lua_grammar.FuncBody body = 2; |
7481 | 0 | total_size += 1 + |
7482 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7483 | 0 | *_impl_.body_); |
7484 | |
|
7485 | 0 | } else { |
7486 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
7487 | 0 | } |
7488 | 0 | uint32_t cached_has_bits = 0; |
7489 | | // Prevent compiler warnings about cached_has_bits being unused |
7490 | 0 | (void) cached_has_bits; |
7491 | |
|
7492 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
7493 | 0 | } |
7494 | | |
7495 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Function::_class_data_ = { |
7496 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
7497 | | Function::MergeImpl |
7498 | | }; |
7499 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Function::GetClassData() const { return &_class_data_; } |
7500 | | |
7501 | | |
7502 | 0 | void Function::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
7503 | 0 | auto* const _this = static_cast<Function*>(&to_msg); |
7504 | 0 | auto& from = static_cast<const Function&>(from_msg); |
7505 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Function) |
7506 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
7507 | 0 | uint32_t cached_has_bits = 0; |
7508 | 0 | (void) cached_has_bits; |
7509 | |
|
7510 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
7511 | 0 | if (cached_has_bits & 0x00000003u) { |
7512 | 0 | if (cached_has_bits & 0x00000001u) { |
7513 | 0 | _this->_internal_mutable_name()->::lua_grammar::Function_FuncName::MergeFrom( |
7514 | 0 | from._internal_name()); |
7515 | 0 | } |
7516 | 0 | if (cached_has_bits & 0x00000002u) { |
7517 | 0 | _this->_internal_mutable_body()->::lua_grammar::FuncBody::MergeFrom( |
7518 | 0 | from._internal_body()); |
7519 | 0 | } |
7520 | 0 | } |
7521 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
7522 | 0 | } |
7523 | | |
7524 | 0 | void Function::CopyFrom(const Function& from) { |
7525 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Function) |
7526 | 0 | if (&from == this) return; |
7527 | 0 | Clear(); |
7528 | 0 | MergeFrom(from); |
7529 | 0 | } |
7530 | | |
7531 | 2.21k | bool Function::IsInitialized() const { |
7532 | 2.21k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
7533 | 2.21k | if (_internal_has_name()) { |
7534 | 2.21k | if (!_impl_.name_->IsInitialized()) return false; |
7535 | 2.21k | } |
7536 | 2.21k | if (_internal_has_body()) { |
7537 | 2.21k | if (!_impl_.body_->IsInitialized()) return false; |
7538 | 2.21k | } |
7539 | 2.21k | return true; |
7540 | 2.21k | } |
7541 | | |
7542 | 0 | void Function::InternalSwap(Function* other) { |
7543 | 0 | using std::swap; |
7544 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
7545 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
7546 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
7547 | 0 | PROTOBUF_FIELD_OFFSET(Function, _impl_.body_) |
7548 | 0 | + sizeof(Function::_impl_.body_) |
7549 | 0 | - PROTOBUF_FIELD_OFFSET(Function, _impl_.name_)>( |
7550 | 0 | reinterpret_cast<char*>(&_impl_.name_), |
7551 | 0 | reinterpret_cast<char*>(&other->_impl_.name_)); |
7552 | 0 | } |
7553 | | |
7554 | 27.2k | ::PROTOBUF_NAMESPACE_ID::Metadata Function::GetMetadata() const { |
7555 | 27.2k | return ::_pbi::AssignDescriptors( |
7556 | 27.2k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
7557 | 27.2k | file_level_metadata_lua_5fgrammar_2eproto[17]); |
7558 | 27.2k | } |
7559 | | |
7560 | | // =================================================================== |
7561 | | |
7562 | | class FuncBody_NameListWithEllipsis::_Internal { |
7563 | | public: |
7564 | | using HasBits = decltype(std::declval<FuncBody_NameListWithEllipsis>()._impl_._has_bits_); |
7565 | | static const ::lua_grammar::NameList& namelist(const FuncBody_NameListWithEllipsis* msg); |
7566 | 0 | static void set_has_namelist(HasBits* has_bits) { |
7567 | 0 | (*has_bits)[0] |= 2u; |
7568 | 0 | } |
7569 | 0 | static void set_has_ellipsis(HasBits* has_bits) { |
7570 | 0 | (*has_bits)[0] |= 1u; |
7571 | 0 | } |
7572 | 505 | static bool MissingRequiredFields(const HasBits& has_bits) { |
7573 | 505 | return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; |
7574 | 505 | } |
7575 | | }; |
7576 | | |
7577 | | const ::lua_grammar::NameList& |
7578 | 0 | FuncBody_NameListWithEllipsis::_Internal::namelist(const FuncBody_NameListWithEllipsis* msg) { |
7579 | 0 | return *msg->_impl_.namelist_; |
7580 | 0 | } |
7581 | | FuncBody_NameListWithEllipsis::FuncBody_NameListWithEllipsis(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
7582 | | bool is_message_owned) |
7583 | 505 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
7584 | 505 | SharedCtor(arena, is_message_owned); |
7585 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FuncBody.NameListWithEllipsis) |
7586 | 505 | } |
7587 | | FuncBody_NameListWithEllipsis::FuncBody_NameListWithEllipsis(const FuncBody_NameListWithEllipsis& from) |
7588 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
7589 | 0 | FuncBody_NameListWithEllipsis* const _this = this; (void)_this; |
7590 | 0 | new (&_impl_) Impl_{ |
7591 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
7592 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
7593 | 0 | , decltype(_impl_.ellipsis_){} |
7594 | 0 | , decltype(_impl_.namelist_){nullptr}}; |
7595 | |
|
7596 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
7597 | 0 | _impl_.ellipsis_.InitDefault(); |
7598 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7599 | | _impl_.ellipsis_.Set("", GetArenaForAllocation()); |
7600 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7601 | 0 | if (from._internal_has_ellipsis()) { |
7602 | 0 | _this->_impl_.ellipsis_.Set(from._internal_ellipsis(), |
7603 | 0 | _this->GetArenaForAllocation()); |
7604 | 0 | } |
7605 | 0 | if (from._internal_has_namelist()) { |
7606 | 0 | _this->_impl_.namelist_ = new ::lua_grammar::NameList(*from._impl_.namelist_); |
7607 | 0 | } |
7608 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FuncBody.NameListWithEllipsis) |
7609 | 0 | } |
7610 | | |
7611 | | inline void FuncBody_NameListWithEllipsis::SharedCtor( |
7612 | 505 | ::_pb::Arena* arena, bool is_message_owned) { |
7613 | 505 | (void)arena; |
7614 | 505 | (void)is_message_owned; |
7615 | 505 | new (&_impl_) Impl_{ |
7616 | 505 | decltype(_impl_._has_bits_){} |
7617 | 505 | , /*decltype(_impl_._cached_size_)*/{} |
7618 | 505 | , decltype(_impl_.ellipsis_){} |
7619 | 505 | , decltype(_impl_.namelist_){nullptr} |
7620 | 505 | }; |
7621 | 505 | _impl_.ellipsis_.InitDefault(); |
7622 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7623 | | _impl_.ellipsis_.Set("", GetArenaForAllocation()); |
7624 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
7625 | 505 | } |
7626 | | |
7627 | 505 | FuncBody_NameListWithEllipsis::~FuncBody_NameListWithEllipsis() { |
7628 | | // @@protoc_insertion_point(destructor:lua_grammar.FuncBody.NameListWithEllipsis) |
7629 | 505 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
7630 | 0 | (void)arena; |
7631 | 0 | return; |
7632 | 0 | } |
7633 | 505 | SharedDtor(); |
7634 | 505 | } |
7635 | | |
7636 | 505 | inline void FuncBody_NameListWithEllipsis::SharedDtor() { |
7637 | 505 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
7638 | 505 | _impl_.ellipsis_.Destroy(); |
7639 | 505 | if (this != internal_default_instance()) delete _impl_.namelist_; |
7640 | 505 | } |
7641 | | |
7642 | 0 | void FuncBody_NameListWithEllipsis::SetCachedSize(int size) const { |
7643 | 0 | _impl_._cached_size_.Set(size); |
7644 | 0 | } |
7645 | | |
7646 | 0 | void FuncBody_NameListWithEllipsis::Clear() { |
7647 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FuncBody.NameListWithEllipsis) |
7648 | 0 | uint32_t cached_has_bits = 0; |
7649 | | // Prevent compiler warnings about cached_has_bits being unused |
7650 | 0 | (void) cached_has_bits; |
7651 | |
|
7652 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
7653 | 0 | if (cached_has_bits & 0x00000003u) { |
7654 | 0 | if (cached_has_bits & 0x00000001u) { |
7655 | 0 | _impl_.ellipsis_.ClearNonDefaultToEmpty(); |
7656 | 0 | } |
7657 | 0 | if (cached_has_bits & 0x00000002u) { |
7658 | 0 | GOOGLE_DCHECK(_impl_.namelist_ != nullptr); |
7659 | 0 | _impl_.namelist_->Clear(); |
7660 | 0 | } |
7661 | 0 | } |
7662 | 0 | _impl_._has_bits_.Clear(); |
7663 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7664 | 0 | } |
7665 | | |
7666 | 0 | const char* FuncBody_NameListWithEllipsis::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
7667 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7668 | 0 | _Internal::HasBits has_bits{}; |
7669 | 0 | while (!ctx->Done(&ptr)) { |
7670 | 0 | uint32_t tag; |
7671 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
7672 | 0 | switch (tag >> 3) { |
7673 | | // required .lua_grammar.NameList namelist = 1; |
7674 | 0 | case 1: |
7675 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
7676 | 0 | ptr = ctx->ParseMessage(_internal_mutable_namelist(), ptr); |
7677 | 0 | CHK_(ptr); |
7678 | 0 | } else |
7679 | 0 | goto handle_unusual; |
7680 | 0 | continue; |
7681 | | // optional string ellipsis = 2; |
7682 | 0 | case 2: |
7683 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
7684 | 0 | auto str = _internal_mutable_ellipsis(); |
7685 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
7686 | 0 | CHK_(ptr); |
7687 | 0 | #ifndef NDEBUG |
7688 | 0 | ::_pbi::VerifyUTF8(str, "lua_grammar.FuncBody.NameListWithEllipsis.ellipsis"); |
7689 | 0 | #endif // !NDEBUG |
7690 | 0 | } else |
7691 | 0 | goto handle_unusual; |
7692 | 0 | continue; |
7693 | 0 | default: |
7694 | 0 | goto handle_unusual; |
7695 | 0 | } // switch |
7696 | 0 | handle_unusual: |
7697 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
7698 | 0 | CHK_(ptr); |
7699 | 0 | ctx->SetLastTag(tag); |
7700 | 0 | goto message_done; |
7701 | 0 | } |
7702 | 0 | ptr = UnknownFieldParse( |
7703 | 0 | tag, |
7704 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
7705 | 0 | ptr, ctx); |
7706 | 0 | CHK_(ptr != nullptr); |
7707 | 0 | } // while |
7708 | 0 | message_done: |
7709 | 0 | _impl_._has_bits_.Or(has_bits); |
7710 | 0 | return ptr; |
7711 | 0 | failure: |
7712 | 0 | ptr = nullptr; |
7713 | 0 | goto message_done; |
7714 | 0 | #undef CHK_ |
7715 | 0 | } |
7716 | | |
7717 | | uint8_t* FuncBody_NameListWithEllipsis::_InternalSerialize( |
7718 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
7719 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FuncBody.NameListWithEllipsis) |
7720 | 0 | uint32_t cached_has_bits = 0; |
7721 | 0 | (void) cached_has_bits; |
7722 | |
|
7723 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
7724 | | // required .lua_grammar.NameList namelist = 1; |
7725 | 0 | if (cached_has_bits & 0x00000002u) { |
7726 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
7727 | 0 | InternalWriteMessage(1, _Internal::namelist(this), |
7728 | 0 | _Internal::namelist(this).GetCachedSize(), target, stream); |
7729 | 0 | } |
7730 | | |
7731 | | // optional string ellipsis = 2; |
7732 | 0 | if (cached_has_bits & 0x00000001u) { |
7733 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
7734 | 0 | this->_internal_ellipsis().data(), static_cast<int>(this->_internal_ellipsis().length()), |
7735 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
7736 | 0 | "lua_grammar.FuncBody.NameListWithEllipsis.ellipsis"); |
7737 | 0 | target = stream->WriteStringMaybeAliased( |
7738 | 0 | 2, this->_internal_ellipsis(), target); |
7739 | 0 | } |
7740 | |
|
7741 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
7742 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
7743 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
7744 | 0 | } |
7745 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FuncBody.NameListWithEllipsis) |
7746 | 0 | return target; |
7747 | 0 | } |
7748 | | |
7749 | 0 | size_t FuncBody_NameListWithEllipsis::ByteSizeLong() const { |
7750 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FuncBody.NameListWithEllipsis) |
7751 | 0 | size_t total_size = 0; |
7752 | | |
7753 | | // required .lua_grammar.NameList namelist = 1; |
7754 | 0 | if (_internal_has_namelist()) { |
7755 | 0 | total_size += 1 + |
7756 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
7757 | 0 | *_impl_.namelist_); |
7758 | 0 | } |
7759 | 0 | uint32_t cached_has_bits = 0; |
7760 | | // Prevent compiler warnings about cached_has_bits being unused |
7761 | 0 | (void) cached_has_bits; |
7762 | | |
7763 | | // optional string ellipsis = 2; |
7764 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
7765 | 0 | if (cached_has_bits & 0x00000001u) { |
7766 | 0 | total_size += 1 + |
7767 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
7768 | 0 | this->_internal_ellipsis()); |
7769 | 0 | } |
7770 | |
|
7771 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
7772 | 0 | } |
7773 | | |
7774 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FuncBody_NameListWithEllipsis::_class_data_ = { |
7775 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
7776 | | FuncBody_NameListWithEllipsis::MergeImpl |
7777 | | }; |
7778 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FuncBody_NameListWithEllipsis::GetClassData() const { return &_class_data_; } |
7779 | | |
7780 | | |
7781 | 0 | void FuncBody_NameListWithEllipsis::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
7782 | 0 | auto* const _this = static_cast<FuncBody_NameListWithEllipsis*>(&to_msg); |
7783 | 0 | auto& from = static_cast<const FuncBody_NameListWithEllipsis&>(from_msg); |
7784 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FuncBody.NameListWithEllipsis) |
7785 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
7786 | 0 | uint32_t cached_has_bits = 0; |
7787 | 0 | (void) cached_has_bits; |
7788 | |
|
7789 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
7790 | 0 | if (cached_has_bits & 0x00000003u) { |
7791 | 0 | if (cached_has_bits & 0x00000001u) { |
7792 | 0 | _this->_internal_set_ellipsis(from._internal_ellipsis()); |
7793 | 0 | } |
7794 | 0 | if (cached_has_bits & 0x00000002u) { |
7795 | 0 | _this->_internal_mutable_namelist()->::lua_grammar::NameList::MergeFrom( |
7796 | 0 | from._internal_namelist()); |
7797 | 0 | } |
7798 | 0 | } |
7799 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
7800 | 0 | } |
7801 | | |
7802 | 0 | void FuncBody_NameListWithEllipsis::CopyFrom(const FuncBody_NameListWithEllipsis& from) { |
7803 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FuncBody.NameListWithEllipsis) |
7804 | 0 | if (&from == this) return; |
7805 | 0 | Clear(); |
7806 | 0 | MergeFrom(from); |
7807 | 0 | } |
7808 | | |
7809 | 505 | bool FuncBody_NameListWithEllipsis::IsInitialized() const { |
7810 | 505 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
7811 | 505 | if (_internal_has_namelist()) { |
7812 | 505 | if (!_impl_.namelist_->IsInitialized()) return false; |
7813 | 505 | } |
7814 | 505 | return true; |
7815 | 505 | } |
7816 | | |
7817 | 0 | void FuncBody_NameListWithEllipsis::InternalSwap(FuncBody_NameListWithEllipsis* other) { |
7818 | 0 | using std::swap; |
7819 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
7820 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
7821 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
7822 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
7823 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
7824 | 0 | &_impl_.ellipsis_, lhs_arena, |
7825 | 0 | &other->_impl_.ellipsis_, rhs_arena |
7826 | 0 | ); |
7827 | 0 | swap(_impl_.namelist_, other->_impl_.namelist_); |
7828 | 0 | } |
7829 | | |
7830 | 5.40k | ::PROTOBUF_NAMESPACE_ID::Metadata FuncBody_NameListWithEllipsis::GetMetadata() const { |
7831 | 5.40k | return ::_pbi::AssignDescriptors( |
7832 | 5.40k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
7833 | 5.40k | file_level_metadata_lua_5fgrammar_2eproto[18]); |
7834 | 5.40k | } |
7835 | | |
7836 | | // =================================================================== |
7837 | | |
7838 | | class FuncBody_ParList::_Internal { |
7839 | | public: |
7840 | | static const ::lua_grammar::FuncBody_NameListWithEllipsis& namelist(const FuncBody_ParList* msg); |
7841 | | }; |
7842 | | |
7843 | | const ::lua_grammar::FuncBody_NameListWithEllipsis& |
7844 | 0 | FuncBody_ParList::_Internal::namelist(const FuncBody_ParList* msg) { |
7845 | 0 | return *msg->_impl_.parlist_oneof_.namelist_; |
7846 | 0 | } |
7847 | 0 | void FuncBody_ParList::set_allocated_namelist(::lua_grammar::FuncBody_NameListWithEllipsis* namelist) { |
7848 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
7849 | 0 | clear_parlist_oneof(); |
7850 | 0 | if (namelist) { |
7851 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
7852 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(namelist); |
7853 | 0 | if (message_arena != submessage_arena) { |
7854 | 0 | namelist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
7855 | 0 | message_arena, namelist, submessage_arena); |
7856 | 0 | } |
7857 | 0 | set_has_namelist(); |
7858 | 0 | _impl_.parlist_oneof_.namelist_ = namelist; |
7859 | 0 | } |
7860 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FuncBody.ParList.namelist) |
7861 | 0 | } |
7862 | | FuncBody_ParList::FuncBody_ParList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
7863 | | bool is_message_owned) |
7864 | 3.71k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
7865 | 3.71k | SharedCtor(arena, is_message_owned); |
7866 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FuncBody.ParList) |
7867 | 3.71k | } |
7868 | | FuncBody_ParList::FuncBody_ParList(const FuncBody_ParList& from) |
7869 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
7870 | 0 | FuncBody_ParList* const _this = this; (void)_this; |
7871 | 0 | new (&_impl_) Impl_{ |
7872 | 0 | decltype(_impl_.parlist_oneof_){} |
7873 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
7874 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
7875 | |
|
7876 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
7877 | 0 | clear_has_parlist_oneof(); |
7878 | 0 | switch (from.parlist_oneof_case()) { |
7879 | 0 | case kNamelist: { |
7880 | 0 | _this->_internal_mutable_namelist()->::lua_grammar::FuncBody_NameListWithEllipsis::MergeFrom( |
7881 | 0 | from._internal_namelist()); |
7882 | 0 | break; |
7883 | 0 | } |
7884 | 0 | case kEllipsis: { |
7885 | 0 | _this->_internal_set_ellipsis(from._internal_ellipsis()); |
7886 | 0 | break; |
7887 | 0 | } |
7888 | 0 | case PARLIST_ONEOF_NOT_SET: { |
7889 | 0 | break; |
7890 | 0 | } |
7891 | 0 | } |
7892 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FuncBody.ParList) |
7893 | 0 | } |
7894 | | |
7895 | | inline void FuncBody_ParList::SharedCtor( |
7896 | 3.71k | ::_pb::Arena* arena, bool is_message_owned) { |
7897 | 3.71k | (void)arena; |
7898 | 3.71k | (void)is_message_owned; |
7899 | 3.71k | new (&_impl_) Impl_{ |
7900 | 3.71k | decltype(_impl_.parlist_oneof_){} |
7901 | 3.71k | , /*decltype(_impl_._cached_size_)*/{} |
7902 | 3.71k | , /*decltype(_impl_._oneof_case_)*/{} |
7903 | 3.71k | }; |
7904 | 3.71k | clear_has_parlist_oneof(); |
7905 | 3.71k | } |
7906 | | |
7907 | 3.71k | FuncBody_ParList::~FuncBody_ParList() { |
7908 | | // @@protoc_insertion_point(destructor:lua_grammar.FuncBody.ParList) |
7909 | 3.71k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
7910 | 0 | (void)arena; |
7911 | 0 | return; |
7912 | 0 | } |
7913 | 3.71k | SharedDtor(); |
7914 | 3.71k | } |
7915 | | |
7916 | 3.71k | inline void FuncBody_ParList::SharedDtor() { |
7917 | 3.71k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
7918 | 3.71k | if (has_parlist_oneof()) { |
7919 | 1.82k | clear_parlist_oneof(); |
7920 | 1.82k | } |
7921 | 3.71k | } |
7922 | | |
7923 | 0 | void FuncBody_ParList::SetCachedSize(int size) const { |
7924 | 0 | _impl_._cached_size_.Set(size); |
7925 | 0 | } |
7926 | | |
7927 | 1.82k | void FuncBody_ParList::clear_parlist_oneof() { |
7928 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.FuncBody.ParList) |
7929 | 1.82k | switch (parlist_oneof_case()) { |
7930 | 505 | case kNamelist: { |
7931 | 505 | if (GetArenaForAllocation() == nullptr) { |
7932 | 505 | delete _impl_.parlist_oneof_.namelist_; |
7933 | 505 | } |
7934 | 505 | break; |
7935 | 0 | } |
7936 | 1.31k | case kEllipsis: { |
7937 | 1.31k | _impl_.parlist_oneof_.ellipsis_.Destroy(); |
7938 | 1.31k | break; |
7939 | 0 | } |
7940 | 0 | case PARLIST_ONEOF_NOT_SET: { |
7941 | 0 | break; |
7942 | 0 | } |
7943 | 1.82k | } |
7944 | 1.82k | _impl_._oneof_case_[0] = PARLIST_ONEOF_NOT_SET; |
7945 | 1.82k | } |
7946 | | |
7947 | | |
7948 | 0 | void FuncBody_ParList::Clear() { |
7949 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FuncBody.ParList) |
7950 | 0 | uint32_t cached_has_bits = 0; |
7951 | | // Prevent compiler warnings about cached_has_bits being unused |
7952 | 0 | (void) cached_has_bits; |
7953 | |
|
7954 | 0 | clear_parlist_oneof(); |
7955 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7956 | 0 | } |
7957 | | |
7958 | 0 | const char* FuncBody_ParList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
7959 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
7960 | 0 | while (!ctx->Done(&ptr)) { |
7961 | 0 | uint32_t tag; |
7962 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
7963 | 0 | switch (tag >> 3) { |
7964 | | // .lua_grammar.FuncBody.NameListWithEllipsis namelist = 1; |
7965 | 0 | case 1: |
7966 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
7967 | 0 | ptr = ctx->ParseMessage(_internal_mutable_namelist(), ptr); |
7968 | 0 | CHK_(ptr); |
7969 | 0 | } else |
7970 | 0 | goto handle_unusual; |
7971 | 0 | continue; |
7972 | | // string ellipsis = 2; |
7973 | 0 | case 2: |
7974 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
7975 | 0 | auto str = _internal_mutable_ellipsis(); |
7976 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
7977 | 0 | CHK_(ptr); |
7978 | 0 | #ifndef NDEBUG |
7979 | 0 | ::_pbi::VerifyUTF8(str, "lua_grammar.FuncBody.ParList.ellipsis"); |
7980 | 0 | #endif // !NDEBUG |
7981 | 0 | } else |
7982 | 0 | goto handle_unusual; |
7983 | 0 | continue; |
7984 | 0 | default: |
7985 | 0 | goto handle_unusual; |
7986 | 0 | } // switch |
7987 | 0 | handle_unusual: |
7988 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
7989 | 0 | CHK_(ptr); |
7990 | 0 | ctx->SetLastTag(tag); |
7991 | 0 | goto message_done; |
7992 | 0 | } |
7993 | 0 | ptr = UnknownFieldParse( |
7994 | 0 | tag, |
7995 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
7996 | 0 | ptr, ctx); |
7997 | 0 | CHK_(ptr != nullptr); |
7998 | 0 | } // while |
7999 | 0 | message_done: |
8000 | 0 | return ptr; |
8001 | 0 | failure: |
8002 | 0 | ptr = nullptr; |
8003 | 0 | goto message_done; |
8004 | 0 | #undef CHK_ |
8005 | 0 | } |
8006 | | |
8007 | | uint8_t* FuncBody_ParList::_InternalSerialize( |
8008 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
8009 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FuncBody.ParList) |
8010 | 0 | uint32_t cached_has_bits = 0; |
8011 | 0 | (void) cached_has_bits; |
8012 | |
|
8013 | 0 | switch (parlist_oneof_case()) { |
8014 | 0 | case kNamelist: { |
8015 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8016 | 0 | InternalWriteMessage(1, _Internal::namelist(this), |
8017 | 0 | _Internal::namelist(this).GetCachedSize(), target, stream); |
8018 | 0 | break; |
8019 | 0 | } |
8020 | 0 | case kEllipsis: { |
8021 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
8022 | 0 | this->_internal_ellipsis().data(), static_cast<int>(this->_internal_ellipsis().length()), |
8023 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
8024 | 0 | "lua_grammar.FuncBody.ParList.ellipsis"); |
8025 | 0 | target = stream->WriteStringMaybeAliased( |
8026 | 0 | 2, this->_internal_ellipsis(), target); |
8027 | 0 | break; |
8028 | 0 | } |
8029 | 0 | default: ; |
8030 | 0 | } |
8031 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
8032 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
8033 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
8034 | 0 | } |
8035 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FuncBody.ParList) |
8036 | 0 | return target; |
8037 | 0 | } |
8038 | | |
8039 | 0 | size_t FuncBody_ParList::ByteSizeLong() const { |
8040 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FuncBody.ParList) |
8041 | 0 | size_t total_size = 0; |
8042 | |
|
8043 | 0 | uint32_t cached_has_bits = 0; |
8044 | | // Prevent compiler warnings about cached_has_bits being unused |
8045 | 0 | (void) cached_has_bits; |
8046 | |
|
8047 | 0 | switch (parlist_oneof_case()) { |
8048 | | // .lua_grammar.FuncBody.NameListWithEllipsis namelist = 1; |
8049 | 0 | case kNamelist: { |
8050 | 0 | total_size += 1 + |
8051 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8052 | 0 | *_impl_.parlist_oneof_.namelist_); |
8053 | 0 | break; |
8054 | 0 | } |
8055 | | // string ellipsis = 2; |
8056 | 0 | case kEllipsis: { |
8057 | 0 | total_size += 1 + |
8058 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
8059 | 0 | this->_internal_ellipsis()); |
8060 | 0 | break; |
8061 | 0 | } |
8062 | 0 | case PARLIST_ONEOF_NOT_SET: { |
8063 | 0 | break; |
8064 | 0 | } |
8065 | 0 | } |
8066 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
8067 | 0 | } |
8068 | | |
8069 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FuncBody_ParList::_class_data_ = { |
8070 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
8071 | | FuncBody_ParList::MergeImpl |
8072 | | }; |
8073 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FuncBody_ParList::GetClassData() const { return &_class_data_; } |
8074 | | |
8075 | | |
8076 | 0 | void FuncBody_ParList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
8077 | 0 | auto* const _this = static_cast<FuncBody_ParList*>(&to_msg); |
8078 | 0 | auto& from = static_cast<const FuncBody_ParList&>(from_msg); |
8079 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FuncBody.ParList) |
8080 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
8081 | 0 | uint32_t cached_has_bits = 0; |
8082 | 0 | (void) cached_has_bits; |
8083 | |
|
8084 | 0 | switch (from.parlist_oneof_case()) { |
8085 | 0 | case kNamelist: { |
8086 | 0 | _this->_internal_mutable_namelist()->::lua_grammar::FuncBody_NameListWithEllipsis::MergeFrom( |
8087 | 0 | from._internal_namelist()); |
8088 | 0 | break; |
8089 | 0 | } |
8090 | 0 | case kEllipsis: { |
8091 | 0 | _this->_internal_set_ellipsis(from._internal_ellipsis()); |
8092 | 0 | break; |
8093 | 0 | } |
8094 | 0 | case PARLIST_ONEOF_NOT_SET: { |
8095 | 0 | break; |
8096 | 0 | } |
8097 | 0 | } |
8098 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8099 | 0 | } |
8100 | | |
8101 | 0 | void FuncBody_ParList::CopyFrom(const FuncBody_ParList& from) { |
8102 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FuncBody.ParList) |
8103 | 0 | if (&from == this) return; |
8104 | 0 | Clear(); |
8105 | 0 | MergeFrom(from); |
8106 | 0 | } |
8107 | | |
8108 | 3.62k | bool FuncBody_ParList::IsInitialized() const { |
8109 | 3.62k | switch (parlist_oneof_case()) { |
8110 | 505 | case kNamelist: { |
8111 | 505 | if (_internal_has_namelist()) { |
8112 | 505 | if (!_impl_.parlist_oneof_.namelist_->IsInitialized()) return false; |
8113 | 505 | } |
8114 | 505 | break; |
8115 | 505 | } |
8116 | 1.30k | case kEllipsis: { |
8117 | 1.30k | break; |
8118 | 505 | } |
8119 | 1.81k | case PARLIST_ONEOF_NOT_SET: { |
8120 | 1.81k | break; |
8121 | 505 | } |
8122 | 3.62k | } |
8123 | 3.62k | return true; |
8124 | 3.62k | } |
8125 | | |
8126 | 0 | void FuncBody_ParList::InternalSwap(FuncBody_ParList* other) { |
8127 | 0 | using std::swap; |
8128 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
8129 | 0 | swap(_impl_.parlist_oneof_, other->_impl_.parlist_oneof_); |
8130 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
8131 | 0 | } |
8132 | | |
8133 | 27.2k | ::PROTOBUF_NAMESPACE_ID::Metadata FuncBody_ParList::GetMetadata() const { |
8134 | 27.2k | return ::_pbi::AssignDescriptors( |
8135 | 27.2k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
8136 | 27.2k | file_level_metadata_lua_5fgrammar_2eproto[19]); |
8137 | 27.2k | } |
8138 | | |
8139 | | // =================================================================== |
8140 | | |
8141 | | class FuncBody::_Internal { |
8142 | | public: |
8143 | | using HasBits = decltype(std::declval<FuncBody>()._impl_._has_bits_); |
8144 | | static const ::lua_grammar::FuncBody_ParList& parlist(const FuncBody* msg); |
8145 | 0 | static void set_has_parlist(HasBits* has_bits) { |
8146 | 0 | (*has_bits)[0] |= 1u; |
8147 | 0 | } |
8148 | | static const ::lua_grammar::Block& block(const FuncBody* msg); |
8149 | 0 | static void set_has_block(HasBits* has_bits) { |
8150 | 0 | (*has_bits)[0] |= 2u; |
8151 | 0 | } |
8152 | 17.2k | static bool MissingRequiredFields(const HasBits& has_bits) { |
8153 | 17.2k | return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; |
8154 | 17.2k | } |
8155 | | }; |
8156 | | |
8157 | | const ::lua_grammar::FuncBody_ParList& |
8158 | 0 | FuncBody::_Internal::parlist(const FuncBody* msg) { |
8159 | 0 | return *msg->_impl_.parlist_; |
8160 | 0 | } |
8161 | | const ::lua_grammar::Block& |
8162 | 0 | FuncBody::_Internal::block(const FuncBody* msg) { |
8163 | 0 | return *msg->_impl_.block_; |
8164 | 0 | } |
8165 | | FuncBody::FuncBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8166 | | bool is_message_owned) |
8167 | 17.4k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
8168 | 17.4k | SharedCtor(arena, is_message_owned); |
8169 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FuncBody) |
8170 | 17.4k | } |
8171 | | FuncBody::FuncBody(const FuncBody& from) |
8172 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
8173 | 0 | FuncBody* const _this = this; (void)_this; |
8174 | 0 | new (&_impl_) Impl_{ |
8175 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
8176 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
8177 | 0 | , decltype(_impl_.parlist_){nullptr} |
8178 | 0 | , decltype(_impl_.block_){nullptr}}; |
8179 | |
|
8180 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8181 | 0 | if (from._internal_has_parlist()) { |
8182 | 0 | _this->_impl_.parlist_ = new ::lua_grammar::FuncBody_ParList(*from._impl_.parlist_); |
8183 | 0 | } |
8184 | 0 | if (from._internal_has_block()) { |
8185 | 0 | _this->_impl_.block_ = new ::lua_grammar::Block(*from._impl_.block_); |
8186 | 0 | } |
8187 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FuncBody) |
8188 | 0 | } |
8189 | | |
8190 | | inline void FuncBody::SharedCtor( |
8191 | 17.4k | ::_pb::Arena* arena, bool is_message_owned) { |
8192 | 17.4k | (void)arena; |
8193 | 17.4k | (void)is_message_owned; |
8194 | 17.4k | new (&_impl_) Impl_{ |
8195 | 17.4k | decltype(_impl_._has_bits_){} |
8196 | 17.4k | , /*decltype(_impl_._cached_size_)*/{} |
8197 | 17.4k | , decltype(_impl_.parlist_){nullptr} |
8198 | 17.4k | , decltype(_impl_.block_){nullptr} |
8199 | 17.4k | }; |
8200 | 17.4k | } |
8201 | | |
8202 | 17.4k | FuncBody::~FuncBody() { |
8203 | | // @@protoc_insertion_point(destructor:lua_grammar.FuncBody) |
8204 | 17.4k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
8205 | 0 | (void)arena; |
8206 | 0 | return; |
8207 | 0 | } |
8208 | 17.4k | SharedDtor(); |
8209 | 17.4k | } |
8210 | | |
8211 | 17.4k | inline void FuncBody::SharedDtor() { |
8212 | 17.4k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
8213 | 17.4k | if (this != internal_default_instance()) delete _impl_.parlist_; |
8214 | 17.4k | if (this != internal_default_instance()) delete _impl_.block_; |
8215 | 17.4k | } |
8216 | | |
8217 | 0 | void FuncBody::SetCachedSize(int size) const { |
8218 | 0 | _impl_._cached_size_.Set(size); |
8219 | 0 | } |
8220 | | |
8221 | 12 | void FuncBody::Clear() { |
8222 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FuncBody) |
8223 | 12 | uint32_t cached_has_bits = 0; |
8224 | | // Prevent compiler warnings about cached_has_bits being unused |
8225 | 12 | (void) cached_has_bits; |
8226 | | |
8227 | 12 | cached_has_bits = _impl_._has_bits_[0]; |
8228 | 12 | if (cached_has_bits & 0x00000003u) { |
8229 | 0 | if (cached_has_bits & 0x00000001u) { |
8230 | 0 | GOOGLE_DCHECK(_impl_.parlist_ != nullptr); |
8231 | 0 | _impl_.parlist_->Clear(); |
8232 | 0 | } |
8233 | 0 | if (cached_has_bits & 0x00000002u) { |
8234 | 0 | GOOGLE_DCHECK(_impl_.block_ != nullptr); |
8235 | 0 | _impl_.block_->Clear(); |
8236 | 0 | } |
8237 | 0 | } |
8238 | 12 | _impl_._has_bits_.Clear(); |
8239 | 12 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8240 | 12 | } |
8241 | | |
8242 | 0 | const char* FuncBody::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
8243 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
8244 | 0 | _Internal::HasBits has_bits{}; |
8245 | 0 | while (!ctx->Done(&ptr)) { |
8246 | 0 | uint32_t tag; |
8247 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
8248 | 0 | switch (tag >> 3) { |
8249 | | // optional .lua_grammar.FuncBody.ParList parlist = 1; |
8250 | 0 | case 1: |
8251 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
8252 | 0 | ptr = ctx->ParseMessage(_internal_mutable_parlist(), ptr); |
8253 | 0 | CHK_(ptr); |
8254 | 0 | } else |
8255 | 0 | goto handle_unusual; |
8256 | 0 | continue; |
8257 | | // required .lua_grammar.Block block = 2; |
8258 | 0 | case 2: |
8259 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
8260 | 0 | ptr = ctx->ParseMessage(_internal_mutable_block(), ptr); |
8261 | 0 | CHK_(ptr); |
8262 | 0 | } else |
8263 | 0 | goto handle_unusual; |
8264 | 0 | continue; |
8265 | 0 | default: |
8266 | 0 | goto handle_unusual; |
8267 | 0 | } // switch |
8268 | 0 | handle_unusual: |
8269 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
8270 | 0 | CHK_(ptr); |
8271 | 0 | ctx->SetLastTag(tag); |
8272 | 0 | goto message_done; |
8273 | 0 | } |
8274 | 0 | ptr = UnknownFieldParse( |
8275 | 0 | tag, |
8276 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
8277 | 0 | ptr, ctx); |
8278 | 0 | CHK_(ptr != nullptr); |
8279 | 0 | } // while |
8280 | 0 | message_done: |
8281 | 0 | _impl_._has_bits_.Or(has_bits); |
8282 | 0 | return ptr; |
8283 | 0 | failure: |
8284 | 0 | ptr = nullptr; |
8285 | 0 | goto message_done; |
8286 | 0 | #undef CHK_ |
8287 | 0 | } |
8288 | | |
8289 | | uint8_t* FuncBody::_InternalSerialize( |
8290 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
8291 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FuncBody) |
8292 | 0 | uint32_t cached_has_bits = 0; |
8293 | 0 | (void) cached_has_bits; |
8294 | |
|
8295 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
8296 | | // optional .lua_grammar.FuncBody.ParList parlist = 1; |
8297 | 0 | if (cached_has_bits & 0x00000001u) { |
8298 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8299 | 0 | InternalWriteMessage(1, _Internal::parlist(this), |
8300 | 0 | _Internal::parlist(this).GetCachedSize(), target, stream); |
8301 | 0 | } |
8302 | | |
8303 | | // required .lua_grammar.Block block = 2; |
8304 | 0 | if (cached_has_bits & 0x00000002u) { |
8305 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8306 | 0 | InternalWriteMessage(2, _Internal::block(this), |
8307 | 0 | _Internal::block(this).GetCachedSize(), target, stream); |
8308 | 0 | } |
8309 | |
|
8310 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
8311 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
8312 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
8313 | 0 | } |
8314 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FuncBody) |
8315 | 0 | return target; |
8316 | 0 | } |
8317 | | |
8318 | 0 | size_t FuncBody::ByteSizeLong() const { |
8319 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FuncBody) |
8320 | 0 | size_t total_size = 0; |
8321 | | |
8322 | | // required .lua_grammar.Block block = 2; |
8323 | 0 | if (_internal_has_block()) { |
8324 | 0 | total_size += 1 + |
8325 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8326 | 0 | *_impl_.block_); |
8327 | 0 | } |
8328 | 0 | uint32_t cached_has_bits = 0; |
8329 | | // Prevent compiler warnings about cached_has_bits being unused |
8330 | 0 | (void) cached_has_bits; |
8331 | | |
8332 | | // optional .lua_grammar.FuncBody.ParList parlist = 1; |
8333 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
8334 | 0 | if (cached_has_bits & 0x00000001u) { |
8335 | 0 | total_size += 1 + |
8336 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8337 | 0 | *_impl_.parlist_); |
8338 | 0 | } |
8339 | |
|
8340 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
8341 | 0 | } |
8342 | | |
8343 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FuncBody::_class_data_ = { |
8344 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
8345 | | FuncBody::MergeImpl |
8346 | | }; |
8347 | 18 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FuncBody::GetClassData() const { return &_class_data_; } |
8348 | | |
8349 | | |
8350 | 6 | void FuncBody::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
8351 | 6 | auto* const _this = static_cast<FuncBody*>(&to_msg); |
8352 | 6 | auto& from = static_cast<const FuncBody&>(from_msg); |
8353 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FuncBody) |
8354 | 6 | GOOGLE_DCHECK_NE(&from, _this); |
8355 | 6 | uint32_t cached_has_bits = 0; |
8356 | 6 | (void) cached_has_bits; |
8357 | | |
8358 | 6 | cached_has_bits = from._impl_._has_bits_[0]; |
8359 | 6 | if (cached_has_bits & 0x00000003u) { |
8360 | 0 | if (cached_has_bits & 0x00000001u) { |
8361 | 0 | _this->_internal_mutable_parlist()->::lua_grammar::FuncBody_ParList::MergeFrom( |
8362 | 0 | from._internal_parlist()); |
8363 | 0 | } |
8364 | 0 | if (cached_has_bits & 0x00000002u) { |
8365 | 0 | _this->_internal_mutable_block()->::lua_grammar::Block::MergeFrom( |
8366 | 0 | from._internal_block()); |
8367 | 0 | } |
8368 | 0 | } |
8369 | 6 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8370 | 6 | } |
8371 | | |
8372 | 0 | void FuncBody::CopyFrom(const FuncBody& from) { |
8373 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FuncBody) |
8374 | 0 | if (&from == this) return; |
8375 | 0 | Clear(); |
8376 | 0 | MergeFrom(from); |
8377 | 0 | } |
8378 | | |
8379 | 17.2k | bool FuncBody::IsInitialized() const { |
8380 | 17.2k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
8381 | 17.2k | if (_internal_has_parlist()) { |
8382 | 3.62k | if (!_impl_.parlist_->IsInitialized()) return false; |
8383 | 3.62k | } |
8384 | 17.2k | if (_internal_has_block()) { |
8385 | 17.2k | if (!_impl_.block_->IsInitialized()) return false; |
8386 | 17.2k | } |
8387 | 17.2k | return true; |
8388 | 17.2k | } |
8389 | | |
8390 | 0 | void FuncBody::InternalSwap(FuncBody* other) { |
8391 | 0 | using std::swap; |
8392 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
8393 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
8394 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
8395 | 0 | PROTOBUF_FIELD_OFFSET(FuncBody, _impl_.block_) |
8396 | 0 | + sizeof(FuncBody::_impl_.block_) |
8397 | 0 | - PROTOBUF_FIELD_OFFSET(FuncBody, _impl_.parlist_)>( |
8398 | 0 | reinterpret_cast<char*>(&_impl_.parlist_), |
8399 | 0 | reinterpret_cast<char*>(&other->_impl_.parlist_)); |
8400 | 0 | } |
8401 | | |
8402 | 167k | ::PROTOBUF_NAMESPACE_ID::Metadata FuncBody::GetMetadata() const { |
8403 | 167k | return ::_pbi::AssignDescriptors( |
8404 | 167k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
8405 | 167k | file_level_metadata_lua_5fgrammar_2eproto[20]); |
8406 | 167k | } |
8407 | | |
8408 | | // =================================================================== |
8409 | | |
8410 | | class NameList::_Internal { |
8411 | | public: |
8412 | | using HasBits = decltype(std::declval<NameList>()._impl_._has_bits_); |
8413 | | static const ::lua_grammar::Name& firstname(const NameList* msg); |
8414 | 0 | static void set_has_firstname(HasBits* has_bits) { |
8415 | 0 | (*has_bits)[0] |= 1u; |
8416 | 0 | } |
8417 | 27.3k | static bool MissingRequiredFields(const HasBits& has_bits) { |
8418 | 27.3k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
8419 | 27.3k | } |
8420 | | }; |
8421 | | |
8422 | | const ::lua_grammar::Name& |
8423 | 0 | NameList::_Internal::firstname(const NameList* msg) { |
8424 | 0 | return *msg->_impl_.firstname_; |
8425 | 0 | } |
8426 | | NameList::NameList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8427 | | bool is_message_owned) |
8428 | 27.8k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
8429 | 27.8k | SharedCtor(arena, is_message_owned); |
8430 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.NameList) |
8431 | 27.8k | } |
8432 | | NameList::NameList(const NameList& from) |
8433 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
8434 | 0 | NameList* const _this = this; (void)_this; |
8435 | 0 | new (&_impl_) Impl_{ |
8436 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
8437 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
8438 | 0 | , decltype(_impl_.names_){from._impl_.names_} |
8439 | 0 | , decltype(_impl_.firstname_){nullptr}}; |
8440 | |
|
8441 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8442 | 0 | if (from._internal_has_firstname()) { |
8443 | 0 | _this->_impl_.firstname_ = new ::lua_grammar::Name(*from._impl_.firstname_); |
8444 | 0 | } |
8445 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.NameList) |
8446 | 0 | } |
8447 | | |
8448 | | inline void NameList::SharedCtor( |
8449 | 27.8k | ::_pb::Arena* arena, bool is_message_owned) { |
8450 | 27.8k | (void)arena; |
8451 | 27.8k | (void)is_message_owned; |
8452 | 27.8k | new (&_impl_) Impl_{ |
8453 | 27.8k | decltype(_impl_._has_bits_){} |
8454 | 27.8k | , /*decltype(_impl_._cached_size_)*/{} |
8455 | 27.8k | , decltype(_impl_.names_){arena} |
8456 | 27.8k | , decltype(_impl_.firstname_){nullptr} |
8457 | 27.8k | }; |
8458 | 27.8k | } |
8459 | | |
8460 | 27.8k | NameList::~NameList() { |
8461 | | // @@protoc_insertion_point(destructor:lua_grammar.NameList) |
8462 | 27.8k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
8463 | 0 | (void)arena; |
8464 | 0 | return; |
8465 | 0 | } |
8466 | 27.8k | SharedDtor(); |
8467 | 27.8k | } |
8468 | | |
8469 | 27.8k | inline void NameList::SharedDtor() { |
8470 | 27.8k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
8471 | 27.8k | _impl_.names_.~RepeatedPtrField(); |
8472 | 27.8k | if (this != internal_default_instance()) delete _impl_.firstname_; |
8473 | 27.8k | } |
8474 | | |
8475 | 0 | void NameList::SetCachedSize(int size) const { |
8476 | 0 | _impl_._cached_size_.Set(size); |
8477 | 0 | } |
8478 | | |
8479 | 68 | void NameList::Clear() { |
8480 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.NameList) |
8481 | 68 | uint32_t cached_has_bits = 0; |
8482 | | // Prevent compiler warnings about cached_has_bits being unused |
8483 | 68 | (void) cached_has_bits; |
8484 | | |
8485 | 68 | _impl_.names_.Clear(); |
8486 | 68 | cached_has_bits = _impl_._has_bits_[0]; |
8487 | 68 | if (cached_has_bits & 0x00000001u) { |
8488 | 0 | GOOGLE_DCHECK(_impl_.firstname_ != nullptr); |
8489 | 0 | _impl_.firstname_->Clear(); |
8490 | 0 | } |
8491 | 68 | _impl_._has_bits_.Clear(); |
8492 | 68 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8493 | 68 | } |
8494 | | |
8495 | 0 | const char* NameList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
8496 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
8497 | 0 | _Internal::HasBits has_bits{}; |
8498 | 0 | while (!ctx->Done(&ptr)) { |
8499 | 0 | uint32_t tag; |
8500 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
8501 | 0 | switch (tag >> 3) { |
8502 | | // required .lua_grammar.Name firstname = 1; |
8503 | 0 | case 1: |
8504 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
8505 | 0 | ptr = ctx->ParseMessage(_internal_mutable_firstname(), ptr); |
8506 | 0 | CHK_(ptr); |
8507 | 0 | } else |
8508 | 0 | goto handle_unusual; |
8509 | 0 | continue; |
8510 | | // repeated .lua_grammar.Name names = 2; |
8511 | 0 | case 2: |
8512 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
8513 | 0 | ptr -= 1; |
8514 | 0 | do { |
8515 | 0 | ptr += 1; |
8516 | 0 | ptr = ctx->ParseMessage(_internal_add_names(), ptr); |
8517 | 0 | CHK_(ptr); |
8518 | 0 | if (!ctx->DataAvailable(ptr)) break; |
8519 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
8520 | 0 | } else |
8521 | 0 | goto handle_unusual; |
8522 | 0 | continue; |
8523 | 0 | default: |
8524 | 0 | goto handle_unusual; |
8525 | 0 | } // switch |
8526 | 0 | handle_unusual: |
8527 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
8528 | 0 | CHK_(ptr); |
8529 | 0 | ctx->SetLastTag(tag); |
8530 | 0 | goto message_done; |
8531 | 0 | } |
8532 | 0 | ptr = UnknownFieldParse( |
8533 | 0 | tag, |
8534 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
8535 | 0 | ptr, ctx); |
8536 | 0 | CHK_(ptr != nullptr); |
8537 | 0 | } // while |
8538 | 0 | message_done: |
8539 | 0 | _impl_._has_bits_.Or(has_bits); |
8540 | 0 | return ptr; |
8541 | 0 | failure: |
8542 | 0 | ptr = nullptr; |
8543 | 0 | goto message_done; |
8544 | 0 | #undef CHK_ |
8545 | 0 | } |
8546 | | |
8547 | | uint8_t* NameList::_InternalSerialize( |
8548 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
8549 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.NameList) |
8550 | 0 | uint32_t cached_has_bits = 0; |
8551 | 0 | (void) cached_has_bits; |
8552 | |
|
8553 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
8554 | | // required .lua_grammar.Name firstname = 1; |
8555 | 0 | if (cached_has_bits & 0x00000001u) { |
8556 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8557 | 0 | InternalWriteMessage(1, _Internal::firstname(this), |
8558 | 0 | _Internal::firstname(this).GetCachedSize(), target, stream); |
8559 | 0 | } |
8560 | | |
8561 | | // repeated .lua_grammar.Name names = 2; |
8562 | 0 | for (unsigned i = 0, |
8563 | 0 | n = static_cast<unsigned>(this->_internal_names_size()); i < n; i++) { |
8564 | 0 | const auto& repfield = this->_internal_names(i); |
8565 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8566 | 0 | InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); |
8567 | 0 | } |
8568 | |
|
8569 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
8570 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
8571 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
8572 | 0 | } |
8573 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.NameList) |
8574 | 0 | return target; |
8575 | 0 | } |
8576 | | |
8577 | 0 | size_t NameList::ByteSizeLong() const { |
8578 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.NameList) |
8579 | 0 | size_t total_size = 0; |
8580 | | |
8581 | | // required .lua_grammar.Name firstname = 1; |
8582 | 0 | if (_internal_has_firstname()) { |
8583 | 0 | total_size += 1 + |
8584 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8585 | 0 | *_impl_.firstname_); |
8586 | 0 | } |
8587 | 0 | uint32_t cached_has_bits = 0; |
8588 | | // Prevent compiler warnings about cached_has_bits being unused |
8589 | 0 | (void) cached_has_bits; |
8590 | | |
8591 | | // repeated .lua_grammar.Name names = 2; |
8592 | 0 | total_size += 1UL * this->_internal_names_size(); |
8593 | 0 | for (const auto& msg : this->_impl_.names_) { |
8594 | 0 | total_size += |
8595 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
8596 | 0 | } |
8597 | |
|
8598 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
8599 | 0 | } |
8600 | | |
8601 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NameList::_class_data_ = { |
8602 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
8603 | | NameList::MergeImpl |
8604 | | }; |
8605 | 102 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NameList::GetClassData() const { return &_class_data_; } |
8606 | | |
8607 | | |
8608 | 34 | void NameList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
8609 | 34 | auto* const _this = static_cast<NameList*>(&to_msg); |
8610 | 34 | auto& from = static_cast<const NameList&>(from_msg); |
8611 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.NameList) |
8612 | 34 | GOOGLE_DCHECK_NE(&from, _this); |
8613 | 34 | uint32_t cached_has_bits = 0; |
8614 | 34 | (void) cached_has_bits; |
8615 | | |
8616 | 34 | _this->_impl_.names_.MergeFrom(from._impl_.names_); |
8617 | 34 | if (from._internal_has_firstname()) { |
8618 | 0 | _this->_internal_mutable_firstname()->::lua_grammar::Name::MergeFrom( |
8619 | 0 | from._internal_firstname()); |
8620 | 0 | } |
8621 | 34 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8622 | 34 | } |
8623 | | |
8624 | 0 | void NameList::CopyFrom(const NameList& from) { |
8625 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.NameList) |
8626 | 0 | if (&from == this) return; |
8627 | 0 | Clear(); |
8628 | 0 | MergeFrom(from); |
8629 | 0 | } |
8630 | | |
8631 | 27.3k | bool NameList::IsInitialized() const { |
8632 | 27.3k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
8633 | 27.3k | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.names_)) |
8634 | 0 | return false; |
8635 | 27.3k | if (_internal_has_firstname()) { |
8636 | 27.3k | if (!_impl_.firstname_->IsInitialized()) return false; |
8637 | 27.3k | } |
8638 | 27.3k | return true; |
8639 | 27.3k | } |
8640 | | |
8641 | 0 | void NameList::InternalSwap(NameList* other) { |
8642 | 0 | using std::swap; |
8643 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
8644 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
8645 | 0 | _impl_.names_.InternalSwap(&other->_impl_.names_); |
8646 | 0 | swap(_impl_.firstname_, other->_impl_.firstname_); |
8647 | 0 | } |
8648 | | |
8649 | 274k | ::PROTOBUF_NAMESPACE_ID::Metadata NameList::GetMetadata() const { |
8650 | 274k | return ::_pbi::AssignDescriptors( |
8651 | 274k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
8652 | 274k | file_level_metadata_lua_5fgrammar_2eproto[21]); |
8653 | 274k | } |
8654 | | |
8655 | | // =================================================================== |
8656 | | |
8657 | | class LocalFunc::_Internal { |
8658 | | public: |
8659 | | using HasBits = decltype(std::declval<LocalFunc>()._impl_._has_bits_); |
8660 | | static const ::lua_grammar::Name& name(const LocalFunc* msg); |
8661 | 0 | static void set_has_name(HasBits* has_bits) { |
8662 | 0 | (*has_bits)[0] |= 1u; |
8663 | 0 | } |
8664 | | static const ::lua_grammar::FuncBody& funcbody(const LocalFunc* msg); |
8665 | 0 | static void set_has_funcbody(HasBits* has_bits) { |
8666 | 0 | (*has_bits)[0] |= 2u; |
8667 | 0 | } |
8668 | 1.97k | static bool MissingRequiredFields(const HasBits& has_bits) { |
8669 | 1.97k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
8670 | 1.97k | } |
8671 | | }; |
8672 | | |
8673 | | const ::lua_grammar::Name& |
8674 | 0 | LocalFunc::_Internal::name(const LocalFunc* msg) { |
8675 | 0 | return *msg->_impl_.name_; |
8676 | 0 | } |
8677 | | const ::lua_grammar::FuncBody& |
8678 | 0 | LocalFunc::_Internal::funcbody(const LocalFunc* msg) { |
8679 | 0 | return *msg->_impl_.funcbody_; |
8680 | 0 | } |
8681 | | LocalFunc::LocalFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8682 | | bool is_message_owned) |
8683 | 2.11k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
8684 | 2.11k | SharedCtor(arena, is_message_owned); |
8685 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.LocalFunc) |
8686 | 2.11k | } |
8687 | | LocalFunc::LocalFunc(const LocalFunc& from) |
8688 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
8689 | 0 | LocalFunc* const _this = this; (void)_this; |
8690 | 0 | new (&_impl_) Impl_{ |
8691 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
8692 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
8693 | 0 | , decltype(_impl_.name_){nullptr} |
8694 | 0 | , decltype(_impl_.funcbody_){nullptr}}; |
8695 | |
|
8696 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8697 | 0 | if (from._internal_has_name()) { |
8698 | 0 | _this->_impl_.name_ = new ::lua_grammar::Name(*from._impl_.name_); |
8699 | 0 | } |
8700 | 0 | if (from._internal_has_funcbody()) { |
8701 | 0 | _this->_impl_.funcbody_ = new ::lua_grammar::FuncBody(*from._impl_.funcbody_); |
8702 | 0 | } |
8703 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.LocalFunc) |
8704 | 0 | } |
8705 | | |
8706 | | inline void LocalFunc::SharedCtor( |
8707 | 2.11k | ::_pb::Arena* arena, bool is_message_owned) { |
8708 | 2.11k | (void)arena; |
8709 | 2.11k | (void)is_message_owned; |
8710 | 2.11k | new (&_impl_) Impl_{ |
8711 | 2.11k | decltype(_impl_._has_bits_){} |
8712 | 2.11k | , /*decltype(_impl_._cached_size_)*/{} |
8713 | 2.11k | , decltype(_impl_.name_){nullptr} |
8714 | 2.11k | , decltype(_impl_.funcbody_){nullptr} |
8715 | 2.11k | }; |
8716 | 2.11k | } |
8717 | | |
8718 | 2.11k | LocalFunc::~LocalFunc() { |
8719 | | // @@protoc_insertion_point(destructor:lua_grammar.LocalFunc) |
8720 | 2.11k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
8721 | 0 | (void)arena; |
8722 | 0 | return; |
8723 | 0 | } |
8724 | 2.11k | SharedDtor(); |
8725 | 2.11k | } |
8726 | | |
8727 | 2.11k | inline void LocalFunc::SharedDtor() { |
8728 | 2.11k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
8729 | 2.11k | if (this != internal_default_instance()) delete _impl_.name_; |
8730 | 2.11k | if (this != internal_default_instance()) delete _impl_.funcbody_; |
8731 | 2.11k | } |
8732 | | |
8733 | 0 | void LocalFunc::SetCachedSize(int size) const { |
8734 | 0 | _impl_._cached_size_.Set(size); |
8735 | 0 | } |
8736 | | |
8737 | 0 | void LocalFunc::Clear() { |
8738 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.LocalFunc) |
8739 | 0 | uint32_t cached_has_bits = 0; |
8740 | | // Prevent compiler warnings about cached_has_bits being unused |
8741 | 0 | (void) cached_has_bits; |
8742 | |
|
8743 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
8744 | 0 | if (cached_has_bits & 0x00000003u) { |
8745 | 0 | if (cached_has_bits & 0x00000001u) { |
8746 | 0 | GOOGLE_DCHECK(_impl_.name_ != nullptr); |
8747 | 0 | _impl_.name_->Clear(); |
8748 | 0 | } |
8749 | 0 | if (cached_has_bits & 0x00000002u) { |
8750 | 0 | GOOGLE_DCHECK(_impl_.funcbody_ != nullptr); |
8751 | 0 | _impl_.funcbody_->Clear(); |
8752 | 0 | } |
8753 | 0 | } |
8754 | 0 | _impl_._has_bits_.Clear(); |
8755 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8756 | 0 | } |
8757 | | |
8758 | 0 | const char* LocalFunc::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
8759 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
8760 | 0 | _Internal::HasBits has_bits{}; |
8761 | 0 | while (!ctx->Done(&ptr)) { |
8762 | 0 | uint32_t tag; |
8763 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
8764 | 0 | switch (tag >> 3) { |
8765 | | // required .lua_grammar.Name name = 1; |
8766 | 0 | case 1: |
8767 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
8768 | 0 | ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); |
8769 | 0 | CHK_(ptr); |
8770 | 0 | } else |
8771 | 0 | goto handle_unusual; |
8772 | 0 | continue; |
8773 | | // required .lua_grammar.FuncBody funcbody = 2; |
8774 | 0 | case 2: |
8775 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
8776 | 0 | ptr = ctx->ParseMessage(_internal_mutable_funcbody(), ptr); |
8777 | 0 | CHK_(ptr); |
8778 | 0 | } else |
8779 | 0 | goto handle_unusual; |
8780 | 0 | continue; |
8781 | 0 | default: |
8782 | 0 | goto handle_unusual; |
8783 | 0 | } // switch |
8784 | 0 | handle_unusual: |
8785 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
8786 | 0 | CHK_(ptr); |
8787 | 0 | ctx->SetLastTag(tag); |
8788 | 0 | goto message_done; |
8789 | 0 | } |
8790 | 0 | ptr = UnknownFieldParse( |
8791 | 0 | tag, |
8792 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
8793 | 0 | ptr, ctx); |
8794 | 0 | CHK_(ptr != nullptr); |
8795 | 0 | } // while |
8796 | 0 | message_done: |
8797 | 0 | _impl_._has_bits_.Or(has_bits); |
8798 | 0 | return ptr; |
8799 | 0 | failure: |
8800 | 0 | ptr = nullptr; |
8801 | 0 | goto message_done; |
8802 | 0 | #undef CHK_ |
8803 | 0 | } |
8804 | | |
8805 | | uint8_t* LocalFunc::_InternalSerialize( |
8806 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
8807 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.LocalFunc) |
8808 | 0 | uint32_t cached_has_bits = 0; |
8809 | 0 | (void) cached_has_bits; |
8810 | |
|
8811 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
8812 | | // required .lua_grammar.Name name = 1; |
8813 | 0 | if (cached_has_bits & 0x00000001u) { |
8814 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8815 | 0 | InternalWriteMessage(1, _Internal::name(this), |
8816 | 0 | _Internal::name(this).GetCachedSize(), target, stream); |
8817 | 0 | } |
8818 | | |
8819 | | // required .lua_grammar.FuncBody funcbody = 2; |
8820 | 0 | if (cached_has_bits & 0x00000002u) { |
8821 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
8822 | 0 | InternalWriteMessage(2, _Internal::funcbody(this), |
8823 | 0 | _Internal::funcbody(this).GetCachedSize(), target, stream); |
8824 | 0 | } |
8825 | |
|
8826 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
8827 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
8828 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
8829 | 0 | } |
8830 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.LocalFunc) |
8831 | 0 | return target; |
8832 | 0 | } |
8833 | | |
8834 | 0 | size_t LocalFunc::RequiredFieldsByteSizeFallback() const { |
8835 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.LocalFunc) |
8836 | 0 | size_t total_size = 0; |
8837 | |
|
8838 | 0 | if (_internal_has_name()) { |
8839 | | // required .lua_grammar.Name name = 1; |
8840 | 0 | total_size += 1 + |
8841 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8842 | 0 | *_impl_.name_); |
8843 | 0 | } |
8844 | |
|
8845 | 0 | if (_internal_has_funcbody()) { |
8846 | | // required .lua_grammar.FuncBody funcbody = 2; |
8847 | 0 | total_size += 1 + |
8848 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8849 | 0 | *_impl_.funcbody_); |
8850 | 0 | } |
8851 | |
|
8852 | 0 | return total_size; |
8853 | 0 | } |
8854 | 0 | size_t LocalFunc::ByteSizeLong() const { |
8855 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.LocalFunc) |
8856 | 0 | size_t total_size = 0; |
8857 | |
|
8858 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
8859 | | // required .lua_grammar.Name name = 1; |
8860 | 0 | total_size += 1 + |
8861 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8862 | 0 | *_impl_.name_); |
8863 | | |
8864 | | // required .lua_grammar.FuncBody funcbody = 2; |
8865 | 0 | total_size += 1 + |
8866 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
8867 | 0 | *_impl_.funcbody_); |
8868 | |
|
8869 | 0 | } else { |
8870 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
8871 | 0 | } |
8872 | 0 | uint32_t cached_has_bits = 0; |
8873 | | // Prevent compiler warnings about cached_has_bits being unused |
8874 | 0 | (void) cached_has_bits; |
8875 | |
|
8876 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
8877 | 0 | } |
8878 | | |
8879 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalFunc::_class_data_ = { |
8880 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
8881 | | LocalFunc::MergeImpl |
8882 | | }; |
8883 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalFunc::GetClassData() const { return &_class_data_; } |
8884 | | |
8885 | | |
8886 | 0 | void LocalFunc::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
8887 | 0 | auto* const _this = static_cast<LocalFunc*>(&to_msg); |
8888 | 0 | auto& from = static_cast<const LocalFunc&>(from_msg); |
8889 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.LocalFunc) |
8890 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
8891 | 0 | uint32_t cached_has_bits = 0; |
8892 | 0 | (void) cached_has_bits; |
8893 | |
|
8894 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
8895 | 0 | if (cached_has_bits & 0x00000003u) { |
8896 | 0 | if (cached_has_bits & 0x00000001u) { |
8897 | 0 | _this->_internal_mutable_name()->::lua_grammar::Name::MergeFrom( |
8898 | 0 | from._internal_name()); |
8899 | 0 | } |
8900 | 0 | if (cached_has_bits & 0x00000002u) { |
8901 | 0 | _this->_internal_mutable_funcbody()->::lua_grammar::FuncBody::MergeFrom( |
8902 | 0 | from._internal_funcbody()); |
8903 | 0 | } |
8904 | 0 | } |
8905 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8906 | 0 | } |
8907 | | |
8908 | 0 | void LocalFunc::CopyFrom(const LocalFunc& from) { |
8909 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.LocalFunc) |
8910 | 0 | if (&from == this) return; |
8911 | 0 | Clear(); |
8912 | 0 | MergeFrom(from); |
8913 | 0 | } |
8914 | | |
8915 | 1.97k | bool LocalFunc::IsInitialized() const { |
8916 | 1.97k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
8917 | 1.97k | if (_internal_has_name()) { |
8918 | 1.97k | if (!_impl_.name_->IsInitialized()) return false; |
8919 | 1.97k | } |
8920 | 1.97k | if (_internal_has_funcbody()) { |
8921 | 1.97k | if (!_impl_.funcbody_->IsInitialized()) return false; |
8922 | 1.97k | } |
8923 | 1.97k | return true; |
8924 | 1.97k | } |
8925 | | |
8926 | 0 | void LocalFunc::InternalSwap(LocalFunc* other) { |
8927 | 0 | using std::swap; |
8928 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
8929 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
8930 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
8931 | 0 | PROTOBUF_FIELD_OFFSET(LocalFunc, _impl_.funcbody_) |
8932 | 0 | + sizeof(LocalFunc::_impl_.funcbody_) |
8933 | 0 | - PROTOBUF_FIELD_OFFSET(LocalFunc, _impl_.name_)>( |
8934 | 0 | reinterpret_cast<char*>(&_impl_.name_), |
8935 | 0 | reinterpret_cast<char*>(&other->_impl_.name_)); |
8936 | 0 | } |
8937 | | |
8938 | 24.4k | ::PROTOBUF_NAMESPACE_ID::Metadata LocalFunc::GetMetadata() const { |
8939 | 24.4k | return ::_pbi::AssignDescriptors( |
8940 | 24.4k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
8941 | 24.4k | file_level_metadata_lua_5fgrammar_2eproto[22]); |
8942 | 24.4k | } |
8943 | | |
8944 | | // =================================================================== |
8945 | | |
8946 | | class LocalNames::_Internal { |
8947 | | public: |
8948 | | using HasBits = decltype(std::declval<LocalNames>()._impl_._has_bits_); |
8949 | | static const ::lua_grammar::NameList& namelist(const LocalNames* msg); |
8950 | 0 | static void set_has_namelist(HasBits* has_bits) { |
8951 | 0 | (*has_bits)[0] |= 1u; |
8952 | 0 | } |
8953 | | static const ::lua_grammar::ExpressionList& explist(const LocalNames* msg); |
8954 | 0 | static void set_has_explist(HasBits* has_bits) { |
8955 | 0 | (*has_bits)[0] |= 2u; |
8956 | 0 | } |
8957 | 1.93k | static bool MissingRequiredFields(const HasBits& has_bits) { |
8958 | 1.93k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
8959 | 1.93k | } |
8960 | | }; |
8961 | | |
8962 | | const ::lua_grammar::NameList& |
8963 | 0 | LocalNames::_Internal::namelist(const LocalNames* msg) { |
8964 | 0 | return *msg->_impl_.namelist_; |
8965 | 0 | } |
8966 | | const ::lua_grammar::ExpressionList& |
8967 | 0 | LocalNames::_Internal::explist(const LocalNames* msg) { |
8968 | 0 | return *msg->_impl_.explist_; |
8969 | 0 | } |
8970 | | LocalNames::LocalNames(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8971 | | bool is_message_owned) |
8972 | 1.95k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
8973 | 1.95k | SharedCtor(arena, is_message_owned); |
8974 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.LocalNames) |
8975 | 1.95k | } |
8976 | | LocalNames::LocalNames(const LocalNames& from) |
8977 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
8978 | 0 | LocalNames* const _this = this; (void)_this; |
8979 | 0 | new (&_impl_) Impl_{ |
8980 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
8981 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
8982 | 0 | , decltype(_impl_.namelist_){nullptr} |
8983 | 0 | , decltype(_impl_.explist_){nullptr}}; |
8984 | |
|
8985 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
8986 | 0 | if (from._internal_has_namelist()) { |
8987 | 0 | _this->_impl_.namelist_ = new ::lua_grammar::NameList(*from._impl_.namelist_); |
8988 | 0 | } |
8989 | 0 | if (from._internal_has_explist()) { |
8990 | 0 | _this->_impl_.explist_ = new ::lua_grammar::ExpressionList(*from._impl_.explist_); |
8991 | 0 | } |
8992 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.LocalNames) |
8993 | 0 | } |
8994 | | |
8995 | | inline void LocalNames::SharedCtor( |
8996 | 1.95k | ::_pb::Arena* arena, bool is_message_owned) { |
8997 | 1.95k | (void)arena; |
8998 | 1.95k | (void)is_message_owned; |
8999 | 1.95k | new (&_impl_) Impl_{ |
9000 | 1.95k | decltype(_impl_._has_bits_){} |
9001 | 1.95k | , /*decltype(_impl_._cached_size_)*/{} |
9002 | 1.95k | , decltype(_impl_.namelist_){nullptr} |
9003 | 1.95k | , decltype(_impl_.explist_){nullptr} |
9004 | 1.95k | }; |
9005 | 1.95k | } |
9006 | | |
9007 | 1.95k | LocalNames::~LocalNames() { |
9008 | | // @@protoc_insertion_point(destructor:lua_grammar.LocalNames) |
9009 | 1.95k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
9010 | 0 | (void)arena; |
9011 | 0 | return; |
9012 | 0 | } |
9013 | 1.95k | SharedDtor(); |
9014 | 1.95k | } |
9015 | | |
9016 | 1.95k | inline void LocalNames::SharedDtor() { |
9017 | 1.95k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
9018 | 1.95k | if (this != internal_default_instance()) delete _impl_.namelist_; |
9019 | 1.95k | if (this != internal_default_instance()) delete _impl_.explist_; |
9020 | 1.95k | } |
9021 | | |
9022 | 0 | void LocalNames::SetCachedSize(int size) const { |
9023 | 0 | _impl_._cached_size_.Set(size); |
9024 | 0 | } |
9025 | | |
9026 | 0 | void LocalNames::Clear() { |
9027 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.LocalNames) |
9028 | 0 | uint32_t cached_has_bits = 0; |
9029 | | // Prevent compiler warnings about cached_has_bits being unused |
9030 | 0 | (void) cached_has_bits; |
9031 | |
|
9032 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9033 | 0 | if (cached_has_bits & 0x00000003u) { |
9034 | 0 | if (cached_has_bits & 0x00000001u) { |
9035 | 0 | GOOGLE_DCHECK(_impl_.namelist_ != nullptr); |
9036 | 0 | _impl_.namelist_->Clear(); |
9037 | 0 | } |
9038 | 0 | if (cached_has_bits & 0x00000002u) { |
9039 | 0 | GOOGLE_DCHECK(_impl_.explist_ != nullptr); |
9040 | 0 | _impl_.explist_->Clear(); |
9041 | 0 | } |
9042 | 0 | } |
9043 | 0 | _impl_._has_bits_.Clear(); |
9044 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
9045 | 0 | } |
9046 | | |
9047 | 0 | const char* LocalNames::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
9048 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9049 | 0 | _Internal::HasBits has_bits{}; |
9050 | 0 | while (!ctx->Done(&ptr)) { |
9051 | 0 | uint32_t tag; |
9052 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
9053 | 0 | switch (tag >> 3) { |
9054 | | // required .lua_grammar.NameList namelist = 1; |
9055 | 0 | case 1: |
9056 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
9057 | 0 | ptr = ctx->ParseMessage(_internal_mutable_namelist(), ptr); |
9058 | 0 | CHK_(ptr); |
9059 | 0 | } else |
9060 | 0 | goto handle_unusual; |
9061 | 0 | continue; |
9062 | | // optional .lua_grammar.ExpressionList explist = 2; |
9063 | 0 | case 2: |
9064 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
9065 | 0 | ptr = ctx->ParseMessage(_internal_mutable_explist(), ptr); |
9066 | 0 | CHK_(ptr); |
9067 | 0 | } else |
9068 | 0 | goto handle_unusual; |
9069 | 0 | continue; |
9070 | 0 | default: |
9071 | 0 | goto handle_unusual; |
9072 | 0 | } // switch |
9073 | 0 | handle_unusual: |
9074 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
9075 | 0 | CHK_(ptr); |
9076 | 0 | ctx->SetLastTag(tag); |
9077 | 0 | goto message_done; |
9078 | 0 | } |
9079 | 0 | ptr = UnknownFieldParse( |
9080 | 0 | tag, |
9081 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
9082 | 0 | ptr, ctx); |
9083 | 0 | CHK_(ptr != nullptr); |
9084 | 0 | } // while |
9085 | 0 | message_done: |
9086 | 0 | _impl_._has_bits_.Or(has_bits); |
9087 | 0 | return ptr; |
9088 | 0 | failure: |
9089 | 0 | ptr = nullptr; |
9090 | 0 | goto message_done; |
9091 | 0 | #undef CHK_ |
9092 | 0 | } |
9093 | | |
9094 | | uint8_t* LocalNames::_InternalSerialize( |
9095 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
9096 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.LocalNames) |
9097 | 0 | uint32_t cached_has_bits = 0; |
9098 | 0 | (void) cached_has_bits; |
9099 | |
|
9100 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9101 | | // required .lua_grammar.NameList namelist = 1; |
9102 | 0 | if (cached_has_bits & 0x00000001u) { |
9103 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9104 | 0 | InternalWriteMessage(1, _Internal::namelist(this), |
9105 | 0 | _Internal::namelist(this).GetCachedSize(), target, stream); |
9106 | 0 | } |
9107 | | |
9108 | | // optional .lua_grammar.ExpressionList explist = 2; |
9109 | 0 | if (cached_has_bits & 0x00000002u) { |
9110 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9111 | 0 | InternalWriteMessage(2, _Internal::explist(this), |
9112 | 0 | _Internal::explist(this).GetCachedSize(), target, stream); |
9113 | 0 | } |
9114 | |
|
9115 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
9116 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
9117 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
9118 | 0 | } |
9119 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.LocalNames) |
9120 | 0 | return target; |
9121 | 0 | } |
9122 | | |
9123 | 0 | size_t LocalNames::ByteSizeLong() const { |
9124 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.LocalNames) |
9125 | 0 | size_t total_size = 0; |
9126 | | |
9127 | | // required .lua_grammar.NameList namelist = 1; |
9128 | 0 | if (_internal_has_namelist()) { |
9129 | 0 | total_size += 1 + |
9130 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
9131 | 0 | *_impl_.namelist_); |
9132 | 0 | } |
9133 | 0 | uint32_t cached_has_bits = 0; |
9134 | | // Prevent compiler warnings about cached_has_bits being unused |
9135 | 0 | (void) cached_has_bits; |
9136 | | |
9137 | | // optional .lua_grammar.ExpressionList explist = 2; |
9138 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9139 | 0 | if (cached_has_bits & 0x00000002u) { |
9140 | 0 | total_size += 1 + |
9141 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
9142 | 0 | *_impl_.explist_); |
9143 | 0 | } |
9144 | |
|
9145 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
9146 | 0 | } |
9147 | | |
9148 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocalNames::_class_data_ = { |
9149 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
9150 | | LocalNames::MergeImpl |
9151 | | }; |
9152 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocalNames::GetClassData() const { return &_class_data_; } |
9153 | | |
9154 | | |
9155 | 0 | void LocalNames::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
9156 | 0 | auto* const _this = static_cast<LocalNames*>(&to_msg); |
9157 | 0 | auto& from = static_cast<const LocalNames&>(from_msg); |
9158 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.LocalNames) |
9159 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
9160 | 0 | uint32_t cached_has_bits = 0; |
9161 | 0 | (void) cached_has_bits; |
9162 | |
|
9163 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
9164 | 0 | if (cached_has_bits & 0x00000003u) { |
9165 | 0 | if (cached_has_bits & 0x00000001u) { |
9166 | 0 | _this->_internal_mutable_namelist()->::lua_grammar::NameList::MergeFrom( |
9167 | 0 | from._internal_namelist()); |
9168 | 0 | } |
9169 | 0 | if (cached_has_bits & 0x00000002u) { |
9170 | 0 | _this->_internal_mutable_explist()->::lua_grammar::ExpressionList::MergeFrom( |
9171 | 0 | from._internal_explist()); |
9172 | 0 | } |
9173 | 0 | } |
9174 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
9175 | 0 | } |
9176 | | |
9177 | 0 | void LocalNames::CopyFrom(const LocalNames& from) { |
9178 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.LocalNames) |
9179 | 0 | if (&from == this) return; |
9180 | 0 | Clear(); |
9181 | 0 | MergeFrom(from); |
9182 | 0 | } |
9183 | | |
9184 | 1.93k | bool LocalNames::IsInitialized() const { |
9185 | 1.93k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
9186 | 1.93k | if (_internal_has_namelist()) { |
9187 | 1.93k | if (!_impl_.namelist_->IsInitialized()) return false; |
9188 | 1.93k | } |
9189 | 1.93k | if (_internal_has_explist()) { |
9190 | 733 | if (!_impl_.explist_->IsInitialized()) return false; |
9191 | 733 | } |
9192 | 1.93k | return true; |
9193 | 1.93k | } |
9194 | | |
9195 | 0 | void LocalNames::InternalSwap(LocalNames* other) { |
9196 | 0 | using std::swap; |
9197 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
9198 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
9199 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
9200 | 0 | PROTOBUF_FIELD_OFFSET(LocalNames, _impl_.explist_) |
9201 | 0 | + sizeof(LocalNames::_impl_.explist_) |
9202 | 0 | - PROTOBUF_FIELD_OFFSET(LocalNames, _impl_.namelist_)>( |
9203 | 0 | reinterpret_cast<char*>(&_impl_.namelist_), |
9204 | 0 | reinterpret_cast<char*>(&other->_impl_.namelist_)); |
9205 | 0 | } |
9206 | | |
9207 | 19.6k | ::PROTOBUF_NAMESPACE_ID::Metadata LocalNames::GetMetadata() const { |
9208 | 19.6k | return ::_pbi::AssignDescriptors( |
9209 | 19.6k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
9210 | 19.6k | file_level_metadata_lua_5fgrammar_2eproto[23]); |
9211 | 19.6k | } |
9212 | | |
9213 | | // =================================================================== |
9214 | | |
9215 | | class LastStatement_ReturnOptionalExpressionList::_Internal { |
9216 | | public: |
9217 | | using HasBits = decltype(std::declval<LastStatement_ReturnOptionalExpressionList>()._impl_._has_bits_); |
9218 | | static const ::lua_grammar::ExpressionList& explist(const LastStatement_ReturnOptionalExpressionList* msg); |
9219 | 0 | static void set_has_explist(HasBits* has_bits) { |
9220 | 0 | (*has_bits)[0] |= 1u; |
9221 | 0 | } |
9222 | | }; |
9223 | | |
9224 | | const ::lua_grammar::ExpressionList& |
9225 | 0 | LastStatement_ReturnOptionalExpressionList::_Internal::explist(const LastStatement_ReturnOptionalExpressionList* msg) { |
9226 | 0 | return *msg->_impl_.explist_; |
9227 | 0 | } |
9228 | | LastStatement_ReturnOptionalExpressionList::LastStatement_ReturnOptionalExpressionList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
9229 | | bool is_message_owned) |
9230 | 3.51k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
9231 | 3.51k | SharedCtor(arena, is_message_owned); |
9232 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9233 | 3.51k | } |
9234 | | LastStatement_ReturnOptionalExpressionList::LastStatement_ReturnOptionalExpressionList(const LastStatement_ReturnOptionalExpressionList& from) |
9235 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
9236 | 0 | LastStatement_ReturnOptionalExpressionList* const _this = this; (void)_this; |
9237 | 0 | new (&_impl_) Impl_{ |
9238 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
9239 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
9240 | 0 | , decltype(_impl_.explist_){nullptr}}; |
9241 | |
|
9242 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
9243 | 0 | if (from._internal_has_explist()) { |
9244 | 0 | _this->_impl_.explist_ = new ::lua_grammar::ExpressionList(*from._impl_.explist_); |
9245 | 0 | } |
9246 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9247 | 0 | } |
9248 | | |
9249 | | inline void LastStatement_ReturnOptionalExpressionList::SharedCtor( |
9250 | 3.51k | ::_pb::Arena* arena, bool is_message_owned) { |
9251 | 3.51k | (void)arena; |
9252 | 3.51k | (void)is_message_owned; |
9253 | 3.51k | new (&_impl_) Impl_{ |
9254 | 3.51k | decltype(_impl_._has_bits_){} |
9255 | 3.51k | , /*decltype(_impl_._cached_size_)*/{} |
9256 | 3.51k | , decltype(_impl_.explist_){nullptr} |
9257 | 3.51k | }; |
9258 | 3.51k | } |
9259 | | |
9260 | 3.51k | LastStatement_ReturnOptionalExpressionList::~LastStatement_ReturnOptionalExpressionList() { |
9261 | | // @@protoc_insertion_point(destructor:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9262 | 3.51k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
9263 | 0 | (void)arena; |
9264 | 0 | return; |
9265 | 0 | } |
9266 | 3.51k | SharedDtor(); |
9267 | 3.51k | } |
9268 | | |
9269 | 3.51k | inline void LastStatement_ReturnOptionalExpressionList::SharedDtor() { |
9270 | 3.51k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
9271 | 3.51k | if (this != internal_default_instance()) delete _impl_.explist_; |
9272 | 3.51k | } |
9273 | | |
9274 | 0 | void LastStatement_ReturnOptionalExpressionList::SetCachedSize(int size) const { |
9275 | 0 | _impl_._cached_size_.Set(size); |
9276 | 0 | } |
9277 | | |
9278 | 0 | void LastStatement_ReturnOptionalExpressionList::Clear() { |
9279 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9280 | 0 | uint32_t cached_has_bits = 0; |
9281 | | // Prevent compiler warnings about cached_has_bits being unused |
9282 | 0 | (void) cached_has_bits; |
9283 | |
|
9284 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9285 | 0 | if (cached_has_bits & 0x00000001u) { |
9286 | 0 | GOOGLE_DCHECK(_impl_.explist_ != nullptr); |
9287 | 0 | _impl_.explist_->Clear(); |
9288 | 0 | } |
9289 | 0 | _impl_._has_bits_.Clear(); |
9290 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
9291 | 0 | } |
9292 | | |
9293 | 0 | const char* LastStatement_ReturnOptionalExpressionList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
9294 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9295 | 0 | _Internal::HasBits has_bits{}; |
9296 | 0 | while (!ctx->Done(&ptr)) { |
9297 | 0 | uint32_t tag; |
9298 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
9299 | 0 | switch (tag >> 3) { |
9300 | | // optional .lua_grammar.ExpressionList explist = 1; |
9301 | 0 | case 1: |
9302 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
9303 | 0 | ptr = ctx->ParseMessage(_internal_mutable_explist(), ptr); |
9304 | 0 | CHK_(ptr); |
9305 | 0 | } else |
9306 | 0 | goto handle_unusual; |
9307 | 0 | continue; |
9308 | 0 | default: |
9309 | 0 | goto handle_unusual; |
9310 | 0 | } // switch |
9311 | 0 | handle_unusual: |
9312 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
9313 | 0 | CHK_(ptr); |
9314 | 0 | ctx->SetLastTag(tag); |
9315 | 0 | goto message_done; |
9316 | 0 | } |
9317 | 0 | ptr = UnknownFieldParse( |
9318 | 0 | tag, |
9319 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
9320 | 0 | ptr, ctx); |
9321 | 0 | CHK_(ptr != nullptr); |
9322 | 0 | } // while |
9323 | 0 | message_done: |
9324 | 0 | _impl_._has_bits_.Or(has_bits); |
9325 | 0 | return ptr; |
9326 | 0 | failure: |
9327 | 0 | ptr = nullptr; |
9328 | 0 | goto message_done; |
9329 | 0 | #undef CHK_ |
9330 | 0 | } |
9331 | | |
9332 | | uint8_t* LastStatement_ReturnOptionalExpressionList::_InternalSerialize( |
9333 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
9334 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9335 | 0 | uint32_t cached_has_bits = 0; |
9336 | 0 | (void) cached_has_bits; |
9337 | |
|
9338 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9339 | | // optional .lua_grammar.ExpressionList explist = 1; |
9340 | 0 | if (cached_has_bits & 0x00000001u) { |
9341 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9342 | 0 | InternalWriteMessage(1, _Internal::explist(this), |
9343 | 0 | _Internal::explist(this).GetCachedSize(), target, stream); |
9344 | 0 | } |
9345 | |
|
9346 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
9347 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
9348 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
9349 | 0 | } |
9350 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9351 | 0 | return target; |
9352 | 0 | } |
9353 | | |
9354 | 0 | size_t LastStatement_ReturnOptionalExpressionList::ByteSizeLong() const { |
9355 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9356 | 0 | size_t total_size = 0; |
9357 | |
|
9358 | 0 | uint32_t cached_has_bits = 0; |
9359 | | // Prevent compiler warnings about cached_has_bits being unused |
9360 | 0 | (void) cached_has_bits; |
9361 | | |
9362 | | // optional .lua_grammar.ExpressionList explist = 1; |
9363 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9364 | 0 | if (cached_has_bits & 0x00000001u) { |
9365 | 0 | total_size += 1 + |
9366 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
9367 | 0 | *_impl_.explist_); |
9368 | 0 | } |
9369 | |
|
9370 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
9371 | 0 | } |
9372 | | |
9373 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LastStatement_ReturnOptionalExpressionList::_class_data_ = { |
9374 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
9375 | | LastStatement_ReturnOptionalExpressionList::MergeImpl |
9376 | | }; |
9377 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LastStatement_ReturnOptionalExpressionList::GetClassData() const { return &_class_data_; } |
9378 | | |
9379 | | |
9380 | 0 | void LastStatement_ReturnOptionalExpressionList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
9381 | 0 | auto* const _this = static_cast<LastStatement_ReturnOptionalExpressionList*>(&to_msg); |
9382 | 0 | auto& from = static_cast<const LastStatement_ReturnOptionalExpressionList&>(from_msg); |
9383 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9384 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
9385 | 0 | uint32_t cached_has_bits = 0; |
9386 | 0 | (void) cached_has_bits; |
9387 | |
|
9388 | 0 | if (from._internal_has_explist()) { |
9389 | 0 | _this->_internal_mutable_explist()->::lua_grammar::ExpressionList::MergeFrom( |
9390 | 0 | from._internal_explist()); |
9391 | 0 | } |
9392 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
9393 | 0 | } |
9394 | | |
9395 | 0 | void LastStatement_ReturnOptionalExpressionList::CopyFrom(const LastStatement_ReturnOptionalExpressionList& from) { |
9396 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
9397 | 0 | if (&from == this) return; |
9398 | 0 | Clear(); |
9399 | 0 | MergeFrom(from); |
9400 | 0 | } |
9401 | | |
9402 | 3.50k | bool LastStatement_ReturnOptionalExpressionList::IsInitialized() const { |
9403 | 3.50k | if (_internal_has_explist()) { |
9404 | 3.01k | if (!_impl_.explist_->IsInitialized()) return false; |
9405 | 3.01k | } |
9406 | 3.50k | return true; |
9407 | 3.50k | } |
9408 | | |
9409 | 0 | void LastStatement_ReturnOptionalExpressionList::InternalSwap(LastStatement_ReturnOptionalExpressionList* other) { |
9410 | 0 | using std::swap; |
9411 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
9412 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
9413 | 0 | swap(_impl_.explist_, other->_impl_.explist_); |
9414 | 0 | } |
9415 | | |
9416 | 30.1k | ::PROTOBUF_NAMESPACE_ID::Metadata LastStatement_ReturnOptionalExpressionList::GetMetadata() const { |
9417 | 30.1k | return ::_pbi::AssignDescriptors( |
9418 | 30.1k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
9419 | 30.1k | file_level_metadata_lua_5fgrammar_2eproto[24]); |
9420 | 30.1k | } |
9421 | | |
9422 | | // =================================================================== |
9423 | | |
9424 | | class LastStatement::_Internal { |
9425 | | public: |
9426 | | using HasBits = decltype(std::declval<LastStatement>()._impl_._has_bits_); |
9427 | | static const ::lua_grammar::LastStatement_ReturnOptionalExpressionList& explist(const LastStatement* msg); |
9428 | 0 | static void set_has_semicolon(HasBits* has_bits) { |
9429 | 0 | (*has_bits)[0] |= 1u; |
9430 | 0 | } |
9431 | | }; |
9432 | | |
9433 | | const ::lua_grammar::LastStatement_ReturnOptionalExpressionList& |
9434 | 0 | LastStatement::_Internal::explist(const LastStatement* msg) { |
9435 | 0 | return *msg->_impl_.last_oneof_.explist_; |
9436 | 0 | } |
9437 | 0 | void LastStatement::set_allocated_explist(::lua_grammar::LastStatement_ReturnOptionalExpressionList* explist) { |
9438 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
9439 | 0 | clear_last_oneof(); |
9440 | 0 | if (explist) { |
9441 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
9442 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(explist); |
9443 | 0 | if (message_arena != submessage_arena) { |
9444 | 0 | explist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
9445 | 0 | message_arena, explist, submessage_arena); |
9446 | 0 | } |
9447 | 0 | set_has_explist(); |
9448 | 0 | _impl_.last_oneof_.explist_ = explist; |
9449 | 0 | } |
9450 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.LastStatement.explist) |
9451 | 0 | } |
9452 | | LastStatement::LastStatement(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
9453 | | bool is_message_owned) |
9454 | 7.34k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
9455 | 7.34k | SharedCtor(arena, is_message_owned); |
9456 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.LastStatement) |
9457 | 7.34k | } |
9458 | | LastStatement::LastStatement(const LastStatement& from) |
9459 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
9460 | 0 | LastStatement* const _this = this; (void)_this; |
9461 | 0 | new (&_impl_) Impl_{ |
9462 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
9463 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
9464 | 0 | , decltype(_impl_.semicolon_){} |
9465 | 0 | , decltype(_impl_.last_oneof_){} |
9466 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
9467 | |
|
9468 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
9469 | 0 | _this->_impl_.semicolon_ = from._impl_.semicolon_; |
9470 | 0 | clear_has_last_oneof(); |
9471 | 0 | switch (from.last_oneof_case()) { |
9472 | 0 | case kExplist: { |
9473 | 0 | _this->_internal_mutable_explist()->::lua_grammar::LastStatement_ReturnOptionalExpressionList::MergeFrom( |
9474 | 0 | from._internal_explist()); |
9475 | 0 | break; |
9476 | 0 | } |
9477 | 0 | case kBreak: { |
9478 | 0 | _this->_internal_set_break_(from._internal_break_()); |
9479 | 0 | break; |
9480 | 0 | } |
9481 | 0 | case LAST_ONEOF_NOT_SET: { |
9482 | 0 | break; |
9483 | 0 | } |
9484 | 0 | } |
9485 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.LastStatement) |
9486 | 0 | } |
9487 | | |
9488 | | inline void LastStatement::SharedCtor( |
9489 | 7.34k | ::_pb::Arena* arena, bool is_message_owned) { |
9490 | 7.34k | (void)arena; |
9491 | 7.34k | (void)is_message_owned; |
9492 | 7.34k | new (&_impl_) Impl_{ |
9493 | 7.34k | decltype(_impl_._has_bits_){} |
9494 | 7.34k | , /*decltype(_impl_._cached_size_)*/{} |
9495 | 7.34k | , decltype(_impl_.semicolon_){false} |
9496 | 7.34k | , decltype(_impl_.last_oneof_){} |
9497 | 7.34k | , /*decltype(_impl_._oneof_case_)*/{} |
9498 | 7.34k | }; |
9499 | 7.34k | clear_has_last_oneof(); |
9500 | 7.34k | } |
9501 | | |
9502 | 7.34k | LastStatement::~LastStatement() { |
9503 | | // @@protoc_insertion_point(destructor:lua_grammar.LastStatement) |
9504 | 7.34k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
9505 | 0 | (void)arena; |
9506 | 0 | return; |
9507 | 0 | } |
9508 | 7.34k | SharedDtor(); |
9509 | 7.34k | } |
9510 | | |
9511 | 7.34k | inline void LastStatement::SharedDtor() { |
9512 | 7.34k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
9513 | 7.34k | if (has_last_oneof()) { |
9514 | 4.85k | clear_last_oneof(); |
9515 | 4.85k | } |
9516 | 7.34k | } |
9517 | | |
9518 | 0 | void LastStatement::SetCachedSize(int size) const { |
9519 | 0 | _impl_._cached_size_.Set(size); |
9520 | 0 | } |
9521 | | |
9522 | 4.86k | void LastStatement::clear_last_oneof() { |
9523 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.LastStatement) |
9524 | 4.86k | switch (last_oneof_case()) { |
9525 | 3.51k | case kExplist: { |
9526 | 3.51k | if (GetArenaForAllocation() == nullptr) { |
9527 | 3.51k | delete _impl_.last_oneof_.explist_; |
9528 | 3.51k | } |
9529 | 3.51k | break; |
9530 | 0 | } |
9531 | 1.34k | case kBreak: { |
9532 | | // No need to clear |
9533 | 1.34k | break; |
9534 | 0 | } |
9535 | 1 | case LAST_ONEOF_NOT_SET: { |
9536 | 1 | break; |
9537 | 0 | } |
9538 | 4.86k | } |
9539 | 4.86k | _impl_._oneof_case_[0] = LAST_ONEOF_NOT_SET; |
9540 | 4.86k | } |
9541 | | |
9542 | | |
9543 | 10 | void LastStatement::Clear() { |
9544 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.LastStatement) |
9545 | 10 | uint32_t cached_has_bits = 0; |
9546 | | // Prevent compiler warnings about cached_has_bits being unused |
9547 | 10 | (void) cached_has_bits; |
9548 | | |
9549 | 10 | _impl_.semicolon_ = false; |
9550 | 10 | clear_last_oneof(); |
9551 | 10 | _impl_._has_bits_.Clear(); |
9552 | 10 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
9553 | 10 | } |
9554 | | |
9555 | 0 | const char* LastStatement::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
9556 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9557 | 0 | _Internal::HasBits has_bits{}; |
9558 | 0 | while (!ctx->Done(&ptr)) { |
9559 | 0 | uint32_t tag; |
9560 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
9561 | 0 | switch (tag >> 3) { |
9562 | | // .lua_grammar.LastStatement.ReturnOptionalExpressionList explist = 1; |
9563 | 0 | case 1: |
9564 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
9565 | 0 | ptr = ctx->ParseMessage(_internal_mutable_explist(), ptr); |
9566 | 0 | CHK_(ptr); |
9567 | 0 | } else |
9568 | 0 | goto handle_unusual; |
9569 | 0 | continue; |
9570 | | // uint32 break = 2; |
9571 | 0 | case 2: |
9572 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
9573 | 0 | _internal_set_break_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
9574 | 0 | CHK_(ptr); |
9575 | 0 | } else |
9576 | 0 | goto handle_unusual; |
9577 | 0 | continue; |
9578 | | // optional bool semicolon = 3; |
9579 | 0 | case 3: |
9580 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
9581 | 0 | _Internal::set_has_semicolon(&has_bits); |
9582 | 0 | _impl_.semicolon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
9583 | 0 | CHK_(ptr); |
9584 | 0 | } else |
9585 | 0 | goto handle_unusual; |
9586 | 0 | continue; |
9587 | 0 | default: |
9588 | 0 | goto handle_unusual; |
9589 | 0 | } // switch |
9590 | 0 | handle_unusual: |
9591 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
9592 | 0 | CHK_(ptr); |
9593 | 0 | ctx->SetLastTag(tag); |
9594 | 0 | goto message_done; |
9595 | 0 | } |
9596 | 0 | ptr = UnknownFieldParse( |
9597 | 0 | tag, |
9598 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
9599 | 0 | ptr, ctx); |
9600 | 0 | CHK_(ptr != nullptr); |
9601 | 0 | } // while |
9602 | 0 | message_done: |
9603 | 0 | _impl_._has_bits_.Or(has_bits); |
9604 | 0 | return ptr; |
9605 | 0 | failure: |
9606 | 0 | ptr = nullptr; |
9607 | 0 | goto message_done; |
9608 | 0 | #undef CHK_ |
9609 | 0 | } |
9610 | | |
9611 | | uint8_t* LastStatement::_InternalSerialize( |
9612 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
9613 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.LastStatement) |
9614 | 0 | uint32_t cached_has_bits = 0; |
9615 | 0 | (void) cached_has_bits; |
9616 | |
|
9617 | 0 | switch (last_oneof_case()) { |
9618 | 0 | case kExplist: { |
9619 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9620 | 0 | InternalWriteMessage(1, _Internal::explist(this), |
9621 | 0 | _Internal::explist(this).GetCachedSize(), target, stream); |
9622 | 0 | break; |
9623 | 0 | } |
9624 | 0 | case kBreak: { |
9625 | 0 | target = stream->EnsureSpace(target); |
9626 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_break_(), target); |
9627 | 0 | break; |
9628 | 0 | } |
9629 | 0 | default: ; |
9630 | 0 | } |
9631 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9632 | | // optional bool semicolon = 3; |
9633 | 0 | if (cached_has_bits & 0x00000001u) { |
9634 | 0 | target = stream->EnsureSpace(target); |
9635 | 0 | target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_semicolon(), target); |
9636 | 0 | } |
9637 | |
|
9638 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
9639 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
9640 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
9641 | 0 | } |
9642 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.LastStatement) |
9643 | 0 | return target; |
9644 | 0 | } |
9645 | | |
9646 | 0 | size_t LastStatement::ByteSizeLong() const { |
9647 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.LastStatement) |
9648 | 0 | size_t total_size = 0; |
9649 | |
|
9650 | 0 | uint32_t cached_has_bits = 0; |
9651 | | // Prevent compiler warnings about cached_has_bits being unused |
9652 | 0 | (void) cached_has_bits; |
9653 | | |
9654 | | // optional bool semicolon = 3; |
9655 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9656 | 0 | if (cached_has_bits & 0x00000001u) { |
9657 | 0 | total_size += 1 + 1; |
9658 | 0 | } |
9659 | |
|
9660 | 0 | switch (last_oneof_case()) { |
9661 | | // .lua_grammar.LastStatement.ReturnOptionalExpressionList explist = 1; |
9662 | 0 | case kExplist: { |
9663 | 0 | total_size += 1 + |
9664 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
9665 | 0 | *_impl_.last_oneof_.explist_); |
9666 | 0 | break; |
9667 | 0 | } |
9668 | | // uint32 break = 2; |
9669 | 0 | case kBreak: { |
9670 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_break_()); |
9671 | 0 | break; |
9672 | 0 | } |
9673 | 0 | case LAST_ONEOF_NOT_SET: { |
9674 | 0 | break; |
9675 | 0 | } |
9676 | 0 | } |
9677 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
9678 | 0 | } |
9679 | | |
9680 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LastStatement::_class_data_ = { |
9681 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
9682 | | LastStatement::MergeImpl |
9683 | | }; |
9684 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LastStatement::GetClassData() const { return &_class_data_; } |
9685 | | |
9686 | | |
9687 | 0 | void LastStatement::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
9688 | 0 | auto* const _this = static_cast<LastStatement*>(&to_msg); |
9689 | 0 | auto& from = static_cast<const LastStatement&>(from_msg); |
9690 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.LastStatement) |
9691 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
9692 | 0 | uint32_t cached_has_bits = 0; |
9693 | 0 | (void) cached_has_bits; |
9694 | |
|
9695 | 0 | if (from._internal_has_semicolon()) { |
9696 | 0 | _this->_internal_set_semicolon(from._internal_semicolon()); |
9697 | 0 | } |
9698 | 0 | switch (from.last_oneof_case()) { |
9699 | 0 | case kExplist: { |
9700 | 0 | _this->_internal_mutable_explist()->::lua_grammar::LastStatement_ReturnOptionalExpressionList::MergeFrom( |
9701 | 0 | from._internal_explist()); |
9702 | 0 | break; |
9703 | 0 | } |
9704 | 0 | case kBreak: { |
9705 | 0 | _this->_internal_set_break_(from._internal_break_()); |
9706 | 0 | break; |
9707 | 0 | } |
9708 | 0 | case LAST_ONEOF_NOT_SET: { |
9709 | 0 | break; |
9710 | 0 | } |
9711 | 0 | } |
9712 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
9713 | 0 | } |
9714 | | |
9715 | 0 | void LastStatement::CopyFrom(const LastStatement& from) { |
9716 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.LastStatement) |
9717 | 0 | if (&from == this) return; |
9718 | 0 | Clear(); |
9719 | 0 | MergeFrom(from); |
9720 | 0 | } |
9721 | | |
9722 | 7.13k | bool LastStatement::IsInitialized() const { |
9723 | 7.13k | switch (last_oneof_case()) { |
9724 | 3.50k | case kExplist: { |
9725 | 3.50k | if (_internal_has_explist()) { |
9726 | 3.50k | if (!_impl_.last_oneof_.explist_->IsInitialized()) return false; |
9727 | 3.50k | } |
9728 | 3.50k | break; |
9729 | 3.50k | } |
9730 | 3.50k | case kBreak: { |
9731 | 1.31k | break; |
9732 | 3.50k | } |
9733 | 2.32k | case LAST_ONEOF_NOT_SET: { |
9734 | 2.32k | break; |
9735 | 3.50k | } |
9736 | 7.13k | } |
9737 | 7.13k | return true; |
9738 | 7.13k | } |
9739 | | |
9740 | 0 | void LastStatement::InternalSwap(LastStatement* other) { |
9741 | 0 | using std::swap; |
9742 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
9743 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
9744 | 0 | swap(_impl_.semicolon_, other->_impl_.semicolon_); |
9745 | 0 | swap(_impl_.last_oneof_, other->_impl_.last_oneof_); |
9746 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
9747 | 0 | } |
9748 | | |
9749 | 64.7k | ::PROTOBUF_NAMESPACE_ID::Metadata LastStatement::GetMetadata() const { |
9750 | 64.7k | return ::_pbi::AssignDescriptors( |
9751 | 64.7k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
9752 | 64.7k | file_level_metadata_lua_5fgrammar_2eproto[25]); |
9753 | 64.7k | } |
9754 | | |
9755 | | // =================================================================== |
9756 | | |
9757 | | class ExpressionList::_Internal { |
9758 | | public: |
9759 | | using HasBits = decltype(std::declval<ExpressionList>()._impl_._has_bits_); |
9760 | | static const ::lua_grammar::Expression& explast(const ExpressionList* msg); |
9761 | 0 | static void set_has_explast(HasBits* has_bits) { |
9762 | 0 | (*has_bits)[0] |= 1u; |
9763 | 0 | } |
9764 | 35.1k | static bool MissingRequiredFields(const HasBits& has_bits) { |
9765 | 35.1k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
9766 | 35.1k | } |
9767 | | }; |
9768 | | |
9769 | | const ::lua_grammar::Expression& |
9770 | 0 | ExpressionList::_Internal::explast(const ExpressionList* msg) { |
9771 | 0 | return *msg->_impl_.explast_; |
9772 | 0 | } |
9773 | | ExpressionList::ExpressionList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
9774 | | bool is_message_owned) |
9775 | 36.2k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
9776 | 36.2k | SharedCtor(arena, is_message_owned); |
9777 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.ExpressionList) |
9778 | 36.2k | } |
9779 | | ExpressionList::ExpressionList(const ExpressionList& from) |
9780 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
9781 | 0 | ExpressionList* const _this = this; (void)_this; |
9782 | 0 | new (&_impl_) Impl_{ |
9783 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
9784 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
9785 | 0 | , decltype(_impl_.expressions_){from._impl_.expressions_} |
9786 | 0 | , decltype(_impl_.explast_){nullptr}}; |
9787 | |
|
9788 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
9789 | 0 | if (from._internal_has_explast()) { |
9790 | 0 | _this->_impl_.explast_ = new ::lua_grammar::Expression(*from._impl_.explast_); |
9791 | 0 | } |
9792 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.ExpressionList) |
9793 | 0 | } |
9794 | | |
9795 | | inline void ExpressionList::SharedCtor( |
9796 | 36.2k | ::_pb::Arena* arena, bool is_message_owned) { |
9797 | 36.2k | (void)arena; |
9798 | 36.2k | (void)is_message_owned; |
9799 | 36.2k | new (&_impl_) Impl_{ |
9800 | 36.2k | decltype(_impl_._has_bits_){} |
9801 | 36.2k | , /*decltype(_impl_._cached_size_)*/{} |
9802 | 36.2k | , decltype(_impl_.expressions_){arena} |
9803 | 36.2k | , decltype(_impl_.explast_){nullptr} |
9804 | 36.2k | }; |
9805 | 36.2k | } |
9806 | | |
9807 | 36.2k | ExpressionList::~ExpressionList() { |
9808 | | // @@protoc_insertion_point(destructor:lua_grammar.ExpressionList) |
9809 | 36.2k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
9810 | 0 | (void)arena; |
9811 | 0 | return; |
9812 | 0 | } |
9813 | 36.2k | SharedDtor(); |
9814 | 36.2k | } |
9815 | | |
9816 | 36.2k | inline void ExpressionList::SharedDtor() { |
9817 | 36.2k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
9818 | 36.2k | _impl_.expressions_.~RepeatedPtrField(); |
9819 | 36.2k | if (this != internal_default_instance()) delete _impl_.explast_; |
9820 | 36.2k | } |
9821 | | |
9822 | 0 | void ExpressionList::SetCachedSize(int size) const { |
9823 | 0 | _impl_._cached_size_.Set(size); |
9824 | 0 | } |
9825 | | |
9826 | 1.25k | void ExpressionList::Clear() { |
9827 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.ExpressionList) |
9828 | 1.25k | uint32_t cached_has_bits = 0; |
9829 | | // Prevent compiler warnings about cached_has_bits being unused |
9830 | 1.25k | (void) cached_has_bits; |
9831 | | |
9832 | 1.25k | _impl_.expressions_.Clear(); |
9833 | 1.25k | cached_has_bits = _impl_._has_bits_[0]; |
9834 | 1.25k | if (cached_has_bits & 0x00000001u) { |
9835 | 0 | GOOGLE_DCHECK(_impl_.explast_ != nullptr); |
9836 | 0 | _impl_.explast_->Clear(); |
9837 | 0 | } |
9838 | 1.25k | _impl_._has_bits_.Clear(); |
9839 | 1.25k | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
9840 | 1.25k | } |
9841 | | |
9842 | 0 | const char* ExpressionList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
9843 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
9844 | 0 | _Internal::HasBits has_bits{}; |
9845 | 0 | while (!ctx->Done(&ptr)) { |
9846 | 0 | uint32_t tag; |
9847 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
9848 | 0 | switch (tag >> 3) { |
9849 | | // repeated .lua_grammar.Expression expressions = 1; |
9850 | 0 | case 1: |
9851 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
9852 | 0 | ptr -= 1; |
9853 | 0 | do { |
9854 | 0 | ptr += 1; |
9855 | 0 | ptr = ctx->ParseMessage(_internal_add_expressions(), ptr); |
9856 | 0 | CHK_(ptr); |
9857 | 0 | if (!ctx->DataAvailable(ptr)) break; |
9858 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); |
9859 | 0 | } else |
9860 | 0 | goto handle_unusual; |
9861 | 0 | continue; |
9862 | | // required .lua_grammar.Expression explast = 2; |
9863 | 0 | case 2: |
9864 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
9865 | 0 | ptr = ctx->ParseMessage(_internal_mutable_explast(), ptr); |
9866 | 0 | CHK_(ptr); |
9867 | 0 | } else |
9868 | 0 | goto handle_unusual; |
9869 | 0 | continue; |
9870 | 0 | default: |
9871 | 0 | goto handle_unusual; |
9872 | 0 | } // switch |
9873 | 0 | handle_unusual: |
9874 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
9875 | 0 | CHK_(ptr); |
9876 | 0 | ctx->SetLastTag(tag); |
9877 | 0 | goto message_done; |
9878 | 0 | } |
9879 | 0 | ptr = UnknownFieldParse( |
9880 | 0 | tag, |
9881 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
9882 | 0 | ptr, ctx); |
9883 | 0 | CHK_(ptr != nullptr); |
9884 | 0 | } // while |
9885 | 0 | message_done: |
9886 | 0 | _impl_._has_bits_.Or(has_bits); |
9887 | 0 | return ptr; |
9888 | 0 | failure: |
9889 | 0 | ptr = nullptr; |
9890 | 0 | goto message_done; |
9891 | 0 | #undef CHK_ |
9892 | 0 | } |
9893 | | |
9894 | | uint8_t* ExpressionList::_InternalSerialize( |
9895 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
9896 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.ExpressionList) |
9897 | 0 | uint32_t cached_has_bits = 0; |
9898 | 0 | (void) cached_has_bits; |
9899 | | |
9900 | | // repeated .lua_grammar.Expression expressions = 1; |
9901 | 0 | for (unsigned i = 0, |
9902 | 0 | n = static_cast<unsigned>(this->_internal_expressions_size()); i < n; i++) { |
9903 | 0 | const auto& repfield = this->_internal_expressions(i); |
9904 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9905 | 0 | InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); |
9906 | 0 | } |
9907 | |
|
9908 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
9909 | | // required .lua_grammar.Expression explast = 2; |
9910 | 0 | if (cached_has_bits & 0x00000001u) { |
9911 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
9912 | 0 | InternalWriteMessage(2, _Internal::explast(this), |
9913 | 0 | _Internal::explast(this).GetCachedSize(), target, stream); |
9914 | 0 | } |
9915 | |
|
9916 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
9917 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
9918 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
9919 | 0 | } |
9920 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.ExpressionList) |
9921 | 0 | return target; |
9922 | 0 | } |
9923 | | |
9924 | 0 | size_t ExpressionList::ByteSizeLong() const { |
9925 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.ExpressionList) |
9926 | 0 | size_t total_size = 0; |
9927 | | |
9928 | | // required .lua_grammar.Expression explast = 2; |
9929 | 0 | if (_internal_has_explast()) { |
9930 | 0 | total_size += 1 + |
9931 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
9932 | 0 | *_impl_.explast_); |
9933 | 0 | } |
9934 | 0 | uint32_t cached_has_bits = 0; |
9935 | | // Prevent compiler warnings about cached_has_bits being unused |
9936 | 0 | (void) cached_has_bits; |
9937 | | |
9938 | | // repeated .lua_grammar.Expression expressions = 1; |
9939 | 0 | total_size += 1UL * this->_internal_expressions_size(); |
9940 | 0 | for (const auto& msg : this->_impl_.expressions_) { |
9941 | 0 | total_size += |
9942 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
9943 | 0 | } |
9944 | |
|
9945 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
9946 | 0 | } |
9947 | | |
9948 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExpressionList::_class_data_ = { |
9949 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
9950 | | ExpressionList::MergeImpl |
9951 | | }; |
9952 | 1.88k | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExpressionList::GetClassData() const { return &_class_data_; } |
9953 | | |
9954 | | |
9955 | 628 | void ExpressionList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
9956 | 628 | auto* const _this = static_cast<ExpressionList*>(&to_msg); |
9957 | 628 | auto& from = static_cast<const ExpressionList&>(from_msg); |
9958 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.ExpressionList) |
9959 | 628 | GOOGLE_DCHECK_NE(&from, _this); |
9960 | 628 | uint32_t cached_has_bits = 0; |
9961 | 628 | (void) cached_has_bits; |
9962 | | |
9963 | 628 | _this->_impl_.expressions_.MergeFrom(from._impl_.expressions_); |
9964 | 628 | if (from._internal_has_explast()) { |
9965 | 0 | _this->_internal_mutable_explast()->::lua_grammar::Expression::MergeFrom( |
9966 | 0 | from._internal_explast()); |
9967 | 0 | } |
9968 | 628 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
9969 | 628 | } |
9970 | | |
9971 | 0 | void ExpressionList::CopyFrom(const ExpressionList& from) { |
9972 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.ExpressionList) |
9973 | 0 | if (&from == this) return; |
9974 | 0 | Clear(); |
9975 | 0 | MergeFrom(from); |
9976 | 0 | } |
9977 | | |
9978 | 35.1k | bool ExpressionList::IsInitialized() const { |
9979 | 35.1k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
9980 | 35.1k | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.expressions_)) |
9981 | 0 | return false; |
9982 | 35.1k | if (_internal_has_explast()) { |
9983 | 35.1k | if (!_impl_.explast_->IsInitialized()) return false; |
9984 | 35.1k | } |
9985 | 35.1k | return true; |
9986 | 35.1k | } |
9987 | | |
9988 | 0 | void ExpressionList::InternalSwap(ExpressionList* other) { |
9989 | 0 | using std::swap; |
9990 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
9991 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
9992 | 0 | _impl_.expressions_.InternalSwap(&other->_impl_.expressions_); |
9993 | 0 | swap(_impl_.explast_, other->_impl_.explast_); |
9994 | 0 | } |
9995 | | |
9996 | 395k | ::PROTOBUF_NAMESPACE_ID::Metadata ExpressionList::GetMetadata() const { |
9997 | 395k | return ::_pbi::AssignDescriptors( |
9998 | 395k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
9999 | 395k | file_level_metadata_lua_5fgrammar_2eproto[26]); |
10000 | 395k | } |
10001 | | |
10002 | | // =================================================================== |
10003 | | |
10004 | | class OptionalExpressionList::_Internal { |
10005 | | public: |
10006 | | using HasBits = decltype(std::declval<OptionalExpressionList>()._impl_._has_bits_); |
10007 | | static const ::lua_grammar::ExpressionList& explist(const OptionalExpressionList* msg); |
10008 | 0 | static void set_has_explist(HasBits* has_bits) { |
10009 | 0 | (*has_bits)[0] |= 1u; |
10010 | 0 | } |
10011 | | }; |
10012 | | |
10013 | | const ::lua_grammar::ExpressionList& |
10014 | 0 | OptionalExpressionList::_Internal::explist(const OptionalExpressionList* msg) { |
10015 | 0 | return *msg->_impl_.explist_; |
10016 | 0 | } |
10017 | | OptionalExpressionList::OptionalExpressionList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
10018 | | bool is_message_owned) |
10019 | 3.08k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
10020 | 3.08k | SharedCtor(arena, is_message_owned); |
10021 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.OptionalExpressionList) |
10022 | 3.08k | } |
10023 | | OptionalExpressionList::OptionalExpressionList(const OptionalExpressionList& from) |
10024 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
10025 | 0 | OptionalExpressionList* const _this = this; (void)_this; |
10026 | 0 | new (&_impl_) Impl_{ |
10027 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
10028 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
10029 | 0 | , decltype(_impl_.explist_){nullptr}}; |
10030 | |
|
10031 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
10032 | 0 | if (from._internal_has_explist()) { |
10033 | 0 | _this->_impl_.explist_ = new ::lua_grammar::ExpressionList(*from._impl_.explist_); |
10034 | 0 | } |
10035 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.OptionalExpressionList) |
10036 | 0 | } |
10037 | | |
10038 | | inline void OptionalExpressionList::SharedCtor( |
10039 | 3.08k | ::_pb::Arena* arena, bool is_message_owned) { |
10040 | 3.08k | (void)arena; |
10041 | 3.08k | (void)is_message_owned; |
10042 | 3.08k | new (&_impl_) Impl_{ |
10043 | 3.08k | decltype(_impl_._has_bits_){} |
10044 | 3.08k | , /*decltype(_impl_._cached_size_)*/{} |
10045 | 3.08k | , decltype(_impl_.explist_){nullptr} |
10046 | 3.08k | }; |
10047 | 3.08k | } |
10048 | | |
10049 | 3.08k | OptionalExpressionList::~OptionalExpressionList() { |
10050 | | // @@protoc_insertion_point(destructor:lua_grammar.OptionalExpressionList) |
10051 | 3.08k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
10052 | 0 | (void)arena; |
10053 | 0 | return; |
10054 | 0 | } |
10055 | 3.08k | SharedDtor(); |
10056 | 3.08k | } |
10057 | | |
10058 | 3.08k | inline void OptionalExpressionList::SharedDtor() { |
10059 | 3.08k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
10060 | 3.08k | if (this != internal_default_instance()) delete _impl_.explist_; |
10061 | 3.08k | } |
10062 | | |
10063 | 0 | void OptionalExpressionList::SetCachedSize(int size) const { |
10064 | 0 | _impl_._cached_size_.Set(size); |
10065 | 0 | } |
10066 | | |
10067 | 0 | void OptionalExpressionList::Clear() { |
10068 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.OptionalExpressionList) |
10069 | 0 | uint32_t cached_has_bits = 0; |
10070 | | // Prevent compiler warnings about cached_has_bits being unused |
10071 | 0 | (void) cached_has_bits; |
10072 | |
|
10073 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
10074 | 0 | if (cached_has_bits & 0x00000001u) { |
10075 | 0 | GOOGLE_DCHECK(_impl_.explist_ != nullptr); |
10076 | 0 | _impl_.explist_->Clear(); |
10077 | 0 | } |
10078 | 0 | _impl_._has_bits_.Clear(); |
10079 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
10080 | 0 | } |
10081 | | |
10082 | 0 | const char* OptionalExpressionList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
10083 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
10084 | 0 | _Internal::HasBits has_bits{}; |
10085 | 0 | while (!ctx->Done(&ptr)) { |
10086 | 0 | uint32_t tag; |
10087 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
10088 | 0 | switch (tag >> 3) { |
10089 | | // optional .lua_grammar.ExpressionList explist = 1; |
10090 | 0 | case 1: |
10091 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
10092 | 0 | ptr = ctx->ParseMessage(_internal_mutable_explist(), ptr); |
10093 | 0 | CHK_(ptr); |
10094 | 0 | } else |
10095 | 0 | goto handle_unusual; |
10096 | 0 | continue; |
10097 | 0 | default: |
10098 | 0 | goto handle_unusual; |
10099 | 0 | } // switch |
10100 | 0 | handle_unusual: |
10101 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
10102 | 0 | CHK_(ptr); |
10103 | 0 | ctx->SetLastTag(tag); |
10104 | 0 | goto message_done; |
10105 | 0 | } |
10106 | 0 | ptr = UnknownFieldParse( |
10107 | 0 | tag, |
10108 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
10109 | 0 | ptr, ctx); |
10110 | 0 | CHK_(ptr != nullptr); |
10111 | 0 | } // while |
10112 | 0 | message_done: |
10113 | 0 | _impl_._has_bits_.Or(has_bits); |
10114 | 0 | return ptr; |
10115 | 0 | failure: |
10116 | 0 | ptr = nullptr; |
10117 | 0 | goto message_done; |
10118 | 0 | #undef CHK_ |
10119 | 0 | } |
10120 | | |
10121 | | uint8_t* OptionalExpressionList::_InternalSerialize( |
10122 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
10123 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.OptionalExpressionList) |
10124 | 0 | uint32_t cached_has_bits = 0; |
10125 | 0 | (void) cached_has_bits; |
10126 | |
|
10127 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
10128 | | // optional .lua_grammar.ExpressionList explist = 1; |
10129 | 0 | if (cached_has_bits & 0x00000001u) { |
10130 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
10131 | 0 | InternalWriteMessage(1, _Internal::explist(this), |
10132 | 0 | _Internal::explist(this).GetCachedSize(), target, stream); |
10133 | 0 | } |
10134 | |
|
10135 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
10136 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
10137 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
10138 | 0 | } |
10139 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.OptionalExpressionList) |
10140 | 0 | return target; |
10141 | 0 | } |
10142 | | |
10143 | 0 | size_t OptionalExpressionList::ByteSizeLong() const { |
10144 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.OptionalExpressionList) |
10145 | 0 | size_t total_size = 0; |
10146 | |
|
10147 | 0 | uint32_t cached_has_bits = 0; |
10148 | | // Prevent compiler warnings about cached_has_bits being unused |
10149 | 0 | (void) cached_has_bits; |
10150 | | |
10151 | | // optional .lua_grammar.ExpressionList explist = 1; |
10152 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
10153 | 0 | if (cached_has_bits & 0x00000001u) { |
10154 | 0 | total_size += 1 + |
10155 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10156 | 0 | *_impl_.explist_); |
10157 | 0 | } |
10158 | |
|
10159 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
10160 | 0 | } |
10161 | | |
10162 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OptionalExpressionList::_class_data_ = { |
10163 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
10164 | | OptionalExpressionList::MergeImpl |
10165 | | }; |
10166 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OptionalExpressionList::GetClassData() const { return &_class_data_; } |
10167 | | |
10168 | | |
10169 | 0 | void OptionalExpressionList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
10170 | 0 | auto* const _this = static_cast<OptionalExpressionList*>(&to_msg); |
10171 | 0 | auto& from = static_cast<const OptionalExpressionList&>(from_msg); |
10172 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.OptionalExpressionList) |
10173 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
10174 | 0 | uint32_t cached_has_bits = 0; |
10175 | 0 | (void) cached_has_bits; |
10176 | |
|
10177 | 0 | if (from._internal_has_explist()) { |
10178 | 0 | _this->_internal_mutable_explist()->::lua_grammar::ExpressionList::MergeFrom( |
10179 | 0 | from._internal_explist()); |
10180 | 0 | } |
10181 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
10182 | 0 | } |
10183 | | |
10184 | 0 | void OptionalExpressionList::CopyFrom(const OptionalExpressionList& from) { |
10185 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.OptionalExpressionList) |
10186 | 0 | if (&from == this) return; |
10187 | 0 | Clear(); |
10188 | 0 | MergeFrom(from); |
10189 | 0 | } |
10190 | | |
10191 | 2.87k | bool OptionalExpressionList::IsInitialized() const { |
10192 | 2.87k | if (_internal_has_explist()) { |
10193 | 2.62k | if (!_impl_.explist_->IsInitialized()) return false; |
10194 | 2.62k | } |
10195 | 2.87k | return true; |
10196 | 2.87k | } |
10197 | | |
10198 | 0 | void OptionalExpressionList::InternalSwap(OptionalExpressionList* other) { |
10199 | 0 | using std::swap; |
10200 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
10201 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
10202 | 0 | swap(_impl_.explist_, other->_impl_.explist_); |
10203 | 0 | } |
10204 | | |
10205 | 25.7k | ::PROTOBUF_NAMESPACE_ID::Metadata OptionalExpressionList::GetMetadata() const { |
10206 | 25.7k | return ::_pbi::AssignDescriptors( |
10207 | 25.7k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
10208 | 25.7k | file_level_metadata_lua_5fgrammar_2eproto[27]); |
10209 | 25.7k | } |
10210 | | |
10211 | | // =================================================================== |
10212 | | |
10213 | | class Variable_IndexWithExpression::_Internal { |
10214 | | public: |
10215 | | using HasBits = decltype(std::declval<Variable_IndexWithExpression>()._impl_._has_bits_); |
10216 | | static const ::lua_grammar::PrefixExpression& prefixexp(const Variable_IndexWithExpression* msg); |
10217 | 0 | static void set_has_prefixexp(HasBits* has_bits) { |
10218 | 0 | (*has_bits)[0] |= 1u; |
10219 | 0 | } |
10220 | | static const ::lua_grammar::Expression& exp(const Variable_IndexWithExpression* msg); |
10221 | 0 | static void set_has_exp(HasBits* has_bits) { |
10222 | 0 | (*has_bits)[0] |= 2u; |
10223 | 0 | } |
10224 | 4.14k | static bool MissingRequiredFields(const HasBits& has_bits) { |
10225 | 4.14k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
10226 | 4.14k | } |
10227 | | }; |
10228 | | |
10229 | | const ::lua_grammar::PrefixExpression& |
10230 | 0 | Variable_IndexWithExpression::_Internal::prefixexp(const Variable_IndexWithExpression* msg) { |
10231 | 0 | return *msg->_impl_.prefixexp_; |
10232 | 0 | } |
10233 | | const ::lua_grammar::Expression& |
10234 | 0 | Variable_IndexWithExpression::_Internal::exp(const Variable_IndexWithExpression* msg) { |
10235 | 0 | return *msg->_impl_.exp_; |
10236 | 0 | } |
10237 | | Variable_IndexWithExpression::Variable_IndexWithExpression(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
10238 | | bool is_message_owned) |
10239 | 4.50k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
10240 | 4.50k | SharedCtor(arena, is_message_owned); |
10241 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Variable.IndexWithExpression) |
10242 | 4.50k | } |
10243 | | Variable_IndexWithExpression::Variable_IndexWithExpression(const Variable_IndexWithExpression& from) |
10244 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
10245 | 0 | Variable_IndexWithExpression* const _this = this; (void)_this; |
10246 | 0 | new (&_impl_) Impl_{ |
10247 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
10248 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
10249 | 0 | , decltype(_impl_.prefixexp_){nullptr} |
10250 | 0 | , decltype(_impl_.exp_){nullptr}}; |
10251 | |
|
10252 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
10253 | 0 | if (from._internal_has_prefixexp()) { |
10254 | 0 | _this->_impl_.prefixexp_ = new ::lua_grammar::PrefixExpression(*from._impl_.prefixexp_); |
10255 | 0 | } |
10256 | 0 | if (from._internal_has_exp()) { |
10257 | 0 | _this->_impl_.exp_ = new ::lua_grammar::Expression(*from._impl_.exp_); |
10258 | 0 | } |
10259 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Variable.IndexWithExpression) |
10260 | 0 | } |
10261 | | |
10262 | | inline void Variable_IndexWithExpression::SharedCtor( |
10263 | 4.50k | ::_pb::Arena* arena, bool is_message_owned) { |
10264 | 4.50k | (void)arena; |
10265 | 4.50k | (void)is_message_owned; |
10266 | 4.50k | new (&_impl_) Impl_{ |
10267 | 4.50k | decltype(_impl_._has_bits_){} |
10268 | 4.50k | , /*decltype(_impl_._cached_size_)*/{} |
10269 | 4.50k | , decltype(_impl_.prefixexp_){nullptr} |
10270 | 4.50k | , decltype(_impl_.exp_){nullptr} |
10271 | 4.50k | }; |
10272 | 4.50k | } |
10273 | | |
10274 | 4.50k | Variable_IndexWithExpression::~Variable_IndexWithExpression() { |
10275 | | // @@protoc_insertion_point(destructor:lua_grammar.Variable.IndexWithExpression) |
10276 | 4.50k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
10277 | 0 | (void)arena; |
10278 | 0 | return; |
10279 | 0 | } |
10280 | 4.50k | SharedDtor(); |
10281 | 4.50k | } |
10282 | | |
10283 | 4.50k | inline void Variable_IndexWithExpression::SharedDtor() { |
10284 | 4.50k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
10285 | 4.50k | if (this != internal_default_instance()) delete _impl_.prefixexp_; |
10286 | 4.50k | if (this != internal_default_instance()) delete _impl_.exp_; |
10287 | 4.50k | } |
10288 | | |
10289 | 0 | void Variable_IndexWithExpression::SetCachedSize(int size) const { |
10290 | 0 | _impl_._cached_size_.Set(size); |
10291 | 0 | } |
10292 | | |
10293 | 0 | void Variable_IndexWithExpression::Clear() { |
10294 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Variable.IndexWithExpression) |
10295 | 0 | uint32_t cached_has_bits = 0; |
10296 | | // Prevent compiler warnings about cached_has_bits being unused |
10297 | 0 | (void) cached_has_bits; |
10298 | |
|
10299 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
10300 | 0 | if (cached_has_bits & 0x00000003u) { |
10301 | 0 | if (cached_has_bits & 0x00000001u) { |
10302 | 0 | GOOGLE_DCHECK(_impl_.prefixexp_ != nullptr); |
10303 | 0 | _impl_.prefixexp_->Clear(); |
10304 | 0 | } |
10305 | 0 | if (cached_has_bits & 0x00000002u) { |
10306 | 0 | GOOGLE_DCHECK(_impl_.exp_ != nullptr); |
10307 | 0 | _impl_.exp_->Clear(); |
10308 | 0 | } |
10309 | 0 | } |
10310 | 0 | _impl_._has_bits_.Clear(); |
10311 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
10312 | 0 | } |
10313 | | |
10314 | 0 | const char* Variable_IndexWithExpression::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
10315 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
10316 | 0 | _Internal::HasBits has_bits{}; |
10317 | 0 | while (!ctx->Done(&ptr)) { |
10318 | 0 | uint32_t tag; |
10319 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
10320 | 0 | switch (tag >> 3) { |
10321 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10322 | 0 | case 1: |
10323 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
10324 | 0 | ptr = ctx->ParseMessage(_internal_mutable_prefixexp(), ptr); |
10325 | 0 | CHK_(ptr); |
10326 | 0 | } else |
10327 | 0 | goto handle_unusual; |
10328 | 0 | continue; |
10329 | | // required .lua_grammar.Expression exp = 2; |
10330 | 0 | case 2: |
10331 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
10332 | 0 | ptr = ctx->ParseMessage(_internal_mutable_exp(), ptr); |
10333 | 0 | CHK_(ptr); |
10334 | 0 | } else |
10335 | 0 | goto handle_unusual; |
10336 | 0 | continue; |
10337 | 0 | default: |
10338 | 0 | goto handle_unusual; |
10339 | 0 | } // switch |
10340 | 0 | handle_unusual: |
10341 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
10342 | 0 | CHK_(ptr); |
10343 | 0 | ctx->SetLastTag(tag); |
10344 | 0 | goto message_done; |
10345 | 0 | } |
10346 | 0 | ptr = UnknownFieldParse( |
10347 | 0 | tag, |
10348 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
10349 | 0 | ptr, ctx); |
10350 | 0 | CHK_(ptr != nullptr); |
10351 | 0 | } // while |
10352 | 0 | message_done: |
10353 | 0 | _impl_._has_bits_.Or(has_bits); |
10354 | 0 | return ptr; |
10355 | 0 | failure: |
10356 | 0 | ptr = nullptr; |
10357 | 0 | goto message_done; |
10358 | 0 | #undef CHK_ |
10359 | 0 | } |
10360 | | |
10361 | | uint8_t* Variable_IndexWithExpression::_InternalSerialize( |
10362 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
10363 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Variable.IndexWithExpression) |
10364 | 0 | uint32_t cached_has_bits = 0; |
10365 | 0 | (void) cached_has_bits; |
10366 | |
|
10367 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
10368 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10369 | 0 | if (cached_has_bits & 0x00000001u) { |
10370 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
10371 | 0 | InternalWriteMessage(1, _Internal::prefixexp(this), |
10372 | 0 | _Internal::prefixexp(this).GetCachedSize(), target, stream); |
10373 | 0 | } |
10374 | | |
10375 | | // required .lua_grammar.Expression exp = 2; |
10376 | 0 | if (cached_has_bits & 0x00000002u) { |
10377 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
10378 | 0 | InternalWriteMessage(2, _Internal::exp(this), |
10379 | 0 | _Internal::exp(this).GetCachedSize(), target, stream); |
10380 | 0 | } |
10381 | |
|
10382 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
10383 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
10384 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
10385 | 0 | } |
10386 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Variable.IndexWithExpression) |
10387 | 0 | return target; |
10388 | 0 | } |
10389 | | |
10390 | 0 | size_t Variable_IndexWithExpression::RequiredFieldsByteSizeFallback() const { |
10391 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Variable.IndexWithExpression) |
10392 | 0 | size_t total_size = 0; |
10393 | |
|
10394 | 0 | if (_internal_has_prefixexp()) { |
10395 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10396 | 0 | total_size += 1 + |
10397 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10398 | 0 | *_impl_.prefixexp_); |
10399 | 0 | } |
10400 | |
|
10401 | 0 | if (_internal_has_exp()) { |
10402 | | // required .lua_grammar.Expression exp = 2; |
10403 | 0 | total_size += 1 + |
10404 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10405 | 0 | *_impl_.exp_); |
10406 | 0 | } |
10407 | |
|
10408 | 0 | return total_size; |
10409 | 0 | } |
10410 | 0 | size_t Variable_IndexWithExpression::ByteSizeLong() const { |
10411 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Variable.IndexWithExpression) |
10412 | 0 | size_t total_size = 0; |
10413 | |
|
10414 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
10415 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10416 | 0 | total_size += 1 + |
10417 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10418 | 0 | *_impl_.prefixexp_); |
10419 | | |
10420 | | // required .lua_grammar.Expression exp = 2; |
10421 | 0 | total_size += 1 + |
10422 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10423 | 0 | *_impl_.exp_); |
10424 | |
|
10425 | 0 | } else { |
10426 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
10427 | 0 | } |
10428 | 0 | uint32_t cached_has_bits = 0; |
10429 | | // Prevent compiler warnings about cached_has_bits being unused |
10430 | 0 | (void) cached_has_bits; |
10431 | |
|
10432 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
10433 | 0 | } |
10434 | | |
10435 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Variable_IndexWithExpression::_class_data_ = { |
10436 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
10437 | | Variable_IndexWithExpression::MergeImpl |
10438 | | }; |
10439 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Variable_IndexWithExpression::GetClassData() const { return &_class_data_; } |
10440 | | |
10441 | | |
10442 | 0 | void Variable_IndexWithExpression::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
10443 | 0 | auto* const _this = static_cast<Variable_IndexWithExpression*>(&to_msg); |
10444 | 0 | auto& from = static_cast<const Variable_IndexWithExpression&>(from_msg); |
10445 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Variable.IndexWithExpression) |
10446 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
10447 | 0 | uint32_t cached_has_bits = 0; |
10448 | 0 | (void) cached_has_bits; |
10449 | |
|
10450 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
10451 | 0 | if (cached_has_bits & 0x00000003u) { |
10452 | 0 | if (cached_has_bits & 0x00000001u) { |
10453 | 0 | _this->_internal_mutable_prefixexp()->::lua_grammar::PrefixExpression::MergeFrom( |
10454 | 0 | from._internal_prefixexp()); |
10455 | 0 | } |
10456 | 0 | if (cached_has_bits & 0x00000002u) { |
10457 | 0 | _this->_internal_mutable_exp()->::lua_grammar::Expression::MergeFrom( |
10458 | 0 | from._internal_exp()); |
10459 | 0 | } |
10460 | 0 | } |
10461 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
10462 | 0 | } |
10463 | | |
10464 | 0 | void Variable_IndexWithExpression::CopyFrom(const Variable_IndexWithExpression& from) { |
10465 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Variable.IndexWithExpression) |
10466 | 0 | if (&from == this) return; |
10467 | 0 | Clear(); |
10468 | 0 | MergeFrom(from); |
10469 | 0 | } |
10470 | | |
10471 | 4.14k | bool Variable_IndexWithExpression::IsInitialized() const { |
10472 | 4.14k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
10473 | 4.14k | if (_internal_has_prefixexp()) { |
10474 | 4.14k | if (!_impl_.prefixexp_->IsInitialized()) return false; |
10475 | 4.14k | } |
10476 | 4.14k | if (_internal_has_exp()) { |
10477 | 4.14k | if (!_impl_.exp_->IsInitialized()) return false; |
10478 | 4.14k | } |
10479 | 4.14k | return true; |
10480 | 4.14k | } |
10481 | | |
10482 | 0 | void Variable_IndexWithExpression::InternalSwap(Variable_IndexWithExpression* other) { |
10483 | 0 | using std::swap; |
10484 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
10485 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
10486 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
10487 | 0 | PROTOBUF_FIELD_OFFSET(Variable_IndexWithExpression, _impl_.exp_) |
10488 | 0 | + sizeof(Variable_IndexWithExpression::_impl_.exp_) |
10489 | 0 | - PROTOBUF_FIELD_OFFSET(Variable_IndexWithExpression, _impl_.prefixexp_)>( |
10490 | 0 | reinterpret_cast<char*>(&_impl_.prefixexp_), |
10491 | 0 | reinterpret_cast<char*>(&other->_impl_.prefixexp_)); |
10492 | 0 | } |
10493 | | |
10494 | 51.7k | ::PROTOBUF_NAMESPACE_ID::Metadata Variable_IndexWithExpression::GetMetadata() const { |
10495 | 51.7k | return ::_pbi::AssignDescriptors( |
10496 | 51.7k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
10497 | 51.7k | file_level_metadata_lua_5fgrammar_2eproto[28]); |
10498 | 51.7k | } |
10499 | | |
10500 | | // =================================================================== |
10501 | | |
10502 | | class Variable_IndexWithName::_Internal { |
10503 | | public: |
10504 | | using HasBits = decltype(std::declval<Variable_IndexWithName>()._impl_._has_bits_); |
10505 | | static const ::lua_grammar::PrefixExpression& prefixexp(const Variable_IndexWithName* msg); |
10506 | 0 | static void set_has_prefixexp(HasBits* has_bits) { |
10507 | 0 | (*has_bits)[0] |= 2u; |
10508 | 0 | } |
10509 | 0 | static void set_has_name(HasBits* has_bits) { |
10510 | 0 | (*has_bits)[0] |= 1u; |
10511 | 0 | } |
10512 | 3.91k | static bool MissingRequiredFields(const HasBits& has_bits) { |
10513 | 3.91k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
10514 | 3.91k | } |
10515 | | }; |
10516 | | |
10517 | | const ::lua_grammar::PrefixExpression& |
10518 | 0 | Variable_IndexWithName::_Internal::prefixexp(const Variable_IndexWithName* msg) { |
10519 | 0 | return *msg->_impl_.prefixexp_; |
10520 | 0 | } |
10521 | | Variable_IndexWithName::Variable_IndexWithName(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
10522 | | bool is_message_owned) |
10523 | 4.56k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
10524 | 4.56k | SharedCtor(arena, is_message_owned); |
10525 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Variable.IndexWithName) |
10526 | 4.56k | } |
10527 | | Variable_IndexWithName::Variable_IndexWithName(const Variable_IndexWithName& from) |
10528 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
10529 | 0 | Variable_IndexWithName* const _this = this; (void)_this; |
10530 | 0 | new (&_impl_) Impl_{ |
10531 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
10532 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
10533 | 0 | , decltype(_impl_.name_){} |
10534 | 0 | , decltype(_impl_.prefixexp_){nullptr}}; |
10535 | |
|
10536 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
10537 | 0 | _impl_.name_.InitDefault(); |
10538 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10539 | | _impl_.name_.Set("", GetArenaForAllocation()); |
10540 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10541 | 0 | if (from._internal_has_name()) { |
10542 | 0 | _this->_impl_.name_.Set(from._internal_name(), |
10543 | 0 | _this->GetArenaForAllocation()); |
10544 | 0 | } |
10545 | 0 | if (from._internal_has_prefixexp()) { |
10546 | 0 | _this->_impl_.prefixexp_ = new ::lua_grammar::PrefixExpression(*from._impl_.prefixexp_); |
10547 | 0 | } |
10548 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Variable.IndexWithName) |
10549 | 0 | } |
10550 | | |
10551 | | inline void Variable_IndexWithName::SharedCtor( |
10552 | 4.56k | ::_pb::Arena* arena, bool is_message_owned) { |
10553 | 4.56k | (void)arena; |
10554 | 4.56k | (void)is_message_owned; |
10555 | 4.56k | new (&_impl_) Impl_{ |
10556 | 4.56k | decltype(_impl_._has_bits_){} |
10557 | 4.56k | , /*decltype(_impl_._cached_size_)*/{} |
10558 | 4.56k | , decltype(_impl_.name_){} |
10559 | 4.56k | , decltype(_impl_.prefixexp_){nullptr} |
10560 | 4.56k | }; |
10561 | 4.56k | _impl_.name_.InitDefault(); |
10562 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10563 | | _impl_.name_.Set("", GetArenaForAllocation()); |
10564 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
10565 | 4.56k | } |
10566 | | |
10567 | 4.56k | Variable_IndexWithName::~Variable_IndexWithName() { |
10568 | | // @@protoc_insertion_point(destructor:lua_grammar.Variable.IndexWithName) |
10569 | 4.56k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
10570 | 0 | (void)arena; |
10571 | 0 | return; |
10572 | 0 | } |
10573 | 4.56k | SharedDtor(); |
10574 | 4.56k | } |
10575 | | |
10576 | 4.56k | inline void Variable_IndexWithName::SharedDtor() { |
10577 | 4.56k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
10578 | 4.56k | _impl_.name_.Destroy(); |
10579 | 4.56k | if (this != internal_default_instance()) delete _impl_.prefixexp_; |
10580 | 4.56k | } |
10581 | | |
10582 | 0 | void Variable_IndexWithName::SetCachedSize(int size) const { |
10583 | 0 | _impl_._cached_size_.Set(size); |
10584 | 0 | } |
10585 | | |
10586 | 0 | void Variable_IndexWithName::Clear() { |
10587 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Variable.IndexWithName) |
10588 | 0 | uint32_t cached_has_bits = 0; |
10589 | | // Prevent compiler warnings about cached_has_bits being unused |
10590 | 0 | (void) cached_has_bits; |
10591 | |
|
10592 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
10593 | 0 | if (cached_has_bits & 0x00000003u) { |
10594 | 0 | if (cached_has_bits & 0x00000001u) { |
10595 | 0 | _impl_.name_.ClearNonDefaultToEmpty(); |
10596 | 0 | } |
10597 | 0 | if (cached_has_bits & 0x00000002u) { |
10598 | 0 | GOOGLE_DCHECK(_impl_.prefixexp_ != nullptr); |
10599 | 0 | _impl_.prefixexp_->Clear(); |
10600 | 0 | } |
10601 | 0 | } |
10602 | 0 | _impl_._has_bits_.Clear(); |
10603 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
10604 | 0 | } |
10605 | | |
10606 | 0 | const char* Variable_IndexWithName::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
10607 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
10608 | 0 | _Internal::HasBits has_bits{}; |
10609 | 0 | while (!ctx->Done(&ptr)) { |
10610 | 0 | uint32_t tag; |
10611 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
10612 | 0 | switch (tag >> 3) { |
10613 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10614 | 0 | case 1: |
10615 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
10616 | 0 | ptr = ctx->ParseMessage(_internal_mutable_prefixexp(), ptr); |
10617 | 0 | CHK_(ptr); |
10618 | 0 | } else |
10619 | 0 | goto handle_unusual; |
10620 | 0 | continue; |
10621 | | // required string Name = 2; |
10622 | 0 | case 2: |
10623 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
10624 | 0 | auto str = _internal_mutable_name(); |
10625 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
10626 | 0 | CHK_(ptr); |
10627 | 0 | #ifndef NDEBUG |
10628 | 0 | ::_pbi::VerifyUTF8(str, "lua_grammar.Variable.IndexWithName.Name"); |
10629 | 0 | #endif // !NDEBUG |
10630 | 0 | } else |
10631 | 0 | goto handle_unusual; |
10632 | 0 | continue; |
10633 | 0 | default: |
10634 | 0 | goto handle_unusual; |
10635 | 0 | } // switch |
10636 | 0 | handle_unusual: |
10637 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
10638 | 0 | CHK_(ptr); |
10639 | 0 | ctx->SetLastTag(tag); |
10640 | 0 | goto message_done; |
10641 | 0 | } |
10642 | 0 | ptr = UnknownFieldParse( |
10643 | 0 | tag, |
10644 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
10645 | 0 | ptr, ctx); |
10646 | 0 | CHK_(ptr != nullptr); |
10647 | 0 | } // while |
10648 | 0 | message_done: |
10649 | 0 | _impl_._has_bits_.Or(has_bits); |
10650 | 0 | return ptr; |
10651 | 0 | failure: |
10652 | 0 | ptr = nullptr; |
10653 | 0 | goto message_done; |
10654 | 0 | #undef CHK_ |
10655 | 0 | } |
10656 | | |
10657 | | uint8_t* Variable_IndexWithName::_InternalSerialize( |
10658 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
10659 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Variable.IndexWithName) |
10660 | 0 | uint32_t cached_has_bits = 0; |
10661 | 0 | (void) cached_has_bits; |
10662 | |
|
10663 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
10664 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10665 | 0 | if (cached_has_bits & 0x00000002u) { |
10666 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
10667 | 0 | InternalWriteMessage(1, _Internal::prefixexp(this), |
10668 | 0 | _Internal::prefixexp(this).GetCachedSize(), target, stream); |
10669 | 0 | } |
10670 | | |
10671 | | // required string Name = 2; |
10672 | 0 | if (cached_has_bits & 0x00000001u) { |
10673 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
10674 | 0 | this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
10675 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
10676 | 0 | "lua_grammar.Variable.IndexWithName.Name"); |
10677 | 0 | target = stream->WriteStringMaybeAliased( |
10678 | 0 | 2, this->_internal_name(), target); |
10679 | 0 | } |
10680 | |
|
10681 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
10682 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
10683 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
10684 | 0 | } |
10685 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Variable.IndexWithName) |
10686 | 0 | return target; |
10687 | 0 | } |
10688 | | |
10689 | 0 | size_t Variable_IndexWithName::RequiredFieldsByteSizeFallback() const { |
10690 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Variable.IndexWithName) |
10691 | 0 | size_t total_size = 0; |
10692 | |
|
10693 | 0 | if (_internal_has_name()) { |
10694 | | // required string Name = 2; |
10695 | 0 | total_size += 1 + |
10696 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
10697 | 0 | this->_internal_name()); |
10698 | 0 | } |
10699 | |
|
10700 | 0 | if (_internal_has_prefixexp()) { |
10701 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10702 | 0 | total_size += 1 + |
10703 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10704 | 0 | *_impl_.prefixexp_); |
10705 | 0 | } |
10706 | |
|
10707 | 0 | return total_size; |
10708 | 0 | } |
10709 | 0 | size_t Variable_IndexWithName::ByteSizeLong() const { |
10710 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Variable.IndexWithName) |
10711 | 0 | size_t total_size = 0; |
10712 | |
|
10713 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
10714 | | // required string Name = 2; |
10715 | 0 | total_size += 1 + |
10716 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
10717 | 0 | this->_internal_name()); |
10718 | | |
10719 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
10720 | 0 | total_size += 1 + |
10721 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
10722 | 0 | *_impl_.prefixexp_); |
10723 | |
|
10724 | 0 | } else { |
10725 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
10726 | 0 | } |
10727 | 0 | uint32_t cached_has_bits = 0; |
10728 | | // Prevent compiler warnings about cached_has_bits being unused |
10729 | 0 | (void) cached_has_bits; |
10730 | |
|
10731 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
10732 | 0 | } |
10733 | | |
10734 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Variable_IndexWithName::_class_data_ = { |
10735 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
10736 | | Variable_IndexWithName::MergeImpl |
10737 | | }; |
10738 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Variable_IndexWithName::GetClassData() const { return &_class_data_; } |
10739 | | |
10740 | | |
10741 | 0 | void Variable_IndexWithName::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
10742 | 0 | auto* const _this = static_cast<Variable_IndexWithName*>(&to_msg); |
10743 | 0 | auto& from = static_cast<const Variable_IndexWithName&>(from_msg); |
10744 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Variable.IndexWithName) |
10745 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
10746 | 0 | uint32_t cached_has_bits = 0; |
10747 | 0 | (void) cached_has_bits; |
10748 | |
|
10749 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
10750 | 0 | if (cached_has_bits & 0x00000003u) { |
10751 | 0 | if (cached_has_bits & 0x00000001u) { |
10752 | 0 | _this->_internal_set_name(from._internal_name()); |
10753 | 0 | } |
10754 | 0 | if (cached_has_bits & 0x00000002u) { |
10755 | 0 | _this->_internal_mutable_prefixexp()->::lua_grammar::PrefixExpression::MergeFrom( |
10756 | 0 | from._internal_prefixexp()); |
10757 | 0 | } |
10758 | 0 | } |
10759 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
10760 | 0 | } |
10761 | | |
10762 | 0 | void Variable_IndexWithName::CopyFrom(const Variable_IndexWithName& from) { |
10763 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Variable.IndexWithName) |
10764 | 0 | if (&from == this) return; |
10765 | 0 | Clear(); |
10766 | 0 | MergeFrom(from); |
10767 | 0 | } |
10768 | | |
10769 | 3.91k | bool Variable_IndexWithName::IsInitialized() const { |
10770 | 3.91k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
10771 | 3.91k | if (_internal_has_prefixexp()) { |
10772 | 3.91k | if (!_impl_.prefixexp_->IsInitialized()) return false; |
10773 | 3.91k | } |
10774 | 3.91k | return true; |
10775 | 3.91k | } |
10776 | | |
10777 | 0 | void Variable_IndexWithName::InternalSwap(Variable_IndexWithName* other) { |
10778 | 0 | using std::swap; |
10779 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
10780 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
10781 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
10782 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
10783 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
10784 | 0 | &_impl_.name_, lhs_arena, |
10785 | 0 | &other->_impl_.name_, rhs_arena |
10786 | 0 | ); |
10787 | 0 | swap(_impl_.prefixexp_, other->_impl_.prefixexp_); |
10788 | 0 | } |
10789 | | |
10790 | 50.7k | ::PROTOBUF_NAMESPACE_ID::Metadata Variable_IndexWithName::GetMetadata() const { |
10791 | 50.7k | return ::_pbi::AssignDescriptors( |
10792 | 50.7k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
10793 | 50.7k | file_level_metadata_lua_5fgrammar_2eproto[29]); |
10794 | 50.7k | } |
10795 | | |
10796 | | // =================================================================== |
10797 | | |
10798 | | class Variable::_Internal { |
10799 | | public: |
10800 | | static const ::lua_grammar::Name& name(const Variable* msg); |
10801 | | static const ::lua_grammar::Variable_IndexWithExpression& indexexpr(const Variable* msg); |
10802 | | static const ::lua_grammar::Variable_IndexWithName& indexname(const Variable* msg); |
10803 | | }; |
10804 | | |
10805 | | const ::lua_grammar::Name& |
10806 | 0 | Variable::_Internal::name(const Variable* msg) { |
10807 | 0 | return *msg->_impl_.var_oneof_.name_; |
10808 | 0 | } |
10809 | | const ::lua_grammar::Variable_IndexWithExpression& |
10810 | 0 | Variable::_Internal::indexexpr(const Variable* msg) { |
10811 | 0 | return *msg->_impl_.var_oneof_.indexexpr_; |
10812 | 0 | } |
10813 | | const ::lua_grammar::Variable_IndexWithName& |
10814 | 0 | Variable::_Internal::indexname(const Variable* msg) { |
10815 | 0 | return *msg->_impl_.var_oneof_.indexname_; |
10816 | 0 | } |
10817 | 0 | void Variable::set_allocated_name(::lua_grammar::Name* name) { |
10818 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
10819 | 0 | clear_var_oneof(); |
10820 | 0 | if (name) { |
10821 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
10822 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); |
10823 | 0 | if (message_arena != submessage_arena) { |
10824 | 0 | name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
10825 | 0 | message_arena, name, submessage_arena); |
10826 | 0 | } |
10827 | 0 | set_has_name(); |
10828 | 0 | _impl_.var_oneof_.name_ = name; |
10829 | 0 | } |
10830 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Variable.name) |
10831 | 0 | } |
10832 | 0 | void Variable::set_allocated_indexexpr(::lua_grammar::Variable_IndexWithExpression* indexexpr) { |
10833 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
10834 | 0 | clear_var_oneof(); |
10835 | 0 | if (indexexpr) { |
10836 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
10837 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(indexexpr); |
10838 | 0 | if (message_arena != submessage_arena) { |
10839 | 0 | indexexpr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
10840 | 0 | message_arena, indexexpr, submessage_arena); |
10841 | 0 | } |
10842 | 0 | set_has_indexexpr(); |
10843 | 0 | _impl_.var_oneof_.indexexpr_ = indexexpr; |
10844 | 0 | } |
10845 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Variable.indexexpr) |
10846 | 0 | } |
10847 | 0 | void Variable::set_allocated_indexname(::lua_grammar::Variable_IndexWithName* indexname) { |
10848 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
10849 | 0 | clear_var_oneof(); |
10850 | 0 | if (indexname) { |
10851 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
10852 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(indexname); |
10853 | 0 | if (message_arena != submessage_arena) { |
10854 | 0 | indexname = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
10855 | 0 | message_arena, indexname, submessage_arena); |
10856 | 0 | } |
10857 | 0 | set_has_indexname(); |
10858 | 0 | _impl_.var_oneof_.indexname_ = indexname; |
10859 | 0 | } |
10860 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Variable.indexname) |
10861 | 0 | } |
10862 | | Variable::Variable(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
10863 | | bool is_message_owned) |
10864 | 19.1k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
10865 | 19.1k | SharedCtor(arena, is_message_owned); |
10866 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Variable) |
10867 | 19.1k | } |
10868 | | Variable::Variable(const Variable& from) |
10869 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
10870 | 0 | Variable* const _this = this; (void)_this; |
10871 | 0 | new (&_impl_) Impl_{ |
10872 | 0 | decltype(_impl_.var_oneof_){} |
10873 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
10874 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
10875 | |
|
10876 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
10877 | 0 | clear_has_var_oneof(); |
10878 | 0 | switch (from.var_oneof_case()) { |
10879 | 0 | case kName: { |
10880 | 0 | _this->_internal_mutable_name()->::lua_grammar::Name::MergeFrom( |
10881 | 0 | from._internal_name()); |
10882 | 0 | break; |
10883 | 0 | } |
10884 | 0 | case kIndexexpr: { |
10885 | 0 | _this->_internal_mutable_indexexpr()->::lua_grammar::Variable_IndexWithExpression::MergeFrom( |
10886 | 0 | from._internal_indexexpr()); |
10887 | 0 | break; |
10888 | 0 | } |
10889 | 0 | case kIndexname: { |
10890 | 0 | _this->_internal_mutable_indexname()->::lua_grammar::Variable_IndexWithName::MergeFrom( |
10891 | 0 | from._internal_indexname()); |
10892 | 0 | break; |
10893 | 0 | } |
10894 | 0 | case VAR_ONEOF_NOT_SET: { |
10895 | 0 | break; |
10896 | 0 | } |
10897 | 0 | } |
10898 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Variable) |
10899 | 0 | } |
10900 | | |
10901 | | inline void Variable::SharedCtor( |
10902 | 19.1k | ::_pb::Arena* arena, bool is_message_owned) { |
10903 | 19.1k | (void)arena; |
10904 | 19.1k | (void)is_message_owned; |
10905 | 19.1k | new (&_impl_) Impl_{ |
10906 | 19.1k | decltype(_impl_.var_oneof_){} |
10907 | 19.1k | , /*decltype(_impl_._cached_size_)*/{} |
10908 | 19.1k | , /*decltype(_impl_._oneof_case_)*/{} |
10909 | 19.1k | }; |
10910 | 19.1k | clear_has_var_oneof(); |
10911 | 19.1k | } |
10912 | | |
10913 | 19.1k | Variable::~Variable() { |
10914 | | // @@protoc_insertion_point(destructor:lua_grammar.Variable) |
10915 | 19.1k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
10916 | 0 | (void)arena; |
10917 | 0 | return; |
10918 | 0 | } |
10919 | 19.1k | SharedDtor(); |
10920 | 19.1k | } |
10921 | | |
10922 | 19.1k | inline void Variable::SharedDtor() { |
10923 | 19.1k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
10924 | 19.1k | if (has_var_oneof()) { |
10925 | 10.3k | clear_var_oneof(); |
10926 | 10.3k | } |
10927 | 19.1k | } |
10928 | | |
10929 | 0 | void Variable::SetCachedSize(int size) const { |
10930 | 0 | _impl_._cached_size_.Set(size); |
10931 | 0 | } |
10932 | | |
10933 | 11.4k | void Variable::clear_var_oneof() { |
10934 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.Variable) |
10935 | 11.4k | switch (var_oneof_case()) { |
10936 | 1.29k | case kName: { |
10937 | 1.29k | if (GetArenaForAllocation() == nullptr) { |
10938 | 1.29k | delete _impl_.var_oneof_.name_; |
10939 | 1.29k | } |
10940 | 1.29k | break; |
10941 | 0 | } |
10942 | 4.50k | case kIndexexpr: { |
10943 | 4.50k | if (GetArenaForAllocation() == nullptr) { |
10944 | 4.50k | delete _impl_.var_oneof_.indexexpr_; |
10945 | 4.50k | } |
10946 | 4.50k | break; |
10947 | 0 | } |
10948 | 4.56k | case kIndexname: { |
10949 | 4.56k | if (GetArenaForAllocation() == nullptr) { |
10950 | 4.56k | delete _impl_.var_oneof_.indexname_; |
10951 | 4.56k | } |
10952 | 4.56k | break; |
10953 | 0 | } |
10954 | 1.04k | case VAR_ONEOF_NOT_SET: { |
10955 | 1.04k | break; |
10956 | 0 | } |
10957 | 11.4k | } |
10958 | 11.4k | _impl_._oneof_case_[0] = VAR_ONEOF_NOT_SET; |
10959 | 11.4k | } |
10960 | | |
10961 | | |
10962 | 1.04k | void Variable::Clear() { |
10963 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Variable) |
10964 | 1.04k | uint32_t cached_has_bits = 0; |
10965 | | // Prevent compiler warnings about cached_has_bits being unused |
10966 | 1.04k | (void) cached_has_bits; |
10967 | | |
10968 | 1.04k | clear_var_oneof(); |
10969 | 1.04k | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
10970 | 1.04k | } |
10971 | | |
10972 | 0 | const char* Variable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
10973 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
10974 | 0 | while (!ctx->Done(&ptr)) { |
10975 | 0 | uint32_t tag; |
10976 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
10977 | 0 | switch (tag >> 3) { |
10978 | | // .lua_grammar.Name name = 1; |
10979 | 0 | case 1: |
10980 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
10981 | 0 | ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); |
10982 | 0 | CHK_(ptr); |
10983 | 0 | } else |
10984 | 0 | goto handle_unusual; |
10985 | 0 | continue; |
10986 | | // .lua_grammar.Variable.IndexWithExpression indexexpr = 2; |
10987 | 0 | case 2: |
10988 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
10989 | 0 | ptr = ctx->ParseMessage(_internal_mutable_indexexpr(), ptr); |
10990 | 0 | CHK_(ptr); |
10991 | 0 | } else |
10992 | 0 | goto handle_unusual; |
10993 | 0 | continue; |
10994 | | // .lua_grammar.Variable.IndexWithName indexname = 3; |
10995 | 0 | case 3: |
10996 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
10997 | 0 | ptr = ctx->ParseMessage(_internal_mutable_indexname(), ptr); |
10998 | 0 | CHK_(ptr); |
10999 | 0 | } else |
11000 | 0 | goto handle_unusual; |
11001 | 0 | continue; |
11002 | 0 | default: |
11003 | 0 | goto handle_unusual; |
11004 | 0 | } // switch |
11005 | 0 | handle_unusual: |
11006 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
11007 | 0 | CHK_(ptr); |
11008 | 0 | ctx->SetLastTag(tag); |
11009 | 0 | goto message_done; |
11010 | 0 | } |
11011 | 0 | ptr = UnknownFieldParse( |
11012 | 0 | tag, |
11013 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
11014 | 0 | ptr, ctx); |
11015 | 0 | CHK_(ptr != nullptr); |
11016 | 0 | } // while |
11017 | 0 | message_done: |
11018 | 0 | return ptr; |
11019 | 0 | failure: |
11020 | 0 | ptr = nullptr; |
11021 | 0 | goto message_done; |
11022 | 0 | #undef CHK_ |
11023 | 0 | } |
11024 | | |
11025 | | uint8_t* Variable::_InternalSerialize( |
11026 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
11027 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Variable) |
11028 | 0 | uint32_t cached_has_bits = 0; |
11029 | 0 | (void) cached_has_bits; |
11030 | |
|
11031 | 0 | switch (var_oneof_case()) { |
11032 | 0 | case kName: { |
11033 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11034 | 0 | InternalWriteMessage(1, _Internal::name(this), |
11035 | 0 | _Internal::name(this).GetCachedSize(), target, stream); |
11036 | 0 | break; |
11037 | 0 | } |
11038 | 0 | case kIndexexpr: { |
11039 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11040 | 0 | InternalWriteMessage(2, _Internal::indexexpr(this), |
11041 | 0 | _Internal::indexexpr(this).GetCachedSize(), target, stream); |
11042 | 0 | break; |
11043 | 0 | } |
11044 | 0 | case kIndexname: { |
11045 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11046 | 0 | InternalWriteMessage(3, _Internal::indexname(this), |
11047 | 0 | _Internal::indexname(this).GetCachedSize(), target, stream); |
11048 | 0 | break; |
11049 | 0 | } |
11050 | 0 | default: ; |
11051 | 0 | } |
11052 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
11053 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
11054 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
11055 | 0 | } |
11056 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Variable) |
11057 | 0 | return target; |
11058 | 0 | } |
11059 | | |
11060 | 0 | size_t Variable::ByteSizeLong() const { |
11061 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Variable) |
11062 | 0 | size_t total_size = 0; |
11063 | |
|
11064 | 0 | uint32_t cached_has_bits = 0; |
11065 | | // Prevent compiler warnings about cached_has_bits being unused |
11066 | 0 | (void) cached_has_bits; |
11067 | |
|
11068 | 0 | switch (var_oneof_case()) { |
11069 | | // .lua_grammar.Name name = 1; |
11070 | 0 | case kName: { |
11071 | 0 | total_size += 1 + |
11072 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11073 | 0 | *_impl_.var_oneof_.name_); |
11074 | 0 | break; |
11075 | 0 | } |
11076 | | // .lua_grammar.Variable.IndexWithExpression indexexpr = 2; |
11077 | 0 | case kIndexexpr: { |
11078 | 0 | total_size += 1 + |
11079 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11080 | 0 | *_impl_.var_oneof_.indexexpr_); |
11081 | 0 | break; |
11082 | 0 | } |
11083 | | // .lua_grammar.Variable.IndexWithName indexname = 3; |
11084 | 0 | case kIndexname: { |
11085 | 0 | total_size += 1 + |
11086 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11087 | 0 | *_impl_.var_oneof_.indexname_); |
11088 | 0 | break; |
11089 | 0 | } |
11090 | 0 | case VAR_ONEOF_NOT_SET: { |
11091 | 0 | break; |
11092 | 0 | } |
11093 | 0 | } |
11094 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
11095 | 0 | } |
11096 | | |
11097 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Variable::_class_data_ = { |
11098 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
11099 | | Variable::MergeImpl |
11100 | | }; |
11101 | 1.56k | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Variable::GetClassData() const { return &_class_data_; } |
11102 | | |
11103 | | |
11104 | 521 | void Variable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
11105 | 521 | auto* const _this = static_cast<Variable*>(&to_msg); |
11106 | 521 | auto& from = static_cast<const Variable&>(from_msg); |
11107 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Variable) |
11108 | 521 | GOOGLE_DCHECK_NE(&from, _this); |
11109 | 521 | uint32_t cached_has_bits = 0; |
11110 | 521 | (void) cached_has_bits; |
11111 | | |
11112 | 521 | switch (from.var_oneof_case()) { |
11113 | 0 | case kName: { |
11114 | 0 | _this->_internal_mutable_name()->::lua_grammar::Name::MergeFrom( |
11115 | 0 | from._internal_name()); |
11116 | 0 | break; |
11117 | 0 | } |
11118 | 0 | case kIndexexpr: { |
11119 | 0 | _this->_internal_mutable_indexexpr()->::lua_grammar::Variable_IndexWithExpression::MergeFrom( |
11120 | 0 | from._internal_indexexpr()); |
11121 | 0 | break; |
11122 | 0 | } |
11123 | 0 | case kIndexname: { |
11124 | 0 | _this->_internal_mutable_indexname()->::lua_grammar::Variable_IndexWithName::MergeFrom( |
11125 | 0 | from._internal_indexname()); |
11126 | 0 | break; |
11127 | 0 | } |
11128 | 521 | case VAR_ONEOF_NOT_SET: { |
11129 | 521 | break; |
11130 | 0 | } |
11131 | 521 | } |
11132 | 521 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
11133 | 521 | } |
11134 | | |
11135 | 0 | void Variable::CopyFrom(const Variable& from) { |
11136 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Variable) |
11137 | 0 | if (&from == this) return; |
11138 | 0 | Clear(); |
11139 | 0 | MergeFrom(from); |
11140 | 0 | } |
11141 | | |
11142 | 16.7k | bool Variable::IsInitialized() const { |
11143 | 16.7k | switch (var_oneof_case()) { |
11144 | 1.10k | case kName: { |
11145 | 1.10k | if (_internal_has_name()) { |
11146 | 1.10k | if (!_impl_.var_oneof_.name_->IsInitialized()) return false; |
11147 | 1.10k | } |
11148 | 1.10k | break; |
11149 | 1.10k | } |
11150 | 4.14k | case kIndexexpr: { |
11151 | 4.14k | if (_internal_has_indexexpr()) { |
11152 | 4.14k | if (!_impl_.var_oneof_.indexexpr_->IsInitialized()) return false; |
11153 | 4.14k | } |
11154 | 4.14k | break; |
11155 | 4.14k | } |
11156 | 4.14k | case kIndexname: { |
11157 | 3.91k | if (_internal_has_indexname()) { |
11158 | 3.91k | if (!_impl_.var_oneof_.indexname_->IsInitialized()) return false; |
11159 | 3.91k | } |
11160 | 3.91k | break; |
11161 | 3.91k | } |
11162 | 7.59k | case VAR_ONEOF_NOT_SET: { |
11163 | 7.59k | break; |
11164 | 3.91k | } |
11165 | 16.7k | } |
11166 | 16.7k | return true; |
11167 | 16.7k | } |
11168 | | |
11169 | 0 | void Variable::InternalSwap(Variable* other) { |
11170 | 0 | using std::swap; |
11171 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
11172 | 0 | swap(_impl_.var_oneof_, other->_impl_.var_oneof_); |
11173 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
11174 | 0 | } |
11175 | | |
11176 | 130k | ::PROTOBUF_NAMESPACE_ID::Metadata Variable::GetMetadata() const { |
11177 | 130k | return ::_pbi::AssignDescriptors( |
11178 | 130k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
11179 | 130k | file_level_metadata_lua_5fgrammar_2eproto[30]); |
11180 | 130k | } |
11181 | | |
11182 | | // =================================================================== |
11183 | | |
11184 | | class PrefixExpression::_Internal { |
11185 | | public: |
11186 | | static const ::lua_grammar::Variable& var(const PrefixExpression* msg); |
11187 | | static const ::lua_grammar::FunctionCall& functioncall(const PrefixExpression* msg); |
11188 | | static const ::lua_grammar::Expression& exp(const PrefixExpression* msg); |
11189 | | }; |
11190 | | |
11191 | | const ::lua_grammar::Variable& |
11192 | 0 | PrefixExpression::_Internal::var(const PrefixExpression* msg) { |
11193 | 0 | return *msg->_impl_.prefix_oneof_.var_; |
11194 | 0 | } |
11195 | | const ::lua_grammar::FunctionCall& |
11196 | 0 | PrefixExpression::_Internal::functioncall(const PrefixExpression* msg) { |
11197 | 0 | return *msg->_impl_.prefix_oneof_.functioncall_; |
11198 | 0 | } |
11199 | | const ::lua_grammar::Expression& |
11200 | 0 | PrefixExpression::_Internal::exp(const PrefixExpression* msg) { |
11201 | 0 | return *msg->_impl_.prefix_oneof_.exp_; |
11202 | 0 | } |
11203 | 0 | void PrefixExpression::set_allocated_var(::lua_grammar::Variable* var) { |
11204 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11205 | 0 | clear_prefix_oneof(); |
11206 | 0 | if (var) { |
11207 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11208 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(var); |
11209 | 0 | if (message_arena != submessage_arena) { |
11210 | 0 | var = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11211 | 0 | message_arena, var, submessage_arena); |
11212 | 0 | } |
11213 | 0 | set_has_var(); |
11214 | 0 | _impl_.prefix_oneof_.var_ = var; |
11215 | 0 | } |
11216 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.PrefixExpression.var) |
11217 | 0 | } |
11218 | 0 | void PrefixExpression::set_allocated_functioncall(::lua_grammar::FunctionCall* functioncall) { |
11219 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11220 | 0 | clear_prefix_oneof(); |
11221 | 0 | if (functioncall) { |
11222 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11223 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(functioncall); |
11224 | 0 | if (message_arena != submessage_arena) { |
11225 | 0 | functioncall = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11226 | 0 | message_arena, functioncall, submessage_arena); |
11227 | 0 | } |
11228 | 0 | set_has_functioncall(); |
11229 | 0 | _impl_.prefix_oneof_.functioncall_ = functioncall; |
11230 | 0 | } |
11231 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.PrefixExpression.functioncall) |
11232 | 0 | } |
11233 | 0 | void PrefixExpression::set_allocated_exp(::lua_grammar::Expression* exp) { |
11234 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11235 | 0 | clear_prefix_oneof(); |
11236 | 0 | if (exp) { |
11237 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11238 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(exp); |
11239 | 0 | if (message_arena != submessage_arena) { |
11240 | 0 | exp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11241 | 0 | message_arena, exp, submessage_arena); |
11242 | 0 | } |
11243 | 0 | set_has_exp(); |
11244 | 0 | _impl_.prefix_oneof_.exp_ = exp; |
11245 | 0 | } |
11246 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.PrefixExpression.exp) |
11247 | 0 | } |
11248 | | PrefixExpression::PrefixExpression(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
11249 | | bool is_message_owned) |
11250 | 30.7k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
11251 | 30.7k | SharedCtor(arena, is_message_owned); |
11252 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.PrefixExpression) |
11253 | 30.7k | } |
11254 | | PrefixExpression::PrefixExpression(const PrefixExpression& from) |
11255 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
11256 | 0 | PrefixExpression* const _this = this; (void)_this; |
11257 | 0 | new (&_impl_) Impl_{ |
11258 | 0 | decltype(_impl_.prefix_oneof_){} |
11259 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
11260 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
11261 | |
|
11262 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
11263 | 0 | clear_has_prefix_oneof(); |
11264 | 0 | switch (from.prefix_oneof_case()) { |
11265 | 0 | case kVar: { |
11266 | 0 | _this->_internal_mutable_var()->::lua_grammar::Variable::MergeFrom( |
11267 | 0 | from._internal_var()); |
11268 | 0 | break; |
11269 | 0 | } |
11270 | 0 | case kFunctioncall: { |
11271 | 0 | _this->_internal_mutable_functioncall()->::lua_grammar::FunctionCall::MergeFrom( |
11272 | 0 | from._internal_functioncall()); |
11273 | 0 | break; |
11274 | 0 | } |
11275 | 0 | case kExp: { |
11276 | 0 | _this->_internal_mutable_exp()->::lua_grammar::Expression::MergeFrom( |
11277 | 0 | from._internal_exp()); |
11278 | 0 | break; |
11279 | 0 | } |
11280 | 0 | case PREFIX_ONEOF_NOT_SET: { |
11281 | 0 | break; |
11282 | 0 | } |
11283 | 0 | } |
11284 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.PrefixExpression) |
11285 | 0 | } |
11286 | | |
11287 | | inline void PrefixExpression::SharedCtor( |
11288 | 30.7k | ::_pb::Arena* arena, bool is_message_owned) { |
11289 | 30.7k | (void)arena; |
11290 | 30.7k | (void)is_message_owned; |
11291 | 30.7k | new (&_impl_) Impl_{ |
11292 | 30.7k | decltype(_impl_.prefix_oneof_){} |
11293 | 30.7k | , /*decltype(_impl_._cached_size_)*/{} |
11294 | 30.7k | , /*decltype(_impl_._oneof_case_)*/{} |
11295 | 30.7k | }; |
11296 | 30.7k | clear_has_prefix_oneof(); |
11297 | 30.7k | } |
11298 | | |
11299 | 30.7k | PrefixExpression::~PrefixExpression() { |
11300 | | // @@protoc_insertion_point(destructor:lua_grammar.PrefixExpression) |
11301 | 30.7k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
11302 | 0 | (void)arena; |
11303 | 0 | return; |
11304 | 0 | } |
11305 | 30.7k | SharedDtor(); |
11306 | 30.7k | } |
11307 | | |
11308 | 30.7k | inline void PrefixExpression::SharedDtor() { |
11309 | 30.7k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
11310 | 30.7k | if (has_prefix_oneof()) { |
11311 | 15.9k | clear_prefix_oneof(); |
11312 | 15.9k | } |
11313 | 30.7k | } |
11314 | | |
11315 | 0 | void PrefixExpression::SetCachedSize(int size) const { |
11316 | 0 | _impl_._cached_size_.Set(size); |
11317 | 0 | } |
11318 | | |
11319 | 16.1k | void PrefixExpression::clear_prefix_oneof() { |
11320 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.PrefixExpression) |
11321 | 16.1k | switch (prefix_oneof_case()) { |
11322 | 4.25k | case kVar: { |
11323 | 4.25k | if (GetArenaForAllocation() == nullptr) { |
11324 | 4.25k | delete _impl_.prefix_oneof_.var_; |
11325 | 4.25k | } |
11326 | 4.25k | break; |
11327 | 0 | } |
11328 | 7.33k | case kFunctioncall: { |
11329 | 7.33k | if (GetArenaForAllocation() == nullptr) { |
11330 | 7.33k | delete _impl_.prefix_oneof_.functioncall_; |
11331 | 7.33k | } |
11332 | 7.33k | break; |
11333 | 0 | } |
11334 | 4.32k | case kExp: { |
11335 | 4.32k | if (GetArenaForAllocation() == nullptr) { |
11336 | 4.32k | delete _impl_.prefix_oneof_.exp_; |
11337 | 4.32k | } |
11338 | 4.32k | break; |
11339 | 0 | } |
11340 | 194 | case PREFIX_ONEOF_NOT_SET: { |
11341 | 194 | break; |
11342 | 0 | } |
11343 | 16.1k | } |
11344 | 16.1k | _impl_._oneof_case_[0] = PREFIX_ONEOF_NOT_SET; |
11345 | 16.1k | } |
11346 | | |
11347 | | |
11348 | 194 | void PrefixExpression::Clear() { |
11349 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.PrefixExpression) |
11350 | 194 | uint32_t cached_has_bits = 0; |
11351 | | // Prevent compiler warnings about cached_has_bits being unused |
11352 | 194 | (void) cached_has_bits; |
11353 | | |
11354 | 194 | clear_prefix_oneof(); |
11355 | 194 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
11356 | 194 | } |
11357 | | |
11358 | 0 | const char* PrefixExpression::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
11359 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
11360 | 0 | while (!ctx->Done(&ptr)) { |
11361 | 0 | uint32_t tag; |
11362 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
11363 | 0 | switch (tag >> 3) { |
11364 | | // .lua_grammar.Variable var = 1; |
11365 | 0 | case 1: |
11366 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
11367 | 0 | ptr = ctx->ParseMessage(_internal_mutable_var(), ptr); |
11368 | 0 | CHK_(ptr); |
11369 | 0 | } else |
11370 | 0 | goto handle_unusual; |
11371 | 0 | continue; |
11372 | | // .lua_grammar.FunctionCall functioncall = 2; |
11373 | 0 | case 2: |
11374 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
11375 | 0 | ptr = ctx->ParseMessage(_internal_mutable_functioncall(), ptr); |
11376 | 0 | CHK_(ptr); |
11377 | 0 | } else |
11378 | 0 | goto handle_unusual; |
11379 | 0 | continue; |
11380 | | // .lua_grammar.Expression exp = 3; |
11381 | 0 | case 3: |
11382 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
11383 | 0 | ptr = ctx->ParseMessage(_internal_mutable_exp(), ptr); |
11384 | 0 | CHK_(ptr); |
11385 | 0 | } else |
11386 | 0 | goto handle_unusual; |
11387 | 0 | continue; |
11388 | 0 | default: |
11389 | 0 | goto handle_unusual; |
11390 | 0 | } // switch |
11391 | 0 | handle_unusual: |
11392 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
11393 | 0 | CHK_(ptr); |
11394 | 0 | ctx->SetLastTag(tag); |
11395 | 0 | goto message_done; |
11396 | 0 | } |
11397 | 0 | ptr = UnknownFieldParse( |
11398 | 0 | tag, |
11399 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
11400 | 0 | ptr, ctx); |
11401 | 0 | CHK_(ptr != nullptr); |
11402 | 0 | } // while |
11403 | 0 | message_done: |
11404 | 0 | return ptr; |
11405 | 0 | failure: |
11406 | 0 | ptr = nullptr; |
11407 | 0 | goto message_done; |
11408 | 0 | #undef CHK_ |
11409 | 0 | } |
11410 | | |
11411 | | uint8_t* PrefixExpression::_InternalSerialize( |
11412 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
11413 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.PrefixExpression) |
11414 | 0 | uint32_t cached_has_bits = 0; |
11415 | 0 | (void) cached_has_bits; |
11416 | |
|
11417 | 0 | switch (prefix_oneof_case()) { |
11418 | 0 | case kVar: { |
11419 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11420 | 0 | InternalWriteMessage(1, _Internal::var(this), |
11421 | 0 | _Internal::var(this).GetCachedSize(), target, stream); |
11422 | 0 | break; |
11423 | 0 | } |
11424 | 0 | case kFunctioncall: { |
11425 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11426 | 0 | InternalWriteMessage(2, _Internal::functioncall(this), |
11427 | 0 | _Internal::functioncall(this).GetCachedSize(), target, stream); |
11428 | 0 | break; |
11429 | 0 | } |
11430 | 0 | case kExp: { |
11431 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11432 | 0 | InternalWriteMessage(3, _Internal::exp(this), |
11433 | 0 | _Internal::exp(this).GetCachedSize(), target, stream); |
11434 | 0 | break; |
11435 | 0 | } |
11436 | 0 | default: ; |
11437 | 0 | } |
11438 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
11439 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
11440 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
11441 | 0 | } |
11442 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.PrefixExpression) |
11443 | 0 | return target; |
11444 | 0 | } |
11445 | | |
11446 | 0 | size_t PrefixExpression::ByteSizeLong() const { |
11447 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.PrefixExpression) |
11448 | 0 | size_t total_size = 0; |
11449 | |
|
11450 | 0 | uint32_t cached_has_bits = 0; |
11451 | | // Prevent compiler warnings about cached_has_bits being unused |
11452 | 0 | (void) cached_has_bits; |
11453 | |
|
11454 | 0 | switch (prefix_oneof_case()) { |
11455 | | // .lua_grammar.Variable var = 1; |
11456 | 0 | case kVar: { |
11457 | 0 | total_size += 1 + |
11458 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11459 | 0 | *_impl_.prefix_oneof_.var_); |
11460 | 0 | break; |
11461 | 0 | } |
11462 | | // .lua_grammar.FunctionCall functioncall = 2; |
11463 | 0 | case kFunctioncall: { |
11464 | 0 | total_size += 1 + |
11465 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11466 | 0 | *_impl_.prefix_oneof_.functioncall_); |
11467 | 0 | break; |
11468 | 0 | } |
11469 | | // .lua_grammar.Expression exp = 3; |
11470 | 0 | case kExp: { |
11471 | 0 | total_size += 1 + |
11472 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11473 | 0 | *_impl_.prefix_oneof_.exp_); |
11474 | 0 | break; |
11475 | 0 | } |
11476 | 0 | case PREFIX_ONEOF_NOT_SET: { |
11477 | 0 | break; |
11478 | 0 | } |
11479 | 0 | } |
11480 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
11481 | 0 | } |
11482 | | |
11483 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PrefixExpression::_class_data_ = { |
11484 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
11485 | | PrefixExpression::MergeImpl |
11486 | | }; |
11487 | 291 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PrefixExpression::GetClassData() const { return &_class_data_; } |
11488 | | |
11489 | | |
11490 | 97 | void PrefixExpression::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
11491 | 97 | auto* const _this = static_cast<PrefixExpression*>(&to_msg); |
11492 | 97 | auto& from = static_cast<const PrefixExpression&>(from_msg); |
11493 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.PrefixExpression) |
11494 | 97 | GOOGLE_DCHECK_NE(&from, _this); |
11495 | 97 | uint32_t cached_has_bits = 0; |
11496 | 97 | (void) cached_has_bits; |
11497 | | |
11498 | 97 | switch (from.prefix_oneof_case()) { |
11499 | 0 | case kVar: { |
11500 | 0 | _this->_internal_mutable_var()->::lua_grammar::Variable::MergeFrom( |
11501 | 0 | from._internal_var()); |
11502 | 0 | break; |
11503 | 0 | } |
11504 | 0 | case kFunctioncall: { |
11505 | 0 | _this->_internal_mutable_functioncall()->::lua_grammar::FunctionCall::MergeFrom( |
11506 | 0 | from._internal_functioncall()); |
11507 | 0 | break; |
11508 | 0 | } |
11509 | 0 | case kExp: { |
11510 | 0 | _this->_internal_mutable_exp()->::lua_grammar::Expression::MergeFrom( |
11511 | 0 | from._internal_exp()); |
11512 | 0 | break; |
11513 | 0 | } |
11514 | 97 | case PREFIX_ONEOF_NOT_SET: { |
11515 | 97 | break; |
11516 | 0 | } |
11517 | 97 | } |
11518 | 97 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
11519 | 97 | } |
11520 | | |
11521 | 0 | void PrefixExpression::CopyFrom(const PrefixExpression& from) { |
11522 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.PrefixExpression) |
11523 | 0 | if (&from == this) return; |
11524 | 0 | Clear(); |
11525 | 0 | MergeFrom(from); |
11526 | 0 | } |
11527 | | |
11528 | 28.5k | bool PrefixExpression::IsInitialized() const { |
11529 | 28.5k | switch (prefix_oneof_case()) { |
11530 | 4.11k | case kVar: { |
11531 | 4.11k | if (_internal_has_var()) { |
11532 | 4.11k | if (!_impl_.prefix_oneof_.var_->IsInitialized()) return false; |
11533 | 4.11k | } |
11534 | 4.11k | break; |
11535 | 4.11k | } |
11536 | 6.43k | case kFunctioncall: { |
11537 | 6.43k | if (_internal_has_functioncall()) { |
11538 | 6.43k | if (!_impl_.prefix_oneof_.functioncall_->IsInitialized()) return false; |
11539 | 6.43k | } |
11540 | 6.43k | break; |
11541 | 6.43k | } |
11542 | 6.43k | case kExp: { |
11543 | 4.20k | if (_internal_has_exp()) { |
11544 | 4.20k | if (!_impl_.prefix_oneof_.exp_->IsInitialized()) return false; |
11545 | 4.20k | } |
11546 | 4.20k | break; |
11547 | 4.20k | } |
11548 | 13.8k | case PREFIX_ONEOF_NOT_SET: { |
11549 | 13.8k | break; |
11550 | 4.20k | } |
11551 | 28.5k | } |
11552 | 28.5k | return true; |
11553 | 28.5k | } |
11554 | | |
11555 | 0 | void PrefixExpression::InternalSwap(PrefixExpression* other) { |
11556 | 0 | using std::swap; |
11557 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
11558 | 0 | swap(_impl_.prefix_oneof_, other->_impl_.prefix_oneof_); |
11559 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
11560 | 0 | } |
11561 | | |
11562 | 219k | ::PROTOBUF_NAMESPACE_ID::Metadata PrefixExpression::GetMetadata() const { |
11563 | 219k | return ::_pbi::AssignDescriptors( |
11564 | 219k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
11565 | 219k | file_level_metadata_lua_5fgrammar_2eproto[31]); |
11566 | 219k | } |
11567 | | |
11568 | | // =================================================================== |
11569 | | |
11570 | | class Expression_AnonFunc::_Internal { |
11571 | | public: |
11572 | | using HasBits = decltype(std::declval<Expression_AnonFunc>()._impl_._has_bits_); |
11573 | | static const ::lua_grammar::FuncBody& body(const Expression_AnonFunc* msg); |
11574 | 0 | static void set_has_body(HasBits* has_bits) { |
11575 | 0 | (*has_bits)[0] |= 1u; |
11576 | 0 | } |
11577 | 13.0k | static bool MissingRequiredFields(const HasBits& has_bits) { |
11578 | 13.0k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
11579 | 13.0k | } |
11580 | | }; |
11581 | | |
11582 | | const ::lua_grammar::FuncBody& |
11583 | 0 | Expression_AnonFunc::_Internal::body(const Expression_AnonFunc* msg) { |
11584 | 0 | return *msg->_impl_.body_; |
11585 | 0 | } |
11586 | | Expression_AnonFunc::Expression_AnonFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
11587 | | bool is_message_owned) |
11588 | 13.1k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
11589 | 13.1k | SharedCtor(arena, is_message_owned); |
11590 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Expression.AnonFunc) |
11591 | 13.1k | } |
11592 | | Expression_AnonFunc::Expression_AnonFunc(const Expression_AnonFunc& from) |
11593 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
11594 | 0 | Expression_AnonFunc* const _this = this; (void)_this; |
11595 | 0 | new (&_impl_) Impl_{ |
11596 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
11597 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
11598 | 0 | , decltype(_impl_.body_){nullptr}}; |
11599 | |
|
11600 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
11601 | 0 | if (from._internal_has_body()) { |
11602 | 0 | _this->_impl_.body_ = new ::lua_grammar::FuncBody(*from._impl_.body_); |
11603 | 0 | } |
11604 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Expression.AnonFunc) |
11605 | 0 | } |
11606 | | |
11607 | | inline void Expression_AnonFunc::SharedCtor( |
11608 | 13.1k | ::_pb::Arena* arena, bool is_message_owned) { |
11609 | 13.1k | (void)arena; |
11610 | 13.1k | (void)is_message_owned; |
11611 | 13.1k | new (&_impl_) Impl_{ |
11612 | 13.1k | decltype(_impl_._has_bits_){} |
11613 | 13.1k | , /*decltype(_impl_._cached_size_)*/{} |
11614 | 13.1k | , decltype(_impl_.body_){nullptr} |
11615 | 13.1k | }; |
11616 | 13.1k | } |
11617 | | |
11618 | 13.1k | Expression_AnonFunc::~Expression_AnonFunc() { |
11619 | | // @@protoc_insertion_point(destructor:lua_grammar.Expression.AnonFunc) |
11620 | 13.1k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
11621 | 0 | (void)arena; |
11622 | 0 | return; |
11623 | 0 | } |
11624 | 13.1k | SharedDtor(); |
11625 | 13.1k | } |
11626 | | |
11627 | 13.1k | inline void Expression_AnonFunc::SharedDtor() { |
11628 | 13.1k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
11629 | 13.1k | if (this != internal_default_instance()) delete _impl_.body_; |
11630 | 13.1k | } |
11631 | | |
11632 | 0 | void Expression_AnonFunc::SetCachedSize(int size) const { |
11633 | 0 | _impl_._cached_size_.Set(size); |
11634 | 0 | } |
11635 | | |
11636 | 0 | void Expression_AnonFunc::Clear() { |
11637 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Expression.AnonFunc) |
11638 | 0 | uint32_t cached_has_bits = 0; |
11639 | | // Prevent compiler warnings about cached_has_bits being unused |
11640 | 0 | (void) cached_has_bits; |
11641 | |
|
11642 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
11643 | 0 | if (cached_has_bits & 0x00000001u) { |
11644 | 0 | GOOGLE_DCHECK(_impl_.body_ != nullptr); |
11645 | 0 | _impl_.body_->Clear(); |
11646 | 0 | } |
11647 | 0 | _impl_._has_bits_.Clear(); |
11648 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
11649 | 0 | } |
11650 | | |
11651 | 0 | const char* Expression_AnonFunc::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
11652 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
11653 | 0 | _Internal::HasBits has_bits{}; |
11654 | 0 | while (!ctx->Done(&ptr)) { |
11655 | 0 | uint32_t tag; |
11656 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
11657 | 0 | switch (tag >> 3) { |
11658 | | // required .lua_grammar.FuncBody body = 1; |
11659 | 0 | case 1: |
11660 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
11661 | 0 | ptr = ctx->ParseMessage(_internal_mutable_body(), ptr); |
11662 | 0 | CHK_(ptr); |
11663 | 0 | } else |
11664 | 0 | goto handle_unusual; |
11665 | 0 | continue; |
11666 | 0 | default: |
11667 | 0 | goto handle_unusual; |
11668 | 0 | } // switch |
11669 | 0 | handle_unusual: |
11670 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
11671 | 0 | CHK_(ptr); |
11672 | 0 | ctx->SetLastTag(tag); |
11673 | 0 | goto message_done; |
11674 | 0 | } |
11675 | 0 | ptr = UnknownFieldParse( |
11676 | 0 | tag, |
11677 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
11678 | 0 | ptr, ctx); |
11679 | 0 | CHK_(ptr != nullptr); |
11680 | 0 | } // while |
11681 | 0 | message_done: |
11682 | 0 | _impl_._has_bits_.Or(has_bits); |
11683 | 0 | return ptr; |
11684 | 0 | failure: |
11685 | 0 | ptr = nullptr; |
11686 | 0 | goto message_done; |
11687 | 0 | #undef CHK_ |
11688 | 0 | } |
11689 | | |
11690 | | uint8_t* Expression_AnonFunc::_InternalSerialize( |
11691 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
11692 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Expression.AnonFunc) |
11693 | 0 | uint32_t cached_has_bits = 0; |
11694 | 0 | (void) cached_has_bits; |
11695 | |
|
11696 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
11697 | | // required .lua_grammar.FuncBody body = 1; |
11698 | 0 | if (cached_has_bits & 0x00000001u) { |
11699 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11700 | 0 | InternalWriteMessage(1, _Internal::body(this), |
11701 | 0 | _Internal::body(this).GetCachedSize(), target, stream); |
11702 | 0 | } |
11703 | |
|
11704 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
11705 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
11706 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
11707 | 0 | } |
11708 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Expression.AnonFunc) |
11709 | 0 | return target; |
11710 | 0 | } |
11711 | | |
11712 | 0 | size_t Expression_AnonFunc::ByteSizeLong() const { |
11713 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Expression.AnonFunc) |
11714 | 0 | size_t total_size = 0; |
11715 | | |
11716 | | // required .lua_grammar.FuncBody body = 1; |
11717 | 0 | if (_internal_has_body()) { |
11718 | 0 | total_size += 1 + |
11719 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11720 | 0 | *_impl_.body_); |
11721 | 0 | } |
11722 | 0 | uint32_t cached_has_bits = 0; |
11723 | | // Prevent compiler warnings about cached_has_bits being unused |
11724 | 0 | (void) cached_has_bits; |
11725 | |
|
11726 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
11727 | 0 | } |
11728 | | |
11729 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expression_AnonFunc::_class_data_ = { |
11730 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
11731 | | Expression_AnonFunc::MergeImpl |
11732 | | }; |
11733 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expression_AnonFunc::GetClassData() const { return &_class_data_; } |
11734 | | |
11735 | | |
11736 | 0 | void Expression_AnonFunc::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
11737 | 0 | auto* const _this = static_cast<Expression_AnonFunc*>(&to_msg); |
11738 | 0 | auto& from = static_cast<const Expression_AnonFunc&>(from_msg); |
11739 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Expression.AnonFunc) |
11740 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
11741 | 0 | uint32_t cached_has_bits = 0; |
11742 | 0 | (void) cached_has_bits; |
11743 | |
|
11744 | 0 | if (from._internal_has_body()) { |
11745 | 0 | _this->_internal_mutable_body()->::lua_grammar::FuncBody::MergeFrom( |
11746 | 0 | from._internal_body()); |
11747 | 0 | } |
11748 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
11749 | 0 | } |
11750 | | |
11751 | 0 | void Expression_AnonFunc::CopyFrom(const Expression_AnonFunc& from) { |
11752 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Expression.AnonFunc) |
11753 | 0 | if (&from == this) return; |
11754 | 0 | Clear(); |
11755 | 0 | MergeFrom(from); |
11756 | 0 | } |
11757 | | |
11758 | 13.0k | bool Expression_AnonFunc::IsInitialized() const { |
11759 | 13.0k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
11760 | 13.0k | if (_internal_has_body()) { |
11761 | 13.0k | if (!_impl_.body_->IsInitialized()) return false; |
11762 | 13.0k | } |
11763 | 13.0k | return true; |
11764 | 13.0k | } |
11765 | | |
11766 | 0 | void Expression_AnonFunc::InternalSwap(Expression_AnonFunc* other) { |
11767 | 0 | using std::swap; |
11768 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
11769 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
11770 | 0 | swap(_impl_.body_, other->_impl_.body_); |
11771 | 0 | } |
11772 | | |
11773 | 117k | ::PROTOBUF_NAMESPACE_ID::Metadata Expression_AnonFunc::GetMetadata() const { |
11774 | 117k | return ::_pbi::AssignDescriptors( |
11775 | 117k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
11776 | 117k | file_level_metadata_lua_5fgrammar_2eproto[32]); |
11777 | 117k | } |
11778 | | |
11779 | | // =================================================================== |
11780 | | |
11781 | | class Expression_ExpBinaryOpExp::_Internal { |
11782 | | public: |
11783 | | using HasBits = decltype(std::declval<Expression_ExpBinaryOpExp>()._impl_._has_bits_); |
11784 | | static const ::lua_grammar::Expression& leftexp(const Expression_ExpBinaryOpExp* msg); |
11785 | 0 | static void set_has_leftexp(HasBits* has_bits) { |
11786 | 0 | (*has_bits)[0] |= 1u; |
11787 | 0 | } |
11788 | | static const ::lua_grammar::BinaryOperator& binop(const Expression_ExpBinaryOpExp* msg); |
11789 | 0 | static void set_has_binop(HasBits* has_bits) { |
11790 | 0 | (*has_bits)[0] |= 2u; |
11791 | 0 | } |
11792 | | static const ::lua_grammar::Expression& rightexp(const Expression_ExpBinaryOpExp* msg); |
11793 | 0 | static void set_has_rightexp(HasBits* has_bits) { |
11794 | 0 | (*has_bits)[0] |= 4u; |
11795 | 0 | } |
11796 | 18.1k | static bool MissingRequiredFields(const HasBits& has_bits) { |
11797 | 18.1k | return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; |
11798 | 18.1k | } |
11799 | | }; |
11800 | | |
11801 | | const ::lua_grammar::Expression& |
11802 | 0 | Expression_ExpBinaryOpExp::_Internal::leftexp(const Expression_ExpBinaryOpExp* msg) { |
11803 | 0 | return *msg->_impl_.leftexp_; |
11804 | 0 | } |
11805 | | const ::lua_grammar::BinaryOperator& |
11806 | 0 | Expression_ExpBinaryOpExp::_Internal::binop(const Expression_ExpBinaryOpExp* msg) { |
11807 | 0 | return *msg->_impl_.binop_; |
11808 | 0 | } |
11809 | | const ::lua_grammar::Expression& |
11810 | 0 | Expression_ExpBinaryOpExp::_Internal::rightexp(const Expression_ExpBinaryOpExp* msg) { |
11811 | 0 | return *msg->_impl_.rightexp_; |
11812 | 0 | } |
11813 | | Expression_ExpBinaryOpExp::Expression_ExpBinaryOpExp(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
11814 | | bool is_message_owned) |
11815 | 18.9k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
11816 | 18.9k | SharedCtor(arena, is_message_owned); |
11817 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Expression.ExpBinaryOpExp) |
11818 | 18.9k | } |
11819 | | Expression_ExpBinaryOpExp::Expression_ExpBinaryOpExp(const Expression_ExpBinaryOpExp& from) |
11820 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
11821 | 0 | Expression_ExpBinaryOpExp* const _this = this; (void)_this; |
11822 | 0 | new (&_impl_) Impl_{ |
11823 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
11824 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
11825 | 0 | , decltype(_impl_.leftexp_){nullptr} |
11826 | 0 | , decltype(_impl_.binop_){nullptr} |
11827 | 0 | , decltype(_impl_.rightexp_){nullptr}}; |
11828 | |
|
11829 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
11830 | 0 | if (from._internal_has_leftexp()) { |
11831 | 0 | _this->_impl_.leftexp_ = new ::lua_grammar::Expression(*from._impl_.leftexp_); |
11832 | 0 | } |
11833 | 0 | if (from._internal_has_binop()) { |
11834 | 0 | _this->_impl_.binop_ = new ::lua_grammar::BinaryOperator(*from._impl_.binop_); |
11835 | 0 | } |
11836 | 0 | if (from._internal_has_rightexp()) { |
11837 | 0 | _this->_impl_.rightexp_ = new ::lua_grammar::Expression(*from._impl_.rightexp_); |
11838 | 0 | } |
11839 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Expression.ExpBinaryOpExp) |
11840 | 0 | } |
11841 | | |
11842 | | inline void Expression_ExpBinaryOpExp::SharedCtor( |
11843 | 18.9k | ::_pb::Arena* arena, bool is_message_owned) { |
11844 | 18.9k | (void)arena; |
11845 | 18.9k | (void)is_message_owned; |
11846 | 18.9k | new (&_impl_) Impl_{ |
11847 | 18.9k | decltype(_impl_._has_bits_){} |
11848 | 18.9k | , /*decltype(_impl_._cached_size_)*/{} |
11849 | 18.9k | , decltype(_impl_.leftexp_){nullptr} |
11850 | 18.9k | , decltype(_impl_.binop_){nullptr} |
11851 | 18.9k | , decltype(_impl_.rightexp_){nullptr} |
11852 | 18.9k | }; |
11853 | 18.9k | } |
11854 | | |
11855 | 18.9k | Expression_ExpBinaryOpExp::~Expression_ExpBinaryOpExp() { |
11856 | | // @@protoc_insertion_point(destructor:lua_grammar.Expression.ExpBinaryOpExp) |
11857 | 18.9k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
11858 | 0 | (void)arena; |
11859 | 0 | return; |
11860 | 0 | } |
11861 | 18.9k | SharedDtor(); |
11862 | 18.9k | } |
11863 | | |
11864 | 18.9k | inline void Expression_ExpBinaryOpExp::SharedDtor() { |
11865 | 18.9k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
11866 | 18.9k | if (this != internal_default_instance()) delete _impl_.leftexp_; |
11867 | 18.9k | if (this != internal_default_instance()) delete _impl_.binop_; |
11868 | 18.9k | if (this != internal_default_instance()) delete _impl_.rightexp_; |
11869 | 18.9k | } |
11870 | | |
11871 | 0 | void Expression_ExpBinaryOpExp::SetCachedSize(int size) const { |
11872 | 0 | _impl_._cached_size_.Set(size); |
11873 | 0 | } |
11874 | | |
11875 | 0 | void Expression_ExpBinaryOpExp::Clear() { |
11876 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Expression.ExpBinaryOpExp) |
11877 | 0 | uint32_t cached_has_bits = 0; |
11878 | | // Prevent compiler warnings about cached_has_bits being unused |
11879 | 0 | (void) cached_has_bits; |
11880 | |
|
11881 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
11882 | 0 | if (cached_has_bits & 0x00000007u) { |
11883 | 0 | if (cached_has_bits & 0x00000001u) { |
11884 | 0 | GOOGLE_DCHECK(_impl_.leftexp_ != nullptr); |
11885 | 0 | _impl_.leftexp_->Clear(); |
11886 | 0 | } |
11887 | 0 | if (cached_has_bits & 0x00000002u) { |
11888 | 0 | GOOGLE_DCHECK(_impl_.binop_ != nullptr); |
11889 | 0 | _impl_.binop_->Clear(); |
11890 | 0 | } |
11891 | 0 | if (cached_has_bits & 0x00000004u) { |
11892 | 0 | GOOGLE_DCHECK(_impl_.rightexp_ != nullptr); |
11893 | 0 | _impl_.rightexp_->Clear(); |
11894 | 0 | } |
11895 | 0 | } |
11896 | 0 | _impl_._has_bits_.Clear(); |
11897 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
11898 | 0 | } |
11899 | | |
11900 | 0 | const char* Expression_ExpBinaryOpExp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
11901 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
11902 | 0 | _Internal::HasBits has_bits{}; |
11903 | 0 | while (!ctx->Done(&ptr)) { |
11904 | 0 | uint32_t tag; |
11905 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
11906 | 0 | switch (tag >> 3) { |
11907 | | // required .lua_grammar.Expression leftexp = 1; |
11908 | 0 | case 1: |
11909 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
11910 | 0 | ptr = ctx->ParseMessage(_internal_mutable_leftexp(), ptr); |
11911 | 0 | CHK_(ptr); |
11912 | 0 | } else |
11913 | 0 | goto handle_unusual; |
11914 | 0 | continue; |
11915 | | // required .lua_grammar.BinaryOperator binop = 2; |
11916 | 0 | case 2: |
11917 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
11918 | 0 | ptr = ctx->ParseMessage(_internal_mutable_binop(), ptr); |
11919 | 0 | CHK_(ptr); |
11920 | 0 | } else |
11921 | 0 | goto handle_unusual; |
11922 | 0 | continue; |
11923 | | // required .lua_grammar.Expression rightexp = 3; |
11924 | 0 | case 3: |
11925 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
11926 | 0 | ptr = ctx->ParseMessage(_internal_mutable_rightexp(), ptr); |
11927 | 0 | CHK_(ptr); |
11928 | 0 | } else |
11929 | 0 | goto handle_unusual; |
11930 | 0 | continue; |
11931 | 0 | default: |
11932 | 0 | goto handle_unusual; |
11933 | 0 | } // switch |
11934 | 0 | handle_unusual: |
11935 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
11936 | 0 | CHK_(ptr); |
11937 | 0 | ctx->SetLastTag(tag); |
11938 | 0 | goto message_done; |
11939 | 0 | } |
11940 | 0 | ptr = UnknownFieldParse( |
11941 | 0 | tag, |
11942 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
11943 | 0 | ptr, ctx); |
11944 | 0 | CHK_(ptr != nullptr); |
11945 | 0 | } // while |
11946 | 0 | message_done: |
11947 | 0 | _impl_._has_bits_.Or(has_bits); |
11948 | 0 | return ptr; |
11949 | 0 | failure: |
11950 | 0 | ptr = nullptr; |
11951 | 0 | goto message_done; |
11952 | 0 | #undef CHK_ |
11953 | 0 | } |
11954 | | |
11955 | | uint8_t* Expression_ExpBinaryOpExp::_InternalSerialize( |
11956 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
11957 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Expression.ExpBinaryOpExp) |
11958 | 0 | uint32_t cached_has_bits = 0; |
11959 | 0 | (void) cached_has_bits; |
11960 | |
|
11961 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
11962 | | // required .lua_grammar.Expression leftexp = 1; |
11963 | 0 | if (cached_has_bits & 0x00000001u) { |
11964 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11965 | 0 | InternalWriteMessage(1, _Internal::leftexp(this), |
11966 | 0 | _Internal::leftexp(this).GetCachedSize(), target, stream); |
11967 | 0 | } |
11968 | | |
11969 | | // required .lua_grammar.BinaryOperator binop = 2; |
11970 | 0 | if (cached_has_bits & 0x00000002u) { |
11971 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11972 | 0 | InternalWriteMessage(2, _Internal::binop(this), |
11973 | 0 | _Internal::binop(this).GetCachedSize(), target, stream); |
11974 | 0 | } |
11975 | | |
11976 | | // required .lua_grammar.Expression rightexp = 3; |
11977 | 0 | if (cached_has_bits & 0x00000004u) { |
11978 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
11979 | 0 | InternalWriteMessage(3, _Internal::rightexp(this), |
11980 | 0 | _Internal::rightexp(this).GetCachedSize(), target, stream); |
11981 | 0 | } |
11982 | |
|
11983 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
11984 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
11985 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
11986 | 0 | } |
11987 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Expression.ExpBinaryOpExp) |
11988 | 0 | return target; |
11989 | 0 | } |
11990 | | |
11991 | 0 | size_t Expression_ExpBinaryOpExp::RequiredFieldsByteSizeFallback() const { |
11992 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Expression.ExpBinaryOpExp) |
11993 | 0 | size_t total_size = 0; |
11994 | |
|
11995 | 0 | if (_internal_has_leftexp()) { |
11996 | | // required .lua_grammar.Expression leftexp = 1; |
11997 | 0 | total_size += 1 + |
11998 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
11999 | 0 | *_impl_.leftexp_); |
12000 | 0 | } |
12001 | |
|
12002 | 0 | if (_internal_has_binop()) { |
12003 | | // required .lua_grammar.BinaryOperator binop = 2; |
12004 | 0 | total_size += 1 + |
12005 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12006 | 0 | *_impl_.binop_); |
12007 | 0 | } |
12008 | |
|
12009 | 0 | if (_internal_has_rightexp()) { |
12010 | | // required .lua_grammar.Expression rightexp = 3; |
12011 | 0 | total_size += 1 + |
12012 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12013 | 0 | *_impl_.rightexp_); |
12014 | 0 | } |
12015 | |
|
12016 | 0 | return total_size; |
12017 | 0 | } |
12018 | 0 | size_t Expression_ExpBinaryOpExp::ByteSizeLong() const { |
12019 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Expression.ExpBinaryOpExp) |
12020 | 0 | size_t total_size = 0; |
12021 | |
|
12022 | 0 | if (((_impl_._has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. |
12023 | | // required .lua_grammar.Expression leftexp = 1; |
12024 | 0 | total_size += 1 + |
12025 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12026 | 0 | *_impl_.leftexp_); |
12027 | | |
12028 | | // required .lua_grammar.BinaryOperator binop = 2; |
12029 | 0 | total_size += 1 + |
12030 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12031 | 0 | *_impl_.binop_); |
12032 | | |
12033 | | // required .lua_grammar.Expression rightexp = 3; |
12034 | 0 | total_size += 1 + |
12035 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12036 | 0 | *_impl_.rightexp_); |
12037 | |
|
12038 | 0 | } else { |
12039 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
12040 | 0 | } |
12041 | 0 | uint32_t cached_has_bits = 0; |
12042 | | // Prevent compiler warnings about cached_has_bits being unused |
12043 | 0 | (void) cached_has_bits; |
12044 | |
|
12045 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
12046 | 0 | } |
12047 | | |
12048 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expression_ExpBinaryOpExp::_class_data_ = { |
12049 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
12050 | | Expression_ExpBinaryOpExp::MergeImpl |
12051 | | }; |
12052 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expression_ExpBinaryOpExp::GetClassData() const { return &_class_data_; } |
12053 | | |
12054 | | |
12055 | 0 | void Expression_ExpBinaryOpExp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
12056 | 0 | auto* const _this = static_cast<Expression_ExpBinaryOpExp*>(&to_msg); |
12057 | 0 | auto& from = static_cast<const Expression_ExpBinaryOpExp&>(from_msg); |
12058 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Expression.ExpBinaryOpExp) |
12059 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
12060 | 0 | uint32_t cached_has_bits = 0; |
12061 | 0 | (void) cached_has_bits; |
12062 | |
|
12063 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
12064 | 0 | if (cached_has_bits & 0x00000007u) { |
12065 | 0 | if (cached_has_bits & 0x00000001u) { |
12066 | 0 | _this->_internal_mutable_leftexp()->::lua_grammar::Expression::MergeFrom( |
12067 | 0 | from._internal_leftexp()); |
12068 | 0 | } |
12069 | 0 | if (cached_has_bits & 0x00000002u) { |
12070 | 0 | _this->_internal_mutable_binop()->::lua_grammar::BinaryOperator::MergeFrom( |
12071 | 0 | from._internal_binop()); |
12072 | 0 | } |
12073 | 0 | if (cached_has_bits & 0x00000004u) { |
12074 | 0 | _this->_internal_mutable_rightexp()->::lua_grammar::Expression::MergeFrom( |
12075 | 0 | from._internal_rightexp()); |
12076 | 0 | } |
12077 | 0 | } |
12078 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
12079 | 0 | } |
12080 | | |
12081 | 0 | void Expression_ExpBinaryOpExp::CopyFrom(const Expression_ExpBinaryOpExp& from) { |
12082 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Expression.ExpBinaryOpExp) |
12083 | 0 | if (&from == this) return; |
12084 | 0 | Clear(); |
12085 | 0 | MergeFrom(from); |
12086 | 0 | } |
12087 | | |
12088 | 18.1k | bool Expression_ExpBinaryOpExp::IsInitialized() const { |
12089 | 18.1k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
12090 | 18.1k | if (_internal_has_leftexp()) { |
12091 | 18.1k | if (!_impl_.leftexp_->IsInitialized()) return false; |
12092 | 18.1k | } |
12093 | 18.1k | if (_internal_has_rightexp()) { |
12094 | 18.1k | if (!_impl_.rightexp_->IsInitialized()) return false; |
12095 | 18.1k | } |
12096 | 18.1k | return true; |
12097 | 18.1k | } |
12098 | | |
12099 | 0 | void Expression_ExpBinaryOpExp::InternalSwap(Expression_ExpBinaryOpExp* other) { |
12100 | 0 | using std::swap; |
12101 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
12102 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
12103 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
12104 | 0 | PROTOBUF_FIELD_OFFSET(Expression_ExpBinaryOpExp, _impl_.rightexp_) |
12105 | 0 | + sizeof(Expression_ExpBinaryOpExp::_impl_.rightexp_) |
12106 | 0 | - PROTOBUF_FIELD_OFFSET(Expression_ExpBinaryOpExp, _impl_.leftexp_)>( |
12107 | 0 | reinterpret_cast<char*>(&_impl_.leftexp_), |
12108 | 0 | reinterpret_cast<char*>(&other->_impl_.leftexp_)); |
12109 | 0 | } |
12110 | | |
12111 | 279k | ::PROTOBUF_NAMESPACE_ID::Metadata Expression_ExpBinaryOpExp::GetMetadata() const { |
12112 | 279k | return ::_pbi::AssignDescriptors( |
12113 | 279k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
12114 | 279k | file_level_metadata_lua_5fgrammar_2eproto[33]); |
12115 | 279k | } |
12116 | | |
12117 | | // =================================================================== |
12118 | | |
12119 | | class Expression_UnaryOpExp::_Internal { |
12120 | | public: |
12121 | | using HasBits = decltype(std::declval<Expression_UnaryOpExp>()._impl_._has_bits_); |
12122 | | static const ::lua_grammar::UnaryOperator& unop(const Expression_UnaryOpExp* msg); |
12123 | 0 | static void set_has_unop(HasBits* has_bits) { |
12124 | 0 | (*has_bits)[0] |= 1u; |
12125 | 0 | } |
12126 | | static const ::lua_grammar::Expression& exp(const Expression_UnaryOpExp* msg); |
12127 | 0 | static void set_has_exp(HasBits* has_bits) { |
12128 | 0 | (*has_bits)[0] |= 2u; |
12129 | 0 | } |
12130 | 4.89k | static bool MissingRequiredFields(const HasBits& has_bits) { |
12131 | 4.89k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
12132 | 4.89k | } |
12133 | | }; |
12134 | | |
12135 | | const ::lua_grammar::UnaryOperator& |
12136 | 0 | Expression_UnaryOpExp::_Internal::unop(const Expression_UnaryOpExp* msg) { |
12137 | 0 | return *msg->_impl_.unop_; |
12138 | 0 | } |
12139 | | const ::lua_grammar::Expression& |
12140 | 0 | Expression_UnaryOpExp::_Internal::exp(const Expression_UnaryOpExp* msg) { |
12141 | 0 | return *msg->_impl_.exp_; |
12142 | 0 | } |
12143 | | Expression_UnaryOpExp::Expression_UnaryOpExp(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
12144 | | bool is_message_owned) |
12145 | 4.99k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
12146 | 4.99k | SharedCtor(arena, is_message_owned); |
12147 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Expression.UnaryOpExp) |
12148 | 4.99k | } |
12149 | | Expression_UnaryOpExp::Expression_UnaryOpExp(const Expression_UnaryOpExp& from) |
12150 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
12151 | 0 | Expression_UnaryOpExp* const _this = this; (void)_this; |
12152 | 0 | new (&_impl_) Impl_{ |
12153 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
12154 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
12155 | 0 | , decltype(_impl_.unop_){nullptr} |
12156 | 0 | , decltype(_impl_.exp_){nullptr}}; |
12157 | |
|
12158 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
12159 | 0 | if (from._internal_has_unop()) { |
12160 | 0 | _this->_impl_.unop_ = new ::lua_grammar::UnaryOperator(*from._impl_.unop_); |
12161 | 0 | } |
12162 | 0 | if (from._internal_has_exp()) { |
12163 | 0 | _this->_impl_.exp_ = new ::lua_grammar::Expression(*from._impl_.exp_); |
12164 | 0 | } |
12165 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Expression.UnaryOpExp) |
12166 | 0 | } |
12167 | | |
12168 | | inline void Expression_UnaryOpExp::SharedCtor( |
12169 | 4.99k | ::_pb::Arena* arena, bool is_message_owned) { |
12170 | 4.99k | (void)arena; |
12171 | 4.99k | (void)is_message_owned; |
12172 | 4.99k | new (&_impl_) Impl_{ |
12173 | 4.99k | decltype(_impl_._has_bits_){} |
12174 | 4.99k | , /*decltype(_impl_._cached_size_)*/{} |
12175 | 4.99k | , decltype(_impl_.unop_){nullptr} |
12176 | 4.99k | , decltype(_impl_.exp_){nullptr} |
12177 | 4.99k | }; |
12178 | 4.99k | } |
12179 | | |
12180 | 4.99k | Expression_UnaryOpExp::~Expression_UnaryOpExp() { |
12181 | | // @@protoc_insertion_point(destructor:lua_grammar.Expression.UnaryOpExp) |
12182 | 4.99k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
12183 | 0 | (void)arena; |
12184 | 0 | return; |
12185 | 0 | } |
12186 | 4.99k | SharedDtor(); |
12187 | 4.99k | } |
12188 | | |
12189 | 4.99k | inline void Expression_UnaryOpExp::SharedDtor() { |
12190 | 4.99k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
12191 | 4.99k | if (this != internal_default_instance()) delete _impl_.unop_; |
12192 | 4.99k | if (this != internal_default_instance()) delete _impl_.exp_; |
12193 | 4.99k | } |
12194 | | |
12195 | 0 | void Expression_UnaryOpExp::SetCachedSize(int size) const { |
12196 | 0 | _impl_._cached_size_.Set(size); |
12197 | 0 | } |
12198 | | |
12199 | 0 | void Expression_UnaryOpExp::Clear() { |
12200 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Expression.UnaryOpExp) |
12201 | 0 | uint32_t cached_has_bits = 0; |
12202 | | // Prevent compiler warnings about cached_has_bits being unused |
12203 | 0 | (void) cached_has_bits; |
12204 | |
|
12205 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
12206 | 0 | if (cached_has_bits & 0x00000003u) { |
12207 | 0 | if (cached_has_bits & 0x00000001u) { |
12208 | 0 | GOOGLE_DCHECK(_impl_.unop_ != nullptr); |
12209 | 0 | _impl_.unop_->Clear(); |
12210 | 0 | } |
12211 | 0 | if (cached_has_bits & 0x00000002u) { |
12212 | 0 | GOOGLE_DCHECK(_impl_.exp_ != nullptr); |
12213 | 0 | _impl_.exp_->Clear(); |
12214 | 0 | } |
12215 | 0 | } |
12216 | 0 | _impl_._has_bits_.Clear(); |
12217 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
12218 | 0 | } |
12219 | | |
12220 | 0 | const char* Expression_UnaryOpExp::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
12221 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
12222 | 0 | _Internal::HasBits has_bits{}; |
12223 | 0 | while (!ctx->Done(&ptr)) { |
12224 | 0 | uint32_t tag; |
12225 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
12226 | 0 | switch (tag >> 3) { |
12227 | | // required .lua_grammar.UnaryOperator unop = 1; |
12228 | 0 | case 1: |
12229 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
12230 | 0 | ptr = ctx->ParseMessage(_internal_mutable_unop(), ptr); |
12231 | 0 | CHK_(ptr); |
12232 | 0 | } else |
12233 | 0 | goto handle_unusual; |
12234 | 0 | continue; |
12235 | | // required .lua_grammar.Expression exp = 2; |
12236 | 0 | case 2: |
12237 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
12238 | 0 | ptr = ctx->ParseMessage(_internal_mutable_exp(), ptr); |
12239 | 0 | CHK_(ptr); |
12240 | 0 | } else |
12241 | 0 | goto handle_unusual; |
12242 | 0 | continue; |
12243 | 0 | default: |
12244 | 0 | goto handle_unusual; |
12245 | 0 | } // switch |
12246 | 0 | handle_unusual: |
12247 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
12248 | 0 | CHK_(ptr); |
12249 | 0 | ctx->SetLastTag(tag); |
12250 | 0 | goto message_done; |
12251 | 0 | } |
12252 | 0 | ptr = UnknownFieldParse( |
12253 | 0 | tag, |
12254 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
12255 | 0 | ptr, ctx); |
12256 | 0 | CHK_(ptr != nullptr); |
12257 | 0 | } // while |
12258 | 0 | message_done: |
12259 | 0 | _impl_._has_bits_.Or(has_bits); |
12260 | 0 | return ptr; |
12261 | 0 | failure: |
12262 | 0 | ptr = nullptr; |
12263 | 0 | goto message_done; |
12264 | 0 | #undef CHK_ |
12265 | 0 | } |
12266 | | |
12267 | | uint8_t* Expression_UnaryOpExp::_InternalSerialize( |
12268 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
12269 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Expression.UnaryOpExp) |
12270 | 0 | uint32_t cached_has_bits = 0; |
12271 | 0 | (void) cached_has_bits; |
12272 | |
|
12273 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
12274 | | // required .lua_grammar.UnaryOperator unop = 1; |
12275 | 0 | if (cached_has_bits & 0x00000001u) { |
12276 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
12277 | 0 | InternalWriteMessage(1, _Internal::unop(this), |
12278 | 0 | _Internal::unop(this).GetCachedSize(), target, stream); |
12279 | 0 | } |
12280 | | |
12281 | | // required .lua_grammar.Expression exp = 2; |
12282 | 0 | if (cached_has_bits & 0x00000002u) { |
12283 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
12284 | 0 | InternalWriteMessage(2, _Internal::exp(this), |
12285 | 0 | _Internal::exp(this).GetCachedSize(), target, stream); |
12286 | 0 | } |
12287 | |
|
12288 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
12289 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
12290 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
12291 | 0 | } |
12292 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Expression.UnaryOpExp) |
12293 | 0 | return target; |
12294 | 0 | } |
12295 | | |
12296 | 0 | size_t Expression_UnaryOpExp::RequiredFieldsByteSizeFallback() const { |
12297 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Expression.UnaryOpExp) |
12298 | 0 | size_t total_size = 0; |
12299 | |
|
12300 | 0 | if (_internal_has_unop()) { |
12301 | | // required .lua_grammar.UnaryOperator unop = 1; |
12302 | 0 | total_size += 1 + |
12303 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12304 | 0 | *_impl_.unop_); |
12305 | 0 | } |
12306 | |
|
12307 | 0 | if (_internal_has_exp()) { |
12308 | | // required .lua_grammar.Expression exp = 2; |
12309 | 0 | total_size += 1 + |
12310 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12311 | 0 | *_impl_.exp_); |
12312 | 0 | } |
12313 | |
|
12314 | 0 | return total_size; |
12315 | 0 | } |
12316 | 0 | size_t Expression_UnaryOpExp::ByteSizeLong() const { |
12317 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Expression.UnaryOpExp) |
12318 | 0 | size_t total_size = 0; |
12319 | |
|
12320 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
12321 | | // required .lua_grammar.UnaryOperator unop = 1; |
12322 | 0 | total_size += 1 + |
12323 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12324 | 0 | *_impl_.unop_); |
12325 | | |
12326 | | // required .lua_grammar.Expression exp = 2; |
12327 | 0 | total_size += 1 + |
12328 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12329 | 0 | *_impl_.exp_); |
12330 | |
|
12331 | 0 | } else { |
12332 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
12333 | 0 | } |
12334 | 0 | uint32_t cached_has_bits = 0; |
12335 | | // Prevent compiler warnings about cached_has_bits being unused |
12336 | 0 | (void) cached_has_bits; |
12337 | |
|
12338 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
12339 | 0 | } |
12340 | | |
12341 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expression_UnaryOpExp::_class_data_ = { |
12342 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
12343 | | Expression_UnaryOpExp::MergeImpl |
12344 | | }; |
12345 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expression_UnaryOpExp::GetClassData() const { return &_class_data_; } |
12346 | | |
12347 | | |
12348 | 0 | void Expression_UnaryOpExp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
12349 | 0 | auto* const _this = static_cast<Expression_UnaryOpExp*>(&to_msg); |
12350 | 0 | auto& from = static_cast<const Expression_UnaryOpExp&>(from_msg); |
12351 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Expression.UnaryOpExp) |
12352 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
12353 | 0 | uint32_t cached_has_bits = 0; |
12354 | 0 | (void) cached_has_bits; |
12355 | |
|
12356 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
12357 | 0 | if (cached_has_bits & 0x00000003u) { |
12358 | 0 | if (cached_has_bits & 0x00000001u) { |
12359 | 0 | _this->_internal_mutable_unop()->::lua_grammar::UnaryOperator::MergeFrom( |
12360 | 0 | from._internal_unop()); |
12361 | 0 | } |
12362 | 0 | if (cached_has_bits & 0x00000002u) { |
12363 | 0 | _this->_internal_mutable_exp()->::lua_grammar::Expression::MergeFrom( |
12364 | 0 | from._internal_exp()); |
12365 | 0 | } |
12366 | 0 | } |
12367 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
12368 | 0 | } |
12369 | | |
12370 | 0 | void Expression_UnaryOpExp::CopyFrom(const Expression_UnaryOpExp& from) { |
12371 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Expression.UnaryOpExp) |
12372 | 0 | if (&from == this) return; |
12373 | 0 | Clear(); |
12374 | 0 | MergeFrom(from); |
12375 | 0 | } |
12376 | | |
12377 | 4.89k | bool Expression_UnaryOpExp::IsInitialized() const { |
12378 | 4.89k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
12379 | 4.89k | if (_internal_has_exp()) { |
12380 | 4.89k | if (!_impl_.exp_->IsInitialized()) return false; |
12381 | 4.89k | } |
12382 | 4.89k | return true; |
12383 | 4.89k | } |
12384 | | |
12385 | 0 | void Expression_UnaryOpExp::InternalSwap(Expression_UnaryOpExp* other) { |
12386 | 0 | using std::swap; |
12387 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
12388 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
12389 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
12390 | 0 | PROTOBUF_FIELD_OFFSET(Expression_UnaryOpExp, _impl_.exp_) |
12391 | 0 | + sizeof(Expression_UnaryOpExp::_impl_.exp_) |
12392 | 0 | - PROTOBUF_FIELD_OFFSET(Expression_UnaryOpExp, _impl_.unop_)>( |
12393 | 0 | reinterpret_cast<char*>(&_impl_.unop_), |
12394 | 0 | reinterpret_cast<char*>(&other->_impl_.unop_)); |
12395 | 0 | } |
12396 | | |
12397 | 59.2k | ::PROTOBUF_NAMESPACE_ID::Metadata Expression_UnaryOpExp::GetMetadata() const { |
12398 | 59.2k | return ::_pbi::AssignDescriptors( |
12399 | 59.2k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
12400 | 59.2k | file_level_metadata_lua_5fgrammar_2eproto[34]); |
12401 | 59.2k | } |
12402 | | |
12403 | | // =================================================================== |
12404 | | |
12405 | | class Expression::_Internal { |
12406 | | public: |
12407 | | static const ::lua_grammar::Expression_AnonFunc& function(const Expression* msg); |
12408 | | static const ::lua_grammar::PrefixExpression& prefixexp(const Expression* msg); |
12409 | | static const ::lua_grammar::TableConstructor& tableconstructor(const Expression* msg); |
12410 | | static const ::lua_grammar::Expression_ExpBinaryOpExp& binary(const Expression* msg); |
12411 | | static const ::lua_grammar::Expression_UnaryOpExp& unary(const Expression* msg); |
12412 | | }; |
12413 | | |
12414 | | const ::lua_grammar::Expression_AnonFunc& |
12415 | 0 | Expression::_Internal::function(const Expression* msg) { |
12416 | 0 | return *msg->_impl_.expr_oneof_.function_; |
12417 | 0 | } |
12418 | | const ::lua_grammar::PrefixExpression& |
12419 | 0 | Expression::_Internal::prefixexp(const Expression* msg) { |
12420 | 0 | return *msg->_impl_.expr_oneof_.prefixexp_; |
12421 | 0 | } |
12422 | | const ::lua_grammar::TableConstructor& |
12423 | 0 | Expression::_Internal::tableconstructor(const Expression* msg) { |
12424 | 0 | return *msg->_impl_.expr_oneof_.tableconstructor_; |
12425 | 0 | } |
12426 | | const ::lua_grammar::Expression_ExpBinaryOpExp& |
12427 | 0 | Expression::_Internal::binary(const Expression* msg) { |
12428 | 0 | return *msg->_impl_.expr_oneof_.binary_; |
12429 | 0 | } |
12430 | | const ::lua_grammar::Expression_UnaryOpExp& |
12431 | 0 | Expression::_Internal::unary(const Expression* msg) { |
12432 | 0 | return *msg->_impl_.expr_oneof_.unary_; |
12433 | 0 | } |
12434 | 0 | void Expression::set_allocated_function(::lua_grammar::Expression_AnonFunc* function) { |
12435 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12436 | 0 | clear_expr_oneof(); |
12437 | 0 | if (function) { |
12438 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12439 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(function); |
12440 | 0 | if (message_arena != submessage_arena) { |
12441 | 0 | function = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12442 | 0 | message_arena, function, submessage_arena); |
12443 | 0 | } |
12444 | 0 | set_has_function(); |
12445 | 0 | _impl_.expr_oneof_.function_ = function; |
12446 | 0 | } |
12447 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.function) |
12448 | 0 | } |
12449 | 0 | void Expression::set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp) { |
12450 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12451 | 0 | clear_expr_oneof(); |
12452 | 0 | if (prefixexp) { |
12453 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12454 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prefixexp); |
12455 | 0 | if (message_arena != submessage_arena) { |
12456 | 0 | prefixexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12457 | 0 | message_arena, prefixexp, submessage_arena); |
12458 | 0 | } |
12459 | 0 | set_has_prefixexp(); |
12460 | 0 | _impl_.expr_oneof_.prefixexp_ = prefixexp; |
12461 | 0 | } |
12462 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.prefixexp) |
12463 | 0 | } |
12464 | 0 | void Expression::set_allocated_tableconstructor(::lua_grammar::TableConstructor* tableconstructor) { |
12465 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12466 | 0 | clear_expr_oneof(); |
12467 | 0 | if (tableconstructor) { |
12468 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12469 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(tableconstructor); |
12470 | 0 | if (message_arena != submessage_arena) { |
12471 | 0 | tableconstructor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12472 | 0 | message_arena, tableconstructor, submessage_arena); |
12473 | 0 | } |
12474 | 0 | set_has_tableconstructor(); |
12475 | 0 | _impl_.expr_oneof_.tableconstructor_ = tableconstructor; |
12476 | 0 | } |
12477 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.tableconstructor) |
12478 | 0 | } |
12479 | 0 | void Expression::set_allocated_binary(::lua_grammar::Expression_ExpBinaryOpExp* binary) { |
12480 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12481 | 0 | clear_expr_oneof(); |
12482 | 0 | if (binary) { |
12483 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12484 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(binary); |
12485 | 0 | if (message_arena != submessage_arena) { |
12486 | 0 | binary = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12487 | 0 | message_arena, binary, submessage_arena); |
12488 | 0 | } |
12489 | 0 | set_has_binary(); |
12490 | 0 | _impl_.expr_oneof_.binary_ = binary; |
12491 | 0 | } |
12492 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.binary) |
12493 | 0 | } |
12494 | 0 | void Expression::set_allocated_unary(::lua_grammar::Expression_UnaryOpExp* unary) { |
12495 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12496 | 0 | clear_expr_oneof(); |
12497 | 0 | if (unary) { |
12498 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12499 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unary); |
12500 | 0 | if (message_arena != submessage_arena) { |
12501 | 0 | unary = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12502 | 0 | message_arena, unary, submessage_arena); |
12503 | 0 | } |
12504 | 0 | set_has_unary(); |
12505 | 0 | _impl_.expr_oneof_.unary_ = unary; |
12506 | 0 | } |
12507 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.unary) |
12508 | 0 | } |
12509 | | Expression::Expression(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
12510 | | bool is_message_owned) |
12511 | 139k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
12512 | 139k | SharedCtor(arena, is_message_owned); |
12513 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Expression) |
12514 | 139k | } |
12515 | | Expression::Expression(const Expression& from) |
12516 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
12517 | 0 | Expression* const _this = this; (void)_this; |
12518 | 0 | new (&_impl_) Impl_{ |
12519 | 0 | decltype(_impl_.expr_oneof_){} |
12520 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
12521 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
12522 | |
|
12523 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
12524 | 0 | clear_has_expr_oneof(); |
12525 | 0 | switch (from.expr_oneof_case()) { |
12526 | 0 | case kNil: { |
12527 | 0 | _this->_internal_set_nil(from._internal_nil()); |
12528 | 0 | break; |
12529 | 0 | } |
12530 | 0 | case kFalse: { |
12531 | 0 | _this->_internal_set_false_(from._internal_false_()); |
12532 | 0 | break; |
12533 | 0 | } |
12534 | 0 | case kTrue: { |
12535 | 0 | _this->_internal_set_true_(from._internal_true_()); |
12536 | 0 | break; |
12537 | 0 | } |
12538 | 0 | case kNumber: { |
12539 | 0 | _this->_internal_set_number(from._internal_number()); |
12540 | 0 | break; |
12541 | 0 | } |
12542 | 0 | case kStr: { |
12543 | 0 | _this->_internal_set_str(from._internal_str()); |
12544 | 0 | break; |
12545 | 0 | } |
12546 | 0 | case kEllipsis: { |
12547 | 0 | _this->_internal_set_ellipsis(from._internal_ellipsis()); |
12548 | 0 | break; |
12549 | 0 | } |
12550 | 0 | case kFunction: { |
12551 | 0 | _this->_internal_mutable_function()->::lua_grammar::Expression_AnonFunc::MergeFrom( |
12552 | 0 | from._internal_function()); |
12553 | 0 | break; |
12554 | 0 | } |
12555 | 0 | case kPrefixexp: { |
12556 | 0 | _this->_internal_mutable_prefixexp()->::lua_grammar::PrefixExpression::MergeFrom( |
12557 | 0 | from._internal_prefixexp()); |
12558 | 0 | break; |
12559 | 0 | } |
12560 | 0 | case kTableconstructor: { |
12561 | 0 | _this->_internal_mutable_tableconstructor()->::lua_grammar::TableConstructor::MergeFrom( |
12562 | 0 | from._internal_tableconstructor()); |
12563 | 0 | break; |
12564 | 0 | } |
12565 | 0 | case kBinary: { |
12566 | 0 | _this->_internal_mutable_binary()->::lua_grammar::Expression_ExpBinaryOpExp::MergeFrom( |
12567 | 0 | from._internal_binary()); |
12568 | 0 | break; |
12569 | 0 | } |
12570 | 0 | case kUnary: { |
12571 | 0 | _this->_internal_mutable_unary()->::lua_grammar::Expression_UnaryOpExp::MergeFrom( |
12572 | 0 | from._internal_unary()); |
12573 | 0 | break; |
12574 | 0 | } |
12575 | 0 | case EXPR_ONEOF_NOT_SET: { |
12576 | 0 | break; |
12577 | 0 | } |
12578 | 0 | } |
12579 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Expression) |
12580 | 0 | } |
12581 | | |
12582 | | inline void Expression::SharedCtor( |
12583 | 139k | ::_pb::Arena* arena, bool is_message_owned) { |
12584 | 139k | (void)arena; |
12585 | 139k | (void)is_message_owned; |
12586 | 139k | new (&_impl_) Impl_{ |
12587 | 139k | decltype(_impl_.expr_oneof_){} |
12588 | 139k | , /*decltype(_impl_._cached_size_)*/{} |
12589 | 139k | , /*decltype(_impl_._oneof_case_)*/{} |
12590 | 139k | }; |
12591 | 139k | clear_has_expr_oneof(); |
12592 | 139k | } |
12593 | | |
12594 | 139k | Expression::~Expression() { |
12595 | | // @@protoc_insertion_point(destructor:lua_grammar.Expression) |
12596 | 139k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
12597 | 0 | (void)arena; |
12598 | 0 | return; |
12599 | 0 | } |
12600 | 139k | SharedDtor(); |
12601 | 139k | } |
12602 | | |
12603 | 139k | inline void Expression::SharedDtor() { |
12604 | 139k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
12605 | 139k | if (has_expr_oneof()) { |
12606 | 84.7k | clear_expr_oneof(); |
12607 | 84.7k | } |
12608 | 139k | } |
12609 | | |
12610 | 0 | void Expression::SetCachedSize(int size) const { |
12611 | 0 | _impl_._cached_size_.Set(size); |
12612 | 0 | } |
12613 | | |
12614 | 86.2k | void Expression::clear_expr_oneof() { |
12615 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.Expression) |
12616 | 86.2k | switch (expr_oneof_case()) { |
12617 | 3.31k | case kNil: { |
12618 | | // No need to clear |
12619 | 3.31k | break; |
12620 | 0 | } |
12621 | 1.74k | case kFalse: { |
12622 | | // No need to clear |
12623 | 1.74k | break; |
12624 | 0 | } |
12625 | 2.61k | case kTrue: { |
12626 | | // No need to clear |
12627 | 2.61k | break; |
12628 | 0 | } |
12629 | 13.1k | case kNumber: { |
12630 | | // No need to clear |
12631 | 13.1k | break; |
12632 | 0 | } |
12633 | 3.50k | case kStr: { |
12634 | 3.50k | _impl_.expr_oneof_.str_.Destroy(); |
12635 | 3.50k | break; |
12636 | 0 | } |
12637 | 2.72k | case kEllipsis: { |
12638 | 2.72k | _impl_.expr_oneof_.ellipsis_.Destroy(); |
12639 | 2.72k | break; |
12640 | 0 | } |
12641 | 13.1k | case kFunction: { |
12642 | 13.1k | if (GetArenaForAllocation() == nullptr) { |
12643 | 13.1k | delete _impl_.expr_oneof_.function_; |
12644 | 13.1k | } |
12645 | 13.1k | break; |
12646 | 0 | } |
12647 | 15.3k | case kPrefixexp: { |
12648 | 15.3k | if (GetArenaForAllocation() == nullptr) { |
12649 | 15.3k | delete _impl_.expr_oneof_.prefixexp_; |
12650 | 15.3k | } |
12651 | 15.3k | break; |
12652 | 0 | } |
12653 | 5.22k | case kTableconstructor: { |
12654 | 5.22k | if (GetArenaForAllocation() == nullptr) { |
12655 | 5.22k | delete _impl_.expr_oneof_.tableconstructor_; |
12656 | 5.22k | } |
12657 | 5.22k | break; |
12658 | 0 | } |
12659 | 18.9k | case kBinary: { |
12660 | 18.9k | if (GetArenaForAllocation() == nullptr) { |
12661 | 18.9k | delete _impl_.expr_oneof_.binary_; |
12662 | 18.9k | } |
12663 | 18.9k | break; |
12664 | 0 | } |
12665 | 4.99k | case kUnary: { |
12666 | 4.99k | if (GetArenaForAllocation() == nullptr) { |
12667 | 4.99k | delete _impl_.expr_oneof_.unary_; |
12668 | 4.99k | } |
12669 | 4.99k | break; |
12670 | 0 | } |
12671 | 1.46k | case EXPR_ONEOF_NOT_SET: { |
12672 | 1.46k | break; |
12673 | 0 | } |
12674 | 86.2k | } |
12675 | 86.2k | _impl_._oneof_case_[0] = EXPR_ONEOF_NOT_SET; |
12676 | 86.2k | } |
12677 | | |
12678 | | |
12679 | 1.46k | void Expression::Clear() { |
12680 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Expression) |
12681 | 1.46k | uint32_t cached_has_bits = 0; |
12682 | | // Prevent compiler warnings about cached_has_bits being unused |
12683 | 1.46k | (void) cached_has_bits; |
12684 | | |
12685 | 1.46k | clear_expr_oneof(); |
12686 | 1.46k | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
12687 | 1.46k | } |
12688 | | |
12689 | 0 | const char* Expression::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
12690 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
12691 | 0 | while (!ctx->Done(&ptr)) { |
12692 | 0 | uint32_t tag; |
12693 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
12694 | 0 | switch (tag >> 3) { |
12695 | | // uint32 nil = 1; |
12696 | 0 | case 1: |
12697 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
12698 | 0 | _internal_set_nil(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
12699 | 0 | CHK_(ptr); |
12700 | 0 | } else |
12701 | 0 | goto handle_unusual; |
12702 | 0 | continue; |
12703 | | // uint32 false = 2; |
12704 | 0 | case 2: |
12705 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
12706 | 0 | _internal_set_false_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
12707 | 0 | CHK_(ptr); |
12708 | 0 | } else |
12709 | 0 | goto handle_unusual; |
12710 | 0 | continue; |
12711 | | // uint32 true = 3; |
12712 | 0 | case 3: |
12713 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
12714 | 0 | _internal_set_true_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
12715 | 0 | CHK_(ptr); |
12716 | 0 | } else |
12717 | 0 | goto handle_unusual; |
12718 | 0 | continue; |
12719 | | // double number = 4; |
12720 | 0 | case 4: |
12721 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) { |
12722 | 0 | _internal_set_number(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr)); |
12723 | 0 | ptr += sizeof(double); |
12724 | 0 | } else |
12725 | 0 | goto handle_unusual; |
12726 | 0 | continue; |
12727 | | // string str = 5; |
12728 | 0 | case 5: |
12729 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { |
12730 | 0 | auto str = _internal_mutable_str(); |
12731 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
12732 | 0 | CHK_(ptr); |
12733 | 0 | #ifndef NDEBUG |
12734 | 0 | ::_pbi::VerifyUTF8(str, "lua_grammar.Expression.str"); |
12735 | 0 | #endif // !NDEBUG |
12736 | 0 | } else |
12737 | 0 | goto handle_unusual; |
12738 | 0 | continue; |
12739 | | // string ellipsis = 6; |
12740 | 0 | case 6: |
12741 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { |
12742 | 0 | auto str = _internal_mutable_ellipsis(); |
12743 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
12744 | 0 | CHK_(ptr); |
12745 | 0 | #ifndef NDEBUG |
12746 | 0 | ::_pbi::VerifyUTF8(str, "lua_grammar.Expression.ellipsis"); |
12747 | 0 | #endif // !NDEBUG |
12748 | 0 | } else |
12749 | 0 | goto handle_unusual; |
12750 | 0 | continue; |
12751 | | // .lua_grammar.Expression.AnonFunc function = 7; |
12752 | 0 | case 7: |
12753 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { |
12754 | 0 | ptr = ctx->ParseMessage(_internal_mutable_function(), ptr); |
12755 | 0 | CHK_(ptr); |
12756 | 0 | } else |
12757 | 0 | goto handle_unusual; |
12758 | 0 | continue; |
12759 | | // .lua_grammar.PrefixExpression prefixexp = 8; |
12760 | 0 | case 8: |
12761 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { |
12762 | 0 | ptr = ctx->ParseMessage(_internal_mutable_prefixexp(), ptr); |
12763 | 0 | CHK_(ptr); |
12764 | 0 | } else |
12765 | 0 | goto handle_unusual; |
12766 | 0 | continue; |
12767 | | // .lua_grammar.TableConstructor tableconstructor = 9; |
12768 | 0 | case 9: |
12769 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { |
12770 | 0 | ptr = ctx->ParseMessage(_internal_mutable_tableconstructor(), ptr); |
12771 | 0 | CHK_(ptr); |
12772 | 0 | } else |
12773 | 0 | goto handle_unusual; |
12774 | 0 | continue; |
12775 | | // .lua_grammar.Expression.ExpBinaryOpExp binary = 10; |
12776 | 0 | case 10: |
12777 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { |
12778 | 0 | ptr = ctx->ParseMessage(_internal_mutable_binary(), ptr); |
12779 | 0 | CHK_(ptr); |
12780 | 0 | } else |
12781 | 0 | goto handle_unusual; |
12782 | 0 | continue; |
12783 | | // .lua_grammar.Expression.UnaryOpExp unary = 11; |
12784 | 0 | case 11: |
12785 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { |
12786 | 0 | ptr = ctx->ParseMessage(_internal_mutable_unary(), ptr); |
12787 | 0 | CHK_(ptr); |
12788 | 0 | } else |
12789 | 0 | goto handle_unusual; |
12790 | 0 | continue; |
12791 | 0 | default: |
12792 | 0 | goto handle_unusual; |
12793 | 0 | } // switch |
12794 | 0 | handle_unusual: |
12795 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
12796 | 0 | CHK_(ptr); |
12797 | 0 | ctx->SetLastTag(tag); |
12798 | 0 | goto message_done; |
12799 | 0 | } |
12800 | 0 | ptr = UnknownFieldParse( |
12801 | 0 | tag, |
12802 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
12803 | 0 | ptr, ctx); |
12804 | 0 | CHK_(ptr != nullptr); |
12805 | 0 | } // while |
12806 | 0 | message_done: |
12807 | 0 | return ptr; |
12808 | 0 | failure: |
12809 | 0 | ptr = nullptr; |
12810 | 0 | goto message_done; |
12811 | 0 | #undef CHK_ |
12812 | 0 | } |
12813 | | |
12814 | | uint8_t* Expression::_InternalSerialize( |
12815 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
12816 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Expression) |
12817 | 0 | uint32_t cached_has_bits = 0; |
12818 | 0 | (void) cached_has_bits; |
12819 | |
|
12820 | 0 | switch (expr_oneof_case()) { |
12821 | 0 | case kNil: { |
12822 | 0 | target = stream->EnsureSpace(target); |
12823 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_nil(), target); |
12824 | 0 | break; |
12825 | 0 | } |
12826 | 0 | case kFalse: { |
12827 | 0 | target = stream->EnsureSpace(target); |
12828 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_false_(), target); |
12829 | 0 | break; |
12830 | 0 | } |
12831 | 0 | case kTrue: { |
12832 | 0 | target = stream->EnsureSpace(target); |
12833 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_true_(), target); |
12834 | 0 | break; |
12835 | 0 | } |
12836 | 0 | case kNumber: { |
12837 | 0 | target = stream->EnsureSpace(target); |
12838 | 0 | target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_number(), target); |
12839 | 0 | break; |
12840 | 0 | } |
12841 | 0 | case kStr: { |
12842 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
12843 | 0 | this->_internal_str().data(), static_cast<int>(this->_internal_str().length()), |
12844 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
12845 | 0 | "lua_grammar.Expression.str"); |
12846 | 0 | target = stream->WriteStringMaybeAliased( |
12847 | 0 | 5, this->_internal_str(), target); |
12848 | 0 | break; |
12849 | 0 | } |
12850 | 0 | case kEllipsis: { |
12851 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
12852 | 0 | this->_internal_ellipsis().data(), static_cast<int>(this->_internal_ellipsis().length()), |
12853 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
12854 | 0 | "lua_grammar.Expression.ellipsis"); |
12855 | 0 | target = stream->WriteStringMaybeAliased( |
12856 | 0 | 6, this->_internal_ellipsis(), target); |
12857 | 0 | break; |
12858 | 0 | } |
12859 | 0 | case kFunction: { |
12860 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
12861 | 0 | InternalWriteMessage(7, _Internal::function(this), |
12862 | 0 | _Internal::function(this).GetCachedSize(), target, stream); |
12863 | 0 | break; |
12864 | 0 | } |
12865 | 0 | case kPrefixexp: { |
12866 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
12867 | 0 | InternalWriteMessage(8, _Internal::prefixexp(this), |
12868 | 0 | _Internal::prefixexp(this).GetCachedSize(), target, stream); |
12869 | 0 | break; |
12870 | 0 | } |
12871 | 0 | case kTableconstructor: { |
12872 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
12873 | 0 | InternalWriteMessage(9, _Internal::tableconstructor(this), |
12874 | 0 | _Internal::tableconstructor(this).GetCachedSize(), target, stream); |
12875 | 0 | break; |
12876 | 0 | } |
12877 | 0 | case kBinary: { |
12878 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
12879 | 0 | InternalWriteMessage(10, _Internal::binary(this), |
12880 | 0 | _Internal::binary(this).GetCachedSize(), target, stream); |
12881 | 0 | break; |
12882 | 0 | } |
12883 | 0 | case kUnary: { |
12884 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
12885 | 0 | InternalWriteMessage(11, _Internal::unary(this), |
12886 | 0 | _Internal::unary(this).GetCachedSize(), target, stream); |
12887 | 0 | break; |
12888 | 0 | } |
12889 | 0 | default: ; |
12890 | 0 | } |
12891 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
12892 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
12893 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
12894 | 0 | } |
12895 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Expression) |
12896 | 0 | return target; |
12897 | 0 | } |
12898 | | |
12899 | 0 | size_t Expression::ByteSizeLong() const { |
12900 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Expression) |
12901 | 0 | size_t total_size = 0; |
12902 | |
|
12903 | 0 | uint32_t cached_has_bits = 0; |
12904 | | // Prevent compiler warnings about cached_has_bits being unused |
12905 | 0 | (void) cached_has_bits; |
12906 | |
|
12907 | 0 | switch (expr_oneof_case()) { |
12908 | | // uint32 nil = 1; |
12909 | 0 | case kNil: { |
12910 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_nil()); |
12911 | 0 | break; |
12912 | 0 | } |
12913 | | // uint32 false = 2; |
12914 | 0 | case kFalse: { |
12915 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_false_()); |
12916 | 0 | break; |
12917 | 0 | } |
12918 | | // uint32 true = 3; |
12919 | 0 | case kTrue: { |
12920 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_true_()); |
12921 | 0 | break; |
12922 | 0 | } |
12923 | | // double number = 4; |
12924 | 0 | case kNumber: { |
12925 | 0 | total_size += 1 + 8; |
12926 | 0 | break; |
12927 | 0 | } |
12928 | | // string str = 5; |
12929 | 0 | case kStr: { |
12930 | 0 | total_size += 1 + |
12931 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
12932 | 0 | this->_internal_str()); |
12933 | 0 | break; |
12934 | 0 | } |
12935 | | // string ellipsis = 6; |
12936 | 0 | case kEllipsis: { |
12937 | 0 | total_size += 1 + |
12938 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
12939 | 0 | this->_internal_ellipsis()); |
12940 | 0 | break; |
12941 | 0 | } |
12942 | | // .lua_grammar.Expression.AnonFunc function = 7; |
12943 | 0 | case kFunction: { |
12944 | 0 | total_size += 1 + |
12945 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12946 | 0 | *_impl_.expr_oneof_.function_); |
12947 | 0 | break; |
12948 | 0 | } |
12949 | | // .lua_grammar.PrefixExpression prefixexp = 8; |
12950 | 0 | case kPrefixexp: { |
12951 | 0 | total_size += 1 + |
12952 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12953 | 0 | *_impl_.expr_oneof_.prefixexp_); |
12954 | 0 | break; |
12955 | 0 | } |
12956 | | // .lua_grammar.TableConstructor tableconstructor = 9; |
12957 | 0 | case kTableconstructor: { |
12958 | 0 | total_size += 1 + |
12959 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12960 | 0 | *_impl_.expr_oneof_.tableconstructor_); |
12961 | 0 | break; |
12962 | 0 | } |
12963 | | // .lua_grammar.Expression.ExpBinaryOpExp binary = 10; |
12964 | 0 | case kBinary: { |
12965 | 0 | total_size += 1 + |
12966 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12967 | 0 | *_impl_.expr_oneof_.binary_); |
12968 | 0 | break; |
12969 | 0 | } |
12970 | | // .lua_grammar.Expression.UnaryOpExp unary = 11; |
12971 | 0 | case kUnary: { |
12972 | 0 | total_size += 1 + |
12973 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
12974 | 0 | *_impl_.expr_oneof_.unary_); |
12975 | 0 | break; |
12976 | 0 | } |
12977 | 0 | case EXPR_ONEOF_NOT_SET: { |
12978 | 0 | break; |
12979 | 0 | } |
12980 | 0 | } |
12981 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
12982 | 0 | } |
12983 | | |
12984 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Expression::_class_data_ = { |
12985 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
12986 | | Expression::MergeImpl |
12987 | | }; |
12988 | 2.19k | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Expression::GetClassData() const { return &_class_data_; } |
12989 | | |
12990 | | |
12991 | 733 | void Expression::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
12992 | 733 | auto* const _this = static_cast<Expression*>(&to_msg); |
12993 | 733 | auto& from = static_cast<const Expression&>(from_msg); |
12994 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Expression) |
12995 | 733 | GOOGLE_DCHECK_NE(&from, _this); |
12996 | 733 | uint32_t cached_has_bits = 0; |
12997 | 733 | (void) cached_has_bits; |
12998 | | |
12999 | 733 | switch (from.expr_oneof_case()) { |
13000 | 0 | case kNil: { |
13001 | 0 | _this->_internal_set_nil(from._internal_nil()); |
13002 | 0 | break; |
13003 | 0 | } |
13004 | 0 | case kFalse: { |
13005 | 0 | _this->_internal_set_false_(from._internal_false_()); |
13006 | 0 | break; |
13007 | 0 | } |
13008 | 0 | case kTrue: { |
13009 | 0 | _this->_internal_set_true_(from._internal_true_()); |
13010 | 0 | break; |
13011 | 0 | } |
13012 | 0 | case kNumber: { |
13013 | 0 | _this->_internal_set_number(from._internal_number()); |
13014 | 0 | break; |
13015 | 0 | } |
13016 | 0 | case kStr: { |
13017 | 0 | _this->_internal_set_str(from._internal_str()); |
13018 | 0 | break; |
13019 | 0 | } |
13020 | 0 | case kEllipsis: { |
13021 | 0 | _this->_internal_set_ellipsis(from._internal_ellipsis()); |
13022 | 0 | break; |
13023 | 0 | } |
13024 | 0 | case kFunction: { |
13025 | 0 | _this->_internal_mutable_function()->::lua_grammar::Expression_AnonFunc::MergeFrom( |
13026 | 0 | from._internal_function()); |
13027 | 0 | break; |
13028 | 0 | } |
13029 | 0 | case kPrefixexp: { |
13030 | 0 | _this->_internal_mutable_prefixexp()->::lua_grammar::PrefixExpression::MergeFrom( |
13031 | 0 | from._internal_prefixexp()); |
13032 | 0 | break; |
13033 | 0 | } |
13034 | 0 | case kTableconstructor: { |
13035 | 0 | _this->_internal_mutable_tableconstructor()->::lua_grammar::TableConstructor::MergeFrom( |
13036 | 0 | from._internal_tableconstructor()); |
13037 | 0 | break; |
13038 | 0 | } |
13039 | 0 | case kBinary: { |
13040 | 0 | _this->_internal_mutable_binary()->::lua_grammar::Expression_ExpBinaryOpExp::MergeFrom( |
13041 | 0 | from._internal_binary()); |
13042 | 0 | break; |
13043 | 0 | } |
13044 | 0 | case kUnary: { |
13045 | 0 | _this->_internal_mutable_unary()->::lua_grammar::Expression_UnaryOpExp::MergeFrom( |
13046 | 0 | from._internal_unary()); |
13047 | 0 | break; |
13048 | 0 | } |
13049 | 733 | case EXPR_ONEOF_NOT_SET: { |
13050 | 733 | break; |
13051 | 0 | } |
13052 | 733 | } |
13053 | 733 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13054 | 733 | } |
13055 | | |
13056 | 0 | void Expression::CopyFrom(const Expression& from) { |
13057 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Expression) |
13058 | 0 | if (&from == this) return; |
13059 | 0 | Clear(); |
13060 | 0 | MergeFrom(from); |
13061 | 0 | } |
13062 | | |
13063 | 134k | bool Expression::IsInitialized() const { |
13064 | 134k | switch (expr_oneof_case()) { |
13065 | 3.02k | case kNil: { |
13066 | 3.02k | break; |
13067 | 0 | } |
13068 | 1.68k | case kFalse: { |
13069 | 1.68k | break; |
13070 | 0 | } |
13071 | 2.36k | case kTrue: { |
13072 | 2.36k | break; |
13073 | 0 | } |
13074 | 12.1k | case kNumber: { |
13075 | 12.1k | break; |
13076 | 0 | } |
13077 | 3.48k | case kStr: { |
13078 | 3.48k | break; |
13079 | 0 | } |
13080 | 2.53k | case kEllipsis: { |
13081 | 2.53k | break; |
13082 | 0 | } |
13083 | 13.0k | case kFunction: { |
13084 | 13.0k | if (_internal_has_function()) { |
13085 | 13.0k | if (!_impl_.expr_oneof_.function_->IsInitialized()) return false; |
13086 | 13.0k | } |
13087 | 13.0k | break; |
13088 | 13.0k | } |
13089 | 15.0k | case kPrefixexp: { |
13090 | 15.0k | if (_internal_has_prefixexp()) { |
13091 | 15.0k | if (!_impl_.expr_oneof_.prefixexp_->IsInitialized()) return false; |
13092 | 15.0k | } |
13093 | 15.0k | break; |
13094 | 15.0k | } |
13095 | 15.0k | case kTableconstructor: { |
13096 | 5.18k | if (_internal_has_tableconstructor()) { |
13097 | 5.18k | if (!_impl_.expr_oneof_.tableconstructor_->IsInitialized()) return false; |
13098 | 5.18k | } |
13099 | 5.18k | break; |
13100 | 5.18k | } |
13101 | 18.1k | case kBinary: { |
13102 | 18.1k | if (_internal_has_binary()) { |
13103 | 18.1k | if (!_impl_.expr_oneof_.binary_->IsInitialized()) return false; |
13104 | 18.1k | } |
13105 | 18.1k | break; |
13106 | 18.1k | } |
13107 | 18.1k | case kUnary: { |
13108 | 4.89k | if (_internal_has_unary()) { |
13109 | 4.89k | if (!_impl_.expr_oneof_.unary_->IsInitialized()) return false; |
13110 | 4.89k | } |
13111 | 4.89k | break; |
13112 | 4.89k | } |
13113 | 52.4k | case EXPR_ONEOF_NOT_SET: { |
13114 | 52.4k | break; |
13115 | 4.89k | } |
13116 | 134k | } |
13117 | 134k | return true; |
13118 | 134k | } |
13119 | | |
13120 | 0 | void Expression::InternalSwap(Expression* other) { |
13121 | 0 | using std::swap; |
13122 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
13123 | 0 | swap(_impl_.expr_oneof_, other->_impl_.expr_oneof_); |
13124 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
13125 | 0 | } |
13126 | | |
13127 | 1.05M | ::PROTOBUF_NAMESPACE_ID::Metadata Expression::GetMetadata() const { |
13128 | 1.05M | return ::_pbi::AssignDescriptors( |
13129 | 1.05M | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
13130 | 1.05M | file_level_metadata_lua_5fgrammar_2eproto[35]); |
13131 | 1.05M | } |
13132 | | |
13133 | | // =================================================================== |
13134 | | |
13135 | | class TableConstructor::_Internal { |
13136 | | public: |
13137 | | using HasBits = decltype(std::declval<TableConstructor>()._impl_._has_bits_); |
13138 | | static const ::lua_grammar::FieldList& fieldlist(const TableConstructor* msg); |
13139 | 0 | static void set_has_fieldlist(HasBits* has_bits) { |
13140 | 0 | (*has_bits)[0] |= 1u; |
13141 | 0 | } |
13142 | | }; |
13143 | | |
13144 | | const ::lua_grammar::FieldList& |
13145 | 0 | TableConstructor::_Internal::fieldlist(const TableConstructor* msg) { |
13146 | 0 | return *msg->_impl_.fieldlist_; |
13147 | 0 | } |
13148 | | TableConstructor::TableConstructor(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
13149 | | bool is_message_owned) |
13150 | 5.50k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
13151 | 5.50k | SharedCtor(arena, is_message_owned); |
13152 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.TableConstructor) |
13153 | 5.50k | } |
13154 | | TableConstructor::TableConstructor(const TableConstructor& from) |
13155 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
13156 | 0 | TableConstructor* const _this = this; (void)_this; |
13157 | 0 | new (&_impl_) Impl_{ |
13158 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
13159 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
13160 | 0 | , decltype(_impl_.fieldlist_){nullptr}}; |
13161 | |
|
13162 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13163 | 0 | if (from._internal_has_fieldlist()) { |
13164 | 0 | _this->_impl_.fieldlist_ = new ::lua_grammar::FieldList(*from._impl_.fieldlist_); |
13165 | 0 | } |
13166 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.TableConstructor) |
13167 | 0 | } |
13168 | | |
13169 | | inline void TableConstructor::SharedCtor( |
13170 | 5.50k | ::_pb::Arena* arena, bool is_message_owned) { |
13171 | 5.50k | (void)arena; |
13172 | 5.50k | (void)is_message_owned; |
13173 | 5.50k | new (&_impl_) Impl_{ |
13174 | 5.50k | decltype(_impl_._has_bits_){} |
13175 | 5.50k | , /*decltype(_impl_._cached_size_)*/{} |
13176 | 5.50k | , decltype(_impl_.fieldlist_){nullptr} |
13177 | 5.50k | }; |
13178 | 5.50k | } |
13179 | | |
13180 | 5.50k | TableConstructor::~TableConstructor() { |
13181 | | // @@protoc_insertion_point(destructor:lua_grammar.TableConstructor) |
13182 | 5.50k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
13183 | 0 | (void)arena; |
13184 | 0 | return; |
13185 | 0 | } |
13186 | 5.50k | SharedDtor(); |
13187 | 5.50k | } |
13188 | | |
13189 | 5.50k | inline void TableConstructor::SharedDtor() { |
13190 | 5.50k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
13191 | 5.50k | if (this != internal_default_instance()) delete _impl_.fieldlist_; |
13192 | 5.50k | } |
13193 | | |
13194 | 0 | void TableConstructor::SetCachedSize(int size) const { |
13195 | 0 | _impl_._cached_size_.Set(size); |
13196 | 0 | } |
13197 | | |
13198 | 0 | void TableConstructor::Clear() { |
13199 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.TableConstructor) |
13200 | 0 | uint32_t cached_has_bits = 0; |
13201 | | // Prevent compiler warnings about cached_has_bits being unused |
13202 | 0 | (void) cached_has_bits; |
13203 | |
|
13204 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13205 | 0 | if (cached_has_bits & 0x00000001u) { |
13206 | 0 | GOOGLE_DCHECK(_impl_.fieldlist_ != nullptr); |
13207 | 0 | _impl_.fieldlist_->Clear(); |
13208 | 0 | } |
13209 | 0 | _impl_._has_bits_.Clear(); |
13210 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
13211 | 0 | } |
13212 | | |
13213 | 0 | const char* TableConstructor::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
13214 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
13215 | 0 | _Internal::HasBits has_bits{}; |
13216 | 0 | while (!ctx->Done(&ptr)) { |
13217 | 0 | uint32_t tag; |
13218 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
13219 | 0 | switch (tag >> 3) { |
13220 | | // optional .lua_grammar.FieldList fieldlist = 1; |
13221 | 0 | case 1: |
13222 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
13223 | 0 | ptr = ctx->ParseMessage(_internal_mutable_fieldlist(), ptr); |
13224 | 0 | CHK_(ptr); |
13225 | 0 | } else |
13226 | 0 | goto handle_unusual; |
13227 | 0 | continue; |
13228 | 0 | default: |
13229 | 0 | goto handle_unusual; |
13230 | 0 | } // switch |
13231 | 0 | handle_unusual: |
13232 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
13233 | 0 | CHK_(ptr); |
13234 | 0 | ctx->SetLastTag(tag); |
13235 | 0 | goto message_done; |
13236 | 0 | } |
13237 | 0 | ptr = UnknownFieldParse( |
13238 | 0 | tag, |
13239 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
13240 | 0 | ptr, ctx); |
13241 | 0 | CHK_(ptr != nullptr); |
13242 | 0 | } // while |
13243 | 0 | message_done: |
13244 | 0 | _impl_._has_bits_.Or(has_bits); |
13245 | 0 | return ptr; |
13246 | 0 | failure: |
13247 | 0 | ptr = nullptr; |
13248 | 0 | goto message_done; |
13249 | 0 | #undef CHK_ |
13250 | 0 | } |
13251 | | |
13252 | | uint8_t* TableConstructor::_InternalSerialize( |
13253 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
13254 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.TableConstructor) |
13255 | 0 | uint32_t cached_has_bits = 0; |
13256 | 0 | (void) cached_has_bits; |
13257 | |
|
13258 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13259 | | // optional .lua_grammar.FieldList fieldlist = 1; |
13260 | 0 | if (cached_has_bits & 0x00000001u) { |
13261 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
13262 | 0 | InternalWriteMessage(1, _Internal::fieldlist(this), |
13263 | 0 | _Internal::fieldlist(this).GetCachedSize(), target, stream); |
13264 | 0 | } |
13265 | |
|
13266 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
13267 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
13268 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
13269 | 0 | } |
13270 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.TableConstructor) |
13271 | 0 | return target; |
13272 | 0 | } |
13273 | | |
13274 | 0 | size_t TableConstructor::ByteSizeLong() const { |
13275 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.TableConstructor) |
13276 | 0 | size_t total_size = 0; |
13277 | |
|
13278 | 0 | uint32_t cached_has_bits = 0; |
13279 | | // Prevent compiler warnings about cached_has_bits being unused |
13280 | 0 | (void) cached_has_bits; |
13281 | | |
13282 | | // optional .lua_grammar.FieldList fieldlist = 1; |
13283 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13284 | 0 | if (cached_has_bits & 0x00000001u) { |
13285 | 0 | total_size += 1 + |
13286 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
13287 | 0 | *_impl_.fieldlist_); |
13288 | 0 | } |
13289 | |
|
13290 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
13291 | 0 | } |
13292 | | |
13293 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TableConstructor::_class_data_ = { |
13294 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
13295 | | TableConstructor::MergeImpl |
13296 | | }; |
13297 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TableConstructor::GetClassData() const { return &_class_data_; } |
13298 | | |
13299 | | |
13300 | 0 | void TableConstructor::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
13301 | 0 | auto* const _this = static_cast<TableConstructor*>(&to_msg); |
13302 | 0 | auto& from = static_cast<const TableConstructor&>(from_msg); |
13303 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.TableConstructor) |
13304 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
13305 | 0 | uint32_t cached_has_bits = 0; |
13306 | 0 | (void) cached_has_bits; |
13307 | |
|
13308 | 0 | if (from._internal_has_fieldlist()) { |
13309 | 0 | _this->_internal_mutable_fieldlist()->::lua_grammar::FieldList::MergeFrom( |
13310 | 0 | from._internal_fieldlist()); |
13311 | 0 | } |
13312 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13313 | 0 | } |
13314 | | |
13315 | 0 | void TableConstructor::CopyFrom(const TableConstructor& from) { |
13316 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.TableConstructor) |
13317 | 0 | if (&from == this) return; |
13318 | 0 | Clear(); |
13319 | 0 | MergeFrom(from); |
13320 | 0 | } |
13321 | | |
13322 | 5.46k | bool TableConstructor::IsInitialized() const { |
13323 | 5.46k | if (_internal_has_fieldlist()) { |
13324 | 4.14k | if (!_impl_.fieldlist_->IsInitialized()) return false; |
13325 | 4.14k | } |
13326 | 5.46k | return true; |
13327 | 5.46k | } |
13328 | | |
13329 | 0 | void TableConstructor::InternalSwap(TableConstructor* other) { |
13330 | 0 | using std::swap; |
13331 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
13332 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
13333 | 0 | swap(_impl_.fieldlist_, other->_impl_.fieldlist_); |
13334 | 0 | } |
13335 | | |
13336 | 45.3k | ::PROTOBUF_NAMESPACE_ID::Metadata TableConstructor::GetMetadata() const { |
13337 | 45.3k | return ::_pbi::AssignDescriptors( |
13338 | 45.3k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
13339 | 45.3k | file_level_metadata_lua_5fgrammar_2eproto[36]); |
13340 | 45.3k | } |
13341 | | |
13342 | | // =================================================================== |
13343 | | |
13344 | | class FieldList_FieldWithFieldSep::_Internal { |
13345 | | public: |
13346 | | using HasBits = decltype(std::declval<FieldList_FieldWithFieldSep>()._impl_._has_bits_); |
13347 | | static const ::lua_grammar::Field& field(const FieldList_FieldWithFieldSep* msg); |
13348 | 0 | static void set_has_field(HasBits* has_bits) { |
13349 | 0 | (*has_bits)[0] |= 1u; |
13350 | 0 | } |
13351 | | static const ::lua_grammar::FieldSep& sep(const FieldList_FieldWithFieldSep* msg); |
13352 | 0 | static void set_has_sep(HasBits* has_bits) { |
13353 | 0 | (*has_bits)[0] |= 2u; |
13354 | 0 | } |
13355 | 3.79k | static bool MissingRequiredFields(const HasBits& has_bits) { |
13356 | 3.79k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
13357 | 3.79k | } |
13358 | | }; |
13359 | | |
13360 | | const ::lua_grammar::Field& |
13361 | 0 | FieldList_FieldWithFieldSep::_Internal::field(const FieldList_FieldWithFieldSep* msg) { |
13362 | 0 | return *msg->_impl_.field_; |
13363 | 0 | } |
13364 | | const ::lua_grammar::FieldSep& |
13365 | 0 | FieldList_FieldWithFieldSep::_Internal::sep(const FieldList_FieldWithFieldSep* msg) { |
13366 | 0 | return *msg->_impl_.sep_; |
13367 | 0 | } |
13368 | | FieldList_FieldWithFieldSep::FieldList_FieldWithFieldSep(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
13369 | | bool is_message_owned) |
13370 | 4.26k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
13371 | 4.26k | SharedCtor(arena, is_message_owned); |
13372 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FieldList.FieldWithFieldSep) |
13373 | 4.26k | } |
13374 | | FieldList_FieldWithFieldSep::FieldList_FieldWithFieldSep(const FieldList_FieldWithFieldSep& from) |
13375 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
13376 | 0 | FieldList_FieldWithFieldSep* const _this = this; (void)_this; |
13377 | 0 | new (&_impl_) Impl_{ |
13378 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
13379 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
13380 | 0 | , decltype(_impl_.field_){nullptr} |
13381 | 0 | , decltype(_impl_.sep_){nullptr}}; |
13382 | |
|
13383 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13384 | 0 | if (from._internal_has_field()) { |
13385 | 0 | _this->_impl_.field_ = new ::lua_grammar::Field(*from._impl_.field_); |
13386 | 0 | } |
13387 | 0 | if (from._internal_has_sep()) { |
13388 | 0 | _this->_impl_.sep_ = new ::lua_grammar::FieldSep(*from._impl_.sep_); |
13389 | 0 | } |
13390 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FieldList.FieldWithFieldSep) |
13391 | 0 | } |
13392 | | |
13393 | | inline void FieldList_FieldWithFieldSep::SharedCtor( |
13394 | 4.26k | ::_pb::Arena* arena, bool is_message_owned) { |
13395 | 4.26k | (void)arena; |
13396 | 4.26k | (void)is_message_owned; |
13397 | 4.26k | new (&_impl_) Impl_{ |
13398 | 4.26k | decltype(_impl_._has_bits_){} |
13399 | 4.26k | , /*decltype(_impl_._cached_size_)*/{} |
13400 | 4.26k | , decltype(_impl_.field_){nullptr} |
13401 | 4.26k | , decltype(_impl_.sep_){nullptr} |
13402 | 4.26k | }; |
13403 | 4.26k | } |
13404 | | |
13405 | 4.26k | FieldList_FieldWithFieldSep::~FieldList_FieldWithFieldSep() { |
13406 | | // @@protoc_insertion_point(destructor:lua_grammar.FieldList.FieldWithFieldSep) |
13407 | 4.26k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
13408 | 0 | (void)arena; |
13409 | 0 | return; |
13410 | 0 | } |
13411 | 4.26k | SharedDtor(); |
13412 | 4.26k | } |
13413 | | |
13414 | 4.26k | inline void FieldList_FieldWithFieldSep::SharedDtor() { |
13415 | 4.26k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
13416 | 4.26k | if (this != internal_default_instance()) delete _impl_.field_; |
13417 | 4.26k | if (this != internal_default_instance()) delete _impl_.sep_; |
13418 | 4.26k | } |
13419 | | |
13420 | 0 | void FieldList_FieldWithFieldSep::SetCachedSize(int size) const { |
13421 | 0 | _impl_._cached_size_.Set(size); |
13422 | 0 | } |
13423 | | |
13424 | 0 | void FieldList_FieldWithFieldSep::Clear() { |
13425 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FieldList.FieldWithFieldSep) |
13426 | 0 | uint32_t cached_has_bits = 0; |
13427 | | // Prevent compiler warnings about cached_has_bits being unused |
13428 | 0 | (void) cached_has_bits; |
13429 | |
|
13430 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13431 | 0 | if (cached_has_bits & 0x00000003u) { |
13432 | 0 | if (cached_has_bits & 0x00000001u) { |
13433 | 0 | GOOGLE_DCHECK(_impl_.field_ != nullptr); |
13434 | 0 | _impl_.field_->Clear(); |
13435 | 0 | } |
13436 | 0 | if (cached_has_bits & 0x00000002u) { |
13437 | 0 | GOOGLE_DCHECK(_impl_.sep_ != nullptr); |
13438 | 0 | _impl_.sep_->Clear(); |
13439 | 0 | } |
13440 | 0 | } |
13441 | 0 | _impl_._has_bits_.Clear(); |
13442 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
13443 | 0 | } |
13444 | | |
13445 | 0 | const char* FieldList_FieldWithFieldSep::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
13446 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
13447 | 0 | _Internal::HasBits has_bits{}; |
13448 | 0 | while (!ctx->Done(&ptr)) { |
13449 | 0 | uint32_t tag; |
13450 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
13451 | 0 | switch (tag >> 3) { |
13452 | | // required .lua_grammar.Field field = 1; |
13453 | 0 | case 1: |
13454 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
13455 | 0 | ptr = ctx->ParseMessage(_internal_mutable_field(), ptr); |
13456 | 0 | CHK_(ptr); |
13457 | 0 | } else |
13458 | 0 | goto handle_unusual; |
13459 | 0 | continue; |
13460 | | // required .lua_grammar.FieldSep sep = 2; |
13461 | 0 | case 2: |
13462 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
13463 | 0 | ptr = ctx->ParseMessage(_internal_mutable_sep(), ptr); |
13464 | 0 | CHK_(ptr); |
13465 | 0 | } else |
13466 | 0 | goto handle_unusual; |
13467 | 0 | continue; |
13468 | 0 | default: |
13469 | 0 | goto handle_unusual; |
13470 | 0 | } // switch |
13471 | 0 | handle_unusual: |
13472 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
13473 | 0 | CHK_(ptr); |
13474 | 0 | ctx->SetLastTag(tag); |
13475 | 0 | goto message_done; |
13476 | 0 | } |
13477 | 0 | ptr = UnknownFieldParse( |
13478 | 0 | tag, |
13479 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
13480 | 0 | ptr, ctx); |
13481 | 0 | CHK_(ptr != nullptr); |
13482 | 0 | } // while |
13483 | 0 | message_done: |
13484 | 0 | _impl_._has_bits_.Or(has_bits); |
13485 | 0 | return ptr; |
13486 | 0 | failure: |
13487 | 0 | ptr = nullptr; |
13488 | 0 | goto message_done; |
13489 | 0 | #undef CHK_ |
13490 | 0 | } |
13491 | | |
13492 | | uint8_t* FieldList_FieldWithFieldSep::_InternalSerialize( |
13493 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
13494 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FieldList.FieldWithFieldSep) |
13495 | 0 | uint32_t cached_has_bits = 0; |
13496 | 0 | (void) cached_has_bits; |
13497 | |
|
13498 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13499 | | // required .lua_grammar.Field field = 1; |
13500 | 0 | if (cached_has_bits & 0x00000001u) { |
13501 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
13502 | 0 | InternalWriteMessage(1, _Internal::field(this), |
13503 | 0 | _Internal::field(this).GetCachedSize(), target, stream); |
13504 | 0 | } |
13505 | | |
13506 | | // required .lua_grammar.FieldSep sep = 2; |
13507 | 0 | if (cached_has_bits & 0x00000002u) { |
13508 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
13509 | 0 | InternalWriteMessage(2, _Internal::sep(this), |
13510 | 0 | _Internal::sep(this).GetCachedSize(), target, stream); |
13511 | 0 | } |
13512 | |
|
13513 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
13514 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
13515 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
13516 | 0 | } |
13517 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FieldList.FieldWithFieldSep) |
13518 | 0 | return target; |
13519 | 0 | } |
13520 | | |
13521 | 0 | size_t FieldList_FieldWithFieldSep::RequiredFieldsByteSizeFallback() const { |
13522 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.FieldList.FieldWithFieldSep) |
13523 | 0 | size_t total_size = 0; |
13524 | |
|
13525 | 0 | if (_internal_has_field()) { |
13526 | | // required .lua_grammar.Field field = 1; |
13527 | 0 | total_size += 1 + |
13528 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
13529 | 0 | *_impl_.field_); |
13530 | 0 | } |
13531 | |
|
13532 | 0 | if (_internal_has_sep()) { |
13533 | | // required .lua_grammar.FieldSep sep = 2; |
13534 | 0 | total_size += 1 + |
13535 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
13536 | 0 | *_impl_.sep_); |
13537 | 0 | } |
13538 | |
|
13539 | 0 | return total_size; |
13540 | 0 | } |
13541 | 0 | size_t FieldList_FieldWithFieldSep::ByteSizeLong() const { |
13542 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FieldList.FieldWithFieldSep) |
13543 | 0 | size_t total_size = 0; |
13544 | |
|
13545 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
13546 | | // required .lua_grammar.Field field = 1; |
13547 | 0 | total_size += 1 + |
13548 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
13549 | 0 | *_impl_.field_); |
13550 | | |
13551 | | // required .lua_grammar.FieldSep sep = 2; |
13552 | 0 | total_size += 1 + |
13553 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
13554 | 0 | *_impl_.sep_); |
13555 | |
|
13556 | 0 | } else { |
13557 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
13558 | 0 | } |
13559 | 0 | uint32_t cached_has_bits = 0; |
13560 | | // Prevent compiler warnings about cached_has_bits being unused |
13561 | 0 | (void) cached_has_bits; |
13562 | |
|
13563 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
13564 | 0 | } |
13565 | | |
13566 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FieldList_FieldWithFieldSep::_class_data_ = { |
13567 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
13568 | | FieldList_FieldWithFieldSep::MergeImpl |
13569 | | }; |
13570 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldList_FieldWithFieldSep::GetClassData() const { return &_class_data_; } |
13571 | | |
13572 | | |
13573 | 0 | void FieldList_FieldWithFieldSep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
13574 | 0 | auto* const _this = static_cast<FieldList_FieldWithFieldSep*>(&to_msg); |
13575 | 0 | auto& from = static_cast<const FieldList_FieldWithFieldSep&>(from_msg); |
13576 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FieldList.FieldWithFieldSep) |
13577 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
13578 | 0 | uint32_t cached_has_bits = 0; |
13579 | 0 | (void) cached_has_bits; |
13580 | |
|
13581 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
13582 | 0 | if (cached_has_bits & 0x00000003u) { |
13583 | 0 | if (cached_has_bits & 0x00000001u) { |
13584 | 0 | _this->_internal_mutable_field()->::lua_grammar::Field::MergeFrom( |
13585 | 0 | from._internal_field()); |
13586 | 0 | } |
13587 | 0 | if (cached_has_bits & 0x00000002u) { |
13588 | 0 | _this->_internal_mutable_sep()->::lua_grammar::FieldSep::MergeFrom( |
13589 | 0 | from._internal_sep()); |
13590 | 0 | } |
13591 | 0 | } |
13592 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13593 | 0 | } |
13594 | | |
13595 | 0 | void FieldList_FieldWithFieldSep::CopyFrom(const FieldList_FieldWithFieldSep& from) { |
13596 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FieldList.FieldWithFieldSep) |
13597 | 0 | if (&from == this) return; |
13598 | 0 | Clear(); |
13599 | 0 | MergeFrom(from); |
13600 | 0 | } |
13601 | | |
13602 | 3.79k | bool FieldList_FieldWithFieldSep::IsInitialized() const { |
13603 | 3.79k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
13604 | 3.79k | if (_internal_has_field()) { |
13605 | 3.79k | if (!_impl_.field_->IsInitialized()) return false; |
13606 | 3.79k | } |
13607 | 3.79k | return true; |
13608 | 3.79k | } |
13609 | | |
13610 | 0 | void FieldList_FieldWithFieldSep::InternalSwap(FieldList_FieldWithFieldSep* other) { |
13611 | 0 | using std::swap; |
13612 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
13613 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
13614 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
13615 | 0 | PROTOBUF_FIELD_OFFSET(FieldList_FieldWithFieldSep, _impl_.sep_) |
13616 | 0 | + sizeof(FieldList_FieldWithFieldSep::_impl_.sep_) |
13617 | 0 | - PROTOBUF_FIELD_OFFSET(FieldList_FieldWithFieldSep, _impl_.field_)>( |
13618 | 0 | reinterpret_cast<char*>(&_impl_.field_), |
13619 | 0 | reinterpret_cast<char*>(&other->_impl_.field_)); |
13620 | 0 | } |
13621 | | |
13622 | 47.5k | ::PROTOBUF_NAMESPACE_ID::Metadata FieldList_FieldWithFieldSep::GetMetadata() const { |
13623 | 47.5k | return ::_pbi::AssignDescriptors( |
13624 | 47.5k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
13625 | 47.5k | file_level_metadata_lua_5fgrammar_2eproto[37]); |
13626 | 47.5k | } |
13627 | | |
13628 | | // =================================================================== |
13629 | | |
13630 | | class FieldList::_Internal { |
13631 | | public: |
13632 | | using HasBits = decltype(std::declval<FieldList>()._impl_._has_bits_); |
13633 | | static const ::lua_grammar::Field& firstfield(const FieldList* msg); |
13634 | 0 | static void set_has_firstfield(HasBits* has_bits) { |
13635 | 0 | (*has_bits)[0] |= 1u; |
13636 | 0 | } |
13637 | | static const ::lua_grammar::FieldSep& lastsep(const FieldList* msg); |
13638 | 0 | static void set_has_lastsep(HasBits* has_bits) { |
13639 | 0 | (*has_bits)[0] |= 2u; |
13640 | 0 | } |
13641 | 4.14k | static bool MissingRequiredFields(const HasBits& has_bits) { |
13642 | 4.14k | return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; |
13643 | 4.14k | } |
13644 | | }; |
13645 | | |
13646 | | const ::lua_grammar::Field& |
13647 | 0 | FieldList::_Internal::firstfield(const FieldList* msg) { |
13648 | 0 | return *msg->_impl_.firstfield_; |
13649 | 0 | } |
13650 | | const ::lua_grammar::FieldSep& |
13651 | 0 | FieldList::_Internal::lastsep(const FieldList* msg) { |
13652 | 0 | return *msg->_impl_.lastsep_; |
13653 | 0 | } |
13654 | | FieldList::FieldList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
13655 | | bool is_message_owned) |
13656 | 4.19k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
13657 | 4.19k | SharedCtor(arena, is_message_owned); |
13658 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FieldList) |
13659 | 4.19k | } |
13660 | | FieldList::FieldList(const FieldList& from) |
13661 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
13662 | 0 | FieldList* const _this = this; (void)_this; |
13663 | 0 | new (&_impl_) Impl_{ |
13664 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
13665 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
13666 | 0 | , decltype(_impl_.fields_){from._impl_.fields_} |
13667 | 0 | , decltype(_impl_.firstfield_){nullptr} |
13668 | 0 | , decltype(_impl_.lastsep_){nullptr}}; |
13669 | |
|
13670 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13671 | 0 | if (from._internal_has_firstfield()) { |
13672 | 0 | _this->_impl_.firstfield_ = new ::lua_grammar::Field(*from._impl_.firstfield_); |
13673 | 0 | } |
13674 | 0 | if (from._internal_has_lastsep()) { |
13675 | 0 | _this->_impl_.lastsep_ = new ::lua_grammar::FieldSep(*from._impl_.lastsep_); |
13676 | 0 | } |
13677 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FieldList) |
13678 | 0 | } |
13679 | | |
13680 | | inline void FieldList::SharedCtor( |
13681 | 4.19k | ::_pb::Arena* arena, bool is_message_owned) { |
13682 | 4.19k | (void)arena; |
13683 | 4.19k | (void)is_message_owned; |
13684 | 4.19k | new (&_impl_) Impl_{ |
13685 | 4.19k | decltype(_impl_._has_bits_){} |
13686 | 4.19k | , /*decltype(_impl_._cached_size_)*/{} |
13687 | 4.19k | , decltype(_impl_.fields_){arena} |
13688 | 4.19k | , decltype(_impl_.firstfield_){nullptr} |
13689 | 4.19k | , decltype(_impl_.lastsep_){nullptr} |
13690 | 4.19k | }; |
13691 | 4.19k | } |
13692 | | |
13693 | 4.19k | FieldList::~FieldList() { |
13694 | | // @@protoc_insertion_point(destructor:lua_grammar.FieldList) |
13695 | 4.19k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
13696 | 0 | (void)arena; |
13697 | 0 | return; |
13698 | 0 | } |
13699 | 4.19k | SharedDtor(); |
13700 | 4.19k | } |
13701 | | |
13702 | 4.19k | inline void FieldList::SharedDtor() { |
13703 | 4.19k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
13704 | 4.19k | _impl_.fields_.~RepeatedPtrField(); |
13705 | 4.19k | if (this != internal_default_instance()) delete _impl_.firstfield_; |
13706 | 4.19k | if (this != internal_default_instance()) delete _impl_.lastsep_; |
13707 | 4.19k | } |
13708 | | |
13709 | 0 | void FieldList::SetCachedSize(int size) const { |
13710 | 0 | _impl_._cached_size_.Set(size); |
13711 | 0 | } |
13712 | | |
13713 | 0 | void FieldList::Clear() { |
13714 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FieldList) |
13715 | 0 | uint32_t cached_has_bits = 0; |
13716 | | // Prevent compiler warnings about cached_has_bits being unused |
13717 | 0 | (void) cached_has_bits; |
13718 | |
|
13719 | 0 | _impl_.fields_.Clear(); |
13720 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13721 | 0 | if (cached_has_bits & 0x00000003u) { |
13722 | 0 | if (cached_has_bits & 0x00000001u) { |
13723 | 0 | GOOGLE_DCHECK(_impl_.firstfield_ != nullptr); |
13724 | 0 | _impl_.firstfield_->Clear(); |
13725 | 0 | } |
13726 | 0 | if (cached_has_bits & 0x00000002u) { |
13727 | 0 | GOOGLE_DCHECK(_impl_.lastsep_ != nullptr); |
13728 | 0 | _impl_.lastsep_->Clear(); |
13729 | 0 | } |
13730 | 0 | } |
13731 | 0 | _impl_._has_bits_.Clear(); |
13732 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
13733 | 0 | } |
13734 | | |
13735 | 0 | const char* FieldList::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
13736 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
13737 | 0 | _Internal::HasBits has_bits{}; |
13738 | 0 | while (!ctx->Done(&ptr)) { |
13739 | 0 | uint32_t tag; |
13740 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
13741 | 0 | switch (tag >> 3) { |
13742 | | // required .lua_grammar.Field firstField = 1; |
13743 | 0 | case 1: |
13744 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
13745 | 0 | ptr = ctx->ParseMessage(_internal_mutable_firstfield(), ptr); |
13746 | 0 | CHK_(ptr); |
13747 | 0 | } else |
13748 | 0 | goto handle_unusual; |
13749 | 0 | continue; |
13750 | | // repeated .lua_grammar.FieldList.FieldWithFieldSep fields = 2; |
13751 | 0 | case 2: |
13752 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
13753 | 0 | ptr -= 1; |
13754 | 0 | do { |
13755 | 0 | ptr += 1; |
13756 | 0 | ptr = ctx->ParseMessage(_internal_add_fields(), ptr); |
13757 | 0 | CHK_(ptr); |
13758 | 0 | if (!ctx->DataAvailable(ptr)) break; |
13759 | 0 | } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
13760 | 0 | } else |
13761 | 0 | goto handle_unusual; |
13762 | 0 | continue; |
13763 | | // optional .lua_grammar.FieldSep lastSep = 3; |
13764 | 0 | case 3: |
13765 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
13766 | 0 | ptr = ctx->ParseMessage(_internal_mutable_lastsep(), ptr); |
13767 | 0 | CHK_(ptr); |
13768 | 0 | } else |
13769 | 0 | goto handle_unusual; |
13770 | 0 | continue; |
13771 | 0 | default: |
13772 | 0 | goto handle_unusual; |
13773 | 0 | } // switch |
13774 | 0 | handle_unusual: |
13775 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
13776 | 0 | CHK_(ptr); |
13777 | 0 | ctx->SetLastTag(tag); |
13778 | 0 | goto message_done; |
13779 | 0 | } |
13780 | 0 | ptr = UnknownFieldParse( |
13781 | 0 | tag, |
13782 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
13783 | 0 | ptr, ctx); |
13784 | 0 | CHK_(ptr != nullptr); |
13785 | 0 | } // while |
13786 | 0 | message_done: |
13787 | 0 | _impl_._has_bits_.Or(has_bits); |
13788 | 0 | return ptr; |
13789 | 0 | failure: |
13790 | 0 | ptr = nullptr; |
13791 | 0 | goto message_done; |
13792 | 0 | #undef CHK_ |
13793 | 0 | } |
13794 | | |
13795 | | uint8_t* FieldList::_InternalSerialize( |
13796 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
13797 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FieldList) |
13798 | 0 | uint32_t cached_has_bits = 0; |
13799 | 0 | (void) cached_has_bits; |
13800 | |
|
13801 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13802 | | // required .lua_grammar.Field firstField = 1; |
13803 | 0 | if (cached_has_bits & 0x00000001u) { |
13804 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
13805 | 0 | InternalWriteMessage(1, _Internal::firstfield(this), |
13806 | 0 | _Internal::firstfield(this).GetCachedSize(), target, stream); |
13807 | 0 | } |
13808 | | |
13809 | | // repeated .lua_grammar.FieldList.FieldWithFieldSep fields = 2; |
13810 | 0 | for (unsigned i = 0, |
13811 | 0 | n = static_cast<unsigned>(this->_internal_fields_size()); i < n; i++) { |
13812 | 0 | const auto& repfield = this->_internal_fields(i); |
13813 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
13814 | 0 | InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); |
13815 | 0 | } |
13816 | | |
13817 | | // optional .lua_grammar.FieldSep lastSep = 3; |
13818 | 0 | if (cached_has_bits & 0x00000002u) { |
13819 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
13820 | 0 | InternalWriteMessage(3, _Internal::lastsep(this), |
13821 | 0 | _Internal::lastsep(this).GetCachedSize(), target, stream); |
13822 | 0 | } |
13823 | |
|
13824 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
13825 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
13826 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
13827 | 0 | } |
13828 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FieldList) |
13829 | 0 | return target; |
13830 | 0 | } |
13831 | | |
13832 | 0 | size_t FieldList::ByteSizeLong() const { |
13833 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FieldList) |
13834 | 0 | size_t total_size = 0; |
13835 | | |
13836 | | // required .lua_grammar.Field firstField = 1; |
13837 | 0 | if (_internal_has_firstfield()) { |
13838 | 0 | total_size += 1 + |
13839 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
13840 | 0 | *_impl_.firstfield_); |
13841 | 0 | } |
13842 | 0 | uint32_t cached_has_bits = 0; |
13843 | | // Prevent compiler warnings about cached_has_bits being unused |
13844 | 0 | (void) cached_has_bits; |
13845 | | |
13846 | | // repeated .lua_grammar.FieldList.FieldWithFieldSep fields = 2; |
13847 | 0 | total_size += 1UL * this->_internal_fields_size(); |
13848 | 0 | for (const auto& msg : this->_impl_.fields_) { |
13849 | 0 | total_size += |
13850 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
13851 | 0 | } |
13852 | | |
13853 | | // optional .lua_grammar.FieldSep lastSep = 3; |
13854 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
13855 | 0 | if (cached_has_bits & 0x00000002u) { |
13856 | 0 | total_size += 1 + |
13857 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
13858 | 0 | *_impl_.lastsep_); |
13859 | 0 | } |
13860 | |
|
13861 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
13862 | 0 | } |
13863 | | |
13864 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FieldList::_class_data_ = { |
13865 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
13866 | | FieldList::MergeImpl |
13867 | | }; |
13868 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldList::GetClassData() const { return &_class_data_; } |
13869 | | |
13870 | | |
13871 | 0 | void FieldList::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
13872 | 0 | auto* const _this = static_cast<FieldList*>(&to_msg); |
13873 | 0 | auto& from = static_cast<const FieldList&>(from_msg); |
13874 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FieldList) |
13875 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
13876 | 0 | uint32_t cached_has_bits = 0; |
13877 | 0 | (void) cached_has_bits; |
13878 | |
|
13879 | 0 | _this->_impl_.fields_.MergeFrom(from._impl_.fields_); |
13880 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
13881 | 0 | if (cached_has_bits & 0x00000003u) { |
13882 | 0 | if (cached_has_bits & 0x00000001u) { |
13883 | 0 | _this->_internal_mutable_firstfield()->::lua_grammar::Field::MergeFrom( |
13884 | 0 | from._internal_firstfield()); |
13885 | 0 | } |
13886 | 0 | if (cached_has_bits & 0x00000002u) { |
13887 | 0 | _this->_internal_mutable_lastsep()->::lua_grammar::FieldSep::MergeFrom( |
13888 | 0 | from._internal_lastsep()); |
13889 | 0 | } |
13890 | 0 | } |
13891 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13892 | 0 | } |
13893 | | |
13894 | 0 | void FieldList::CopyFrom(const FieldList& from) { |
13895 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FieldList) |
13896 | 0 | if (&from == this) return; |
13897 | 0 | Clear(); |
13898 | 0 | MergeFrom(from); |
13899 | 0 | } |
13900 | | |
13901 | 4.14k | bool FieldList::IsInitialized() const { |
13902 | 4.14k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
13903 | 4.14k | if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.fields_)) |
13904 | 0 | return false; |
13905 | 4.14k | if (_internal_has_firstfield()) { |
13906 | 4.14k | if (!_impl_.firstfield_->IsInitialized()) return false; |
13907 | 4.14k | } |
13908 | 4.14k | return true; |
13909 | 4.14k | } |
13910 | | |
13911 | 0 | void FieldList::InternalSwap(FieldList* other) { |
13912 | 0 | using std::swap; |
13913 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
13914 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
13915 | 0 | _impl_.fields_.InternalSwap(&other->_impl_.fields_); |
13916 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
13917 | 0 | PROTOBUF_FIELD_OFFSET(FieldList, _impl_.lastsep_) |
13918 | 0 | + sizeof(FieldList::_impl_.lastsep_) |
13919 | 0 | - PROTOBUF_FIELD_OFFSET(FieldList, _impl_.firstfield_)>( |
13920 | 0 | reinterpret_cast<char*>(&_impl_.firstfield_), |
13921 | 0 | reinterpret_cast<char*>(&other->_impl_.firstfield_)); |
13922 | 0 | } |
13923 | | |
13924 | 53.0k | ::PROTOBUF_NAMESPACE_ID::Metadata FieldList::GetMetadata() const { |
13925 | 53.0k | return ::_pbi::AssignDescriptors( |
13926 | 53.0k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
13927 | 53.0k | file_level_metadata_lua_5fgrammar_2eproto[38]); |
13928 | 53.0k | } |
13929 | | |
13930 | | // =================================================================== |
13931 | | |
13932 | | class Field_ExpressionAssignment::_Internal { |
13933 | | public: |
13934 | | using HasBits = decltype(std::declval<Field_ExpressionAssignment>()._impl_._has_bits_); |
13935 | | static const ::lua_grammar::Expression& key(const Field_ExpressionAssignment* msg); |
13936 | 0 | static void set_has_key(HasBits* has_bits) { |
13937 | 0 | (*has_bits)[0] |= 1u; |
13938 | 0 | } |
13939 | | static const ::lua_grammar::Expression& value(const Field_ExpressionAssignment* msg); |
13940 | 0 | static void set_has_value(HasBits* has_bits) { |
13941 | 0 | (*has_bits)[0] |= 2u; |
13942 | 0 | } |
13943 | 2.22k | static bool MissingRequiredFields(const HasBits& has_bits) { |
13944 | 2.22k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
13945 | 2.22k | } |
13946 | | }; |
13947 | | |
13948 | | const ::lua_grammar::Expression& |
13949 | 0 | Field_ExpressionAssignment::_Internal::key(const Field_ExpressionAssignment* msg) { |
13950 | 0 | return *msg->_impl_.key_; |
13951 | 0 | } |
13952 | | const ::lua_grammar::Expression& |
13953 | 0 | Field_ExpressionAssignment::_Internal::value(const Field_ExpressionAssignment* msg) { |
13954 | 0 | return *msg->_impl_.value_; |
13955 | 0 | } |
13956 | | Field_ExpressionAssignment::Field_ExpressionAssignment(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
13957 | | bool is_message_owned) |
13958 | 2.57k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
13959 | 2.57k | SharedCtor(arena, is_message_owned); |
13960 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Field.ExpressionAssignment) |
13961 | 2.57k | } |
13962 | | Field_ExpressionAssignment::Field_ExpressionAssignment(const Field_ExpressionAssignment& from) |
13963 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
13964 | 0 | Field_ExpressionAssignment* const _this = this; (void)_this; |
13965 | 0 | new (&_impl_) Impl_{ |
13966 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
13967 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
13968 | 0 | , decltype(_impl_.key_){nullptr} |
13969 | 0 | , decltype(_impl_.value_){nullptr}}; |
13970 | |
|
13971 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
13972 | 0 | if (from._internal_has_key()) { |
13973 | 0 | _this->_impl_.key_ = new ::lua_grammar::Expression(*from._impl_.key_); |
13974 | 0 | } |
13975 | 0 | if (from._internal_has_value()) { |
13976 | 0 | _this->_impl_.value_ = new ::lua_grammar::Expression(*from._impl_.value_); |
13977 | 0 | } |
13978 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Field.ExpressionAssignment) |
13979 | 0 | } |
13980 | | |
13981 | | inline void Field_ExpressionAssignment::SharedCtor( |
13982 | 2.57k | ::_pb::Arena* arena, bool is_message_owned) { |
13983 | 2.57k | (void)arena; |
13984 | 2.57k | (void)is_message_owned; |
13985 | 2.57k | new (&_impl_) Impl_{ |
13986 | 2.57k | decltype(_impl_._has_bits_){} |
13987 | 2.57k | , /*decltype(_impl_._cached_size_)*/{} |
13988 | 2.57k | , decltype(_impl_.key_){nullptr} |
13989 | 2.57k | , decltype(_impl_.value_){nullptr} |
13990 | 2.57k | }; |
13991 | 2.57k | } |
13992 | | |
13993 | 2.57k | Field_ExpressionAssignment::~Field_ExpressionAssignment() { |
13994 | | // @@protoc_insertion_point(destructor:lua_grammar.Field.ExpressionAssignment) |
13995 | 2.57k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
13996 | 0 | (void)arena; |
13997 | 0 | return; |
13998 | 0 | } |
13999 | 2.57k | SharedDtor(); |
14000 | 2.57k | } |
14001 | | |
14002 | 2.57k | inline void Field_ExpressionAssignment::SharedDtor() { |
14003 | 2.57k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
14004 | 2.57k | if (this != internal_default_instance()) delete _impl_.key_; |
14005 | 2.57k | if (this != internal_default_instance()) delete _impl_.value_; |
14006 | 2.57k | } |
14007 | | |
14008 | 0 | void Field_ExpressionAssignment::SetCachedSize(int size) const { |
14009 | 0 | _impl_._cached_size_.Set(size); |
14010 | 0 | } |
14011 | | |
14012 | 0 | void Field_ExpressionAssignment::Clear() { |
14013 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Field.ExpressionAssignment) |
14014 | 0 | uint32_t cached_has_bits = 0; |
14015 | | // Prevent compiler warnings about cached_has_bits being unused |
14016 | 0 | (void) cached_has_bits; |
14017 | |
|
14018 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
14019 | 0 | if (cached_has_bits & 0x00000003u) { |
14020 | 0 | if (cached_has_bits & 0x00000001u) { |
14021 | 0 | GOOGLE_DCHECK(_impl_.key_ != nullptr); |
14022 | 0 | _impl_.key_->Clear(); |
14023 | 0 | } |
14024 | 0 | if (cached_has_bits & 0x00000002u) { |
14025 | 0 | GOOGLE_DCHECK(_impl_.value_ != nullptr); |
14026 | 0 | _impl_.value_->Clear(); |
14027 | 0 | } |
14028 | 0 | } |
14029 | 0 | _impl_._has_bits_.Clear(); |
14030 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
14031 | 0 | } |
14032 | | |
14033 | 0 | const char* Field_ExpressionAssignment::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
14034 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
14035 | 0 | _Internal::HasBits has_bits{}; |
14036 | 0 | while (!ctx->Done(&ptr)) { |
14037 | 0 | uint32_t tag; |
14038 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
14039 | 0 | switch (tag >> 3) { |
14040 | | // required .lua_grammar.Expression key = 1; |
14041 | 0 | case 1: |
14042 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
14043 | 0 | ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); |
14044 | 0 | CHK_(ptr); |
14045 | 0 | } else |
14046 | 0 | goto handle_unusual; |
14047 | 0 | continue; |
14048 | | // required .lua_grammar.Expression value = 2; |
14049 | 0 | case 2: |
14050 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
14051 | 0 | ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); |
14052 | 0 | CHK_(ptr); |
14053 | 0 | } else |
14054 | 0 | goto handle_unusual; |
14055 | 0 | continue; |
14056 | 0 | default: |
14057 | 0 | goto handle_unusual; |
14058 | 0 | } // switch |
14059 | 0 | handle_unusual: |
14060 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
14061 | 0 | CHK_(ptr); |
14062 | 0 | ctx->SetLastTag(tag); |
14063 | 0 | goto message_done; |
14064 | 0 | } |
14065 | 0 | ptr = UnknownFieldParse( |
14066 | 0 | tag, |
14067 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
14068 | 0 | ptr, ctx); |
14069 | 0 | CHK_(ptr != nullptr); |
14070 | 0 | } // while |
14071 | 0 | message_done: |
14072 | 0 | _impl_._has_bits_.Or(has_bits); |
14073 | 0 | return ptr; |
14074 | 0 | failure: |
14075 | 0 | ptr = nullptr; |
14076 | 0 | goto message_done; |
14077 | 0 | #undef CHK_ |
14078 | 0 | } |
14079 | | |
14080 | | uint8_t* Field_ExpressionAssignment::_InternalSerialize( |
14081 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
14082 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Field.ExpressionAssignment) |
14083 | 0 | uint32_t cached_has_bits = 0; |
14084 | 0 | (void) cached_has_bits; |
14085 | |
|
14086 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
14087 | | // required .lua_grammar.Expression key = 1; |
14088 | 0 | if (cached_has_bits & 0x00000001u) { |
14089 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
14090 | 0 | InternalWriteMessage(1, _Internal::key(this), |
14091 | 0 | _Internal::key(this).GetCachedSize(), target, stream); |
14092 | 0 | } |
14093 | | |
14094 | | // required .lua_grammar.Expression value = 2; |
14095 | 0 | if (cached_has_bits & 0x00000002u) { |
14096 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
14097 | 0 | InternalWriteMessage(2, _Internal::value(this), |
14098 | 0 | _Internal::value(this).GetCachedSize(), target, stream); |
14099 | 0 | } |
14100 | |
|
14101 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
14102 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
14103 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
14104 | 0 | } |
14105 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Field.ExpressionAssignment) |
14106 | 0 | return target; |
14107 | 0 | } |
14108 | | |
14109 | 0 | size_t Field_ExpressionAssignment::RequiredFieldsByteSizeFallback() const { |
14110 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Field.ExpressionAssignment) |
14111 | 0 | size_t total_size = 0; |
14112 | |
|
14113 | 0 | if (_internal_has_key()) { |
14114 | | // required .lua_grammar.Expression key = 1; |
14115 | 0 | total_size += 1 + |
14116 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14117 | 0 | *_impl_.key_); |
14118 | 0 | } |
14119 | |
|
14120 | 0 | if (_internal_has_value()) { |
14121 | | // required .lua_grammar.Expression value = 2; |
14122 | 0 | total_size += 1 + |
14123 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14124 | 0 | *_impl_.value_); |
14125 | 0 | } |
14126 | |
|
14127 | 0 | return total_size; |
14128 | 0 | } |
14129 | 0 | size_t Field_ExpressionAssignment::ByteSizeLong() const { |
14130 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Field.ExpressionAssignment) |
14131 | 0 | size_t total_size = 0; |
14132 | |
|
14133 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
14134 | | // required .lua_grammar.Expression key = 1; |
14135 | 0 | total_size += 1 + |
14136 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14137 | 0 | *_impl_.key_); |
14138 | | |
14139 | | // required .lua_grammar.Expression value = 2; |
14140 | 0 | total_size += 1 + |
14141 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14142 | 0 | *_impl_.value_); |
14143 | |
|
14144 | 0 | } else { |
14145 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
14146 | 0 | } |
14147 | 0 | uint32_t cached_has_bits = 0; |
14148 | | // Prevent compiler warnings about cached_has_bits being unused |
14149 | 0 | (void) cached_has_bits; |
14150 | |
|
14151 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
14152 | 0 | } |
14153 | | |
14154 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Field_ExpressionAssignment::_class_data_ = { |
14155 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
14156 | | Field_ExpressionAssignment::MergeImpl |
14157 | | }; |
14158 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Field_ExpressionAssignment::GetClassData() const { return &_class_data_; } |
14159 | | |
14160 | | |
14161 | 0 | void Field_ExpressionAssignment::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
14162 | 0 | auto* const _this = static_cast<Field_ExpressionAssignment*>(&to_msg); |
14163 | 0 | auto& from = static_cast<const Field_ExpressionAssignment&>(from_msg); |
14164 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Field.ExpressionAssignment) |
14165 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
14166 | 0 | uint32_t cached_has_bits = 0; |
14167 | 0 | (void) cached_has_bits; |
14168 | |
|
14169 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
14170 | 0 | if (cached_has_bits & 0x00000003u) { |
14171 | 0 | if (cached_has_bits & 0x00000001u) { |
14172 | 0 | _this->_internal_mutable_key()->::lua_grammar::Expression::MergeFrom( |
14173 | 0 | from._internal_key()); |
14174 | 0 | } |
14175 | 0 | if (cached_has_bits & 0x00000002u) { |
14176 | 0 | _this->_internal_mutable_value()->::lua_grammar::Expression::MergeFrom( |
14177 | 0 | from._internal_value()); |
14178 | 0 | } |
14179 | 0 | } |
14180 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
14181 | 0 | } |
14182 | | |
14183 | 0 | void Field_ExpressionAssignment::CopyFrom(const Field_ExpressionAssignment& from) { |
14184 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Field.ExpressionAssignment) |
14185 | 0 | if (&from == this) return; |
14186 | 0 | Clear(); |
14187 | 0 | MergeFrom(from); |
14188 | 0 | } |
14189 | | |
14190 | 2.22k | bool Field_ExpressionAssignment::IsInitialized() const { |
14191 | 2.22k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
14192 | 2.22k | if (_internal_has_key()) { |
14193 | 2.22k | if (!_impl_.key_->IsInitialized()) return false; |
14194 | 2.22k | } |
14195 | 2.22k | if (_internal_has_value()) { |
14196 | 2.22k | if (!_impl_.value_->IsInitialized()) return false; |
14197 | 2.22k | } |
14198 | 2.22k | return true; |
14199 | 2.22k | } |
14200 | | |
14201 | 0 | void Field_ExpressionAssignment::InternalSwap(Field_ExpressionAssignment* other) { |
14202 | 0 | using std::swap; |
14203 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
14204 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
14205 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
14206 | 0 | PROTOBUF_FIELD_OFFSET(Field_ExpressionAssignment, _impl_.value_) |
14207 | 0 | + sizeof(Field_ExpressionAssignment::_impl_.value_) |
14208 | 0 | - PROTOBUF_FIELD_OFFSET(Field_ExpressionAssignment, _impl_.key_)>( |
14209 | 0 | reinterpret_cast<char*>(&_impl_.key_), |
14210 | 0 | reinterpret_cast<char*>(&other->_impl_.key_)); |
14211 | 0 | } |
14212 | | |
14213 | 28.3k | ::PROTOBUF_NAMESPACE_ID::Metadata Field_ExpressionAssignment::GetMetadata() const { |
14214 | 28.3k | return ::_pbi::AssignDescriptors( |
14215 | 28.3k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
14216 | 28.3k | file_level_metadata_lua_5fgrammar_2eproto[39]); |
14217 | 28.3k | } |
14218 | | |
14219 | | // =================================================================== |
14220 | | |
14221 | | class Field_NameAssignment::_Internal { |
14222 | | public: |
14223 | | using HasBits = decltype(std::declval<Field_NameAssignment>()._impl_._has_bits_); |
14224 | | static const ::lua_grammar::Name& name(const Field_NameAssignment* msg); |
14225 | 0 | static void set_has_name(HasBits* has_bits) { |
14226 | 0 | (*has_bits)[0] |= 1u; |
14227 | 0 | } |
14228 | | static const ::lua_grammar::Expression& value(const Field_NameAssignment* msg); |
14229 | 0 | static void set_has_value(HasBits* has_bits) { |
14230 | 0 | (*has_bits)[0] |= 2u; |
14231 | 0 | } |
14232 | 265 | static bool MissingRequiredFields(const HasBits& has_bits) { |
14233 | 265 | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
14234 | 265 | } |
14235 | | }; |
14236 | | |
14237 | | const ::lua_grammar::Name& |
14238 | 0 | Field_NameAssignment::_Internal::name(const Field_NameAssignment* msg) { |
14239 | 0 | return *msg->_impl_.name_; |
14240 | 0 | } |
14241 | | const ::lua_grammar::Expression& |
14242 | 0 | Field_NameAssignment::_Internal::value(const Field_NameAssignment* msg) { |
14243 | 0 | return *msg->_impl_.value_; |
14244 | 0 | } |
14245 | | Field_NameAssignment::Field_NameAssignment(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
14246 | | bool is_message_owned) |
14247 | 350 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
14248 | 350 | SharedCtor(arena, is_message_owned); |
14249 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Field.NameAssignment) |
14250 | 350 | } |
14251 | | Field_NameAssignment::Field_NameAssignment(const Field_NameAssignment& from) |
14252 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
14253 | 0 | Field_NameAssignment* const _this = this; (void)_this; |
14254 | 0 | new (&_impl_) Impl_{ |
14255 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
14256 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
14257 | 0 | , decltype(_impl_.name_){nullptr} |
14258 | 0 | , decltype(_impl_.value_){nullptr}}; |
14259 | |
|
14260 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
14261 | 0 | if (from._internal_has_name()) { |
14262 | 0 | _this->_impl_.name_ = new ::lua_grammar::Name(*from._impl_.name_); |
14263 | 0 | } |
14264 | 0 | if (from._internal_has_value()) { |
14265 | 0 | _this->_impl_.value_ = new ::lua_grammar::Expression(*from._impl_.value_); |
14266 | 0 | } |
14267 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Field.NameAssignment) |
14268 | 0 | } |
14269 | | |
14270 | | inline void Field_NameAssignment::SharedCtor( |
14271 | 350 | ::_pb::Arena* arena, bool is_message_owned) { |
14272 | 350 | (void)arena; |
14273 | 350 | (void)is_message_owned; |
14274 | 350 | new (&_impl_) Impl_{ |
14275 | 350 | decltype(_impl_._has_bits_){} |
14276 | 350 | , /*decltype(_impl_._cached_size_)*/{} |
14277 | 350 | , decltype(_impl_.name_){nullptr} |
14278 | 350 | , decltype(_impl_.value_){nullptr} |
14279 | 350 | }; |
14280 | 350 | } |
14281 | | |
14282 | 350 | Field_NameAssignment::~Field_NameAssignment() { |
14283 | | // @@protoc_insertion_point(destructor:lua_grammar.Field.NameAssignment) |
14284 | 350 | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
14285 | 0 | (void)arena; |
14286 | 0 | return; |
14287 | 0 | } |
14288 | 350 | SharedDtor(); |
14289 | 350 | } |
14290 | | |
14291 | 350 | inline void Field_NameAssignment::SharedDtor() { |
14292 | 350 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
14293 | 350 | if (this != internal_default_instance()) delete _impl_.name_; |
14294 | 350 | if (this != internal_default_instance()) delete _impl_.value_; |
14295 | 350 | } |
14296 | | |
14297 | 0 | void Field_NameAssignment::SetCachedSize(int size) const { |
14298 | 0 | _impl_._cached_size_.Set(size); |
14299 | 0 | } |
14300 | | |
14301 | 0 | void Field_NameAssignment::Clear() { |
14302 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Field.NameAssignment) |
14303 | 0 | uint32_t cached_has_bits = 0; |
14304 | | // Prevent compiler warnings about cached_has_bits being unused |
14305 | 0 | (void) cached_has_bits; |
14306 | |
|
14307 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
14308 | 0 | if (cached_has_bits & 0x00000003u) { |
14309 | 0 | if (cached_has_bits & 0x00000001u) { |
14310 | 0 | GOOGLE_DCHECK(_impl_.name_ != nullptr); |
14311 | 0 | _impl_.name_->Clear(); |
14312 | 0 | } |
14313 | 0 | if (cached_has_bits & 0x00000002u) { |
14314 | 0 | GOOGLE_DCHECK(_impl_.value_ != nullptr); |
14315 | 0 | _impl_.value_->Clear(); |
14316 | 0 | } |
14317 | 0 | } |
14318 | 0 | _impl_._has_bits_.Clear(); |
14319 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
14320 | 0 | } |
14321 | | |
14322 | 0 | const char* Field_NameAssignment::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
14323 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
14324 | 0 | _Internal::HasBits has_bits{}; |
14325 | 0 | while (!ctx->Done(&ptr)) { |
14326 | 0 | uint32_t tag; |
14327 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
14328 | 0 | switch (tag >> 3) { |
14329 | | // required .lua_grammar.Name name = 1; |
14330 | 0 | case 1: |
14331 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
14332 | 0 | ptr = ctx->ParseMessage(_internal_mutable_name(), ptr); |
14333 | 0 | CHK_(ptr); |
14334 | 0 | } else |
14335 | 0 | goto handle_unusual; |
14336 | 0 | continue; |
14337 | | // required .lua_grammar.Expression value = 2; |
14338 | 0 | case 2: |
14339 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
14340 | 0 | ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); |
14341 | 0 | CHK_(ptr); |
14342 | 0 | } else |
14343 | 0 | goto handle_unusual; |
14344 | 0 | continue; |
14345 | 0 | default: |
14346 | 0 | goto handle_unusual; |
14347 | 0 | } // switch |
14348 | 0 | handle_unusual: |
14349 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
14350 | 0 | CHK_(ptr); |
14351 | 0 | ctx->SetLastTag(tag); |
14352 | 0 | goto message_done; |
14353 | 0 | } |
14354 | 0 | ptr = UnknownFieldParse( |
14355 | 0 | tag, |
14356 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
14357 | 0 | ptr, ctx); |
14358 | 0 | CHK_(ptr != nullptr); |
14359 | 0 | } // while |
14360 | 0 | message_done: |
14361 | 0 | _impl_._has_bits_.Or(has_bits); |
14362 | 0 | return ptr; |
14363 | 0 | failure: |
14364 | 0 | ptr = nullptr; |
14365 | 0 | goto message_done; |
14366 | 0 | #undef CHK_ |
14367 | 0 | } |
14368 | | |
14369 | | uint8_t* Field_NameAssignment::_InternalSerialize( |
14370 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
14371 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Field.NameAssignment) |
14372 | 0 | uint32_t cached_has_bits = 0; |
14373 | 0 | (void) cached_has_bits; |
14374 | |
|
14375 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
14376 | | // required .lua_grammar.Name name = 1; |
14377 | 0 | if (cached_has_bits & 0x00000001u) { |
14378 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
14379 | 0 | InternalWriteMessage(1, _Internal::name(this), |
14380 | 0 | _Internal::name(this).GetCachedSize(), target, stream); |
14381 | 0 | } |
14382 | | |
14383 | | // required .lua_grammar.Expression value = 2; |
14384 | 0 | if (cached_has_bits & 0x00000002u) { |
14385 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
14386 | 0 | InternalWriteMessage(2, _Internal::value(this), |
14387 | 0 | _Internal::value(this).GetCachedSize(), target, stream); |
14388 | 0 | } |
14389 | |
|
14390 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
14391 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
14392 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
14393 | 0 | } |
14394 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Field.NameAssignment) |
14395 | 0 | return target; |
14396 | 0 | } |
14397 | | |
14398 | 0 | size_t Field_NameAssignment::RequiredFieldsByteSizeFallback() const { |
14399 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Field.NameAssignment) |
14400 | 0 | size_t total_size = 0; |
14401 | |
|
14402 | 0 | if (_internal_has_name()) { |
14403 | | // required .lua_grammar.Name name = 1; |
14404 | 0 | total_size += 1 + |
14405 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14406 | 0 | *_impl_.name_); |
14407 | 0 | } |
14408 | |
|
14409 | 0 | if (_internal_has_value()) { |
14410 | | // required .lua_grammar.Expression value = 2; |
14411 | 0 | total_size += 1 + |
14412 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14413 | 0 | *_impl_.value_); |
14414 | 0 | } |
14415 | |
|
14416 | 0 | return total_size; |
14417 | 0 | } |
14418 | 0 | size_t Field_NameAssignment::ByteSizeLong() const { |
14419 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Field.NameAssignment) |
14420 | 0 | size_t total_size = 0; |
14421 | |
|
14422 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
14423 | | // required .lua_grammar.Name name = 1; |
14424 | 0 | total_size += 1 + |
14425 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14426 | 0 | *_impl_.name_); |
14427 | | |
14428 | | // required .lua_grammar.Expression value = 2; |
14429 | 0 | total_size += 1 + |
14430 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14431 | 0 | *_impl_.value_); |
14432 | |
|
14433 | 0 | } else { |
14434 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
14435 | 0 | } |
14436 | 0 | uint32_t cached_has_bits = 0; |
14437 | | // Prevent compiler warnings about cached_has_bits being unused |
14438 | 0 | (void) cached_has_bits; |
14439 | |
|
14440 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
14441 | 0 | } |
14442 | | |
14443 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Field_NameAssignment::_class_data_ = { |
14444 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
14445 | | Field_NameAssignment::MergeImpl |
14446 | | }; |
14447 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Field_NameAssignment::GetClassData() const { return &_class_data_; } |
14448 | | |
14449 | | |
14450 | 0 | void Field_NameAssignment::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
14451 | 0 | auto* const _this = static_cast<Field_NameAssignment*>(&to_msg); |
14452 | 0 | auto& from = static_cast<const Field_NameAssignment&>(from_msg); |
14453 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Field.NameAssignment) |
14454 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
14455 | 0 | uint32_t cached_has_bits = 0; |
14456 | 0 | (void) cached_has_bits; |
14457 | |
|
14458 | 0 | cached_has_bits = from._impl_._has_bits_[0]; |
14459 | 0 | if (cached_has_bits & 0x00000003u) { |
14460 | 0 | if (cached_has_bits & 0x00000001u) { |
14461 | 0 | _this->_internal_mutable_name()->::lua_grammar::Name::MergeFrom( |
14462 | 0 | from._internal_name()); |
14463 | 0 | } |
14464 | 0 | if (cached_has_bits & 0x00000002u) { |
14465 | 0 | _this->_internal_mutable_value()->::lua_grammar::Expression::MergeFrom( |
14466 | 0 | from._internal_value()); |
14467 | 0 | } |
14468 | 0 | } |
14469 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
14470 | 0 | } |
14471 | | |
14472 | 0 | void Field_NameAssignment::CopyFrom(const Field_NameAssignment& from) { |
14473 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Field.NameAssignment) |
14474 | 0 | if (&from == this) return; |
14475 | 0 | Clear(); |
14476 | 0 | MergeFrom(from); |
14477 | 0 | } |
14478 | | |
14479 | 265 | bool Field_NameAssignment::IsInitialized() const { |
14480 | 265 | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
14481 | 265 | if (_internal_has_name()) { |
14482 | 265 | if (!_impl_.name_->IsInitialized()) return false; |
14483 | 265 | } |
14484 | 265 | if (_internal_has_value()) { |
14485 | 265 | if (!_impl_.value_->IsInitialized()) return false; |
14486 | 265 | } |
14487 | 265 | return true; |
14488 | 265 | } |
14489 | | |
14490 | 0 | void Field_NameAssignment::InternalSwap(Field_NameAssignment* other) { |
14491 | 0 | using std::swap; |
14492 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
14493 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
14494 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
14495 | 0 | PROTOBUF_FIELD_OFFSET(Field_NameAssignment, _impl_.value_) |
14496 | 0 | + sizeof(Field_NameAssignment::_impl_.value_) |
14497 | 0 | - PROTOBUF_FIELD_OFFSET(Field_NameAssignment, _impl_.name_)>( |
14498 | 0 | reinterpret_cast<char*>(&_impl_.name_), |
14499 | 0 | reinterpret_cast<char*>(&other->_impl_.name_)); |
14500 | 0 | } |
14501 | | |
14502 | 3.68k | ::PROTOBUF_NAMESPACE_ID::Metadata Field_NameAssignment::GetMetadata() const { |
14503 | 3.68k | return ::_pbi::AssignDescriptors( |
14504 | 3.68k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
14505 | 3.68k | file_level_metadata_lua_5fgrammar_2eproto[40]); |
14506 | 3.68k | } |
14507 | | |
14508 | | // =================================================================== |
14509 | | |
14510 | | class Field::_Internal { |
14511 | | public: |
14512 | | static const ::lua_grammar::Field_ExpressionAssignment& exprassign(const Field* msg); |
14513 | | static const ::lua_grammar::Field_NameAssignment& namedassign(const Field* msg); |
14514 | | static const ::lua_grammar::Expression& expression(const Field* msg); |
14515 | | }; |
14516 | | |
14517 | | const ::lua_grammar::Field_ExpressionAssignment& |
14518 | 0 | Field::_Internal::exprassign(const Field* msg) { |
14519 | 0 | return *msg->_impl_.field_oneof_.exprassign_; |
14520 | 0 | } |
14521 | | const ::lua_grammar::Field_NameAssignment& |
14522 | 0 | Field::_Internal::namedassign(const Field* msg) { |
14523 | 0 | return *msg->_impl_.field_oneof_.namedassign_; |
14524 | 0 | } |
14525 | | const ::lua_grammar::Expression& |
14526 | 0 | Field::_Internal::expression(const Field* msg) { |
14527 | 0 | return *msg->_impl_.field_oneof_.expression_; |
14528 | 0 | } |
14529 | 0 | void Field::set_allocated_exprassign(::lua_grammar::Field_ExpressionAssignment* exprassign) { |
14530 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14531 | 0 | clear_field_oneof(); |
14532 | 0 | if (exprassign) { |
14533 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14534 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(exprassign); |
14535 | 0 | if (message_arena != submessage_arena) { |
14536 | 0 | exprassign = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14537 | 0 | message_arena, exprassign, submessage_arena); |
14538 | 0 | } |
14539 | 0 | set_has_exprassign(); |
14540 | 0 | _impl_.field_oneof_.exprassign_ = exprassign; |
14541 | 0 | } |
14542 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Field.exprassign) |
14543 | 0 | } |
14544 | 0 | void Field::set_allocated_namedassign(::lua_grammar::Field_NameAssignment* namedassign) { |
14545 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14546 | 0 | clear_field_oneof(); |
14547 | 0 | if (namedassign) { |
14548 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14549 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(namedassign); |
14550 | 0 | if (message_arena != submessage_arena) { |
14551 | 0 | namedassign = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14552 | 0 | message_arena, namedassign, submessage_arena); |
14553 | 0 | } |
14554 | 0 | set_has_namedassign(); |
14555 | 0 | _impl_.field_oneof_.namedassign_ = namedassign; |
14556 | 0 | } |
14557 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Field.namedassign) |
14558 | 0 | } |
14559 | 0 | void Field::set_allocated_expression(::lua_grammar::Expression* expression) { |
14560 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14561 | 0 | clear_field_oneof(); |
14562 | 0 | if (expression) { |
14563 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14564 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expression); |
14565 | 0 | if (message_arena != submessage_arena) { |
14566 | 0 | expression = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14567 | 0 | message_arena, expression, submessage_arena); |
14568 | 0 | } |
14569 | 0 | set_has_expression(); |
14570 | 0 | _impl_.field_oneof_.expression_ = expression; |
14571 | 0 | } |
14572 | | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Field.expression) |
14573 | 0 | } |
14574 | | Field::Field(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
14575 | | bool is_message_owned) |
14576 | 8.45k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
14577 | 8.45k | SharedCtor(arena, is_message_owned); |
14578 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Field) |
14579 | 8.45k | } |
14580 | | Field::Field(const Field& from) |
14581 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
14582 | 0 | Field* const _this = this; (void)_this; |
14583 | 0 | new (&_impl_) Impl_{ |
14584 | 0 | decltype(_impl_.field_oneof_){} |
14585 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
14586 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
14587 | |
|
14588 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
14589 | 0 | clear_has_field_oneof(); |
14590 | 0 | switch (from.field_oneof_case()) { |
14591 | 0 | case kExprassign: { |
14592 | 0 | _this->_internal_mutable_exprassign()->::lua_grammar::Field_ExpressionAssignment::MergeFrom( |
14593 | 0 | from._internal_exprassign()); |
14594 | 0 | break; |
14595 | 0 | } |
14596 | 0 | case kNamedassign: { |
14597 | 0 | _this->_internal_mutable_namedassign()->::lua_grammar::Field_NameAssignment::MergeFrom( |
14598 | 0 | from._internal_namedassign()); |
14599 | 0 | break; |
14600 | 0 | } |
14601 | 0 | case kExpression: { |
14602 | 0 | _this->_internal_mutable_expression()->::lua_grammar::Expression::MergeFrom( |
14603 | 0 | from._internal_expression()); |
14604 | 0 | break; |
14605 | 0 | } |
14606 | 0 | case FIELD_ONEOF_NOT_SET: { |
14607 | 0 | break; |
14608 | 0 | } |
14609 | 0 | } |
14610 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Field) |
14611 | 0 | } |
14612 | | |
14613 | | inline void Field::SharedCtor( |
14614 | 8.45k | ::_pb::Arena* arena, bool is_message_owned) { |
14615 | 8.45k | (void)arena; |
14616 | 8.45k | (void)is_message_owned; |
14617 | 8.45k | new (&_impl_) Impl_{ |
14618 | 8.45k | decltype(_impl_.field_oneof_){} |
14619 | 8.45k | , /*decltype(_impl_._cached_size_)*/{} |
14620 | 8.45k | , /*decltype(_impl_._oneof_case_)*/{} |
14621 | 8.45k | }; |
14622 | 8.45k | clear_has_field_oneof(); |
14623 | 8.45k | } |
14624 | | |
14625 | 8.45k | Field::~Field() { |
14626 | | // @@protoc_insertion_point(destructor:lua_grammar.Field) |
14627 | 8.45k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
14628 | 0 | (void)arena; |
14629 | 0 | return; |
14630 | 0 | } |
14631 | 8.45k | SharedDtor(); |
14632 | 8.45k | } |
14633 | | |
14634 | 8.45k | inline void Field::SharedDtor() { |
14635 | 8.45k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
14636 | 8.45k | if (has_field_oneof()) { |
14637 | 5.05k | clear_field_oneof(); |
14638 | 5.05k | } |
14639 | 8.45k | } |
14640 | | |
14641 | 0 | void Field::SetCachedSize(int size) const { |
14642 | 0 | _impl_._cached_size_.Set(size); |
14643 | 0 | } |
14644 | | |
14645 | 5.05k | void Field::clear_field_oneof() { |
14646 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.Field) |
14647 | 5.05k | switch (field_oneof_case()) { |
14648 | 2.57k | case kExprassign: { |
14649 | 2.57k | if (GetArenaForAllocation() == nullptr) { |
14650 | 2.57k | delete _impl_.field_oneof_.exprassign_; |
14651 | 2.57k | } |
14652 | 2.57k | break; |
14653 | 0 | } |
14654 | 350 | case kNamedassign: { |
14655 | 350 | if (GetArenaForAllocation() == nullptr) { |
14656 | 350 | delete _impl_.field_oneof_.namedassign_; |
14657 | 350 | } |
14658 | 350 | break; |
14659 | 0 | } |
14660 | 2.13k | case kExpression: { |
14661 | 2.13k | if (GetArenaForAllocation() == nullptr) { |
14662 | 2.13k | delete _impl_.field_oneof_.expression_; |
14663 | 2.13k | } |
14664 | 2.13k | break; |
14665 | 0 | } |
14666 | 0 | case FIELD_ONEOF_NOT_SET: { |
14667 | 0 | break; |
14668 | 0 | } |
14669 | 5.05k | } |
14670 | 5.05k | _impl_._oneof_case_[0] = FIELD_ONEOF_NOT_SET; |
14671 | 5.05k | } |
14672 | | |
14673 | | |
14674 | 0 | void Field::Clear() { |
14675 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Field) |
14676 | 0 | uint32_t cached_has_bits = 0; |
14677 | | // Prevent compiler warnings about cached_has_bits being unused |
14678 | 0 | (void) cached_has_bits; |
14679 | |
|
14680 | 0 | clear_field_oneof(); |
14681 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
14682 | 0 | } |
14683 | | |
14684 | 0 | const char* Field::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
14685 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
14686 | 0 | while (!ctx->Done(&ptr)) { |
14687 | 0 | uint32_t tag; |
14688 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
14689 | 0 | switch (tag >> 3) { |
14690 | | // .lua_grammar.Field.ExpressionAssignment exprassign = 1; |
14691 | 0 | case 1: |
14692 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
14693 | 0 | ptr = ctx->ParseMessage(_internal_mutable_exprassign(), ptr); |
14694 | 0 | CHK_(ptr); |
14695 | 0 | } else |
14696 | 0 | goto handle_unusual; |
14697 | 0 | continue; |
14698 | | // .lua_grammar.Field.NameAssignment namedassign = 2; |
14699 | 0 | case 2: |
14700 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
14701 | 0 | ptr = ctx->ParseMessage(_internal_mutable_namedassign(), ptr); |
14702 | 0 | CHK_(ptr); |
14703 | 0 | } else |
14704 | 0 | goto handle_unusual; |
14705 | 0 | continue; |
14706 | | // .lua_grammar.Expression expression = 3; |
14707 | 0 | case 3: |
14708 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
14709 | 0 | ptr = ctx->ParseMessage(_internal_mutable_expression(), ptr); |
14710 | 0 | CHK_(ptr); |
14711 | 0 | } else |
14712 | 0 | goto handle_unusual; |
14713 | 0 | continue; |
14714 | 0 | default: |
14715 | 0 | goto handle_unusual; |
14716 | 0 | } // switch |
14717 | 0 | handle_unusual: |
14718 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
14719 | 0 | CHK_(ptr); |
14720 | 0 | ctx->SetLastTag(tag); |
14721 | 0 | goto message_done; |
14722 | 0 | } |
14723 | 0 | ptr = UnknownFieldParse( |
14724 | 0 | tag, |
14725 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
14726 | 0 | ptr, ctx); |
14727 | 0 | CHK_(ptr != nullptr); |
14728 | 0 | } // while |
14729 | 0 | message_done: |
14730 | 0 | return ptr; |
14731 | 0 | failure: |
14732 | 0 | ptr = nullptr; |
14733 | 0 | goto message_done; |
14734 | 0 | #undef CHK_ |
14735 | 0 | } |
14736 | | |
14737 | | uint8_t* Field::_InternalSerialize( |
14738 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
14739 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Field) |
14740 | 0 | uint32_t cached_has_bits = 0; |
14741 | 0 | (void) cached_has_bits; |
14742 | |
|
14743 | 0 | switch (field_oneof_case()) { |
14744 | 0 | case kExprassign: { |
14745 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
14746 | 0 | InternalWriteMessage(1, _Internal::exprassign(this), |
14747 | 0 | _Internal::exprassign(this).GetCachedSize(), target, stream); |
14748 | 0 | break; |
14749 | 0 | } |
14750 | 0 | case kNamedassign: { |
14751 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
14752 | 0 | InternalWriteMessage(2, _Internal::namedassign(this), |
14753 | 0 | _Internal::namedassign(this).GetCachedSize(), target, stream); |
14754 | 0 | break; |
14755 | 0 | } |
14756 | 0 | case kExpression: { |
14757 | 0 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
14758 | 0 | InternalWriteMessage(3, _Internal::expression(this), |
14759 | 0 | _Internal::expression(this).GetCachedSize(), target, stream); |
14760 | 0 | break; |
14761 | 0 | } |
14762 | 0 | default: ; |
14763 | 0 | } |
14764 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
14765 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
14766 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
14767 | 0 | } |
14768 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Field) |
14769 | 0 | return target; |
14770 | 0 | } |
14771 | | |
14772 | 0 | size_t Field::ByteSizeLong() const { |
14773 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Field) |
14774 | 0 | size_t total_size = 0; |
14775 | |
|
14776 | 0 | uint32_t cached_has_bits = 0; |
14777 | | // Prevent compiler warnings about cached_has_bits being unused |
14778 | 0 | (void) cached_has_bits; |
14779 | |
|
14780 | 0 | switch (field_oneof_case()) { |
14781 | | // .lua_grammar.Field.ExpressionAssignment exprassign = 1; |
14782 | 0 | case kExprassign: { |
14783 | 0 | total_size += 1 + |
14784 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14785 | 0 | *_impl_.field_oneof_.exprassign_); |
14786 | 0 | break; |
14787 | 0 | } |
14788 | | // .lua_grammar.Field.NameAssignment namedassign = 2; |
14789 | 0 | case kNamedassign: { |
14790 | 0 | total_size += 1 + |
14791 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14792 | 0 | *_impl_.field_oneof_.namedassign_); |
14793 | 0 | break; |
14794 | 0 | } |
14795 | | // .lua_grammar.Expression expression = 3; |
14796 | 0 | case kExpression: { |
14797 | 0 | total_size += 1 + |
14798 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
14799 | 0 | *_impl_.field_oneof_.expression_); |
14800 | 0 | break; |
14801 | 0 | } |
14802 | 0 | case FIELD_ONEOF_NOT_SET: { |
14803 | 0 | break; |
14804 | 0 | } |
14805 | 0 | } |
14806 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
14807 | 0 | } |
14808 | | |
14809 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Field::_class_data_ = { |
14810 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
14811 | | Field::MergeImpl |
14812 | | }; |
14813 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Field::GetClassData() const { return &_class_data_; } |
14814 | | |
14815 | | |
14816 | 0 | void Field::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
14817 | 0 | auto* const _this = static_cast<Field*>(&to_msg); |
14818 | 0 | auto& from = static_cast<const Field&>(from_msg); |
14819 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Field) |
14820 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
14821 | 0 | uint32_t cached_has_bits = 0; |
14822 | 0 | (void) cached_has_bits; |
14823 | |
|
14824 | 0 | switch (from.field_oneof_case()) { |
14825 | 0 | case kExprassign: { |
14826 | 0 | _this->_internal_mutable_exprassign()->::lua_grammar::Field_ExpressionAssignment::MergeFrom( |
14827 | 0 | from._internal_exprassign()); |
14828 | 0 | break; |
14829 | 0 | } |
14830 | 0 | case kNamedassign: { |
14831 | 0 | _this->_internal_mutable_namedassign()->::lua_grammar::Field_NameAssignment::MergeFrom( |
14832 | 0 | from._internal_namedassign()); |
14833 | 0 | break; |
14834 | 0 | } |
14835 | 0 | case kExpression: { |
14836 | 0 | _this->_internal_mutable_expression()->::lua_grammar::Expression::MergeFrom( |
14837 | 0 | from._internal_expression()); |
14838 | 0 | break; |
14839 | 0 | } |
14840 | 0 | case FIELD_ONEOF_NOT_SET: { |
14841 | 0 | break; |
14842 | 0 | } |
14843 | 0 | } |
14844 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
14845 | 0 | } |
14846 | | |
14847 | 0 | void Field::CopyFrom(const Field& from) { |
14848 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Field) |
14849 | 0 | if (&from == this) return; |
14850 | 0 | Clear(); |
14851 | 0 | MergeFrom(from); |
14852 | 0 | } |
14853 | | |
14854 | 7.93k | bool Field::IsInitialized() const { |
14855 | 7.93k | switch (field_oneof_case()) { |
14856 | 2.22k | case kExprassign: { |
14857 | 2.22k | if (_internal_has_exprassign()) { |
14858 | 2.22k | if (!_impl_.field_oneof_.exprassign_->IsInitialized()) return false; |
14859 | 2.22k | } |
14860 | 2.22k | break; |
14861 | 2.22k | } |
14862 | 2.22k | case kNamedassign: { |
14863 | 265 | if (_internal_has_namedassign()) { |
14864 | 265 | if (!_impl_.field_oneof_.namedassign_->IsInitialized()) return false; |
14865 | 265 | } |
14866 | 265 | break; |
14867 | 265 | } |
14868 | 2.13k | case kExpression: { |
14869 | 2.13k | if (_internal_has_expression()) { |
14870 | 2.13k | if (!_impl_.field_oneof_.expression_->IsInitialized()) return false; |
14871 | 2.13k | } |
14872 | 2.13k | break; |
14873 | 2.13k | } |
14874 | 3.30k | case FIELD_ONEOF_NOT_SET: { |
14875 | 3.30k | break; |
14876 | 2.13k | } |
14877 | 7.93k | } |
14878 | 7.93k | return true; |
14879 | 7.93k | } |
14880 | | |
14881 | 0 | void Field::InternalSwap(Field* other) { |
14882 | 0 | using std::swap; |
14883 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
14884 | 0 | swap(_impl_.field_oneof_, other->_impl_.field_oneof_); |
14885 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
14886 | 0 | } |
14887 | | |
14888 | 63.2k | ::PROTOBUF_NAMESPACE_ID::Metadata Field::GetMetadata() const { |
14889 | 63.2k | return ::_pbi::AssignDescriptors( |
14890 | 63.2k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
14891 | 63.2k | file_level_metadata_lua_5fgrammar_2eproto[41]); |
14892 | 63.2k | } |
14893 | | |
14894 | | // =================================================================== |
14895 | | |
14896 | | class FieldSep::_Internal { |
14897 | | public: |
14898 | | }; |
14899 | | |
14900 | | FieldSep::FieldSep(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
14901 | | bool is_message_owned) |
14902 | 4.79k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
14903 | 4.79k | SharedCtor(arena, is_message_owned); |
14904 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.FieldSep) |
14905 | 4.79k | } |
14906 | | FieldSep::FieldSep(const FieldSep& from) |
14907 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
14908 | 0 | FieldSep* const _this = this; (void)_this; |
14909 | 0 | new (&_impl_) Impl_{ |
14910 | 0 | decltype(_impl_.sep_oneof_){} |
14911 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
14912 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
14913 | |
|
14914 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
14915 | 0 | clear_has_sep_oneof(); |
14916 | 0 | switch (from.sep_oneof_case()) { |
14917 | 0 | case kComma: { |
14918 | 0 | _this->_internal_set_comma(from._internal_comma()); |
14919 | 0 | break; |
14920 | 0 | } |
14921 | 0 | case kSemicolon: { |
14922 | 0 | _this->_internal_set_semicolon(from._internal_semicolon()); |
14923 | 0 | break; |
14924 | 0 | } |
14925 | 0 | case SEP_ONEOF_NOT_SET: { |
14926 | 0 | break; |
14927 | 0 | } |
14928 | 0 | } |
14929 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.FieldSep) |
14930 | 0 | } |
14931 | | |
14932 | | inline void FieldSep::SharedCtor( |
14933 | 4.79k | ::_pb::Arena* arena, bool is_message_owned) { |
14934 | 4.79k | (void)arena; |
14935 | 4.79k | (void)is_message_owned; |
14936 | 4.79k | new (&_impl_) Impl_{ |
14937 | 4.79k | decltype(_impl_.sep_oneof_){} |
14938 | 4.79k | , /*decltype(_impl_._cached_size_)*/{} |
14939 | 4.79k | , /*decltype(_impl_._oneof_case_)*/{} |
14940 | 4.79k | }; |
14941 | 4.79k | clear_has_sep_oneof(); |
14942 | 4.79k | } |
14943 | | |
14944 | 4.79k | FieldSep::~FieldSep() { |
14945 | | // @@protoc_insertion_point(destructor:lua_grammar.FieldSep) |
14946 | 4.79k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
14947 | 0 | (void)arena; |
14948 | 0 | return; |
14949 | 0 | } |
14950 | 4.79k | SharedDtor(); |
14951 | 4.79k | } |
14952 | | |
14953 | 4.79k | inline void FieldSep::SharedDtor() { |
14954 | 4.79k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
14955 | 4.79k | if (has_sep_oneof()) { |
14956 | 1.80k | clear_sep_oneof(); |
14957 | 1.80k | } |
14958 | 4.79k | } |
14959 | | |
14960 | 0 | void FieldSep::SetCachedSize(int size) const { |
14961 | 0 | _impl_._cached_size_.Set(size); |
14962 | 0 | } |
14963 | | |
14964 | 1.80k | void FieldSep::clear_sep_oneof() { |
14965 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.FieldSep) |
14966 | 1.80k | switch (sep_oneof_case()) { |
14967 | 855 | case kComma: { |
14968 | | // No need to clear |
14969 | 855 | break; |
14970 | 0 | } |
14971 | 953 | case kSemicolon: { |
14972 | | // No need to clear |
14973 | 953 | break; |
14974 | 0 | } |
14975 | 0 | case SEP_ONEOF_NOT_SET: { |
14976 | 0 | break; |
14977 | 0 | } |
14978 | 1.80k | } |
14979 | 1.80k | _impl_._oneof_case_[0] = SEP_ONEOF_NOT_SET; |
14980 | 1.80k | } |
14981 | | |
14982 | | |
14983 | 0 | void FieldSep::Clear() { |
14984 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.FieldSep) |
14985 | 0 | uint32_t cached_has_bits = 0; |
14986 | | // Prevent compiler warnings about cached_has_bits being unused |
14987 | 0 | (void) cached_has_bits; |
14988 | |
|
14989 | 0 | clear_sep_oneof(); |
14990 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
14991 | 0 | } |
14992 | | |
14993 | 0 | const char* FieldSep::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
14994 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
14995 | 0 | while (!ctx->Done(&ptr)) { |
14996 | 0 | uint32_t tag; |
14997 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
14998 | 0 | switch (tag >> 3) { |
14999 | | // uint32 comma = 1; |
15000 | 0 | case 1: |
15001 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
15002 | 0 | _internal_set_comma(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15003 | 0 | CHK_(ptr); |
15004 | 0 | } else |
15005 | 0 | goto handle_unusual; |
15006 | 0 | continue; |
15007 | | // uint32 semicolon = 2; |
15008 | 0 | case 2: |
15009 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
15010 | 0 | _internal_set_semicolon(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15011 | 0 | CHK_(ptr); |
15012 | 0 | } else |
15013 | 0 | goto handle_unusual; |
15014 | 0 | continue; |
15015 | 0 | default: |
15016 | 0 | goto handle_unusual; |
15017 | 0 | } // switch |
15018 | 0 | handle_unusual: |
15019 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
15020 | 0 | CHK_(ptr); |
15021 | 0 | ctx->SetLastTag(tag); |
15022 | 0 | goto message_done; |
15023 | 0 | } |
15024 | 0 | ptr = UnknownFieldParse( |
15025 | 0 | tag, |
15026 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
15027 | 0 | ptr, ctx); |
15028 | 0 | CHK_(ptr != nullptr); |
15029 | 0 | } // while |
15030 | 0 | message_done: |
15031 | 0 | return ptr; |
15032 | 0 | failure: |
15033 | 0 | ptr = nullptr; |
15034 | 0 | goto message_done; |
15035 | 0 | #undef CHK_ |
15036 | 0 | } |
15037 | | |
15038 | | uint8_t* FieldSep::_InternalSerialize( |
15039 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
15040 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.FieldSep) |
15041 | 0 | uint32_t cached_has_bits = 0; |
15042 | 0 | (void) cached_has_bits; |
15043 | |
|
15044 | 0 | switch (sep_oneof_case()) { |
15045 | 0 | case kComma: { |
15046 | 0 | target = stream->EnsureSpace(target); |
15047 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_comma(), target); |
15048 | 0 | break; |
15049 | 0 | } |
15050 | 0 | case kSemicolon: { |
15051 | 0 | target = stream->EnsureSpace(target); |
15052 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_semicolon(), target); |
15053 | 0 | break; |
15054 | 0 | } |
15055 | 0 | default: ; |
15056 | 0 | } |
15057 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
15058 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
15059 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
15060 | 0 | } |
15061 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.FieldSep) |
15062 | 0 | return target; |
15063 | 0 | } |
15064 | | |
15065 | 0 | size_t FieldSep::ByteSizeLong() const { |
15066 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.FieldSep) |
15067 | 0 | size_t total_size = 0; |
15068 | |
|
15069 | 0 | uint32_t cached_has_bits = 0; |
15070 | | // Prevent compiler warnings about cached_has_bits being unused |
15071 | 0 | (void) cached_has_bits; |
15072 | |
|
15073 | 0 | switch (sep_oneof_case()) { |
15074 | | // uint32 comma = 1; |
15075 | 0 | case kComma: { |
15076 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_comma()); |
15077 | 0 | break; |
15078 | 0 | } |
15079 | | // uint32 semicolon = 2; |
15080 | 0 | case kSemicolon: { |
15081 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_semicolon()); |
15082 | 0 | break; |
15083 | 0 | } |
15084 | 0 | case SEP_ONEOF_NOT_SET: { |
15085 | 0 | break; |
15086 | 0 | } |
15087 | 0 | } |
15088 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
15089 | 0 | } |
15090 | | |
15091 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FieldSep::_class_data_ = { |
15092 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
15093 | | FieldSep::MergeImpl |
15094 | | }; |
15095 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FieldSep::GetClassData() const { return &_class_data_; } |
15096 | | |
15097 | | |
15098 | 0 | void FieldSep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
15099 | 0 | auto* const _this = static_cast<FieldSep*>(&to_msg); |
15100 | 0 | auto& from = static_cast<const FieldSep&>(from_msg); |
15101 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.FieldSep) |
15102 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
15103 | 0 | uint32_t cached_has_bits = 0; |
15104 | 0 | (void) cached_has_bits; |
15105 | |
|
15106 | 0 | switch (from.sep_oneof_case()) { |
15107 | 0 | case kComma: { |
15108 | 0 | _this->_internal_set_comma(from._internal_comma()); |
15109 | 0 | break; |
15110 | 0 | } |
15111 | 0 | case kSemicolon: { |
15112 | 0 | _this->_internal_set_semicolon(from._internal_semicolon()); |
15113 | 0 | break; |
15114 | 0 | } |
15115 | 0 | case SEP_ONEOF_NOT_SET: { |
15116 | 0 | break; |
15117 | 0 | } |
15118 | 0 | } |
15119 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
15120 | 0 | } |
15121 | | |
15122 | 0 | void FieldSep::CopyFrom(const FieldSep& from) { |
15123 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.FieldSep) |
15124 | 0 | if (&from == this) return; |
15125 | 0 | Clear(); |
15126 | 0 | MergeFrom(from); |
15127 | 0 | } |
15128 | | |
15129 | 0 | bool FieldSep::IsInitialized() const { |
15130 | 0 | return true; |
15131 | 0 | } |
15132 | | |
15133 | 0 | void FieldSep::InternalSwap(FieldSep* other) { |
15134 | 0 | using std::swap; |
15135 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
15136 | 0 | swap(_impl_.sep_oneof_, other->_impl_.sep_oneof_); |
15137 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
15138 | 0 | } |
15139 | | |
15140 | 33.6k | ::PROTOBUF_NAMESPACE_ID::Metadata FieldSep::GetMetadata() const { |
15141 | 33.6k | return ::_pbi::AssignDescriptors( |
15142 | 33.6k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
15143 | 33.6k | file_level_metadata_lua_5fgrammar_2eproto[42]); |
15144 | 33.6k | } |
15145 | | |
15146 | | // =================================================================== |
15147 | | |
15148 | | class BinaryOperator::_Internal { |
15149 | | public: |
15150 | | }; |
15151 | | |
15152 | | BinaryOperator::BinaryOperator(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
15153 | | bool is_message_owned) |
15154 | 18.9k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
15155 | 18.9k | SharedCtor(arena, is_message_owned); |
15156 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.BinaryOperator) |
15157 | 18.9k | } |
15158 | | BinaryOperator::BinaryOperator(const BinaryOperator& from) |
15159 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
15160 | 0 | BinaryOperator* const _this = this; (void)_this; |
15161 | 0 | new (&_impl_) Impl_{ |
15162 | 0 | decltype(_impl_.binary_oneof_){} |
15163 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
15164 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
15165 | |
|
15166 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
15167 | 0 | clear_has_binary_oneof(); |
15168 | 0 | switch (from.binary_oneof_case()) { |
15169 | 0 | case kAdd: { |
15170 | 0 | _this->_internal_set_add(from._internal_add()); |
15171 | 0 | break; |
15172 | 0 | } |
15173 | 0 | case kSub: { |
15174 | 0 | _this->_internal_set_sub(from._internal_sub()); |
15175 | 0 | break; |
15176 | 0 | } |
15177 | 0 | case kMult: { |
15178 | 0 | _this->_internal_set_mult(from._internal_mult()); |
15179 | 0 | break; |
15180 | 0 | } |
15181 | 0 | case kDiv: { |
15182 | 0 | _this->_internal_set_div(from._internal_div()); |
15183 | 0 | break; |
15184 | 0 | } |
15185 | 0 | case kExp: { |
15186 | 0 | _this->_internal_set_exp(from._internal_exp()); |
15187 | 0 | break; |
15188 | 0 | } |
15189 | 0 | case kMod: { |
15190 | 0 | _this->_internal_set_mod(from._internal_mod()); |
15191 | 0 | break; |
15192 | 0 | } |
15193 | 0 | case kConcat: { |
15194 | 0 | _this->_internal_set_concat(from._internal_concat()); |
15195 | 0 | break; |
15196 | 0 | } |
15197 | 0 | case kLess: { |
15198 | 0 | _this->_internal_set_less(from._internal_less()); |
15199 | 0 | break; |
15200 | 0 | } |
15201 | 0 | case kLessEqual: { |
15202 | 0 | _this->_internal_set_lessequal(from._internal_lessequal()); |
15203 | 0 | break; |
15204 | 0 | } |
15205 | 0 | case kGreater: { |
15206 | 0 | _this->_internal_set_greater(from._internal_greater()); |
15207 | 0 | break; |
15208 | 0 | } |
15209 | 0 | case kGreaterEqual: { |
15210 | 0 | _this->_internal_set_greaterequal(from._internal_greaterequal()); |
15211 | 0 | break; |
15212 | 0 | } |
15213 | 0 | case kEqual: { |
15214 | 0 | _this->_internal_set_equal(from._internal_equal()); |
15215 | 0 | break; |
15216 | 0 | } |
15217 | 0 | case kNotEqual: { |
15218 | 0 | _this->_internal_set_notequal(from._internal_notequal()); |
15219 | 0 | break; |
15220 | 0 | } |
15221 | 0 | case kAnd: { |
15222 | 0 | _this->_internal_set_and_(from._internal_and_()); |
15223 | 0 | break; |
15224 | 0 | } |
15225 | 0 | case kOr: { |
15226 | 0 | _this->_internal_set_or_(from._internal_or_()); |
15227 | 0 | break; |
15228 | 0 | } |
15229 | 0 | case BINARY_ONEOF_NOT_SET: { |
15230 | 0 | break; |
15231 | 0 | } |
15232 | 0 | } |
15233 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.BinaryOperator) |
15234 | 0 | } |
15235 | | |
15236 | | inline void BinaryOperator::SharedCtor( |
15237 | 18.9k | ::_pb::Arena* arena, bool is_message_owned) { |
15238 | 18.9k | (void)arena; |
15239 | 18.9k | (void)is_message_owned; |
15240 | 18.9k | new (&_impl_) Impl_{ |
15241 | 18.9k | decltype(_impl_.binary_oneof_){} |
15242 | 18.9k | , /*decltype(_impl_._cached_size_)*/{} |
15243 | 18.9k | , /*decltype(_impl_._oneof_case_)*/{} |
15244 | 18.9k | }; |
15245 | 18.9k | clear_has_binary_oneof(); |
15246 | 18.9k | } |
15247 | | |
15248 | 18.9k | BinaryOperator::~BinaryOperator() { |
15249 | | // @@protoc_insertion_point(destructor:lua_grammar.BinaryOperator) |
15250 | 18.9k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
15251 | 0 | (void)arena; |
15252 | 0 | return; |
15253 | 0 | } |
15254 | 18.9k | SharedDtor(); |
15255 | 18.9k | } |
15256 | | |
15257 | 18.9k | inline void BinaryOperator::SharedDtor() { |
15258 | 18.9k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
15259 | 18.9k | if (has_binary_oneof()) { |
15260 | 15.7k | clear_binary_oneof(); |
15261 | 15.7k | } |
15262 | 18.9k | } |
15263 | | |
15264 | 0 | void BinaryOperator::SetCachedSize(int size) const { |
15265 | 0 | _impl_._cached_size_.Set(size); |
15266 | 0 | } |
15267 | | |
15268 | 15.8k | void BinaryOperator::clear_binary_oneof() { |
15269 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.BinaryOperator) |
15270 | 15.8k | switch (binary_oneof_case()) { |
15271 | 598 | case kAdd: { |
15272 | | // No need to clear |
15273 | 598 | break; |
15274 | 0 | } |
15275 | 1.48k | case kSub: { |
15276 | | // No need to clear |
15277 | 1.48k | break; |
15278 | 0 | } |
15279 | 4.35k | case kMult: { |
15280 | | // No need to clear |
15281 | 4.35k | break; |
15282 | 0 | } |
15283 | 538 | case kDiv: { |
15284 | | // No need to clear |
15285 | 538 | break; |
15286 | 0 | } |
15287 | 759 | case kExp: { |
15288 | | // No need to clear |
15289 | 759 | break; |
15290 | 0 | } |
15291 | 536 | case kMod: { |
15292 | | // No need to clear |
15293 | 536 | break; |
15294 | 0 | } |
15295 | 857 | case kConcat: { |
15296 | | // No need to clear |
15297 | 857 | break; |
15298 | 0 | } |
15299 | 659 | case kLess: { |
15300 | | // No need to clear |
15301 | 659 | break; |
15302 | 0 | } |
15303 | 621 | case kLessEqual: { |
15304 | | // No need to clear |
15305 | 621 | break; |
15306 | 0 | } |
15307 | 499 | case kGreater: { |
15308 | | // No need to clear |
15309 | 499 | break; |
15310 | 0 | } |
15311 | 353 | case kGreaterEqual: { |
15312 | | // No need to clear |
15313 | 353 | break; |
15314 | 0 | } |
15315 | 276 | case kEqual: { |
15316 | | // No need to clear |
15317 | 276 | break; |
15318 | 0 | } |
15319 | 468 | case kNotEqual: { |
15320 | | // No need to clear |
15321 | 468 | break; |
15322 | 0 | } |
15323 | 1.41k | case kAnd: { |
15324 | | // No need to clear |
15325 | 1.41k | break; |
15326 | 0 | } |
15327 | 2.35k | case kOr: { |
15328 | | // No need to clear |
15329 | 2.35k | break; |
15330 | 0 | } |
15331 | 80 | case BINARY_ONEOF_NOT_SET: { |
15332 | 80 | break; |
15333 | 0 | } |
15334 | 15.8k | } |
15335 | 15.8k | _impl_._oneof_case_[0] = BINARY_ONEOF_NOT_SET; |
15336 | 15.8k | } |
15337 | | |
15338 | | |
15339 | 80 | void BinaryOperator::Clear() { |
15340 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.BinaryOperator) |
15341 | 80 | uint32_t cached_has_bits = 0; |
15342 | | // Prevent compiler warnings about cached_has_bits being unused |
15343 | 80 | (void) cached_has_bits; |
15344 | | |
15345 | 80 | clear_binary_oneof(); |
15346 | 80 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
15347 | 80 | } |
15348 | | |
15349 | 0 | const char* BinaryOperator::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
15350 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
15351 | 0 | while (!ctx->Done(&ptr)) { |
15352 | 0 | uint32_t tag; |
15353 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
15354 | 0 | switch (tag >> 3) { |
15355 | | // uint32 add = 1; |
15356 | 0 | case 1: |
15357 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
15358 | 0 | _internal_set_add(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15359 | 0 | CHK_(ptr); |
15360 | 0 | } else |
15361 | 0 | goto handle_unusual; |
15362 | 0 | continue; |
15363 | | // uint32 sub = 2; |
15364 | 0 | case 2: |
15365 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
15366 | 0 | _internal_set_sub(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15367 | 0 | CHK_(ptr); |
15368 | 0 | } else |
15369 | 0 | goto handle_unusual; |
15370 | 0 | continue; |
15371 | | // uint32 mult = 3; |
15372 | 0 | case 3: |
15373 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
15374 | 0 | _internal_set_mult(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15375 | 0 | CHK_(ptr); |
15376 | 0 | } else |
15377 | 0 | goto handle_unusual; |
15378 | 0 | continue; |
15379 | | // uint32 div = 4; |
15380 | 0 | case 4: |
15381 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { |
15382 | 0 | _internal_set_div(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15383 | 0 | CHK_(ptr); |
15384 | 0 | } else |
15385 | 0 | goto handle_unusual; |
15386 | 0 | continue; |
15387 | | // uint32 exp = 5; |
15388 | 0 | case 5: |
15389 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { |
15390 | 0 | _internal_set_exp(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15391 | 0 | CHK_(ptr); |
15392 | 0 | } else |
15393 | 0 | goto handle_unusual; |
15394 | 0 | continue; |
15395 | | // uint32 mod = 6; |
15396 | 0 | case 6: |
15397 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { |
15398 | 0 | _internal_set_mod(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15399 | 0 | CHK_(ptr); |
15400 | 0 | } else |
15401 | 0 | goto handle_unusual; |
15402 | 0 | continue; |
15403 | | // uint32 concat = 7; |
15404 | 0 | case 7: |
15405 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { |
15406 | 0 | _internal_set_concat(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15407 | 0 | CHK_(ptr); |
15408 | 0 | } else |
15409 | 0 | goto handle_unusual; |
15410 | 0 | continue; |
15411 | | // uint32 less = 8; |
15412 | 0 | case 8: |
15413 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) { |
15414 | 0 | _internal_set_less(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15415 | 0 | CHK_(ptr); |
15416 | 0 | } else |
15417 | 0 | goto handle_unusual; |
15418 | 0 | continue; |
15419 | | // uint32 lessEqual = 9; |
15420 | 0 | case 9: |
15421 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { |
15422 | 0 | _internal_set_lessequal(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15423 | 0 | CHK_(ptr); |
15424 | 0 | } else |
15425 | 0 | goto handle_unusual; |
15426 | 0 | continue; |
15427 | | // uint32 greater = 10; |
15428 | 0 | case 10: |
15429 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { |
15430 | 0 | _internal_set_greater(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15431 | 0 | CHK_(ptr); |
15432 | 0 | } else |
15433 | 0 | goto handle_unusual; |
15434 | 0 | continue; |
15435 | | // uint32 greaterEqual = 11; |
15436 | 0 | case 11: |
15437 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) { |
15438 | 0 | _internal_set_greaterequal(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15439 | 0 | CHK_(ptr); |
15440 | 0 | } else |
15441 | 0 | goto handle_unusual; |
15442 | 0 | continue; |
15443 | | // uint32 equal = 12; |
15444 | 0 | case 12: |
15445 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) { |
15446 | 0 | _internal_set_equal(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15447 | 0 | CHK_(ptr); |
15448 | 0 | } else |
15449 | 0 | goto handle_unusual; |
15450 | 0 | continue; |
15451 | | // uint32 notEqual = 13; |
15452 | 0 | case 13: |
15453 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) { |
15454 | 0 | _internal_set_notequal(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15455 | 0 | CHK_(ptr); |
15456 | 0 | } else |
15457 | 0 | goto handle_unusual; |
15458 | 0 | continue; |
15459 | | // uint32 and = 14; |
15460 | 0 | case 14: |
15461 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) { |
15462 | 0 | _internal_set_and_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15463 | 0 | CHK_(ptr); |
15464 | 0 | } else |
15465 | 0 | goto handle_unusual; |
15466 | 0 | continue; |
15467 | | // uint32 or = 15; |
15468 | 0 | case 15: |
15469 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) { |
15470 | 0 | _internal_set_or_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15471 | 0 | CHK_(ptr); |
15472 | 0 | } else |
15473 | 0 | goto handle_unusual; |
15474 | 0 | continue; |
15475 | 0 | default: |
15476 | 0 | goto handle_unusual; |
15477 | 0 | } // switch |
15478 | 0 | handle_unusual: |
15479 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
15480 | 0 | CHK_(ptr); |
15481 | 0 | ctx->SetLastTag(tag); |
15482 | 0 | goto message_done; |
15483 | 0 | } |
15484 | 0 | ptr = UnknownFieldParse( |
15485 | 0 | tag, |
15486 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
15487 | 0 | ptr, ctx); |
15488 | 0 | CHK_(ptr != nullptr); |
15489 | 0 | } // while |
15490 | 0 | message_done: |
15491 | 0 | return ptr; |
15492 | 0 | failure: |
15493 | 0 | ptr = nullptr; |
15494 | 0 | goto message_done; |
15495 | 0 | #undef CHK_ |
15496 | 0 | } |
15497 | | |
15498 | | uint8_t* BinaryOperator::_InternalSerialize( |
15499 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
15500 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.BinaryOperator) |
15501 | 0 | uint32_t cached_has_bits = 0; |
15502 | 0 | (void) cached_has_bits; |
15503 | |
|
15504 | 0 | switch (binary_oneof_case()) { |
15505 | 0 | case kAdd: { |
15506 | 0 | target = stream->EnsureSpace(target); |
15507 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_add(), target); |
15508 | 0 | break; |
15509 | 0 | } |
15510 | 0 | case kSub: { |
15511 | 0 | target = stream->EnsureSpace(target); |
15512 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_sub(), target); |
15513 | 0 | break; |
15514 | 0 | } |
15515 | 0 | case kMult: { |
15516 | 0 | target = stream->EnsureSpace(target); |
15517 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_mult(), target); |
15518 | 0 | break; |
15519 | 0 | } |
15520 | 0 | case kDiv: { |
15521 | 0 | target = stream->EnsureSpace(target); |
15522 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_div(), target); |
15523 | 0 | break; |
15524 | 0 | } |
15525 | 0 | case kExp: { |
15526 | 0 | target = stream->EnsureSpace(target); |
15527 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_exp(), target); |
15528 | 0 | break; |
15529 | 0 | } |
15530 | 0 | case kMod: { |
15531 | 0 | target = stream->EnsureSpace(target); |
15532 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_mod(), target); |
15533 | 0 | break; |
15534 | 0 | } |
15535 | 0 | case kConcat: { |
15536 | 0 | target = stream->EnsureSpace(target); |
15537 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_concat(), target); |
15538 | 0 | break; |
15539 | 0 | } |
15540 | 0 | case kLess: { |
15541 | 0 | target = stream->EnsureSpace(target); |
15542 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_less(), target); |
15543 | 0 | break; |
15544 | 0 | } |
15545 | 0 | case kLessEqual: { |
15546 | 0 | target = stream->EnsureSpace(target); |
15547 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_lessequal(), target); |
15548 | 0 | break; |
15549 | 0 | } |
15550 | 0 | case kGreater: { |
15551 | 0 | target = stream->EnsureSpace(target); |
15552 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_greater(), target); |
15553 | 0 | break; |
15554 | 0 | } |
15555 | 0 | case kGreaterEqual: { |
15556 | 0 | target = stream->EnsureSpace(target); |
15557 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_greaterequal(), target); |
15558 | 0 | break; |
15559 | 0 | } |
15560 | 0 | case kEqual: { |
15561 | 0 | target = stream->EnsureSpace(target); |
15562 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_equal(), target); |
15563 | 0 | break; |
15564 | 0 | } |
15565 | 0 | case kNotEqual: { |
15566 | 0 | target = stream->EnsureSpace(target); |
15567 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_notequal(), target); |
15568 | 0 | break; |
15569 | 0 | } |
15570 | 0 | case kAnd: { |
15571 | 0 | target = stream->EnsureSpace(target); |
15572 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_and_(), target); |
15573 | 0 | break; |
15574 | 0 | } |
15575 | 0 | case kOr: { |
15576 | 0 | target = stream->EnsureSpace(target); |
15577 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(15, this->_internal_or_(), target); |
15578 | 0 | break; |
15579 | 0 | } |
15580 | 0 | default: ; |
15581 | 0 | } |
15582 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
15583 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
15584 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
15585 | 0 | } |
15586 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.BinaryOperator) |
15587 | 0 | return target; |
15588 | 0 | } |
15589 | | |
15590 | 0 | size_t BinaryOperator::ByteSizeLong() const { |
15591 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.BinaryOperator) |
15592 | 0 | size_t total_size = 0; |
15593 | |
|
15594 | 0 | uint32_t cached_has_bits = 0; |
15595 | | // Prevent compiler warnings about cached_has_bits being unused |
15596 | 0 | (void) cached_has_bits; |
15597 | |
|
15598 | 0 | switch (binary_oneof_case()) { |
15599 | | // uint32 add = 1; |
15600 | 0 | case kAdd: { |
15601 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_add()); |
15602 | 0 | break; |
15603 | 0 | } |
15604 | | // uint32 sub = 2; |
15605 | 0 | case kSub: { |
15606 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_sub()); |
15607 | 0 | break; |
15608 | 0 | } |
15609 | | // uint32 mult = 3; |
15610 | 0 | case kMult: { |
15611 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mult()); |
15612 | 0 | break; |
15613 | 0 | } |
15614 | | // uint32 div = 4; |
15615 | 0 | case kDiv: { |
15616 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_div()); |
15617 | 0 | break; |
15618 | 0 | } |
15619 | | // uint32 exp = 5; |
15620 | 0 | case kExp: { |
15621 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_exp()); |
15622 | 0 | break; |
15623 | 0 | } |
15624 | | // uint32 mod = 6; |
15625 | 0 | case kMod: { |
15626 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_mod()); |
15627 | 0 | break; |
15628 | 0 | } |
15629 | | // uint32 concat = 7; |
15630 | 0 | case kConcat: { |
15631 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_concat()); |
15632 | 0 | break; |
15633 | 0 | } |
15634 | | // uint32 less = 8; |
15635 | 0 | case kLess: { |
15636 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_less()); |
15637 | 0 | break; |
15638 | 0 | } |
15639 | | // uint32 lessEqual = 9; |
15640 | 0 | case kLessEqual: { |
15641 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_lessequal()); |
15642 | 0 | break; |
15643 | 0 | } |
15644 | | // uint32 greater = 10; |
15645 | 0 | case kGreater: { |
15646 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_greater()); |
15647 | 0 | break; |
15648 | 0 | } |
15649 | | // uint32 greaterEqual = 11; |
15650 | 0 | case kGreaterEqual: { |
15651 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_greaterequal()); |
15652 | 0 | break; |
15653 | 0 | } |
15654 | | // uint32 equal = 12; |
15655 | 0 | case kEqual: { |
15656 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_equal()); |
15657 | 0 | break; |
15658 | 0 | } |
15659 | | // uint32 notEqual = 13; |
15660 | 0 | case kNotEqual: { |
15661 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_notequal()); |
15662 | 0 | break; |
15663 | 0 | } |
15664 | | // uint32 and = 14; |
15665 | 0 | case kAnd: { |
15666 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_and_()); |
15667 | 0 | break; |
15668 | 0 | } |
15669 | | // uint32 or = 15; |
15670 | 0 | case kOr: { |
15671 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_or_()); |
15672 | 0 | break; |
15673 | 0 | } |
15674 | 0 | case BINARY_ONEOF_NOT_SET: { |
15675 | 0 | break; |
15676 | 0 | } |
15677 | 0 | } |
15678 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
15679 | 0 | } |
15680 | | |
15681 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BinaryOperator::_class_data_ = { |
15682 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
15683 | | BinaryOperator::MergeImpl |
15684 | | }; |
15685 | 120 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BinaryOperator::GetClassData() const { return &_class_data_; } |
15686 | | |
15687 | | |
15688 | 40 | void BinaryOperator::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
15689 | 40 | auto* const _this = static_cast<BinaryOperator*>(&to_msg); |
15690 | 40 | auto& from = static_cast<const BinaryOperator&>(from_msg); |
15691 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.BinaryOperator) |
15692 | 40 | GOOGLE_DCHECK_NE(&from, _this); |
15693 | 40 | uint32_t cached_has_bits = 0; |
15694 | 40 | (void) cached_has_bits; |
15695 | | |
15696 | 40 | switch (from.binary_oneof_case()) { |
15697 | 0 | case kAdd: { |
15698 | 0 | _this->_internal_set_add(from._internal_add()); |
15699 | 0 | break; |
15700 | 0 | } |
15701 | 0 | case kSub: { |
15702 | 0 | _this->_internal_set_sub(from._internal_sub()); |
15703 | 0 | break; |
15704 | 0 | } |
15705 | 0 | case kMult: { |
15706 | 0 | _this->_internal_set_mult(from._internal_mult()); |
15707 | 0 | break; |
15708 | 0 | } |
15709 | 0 | case kDiv: { |
15710 | 0 | _this->_internal_set_div(from._internal_div()); |
15711 | 0 | break; |
15712 | 0 | } |
15713 | 0 | case kExp: { |
15714 | 0 | _this->_internal_set_exp(from._internal_exp()); |
15715 | 0 | break; |
15716 | 0 | } |
15717 | 0 | case kMod: { |
15718 | 0 | _this->_internal_set_mod(from._internal_mod()); |
15719 | 0 | break; |
15720 | 0 | } |
15721 | 0 | case kConcat: { |
15722 | 0 | _this->_internal_set_concat(from._internal_concat()); |
15723 | 0 | break; |
15724 | 0 | } |
15725 | 0 | case kLess: { |
15726 | 0 | _this->_internal_set_less(from._internal_less()); |
15727 | 0 | break; |
15728 | 0 | } |
15729 | 0 | case kLessEqual: { |
15730 | 0 | _this->_internal_set_lessequal(from._internal_lessequal()); |
15731 | 0 | break; |
15732 | 0 | } |
15733 | 0 | case kGreater: { |
15734 | 0 | _this->_internal_set_greater(from._internal_greater()); |
15735 | 0 | break; |
15736 | 0 | } |
15737 | 0 | case kGreaterEqual: { |
15738 | 0 | _this->_internal_set_greaterequal(from._internal_greaterequal()); |
15739 | 0 | break; |
15740 | 0 | } |
15741 | 0 | case kEqual: { |
15742 | 0 | _this->_internal_set_equal(from._internal_equal()); |
15743 | 0 | break; |
15744 | 0 | } |
15745 | 0 | case kNotEqual: { |
15746 | 0 | _this->_internal_set_notequal(from._internal_notequal()); |
15747 | 0 | break; |
15748 | 0 | } |
15749 | 0 | case kAnd: { |
15750 | 0 | _this->_internal_set_and_(from._internal_and_()); |
15751 | 0 | break; |
15752 | 0 | } |
15753 | 0 | case kOr: { |
15754 | 0 | _this->_internal_set_or_(from._internal_or_()); |
15755 | 0 | break; |
15756 | 0 | } |
15757 | 40 | case BINARY_ONEOF_NOT_SET: { |
15758 | 40 | break; |
15759 | 0 | } |
15760 | 40 | } |
15761 | 40 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
15762 | 40 | } |
15763 | | |
15764 | 0 | void BinaryOperator::CopyFrom(const BinaryOperator& from) { |
15765 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.BinaryOperator) |
15766 | 0 | if (&from == this) return; |
15767 | 0 | Clear(); |
15768 | 0 | MergeFrom(from); |
15769 | 0 | } |
15770 | | |
15771 | 0 | bool BinaryOperator::IsInitialized() const { |
15772 | 0 | return true; |
15773 | 0 | } |
15774 | | |
15775 | 0 | void BinaryOperator::InternalSwap(BinaryOperator* other) { |
15776 | 0 | using std::swap; |
15777 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
15778 | 0 | swap(_impl_.binary_oneof_, other->_impl_.binary_oneof_); |
15779 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
15780 | 0 | } |
15781 | | |
15782 | 155k | ::PROTOBUF_NAMESPACE_ID::Metadata BinaryOperator::GetMetadata() const { |
15783 | 155k | return ::_pbi::AssignDescriptors( |
15784 | 155k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
15785 | 155k | file_level_metadata_lua_5fgrammar_2eproto[43]); |
15786 | 155k | } |
15787 | | |
15788 | | // =================================================================== |
15789 | | |
15790 | | class UnaryOperator::_Internal { |
15791 | | public: |
15792 | | }; |
15793 | | |
15794 | | UnaryOperator::UnaryOperator(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
15795 | | bool is_message_owned) |
15796 | 4.97k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
15797 | 4.97k | SharedCtor(arena, is_message_owned); |
15798 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.UnaryOperator) |
15799 | 4.97k | } |
15800 | | UnaryOperator::UnaryOperator(const UnaryOperator& from) |
15801 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
15802 | 0 | UnaryOperator* const _this = this; (void)_this; |
15803 | 0 | new (&_impl_) Impl_{ |
15804 | 0 | decltype(_impl_.unary_oneof_){} |
15805 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
15806 | 0 | , /*decltype(_impl_._oneof_case_)*/{}}; |
15807 | |
|
15808 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
15809 | 0 | clear_has_unary_oneof(); |
15810 | 0 | switch (from.unary_oneof_case()) { |
15811 | 0 | case kNegate: { |
15812 | 0 | _this->_internal_set_negate(from._internal_negate()); |
15813 | 0 | break; |
15814 | 0 | } |
15815 | 0 | case kNot: { |
15816 | 0 | _this->_internal_set_not_(from._internal_not_()); |
15817 | 0 | break; |
15818 | 0 | } |
15819 | 0 | case kLength: { |
15820 | 0 | _this->_internal_set_length(from._internal_length()); |
15821 | 0 | break; |
15822 | 0 | } |
15823 | 0 | case UNARY_ONEOF_NOT_SET: { |
15824 | 0 | break; |
15825 | 0 | } |
15826 | 0 | } |
15827 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.UnaryOperator) |
15828 | 0 | } |
15829 | | |
15830 | | inline void UnaryOperator::SharedCtor( |
15831 | 4.97k | ::_pb::Arena* arena, bool is_message_owned) { |
15832 | 4.97k | (void)arena; |
15833 | 4.97k | (void)is_message_owned; |
15834 | 4.97k | new (&_impl_) Impl_{ |
15835 | 4.97k | decltype(_impl_.unary_oneof_){} |
15836 | 4.97k | , /*decltype(_impl_._cached_size_)*/{} |
15837 | 4.97k | , /*decltype(_impl_._oneof_case_)*/{} |
15838 | 4.97k | }; |
15839 | 4.97k | clear_has_unary_oneof(); |
15840 | 4.97k | } |
15841 | | |
15842 | 4.97k | UnaryOperator::~UnaryOperator() { |
15843 | | // @@protoc_insertion_point(destructor:lua_grammar.UnaryOperator) |
15844 | 4.97k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
15845 | 0 | (void)arena; |
15846 | 0 | return; |
15847 | 0 | } |
15848 | 4.97k | SharedDtor(); |
15849 | 4.97k | } |
15850 | | |
15851 | 4.97k | inline void UnaryOperator::SharedDtor() { |
15852 | 4.97k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
15853 | 4.97k | if (has_unary_oneof()) { |
15854 | 2.78k | clear_unary_oneof(); |
15855 | 2.78k | } |
15856 | 4.97k | } |
15857 | | |
15858 | 0 | void UnaryOperator::SetCachedSize(int size) const { |
15859 | 0 | _impl_._cached_size_.Set(size); |
15860 | 0 | } |
15861 | | |
15862 | 2.78k | void UnaryOperator::clear_unary_oneof() { |
15863 | | // @@protoc_insertion_point(one_of_clear_start:lua_grammar.UnaryOperator) |
15864 | 2.78k | switch (unary_oneof_case()) { |
15865 | 977 | case kNegate: { |
15866 | | // No need to clear |
15867 | 977 | break; |
15868 | 0 | } |
15869 | 255 | case kNot: { |
15870 | | // No need to clear |
15871 | 255 | break; |
15872 | 0 | } |
15873 | 1.55k | case kLength: { |
15874 | | // No need to clear |
15875 | 1.55k | break; |
15876 | 0 | } |
15877 | 0 | case UNARY_ONEOF_NOT_SET: { |
15878 | 0 | break; |
15879 | 0 | } |
15880 | 2.78k | } |
15881 | 2.78k | _impl_._oneof_case_[0] = UNARY_ONEOF_NOT_SET; |
15882 | 2.78k | } |
15883 | | |
15884 | | |
15885 | 0 | void UnaryOperator::Clear() { |
15886 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.UnaryOperator) |
15887 | 0 | uint32_t cached_has_bits = 0; |
15888 | | // Prevent compiler warnings about cached_has_bits being unused |
15889 | 0 | (void) cached_has_bits; |
15890 | |
|
15891 | 0 | clear_unary_oneof(); |
15892 | 0 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
15893 | 0 | } |
15894 | | |
15895 | 0 | const char* UnaryOperator::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
15896 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
15897 | 0 | while (!ctx->Done(&ptr)) { |
15898 | 0 | uint32_t tag; |
15899 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
15900 | 0 | switch (tag >> 3) { |
15901 | | // uint32 negate = 1; |
15902 | 0 | case 1: |
15903 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
15904 | 0 | _internal_set_negate(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15905 | 0 | CHK_(ptr); |
15906 | 0 | } else |
15907 | 0 | goto handle_unusual; |
15908 | 0 | continue; |
15909 | | // uint32 not = 2; |
15910 | 0 | case 2: |
15911 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
15912 | 0 | _internal_set_not_(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15913 | 0 | CHK_(ptr); |
15914 | 0 | } else |
15915 | 0 | goto handle_unusual; |
15916 | 0 | continue; |
15917 | | // uint32 length = 3; |
15918 | 0 | case 3: |
15919 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
15920 | 0 | _internal_set_length(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); |
15921 | 0 | CHK_(ptr); |
15922 | 0 | } else |
15923 | 0 | goto handle_unusual; |
15924 | 0 | continue; |
15925 | 0 | default: |
15926 | 0 | goto handle_unusual; |
15927 | 0 | } // switch |
15928 | 0 | handle_unusual: |
15929 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
15930 | 0 | CHK_(ptr); |
15931 | 0 | ctx->SetLastTag(tag); |
15932 | 0 | goto message_done; |
15933 | 0 | } |
15934 | 0 | ptr = UnknownFieldParse( |
15935 | 0 | tag, |
15936 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
15937 | 0 | ptr, ctx); |
15938 | 0 | CHK_(ptr != nullptr); |
15939 | 0 | } // while |
15940 | 0 | message_done: |
15941 | 0 | return ptr; |
15942 | 0 | failure: |
15943 | 0 | ptr = nullptr; |
15944 | 0 | goto message_done; |
15945 | 0 | #undef CHK_ |
15946 | 0 | } |
15947 | | |
15948 | | uint8_t* UnaryOperator::_InternalSerialize( |
15949 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
15950 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.UnaryOperator) |
15951 | 0 | uint32_t cached_has_bits = 0; |
15952 | 0 | (void) cached_has_bits; |
15953 | |
|
15954 | 0 | switch (unary_oneof_case()) { |
15955 | 0 | case kNegate: { |
15956 | 0 | target = stream->EnsureSpace(target); |
15957 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_negate(), target); |
15958 | 0 | break; |
15959 | 0 | } |
15960 | 0 | case kNot: { |
15961 | 0 | target = stream->EnsureSpace(target); |
15962 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_not_(), target); |
15963 | 0 | break; |
15964 | 0 | } |
15965 | 0 | case kLength: { |
15966 | 0 | target = stream->EnsureSpace(target); |
15967 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_length(), target); |
15968 | 0 | break; |
15969 | 0 | } |
15970 | 0 | default: ; |
15971 | 0 | } |
15972 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
15973 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
15974 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
15975 | 0 | } |
15976 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.UnaryOperator) |
15977 | 0 | return target; |
15978 | 0 | } |
15979 | | |
15980 | 0 | size_t UnaryOperator::ByteSizeLong() const { |
15981 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.UnaryOperator) |
15982 | 0 | size_t total_size = 0; |
15983 | |
|
15984 | 0 | uint32_t cached_has_bits = 0; |
15985 | | // Prevent compiler warnings about cached_has_bits being unused |
15986 | 0 | (void) cached_has_bits; |
15987 | |
|
15988 | 0 | switch (unary_oneof_case()) { |
15989 | | // uint32 negate = 1; |
15990 | 0 | case kNegate: { |
15991 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_negate()); |
15992 | 0 | break; |
15993 | 0 | } |
15994 | | // uint32 not = 2; |
15995 | 0 | case kNot: { |
15996 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_not_()); |
15997 | 0 | break; |
15998 | 0 | } |
15999 | | // uint32 length = 3; |
16000 | 0 | case kLength: { |
16001 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_length()); |
16002 | 0 | break; |
16003 | 0 | } |
16004 | 0 | case UNARY_ONEOF_NOT_SET: { |
16005 | 0 | break; |
16006 | 0 | } |
16007 | 0 | } |
16008 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
16009 | 0 | } |
16010 | | |
16011 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnaryOperator::_class_data_ = { |
16012 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
16013 | | UnaryOperator::MergeImpl |
16014 | | }; |
16015 | 0 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnaryOperator::GetClassData() const { return &_class_data_; } |
16016 | | |
16017 | | |
16018 | 0 | void UnaryOperator::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
16019 | 0 | auto* const _this = static_cast<UnaryOperator*>(&to_msg); |
16020 | 0 | auto& from = static_cast<const UnaryOperator&>(from_msg); |
16021 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.UnaryOperator) |
16022 | 0 | GOOGLE_DCHECK_NE(&from, _this); |
16023 | 0 | uint32_t cached_has_bits = 0; |
16024 | 0 | (void) cached_has_bits; |
16025 | |
|
16026 | 0 | switch (from.unary_oneof_case()) { |
16027 | 0 | case kNegate: { |
16028 | 0 | _this->_internal_set_negate(from._internal_negate()); |
16029 | 0 | break; |
16030 | 0 | } |
16031 | 0 | case kNot: { |
16032 | 0 | _this->_internal_set_not_(from._internal_not_()); |
16033 | 0 | break; |
16034 | 0 | } |
16035 | 0 | case kLength: { |
16036 | 0 | _this->_internal_set_length(from._internal_length()); |
16037 | 0 | break; |
16038 | 0 | } |
16039 | 0 | case UNARY_ONEOF_NOT_SET: { |
16040 | 0 | break; |
16041 | 0 | } |
16042 | 0 | } |
16043 | 0 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
16044 | 0 | } |
16045 | | |
16046 | 0 | void UnaryOperator::CopyFrom(const UnaryOperator& from) { |
16047 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.UnaryOperator) |
16048 | 0 | if (&from == this) return; |
16049 | 0 | Clear(); |
16050 | 0 | MergeFrom(from); |
16051 | 0 | } |
16052 | | |
16053 | 0 | bool UnaryOperator::IsInitialized() const { |
16054 | 0 | return true; |
16055 | 0 | } |
16056 | | |
16057 | 0 | void UnaryOperator::InternalSwap(UnaryOperator* other) { |
16058 | 0 | using std::swap; |
16059 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
16060 | 0 | swap(_impl_.unary_oneof_, other->_impl_.unary_oneof_); |
16061 | 0 | swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); |
16062 | 0 | } |
16063 | | |
16064 | 37.7k | ::PROTOBUF_NAMESPACE_ID::Metadata UnaryOperator::GetMetadata() const { |
16065 | 37.7k | return ::_pbi::AssignDescriptors( |
16066 | 37.7k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
16067 | 37.7k | file_level_metadata_lua_5fgrammar_2eproto[44]); |
16068 | 37.7k | } |
16069 | | |
16070 | | // =================================================================== |
16071 | | |
16072 | | class Name::_Internal { |
16073 | | public: |
16074 | | using HasBits = decltype(std::declval<Name>()._impl_._has_bits_); |
16075 | 0 | static void set_has_name(HasBits* has_bits) { |
16076 | 0 | (*has_bits)[0] |= 1u; |
16077 | 0 | } |
16078 | 0 | static void set_has_num(HasBits* has_bits) { |
16079 | 0 | (*has_bits)[0] |= 2u; |
16080 | 0 | } |
16081 | 45.6k | static bool MissingRequiredFields(const HasBits& has_bits) { |
16082 | 45.6k | return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; |
16083 | 45.6k | } |
16084 | | }; |
16085 | | |
16086 | | Name::Name(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
16087 | | bool is_message_owned) |
16088 | 47.3k | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { |
16089 | 47.3k | SharedCtor(arena, is_message_owned); |
16090 | | // @@protoc_insertion_point(arena_constructor:lua_grammar.Name) |
16091 | 47.3k | } |
16092 | | Name::Name(const Name& from) |
16093 | 0 | : ::PROTOBUF_NAMESPACE_ID::Message() { |
16094 | 0 | Name* const _this = this; (void)_this; |
16095 | 0 | new (&_impl_) Impl_{ |
16096 | 0 | decltype(_impl_._has_bits_){from._impl_._has_bits_} |
16097 | 0 | , /*decltype(_impl_._cached_size_)*/{} |
16098 | 0 | , decltype(_impl_.name_){} |
16099 | 0 | , decltype(_impl_.num_){}}; |
16100 | |
|
16101 | 0 | _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
16102 | 0 | _impl_.name_.InitDefault(); |
16103 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
16104 | | _impl_.name_.Set("", GetArenaForAllocation()); |
16105 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
16106 | 0 | if (from._internal_has_name()) { |
16107 | 0 | _this->_impl_.name_.Set(from._internal_name(), |
16108 | 0 | _this->GetArenaForAllocation()); |
16109 | 0 | } |
16110 | 0 | _this->_impl_.num_ = from._impl_.num_; |
16111 | | // @@protoc_insertion_point(copy_constructor:lua_grammar.Name) |
16112 | 0 | } |
16113 | | |
16114 | | inline void Name::SharedCtor( |
16115 | 47.3k | ::_pb::Arena* arena, bool is_message_owned) { |
16116 | 47.3k | (void)arena; |
16117 | 47.3k | (void)is_message_owned; |
16118 | 47.3k | new (&_impl_) Impl_{ |
16119 | 47.3k | decltype(_impl_._has_bits_){} |
16120 | 47.3k | , /*decltype(_impl_._cached_size_)*/{} |
16121 | 47.3k | , decltype(_impl_.name_){} |
16122 | 47.3k | , decltype(_impl_.num_){0u} |
16123 | 47.3k | }; |
16124 | 47.3k | _impl_.name_.InitDefault(); |
16125 | | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
16126 | | _impl_.name_.Set("", GetArenaForAllocation()); |
16127 | | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
16128 | 47.3k | } |
16129 | | |
16130 | 47.3k | Name::~Name() { |
16131 | | // @@protoc_insertion_point(destructor:lua_grammar.Name) |
16132 | 47.3k | if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { |
16133 | 0 | (void)arena; |
16134 | 0 | return; |
16135 | 0 | } |
16136 | 47.3k | SharedDtor(); |
16137 | 47.3k | } |
16138 | | |
16139 | 47.3k | inline void Name::SharedDtor() { |
16140 | 47.3k | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); |
16141 | 47.3k | _impl_.name_.Destroy(); |
16142 | 47.3k | } |
16143 | | |
16144 | 0 | void Name::SetCachedSize(int size) const { |
16145 | 0 | _impl_._cached_size_.Set(size); |
16146 | 0 | } |
16147 | | |
16148 | 500 | void Name::Clear() { |
16149 | | // @@protoc_insertion_point(message_clear_start:lua_grammar.Name) |
16150 | 500 | uint32_t cached_has_bits = 0; |
16151 | | // Prevent compiler warnings about cached_has_bits being unused |
16152 | 500 | (void) cached_has_bits; |
16153 | | |
16154 | 500 | cached_has_bits = _impl_._has_bits_[0]; |
16155 | 500 | if (cached_has_bits & 0x00000001u) { |
16156 | 0 | _impl_.name_.ClearNonDefaultToEmpty(); |
16157 | 0 | } |
16158 | 500 | _impl_.num_ = 0u; |
16159 | 500 | _impl_._has_bits_.Clear(); |
16160 | 500 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
16161 | 500 | } |
16162 | | |
16163 | 0 | const char* Name::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
16164 | 0 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
16165 | 0 | _Internal::HasBits has_bits{}; |
16166 | 0 | while (!ctx->Done(&ptr)) { |
16167 | 0 | uint32_t tag; |
16168 | 0 | ptr = ::_pbi::ReadTag(ptr, &tag); |
16169 | 0 | switch (tag >> 3) { |
16170 | | // required string name = 1; |
16171 | 0 | case 1: |
16172 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
16173 | 0 | auto str = _internal_mutable_name(); |
16174 | 0 | ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
16175 | 0 | CHK_(ptr); |
16176 | 0 | #ifndef NDEBUG |
16177 | 0 | ::_pbi::VerifyUTF8(str, "lua_grammar.Name.name"); |
16178 | 0 | #endif // !NDEBUG |
16179 | 0 | } else |
16180 | 0 | goto handle_unusual; |
16181 | 0 | continue; |
16182 | | // required uint32 num = 2; |
16183 | 0 | case 2: |
16184 | 0 | if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
16185 | 0 | _Internal::set_has_num(&has_bits); |
16186 | 0 | _impl_.num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); |
16187 | 0 | CHK_(ptr); |
16188 | 0 | } else |
16189 | 0 | goto handle_unusual; |
16190 | 0 | continue; |
16191 | 0 | default: |
16192 | 0 | goto handle_unusual; |
16193 | 0 | } // switch |
16194 | 0 | handle_unusual: |
16195 | 0 | if ((tag == 0) || ((tag & 7) == 4)) { |
16196 | 0 | CHK_(ptr); |
16197 | 0 | ctx->SetLastTag(tag); |
16198 | 0 | goto message_done; |
16199 | 0 | } |
16200 | 0 | ptr = UnknownFieldParse( |
16201 | 0 | tag, |
16202 | 0 | _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
16203 | 0 | ptr, ctx); |
16204 | 0 | CHK_(ptr != nullptr); |
16205 | 0 | } // while |
16206 | 0 | message_done: |
16207 | 0 | _impl_._has_bits_.Or(has_bits); |
16208 | 0 | return ptr; |
16209 | 0 | failure: |
16210 | 0 | ptr = nullptr; |
16211 | 0 | goto message_done; |
16212 | 0 | #undef CHK_ |
16213 | 0 | } |
16214 | | |
16215 | | uint8_t* Name::_InternalSerialize( |
16216 | 0 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
16217 | | // @@protoc_insertion_point(serialize_to_array_start:lua_grammar.Name) |
16218 | 0 | uint32_t cached_has_bits = 0; |
16219 | 0 | (void) cached_has_bits; |
16220 | |
|
16221 | 0 | cached_has_bits = _impl_._has_bits_[0]; |
16222 | | // required string name = 1; |
16223 | 0 | if (cached_has_bits & 0x00000001u) { |
16224 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
16225 | 0 | this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
16226 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
16227 | 0 | "lua_grammar.Name.name"); |
16228 | 0 | target = stream->WriteStringMaybeAliased( |
16229 | 0 | 1, this->_internal_name(), target); |
16230 | 0 | } |
16231 | | |
16232 | | // required uint32 num = 2; |
16233 | 0 | if (cached_has_bits & 0x00000002u) { |
16234 | 0 | target = stream->EnsureSpace(target); |
16235 | 0 | target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_num(), target); |
16236 | 0 | } |
16237 | |
|
16238 | 0 | if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
16239 | 0 | target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( |
16240 | 0 | _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); |
16241 | 0 | } |
16242 | | // @@protoc_insertion_point(serialize_to_array_end:lua_grammar.Name) |
16243 | 0 | return target; |
16244 | 0 | } |
16245 | | |
16246 | 0 | size_t Name::RequiredFieldsByteSizeFallback() const { |
16247 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:lua_grammar.Name) |
16248 | 0 | size_t total_size = 0; |
16249 | |
|
16250 | 0 | if (_internal_has_name()) { |
16251 | | // required string name = 1; |
16252 | 0 | total_size += 1 + |
16253 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
16254 | 0 | this->_internal_name()); |
16255 | 0 | } |
16256 | |
|
16257 | 0 | if (_internal_has_num()) { |
16258 | | // required uint32 num = 2; |
16259 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num()); |
16260 | 0 | } |
16261 | |
|
16262 | 0 | return total_size; |
16263 | 0 | } |
16264 | 0 | size_t Name::ByteSizeLong() const { |
16265 | | // @@protoc_insertion_point(message_byte_size_start:lua_grammar.Name) |
16266 | 0 | size_t total_size = 0; |
16267 | |
|
16268 | 0 | if (((_impl_._has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
16269 | | // required string name = 1; |
16270 | 0 | total_size += 1 + |
16271 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
16272 | 0 | this->_internal_name()); |
16273 | | |
16274 | | // required uint32 num = 2; |
16275 | 0 | total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_num()); |
16276 | |
|
16277 | 0 | } else { |
16278 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
16279 | 0 | } |
16280 | 0 | uint32_t cached_has_bits = 0; |
16281 | | // Prevent compiler warnings about cached_has_bits being unused |
16282 | 0 | (void) cached_has_bits; |
16283 | |
|
16284 | 0 | return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); |
16285 | 0 | } |
16286 | | |
16287 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Name::_class_data_ = { |
16288 | | ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, |
16289 | | Name::MergeImpl |
16290 | | }; |
16291 | 750 | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Name::GetClassData() const { return &_class_data_; } |
16292 | | |
16293 | | |
16294 | 250 | void Name::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { |
16295 | 250 | auto* const _this = static_cast<Name*>(&to_msg); |
16296 | 250 | auto& from = static_cast<const Name&>(from_msg); |
16297 | | // @@protoc_insertion_point(class_specific_merge_from_start:lua_grammar.Name) |
16298 | 250 | GOOGLE_DCHECK_NE(&from, _this); |
16299 | 250 | uint32_t cached_has_bits = 0; |
16300 | 250 | (void) cached_has_bits; |
16301 | | |
16302 | 250 | cached_has_bits = from._impl_._has_bits_[0]; |
16303 | 250 | if (cached_has_bits & 0x00000003u) { |
16304 | 0 | if (cached_has_bits & 0x00000001u) { |
16305 | 0 | _this->_internal_set_name(from._internal_name()); |
16306 | 0 | } |
16307 | 0 | if (cached_has_bits & 0x00000002u) { |
16308 | 0 | _this->_impl_.num_ = from._impl_.num_; |
16309 | 0 | } |
16310 | 0 | _this->_impl_._has_bits_[0] |= cached_has_bits; |
16311 | 0 | } |
16312 | 250 | _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
16313 | 250 | } |
16314 | | |
16315 | 0 | void Name::CopyFrom(const Name& from) { |
16316 | | // @@protoc_insertion_point(class_specific_copy_from_start:lua_grammar.Name) |
16317 | 0 | if (&from == this) return; |
16318 | 0 | Clear(); |
16319 | 0 | MergeFrom(from); |
16320 | 0 | } |
16321 | | |
16322 | 45.6k | bool Name::IsInitialized() const { |
16323 | 45.6k | if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; |
16324 | 45.6k | return true; |
16325 | 45.6k | } |
16326 | | |
16327 | 0 | void Name::InternalSwap(Name* other) { |
16328 | 0 | using std::swap; |
16329 | 0 | auto* lhs_arena = GetArenaForAllocation(); |
16330 | 0 | auto* rhs_arena = other->GetArenaForAllocation(); |
16331 | 0 | _internal_metadata_.InternalSwap(&other->_internal_metadata_); |
16332 | 0 | swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); |
16333 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
16334 | 0 | &_impl_.name_, lhs_arena, |
16335 | 0 | &other->_impl_.name_, rhs_arena |
16336 | 0 | ); |
16337 | 0 | swap(_impl_.num_, other->_impl_.num_); |
16338 | 0 | } |
16339 | | |
16340 | 554k | ::PROTOBUF_NAMESPACE_ID::Metadata Name::GetMetadata() const { |
16341 | 554k | return ::_pbi::AssignDescriptors( |
16342 | 554k | &descriptor_table_lua_5fgrammar_2eproto_getter, &descriptor_table_lua_5fgrammar_2eproto_once, |
16343 | 554k | file_level_metadata_lua_5fgrammar_2eproto[45]); |
16344 | 554k | } |
16345 | | |
16346 | | // @@protoc_insertion_point(namespace_scope) |
16347 | | } // namespace lua_grammar |
16348 | | PROTOBUF_NAMESPACE_OPEN |
16349 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Block* |
16350 | 60.7k | Arena::CreateMaybeMessage< ::lua_grammar::Block >(Arena* arena) { |
16351 | 60.7k | return Arena::CreateMessageInternal< ::lua_grammar::Block >(arena); |
16352 | 60.7k | } |
16353 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Chunk* |
16354 | 61.7k | Arena::CreateMaybeMessage< ::lua_grammar::Chunk >(Arena* arena) { |
16355 | 61.7k | return Arena::CreateMessageInternal< ::lua_grammar::Chunk >(arena); |
16356 | 61.7k | } |
16357 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Statement* |
16358 | 69.1k | Arena::CreateMaybeMessage< ::lua_grammar::Statement >(Arena* arena) { |
16359 | 69.1k | return Arena::CreateMessageInternal< ::lua_grammar::Statement >(arena); |
16360 | 69.1k | } |
16361 | | template<> PROTOBUF_NOINLINE ::lua_grammar::AssignmentList_VariableList* |
16362 | 4.47k | Arena::CreateMaybeMessage< ::lua_grammar::AssignmentList_VariableList >(Arena* arena) { |
16363 | 4.47k | return Arena::CreateMessageInternal< ::lua_grammar::AssignmentList_VariableList >(arena); |
16364 | 4.47k | } |
16365 | | template<> PROTOBUF_NOINLINE ::lua_grammar::AssignmentList* |
16366 | 4.46k | Arena::CreateMaybeMessage< ::lua_grammar::AssignmentList >(Arena* arena) { |
16367 | 4.46k | return Arena::CreateMessageInternal< ::lua_grammar::AssignmentList >(arena); |
16368 | 4.46k | } |
16369 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FunctionCall_Args* |
16370 | 6.30k | Arena::CreateMaybeMessage< ::lua_grammar::FunctionCall_Args >(Arena* arena) { |
16371 | 6.30k | return Arena::CreateMessageInternal< ::lua_grammar::FunctionCall_Args >(arena); |
16372 | 6.30k | } |
16373 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FunctionCall_PrefixArgs* |
16374 | 3.87k | Arena::CreateMaybeMessage< ::lua_grammar::FunctionCall_PrefixArgs >(Arena* arena) { |
16375 | 3.87k | return Arena::CreateMessageInternal< ::lua_grammar::FunctionCall_PrefixArgs >(arena); |
16376 | 3.87k | } |
16377 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FunctionCall_PrefixNamedArgs* |
16378 | 2.53k | Arena::CreateMaybeMessage< ::lua_grammar::FunctionCall_PrefixNamedArgs >(Arena* arena) { |
16379 | 2.53k | return Arena::CreateMessageInternal< ::lua_grammar::FunctionCall_PrefixNamedArgs >(arena); |
16380 | 2.53k | } |
16381 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FunctionCall* |
16382 | 12.8k | Arena::CreateMaybeMessage< ::lua_grammar::FunctionCall >(Arena* arena) { |
16383 | 12.8k | return Arena::CreateMessageInternal< ::lua_grammar::FunctionCall >(arena); |
16384 | 12.8k | } |
16385 | | template<> PROTOBUF_NOINLINE ::lua_grammar::DoBlock* |
16386 | 30.8k | Arena::CreateMaybeMessage< ::lua_grammar::DoBlock >(Arena* arena) { |
16387 | 30.8k | return Arena::CreateMessageInternal< ::lua_grammar::DoBlock >(arena); |
16388 | 30.8k | } |
16389 | | template<> PROTOBUF_NOINLINE ::lua_grammar::WhileCycle* |
16390 | 3.09k | Arena::CreateMaybeMessage< ::lua_grammar::WhileCycle >(Arena* arena) { |
16391 | 3.09k | return Arena::CreateMessageInternal< ::lua_grammar::WhileCycle >(arena); |
16392 | 3.09k | } |
16393 | | template<> PROTOBUF_NOINLINE ::lua_grammar::RepeatCycle* |
16394 | 6.39k | Arena::CreateMaybeMessage< ::lua_grammar::RepeatCycle >(Arena* arena) { |
16395 | 6.39k | return Arena::CreateMessageInternal< ::lua_grammar::RepeatCycle >(arena); |
16396 | 6.39k | } |
16397 | | template<> PROTOBUF_NOINLINE ::lua_grammar::IfStatement_ElseIfBlock* |
16398 | 1.64k | Arena::CreateMaybeMessage< ::lua_grammar::IfStatement_ElseIfBlock >(Arena* arena) { |
16399 | 1.64k | return Arena::CreateMessageInternal< ::lua_grammar::IfStatement_ElseIfBlock >(arena); |
16400 | 1.64k | } |
16401 | | template<> PROTOBUF_NOINLINE ::lua_grammar::IfStatement* |
16402 | 3.27k | Arena::CreateMaybeMessage< ::lua_grammar::IfStatement >(Arena* arena) { |
16403 | 3.27k | return Arena::CreateMessageInternal< ::lua_grammar::IfStatement >(arena); |
16404 | 3.27k | } |
16405 | | template<> PROTOBUF_NOINLINE ::lua_grammar::ForCycleName* |
16406 | 1.35k | Arena::CreateMaybeMessage< ::lua_grammar::ForCycleName >(Arena* arena) { |
16407 | 1.35k | return Arena::CreateMessageInternal< ::lua_grammar::ForCycleName >(arena); |
16408 | 1.35k | } |
16409 | | template<> PROTOBUF_NOINLINE ::lua_grammar::ForCycleList* |
16410 | 25.4k | Arena::CreateMaybeMessage< ::lua_grammar::ForCycleList >(Arena* arena) { |
16411 | 25.4k | return Arena::CreateMessageInternal< ::lua_grammar::ForCycleList >(arena); |
16412 | 25.4k | } |
16413 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Function_FuncName* |
16414 | 2.33k | Arena::CreateMaybeMessage< ::lua_grammar::Function_FuncName >(Arena* arena) { |
16415 | 2.33k | return Arena::CreateMessageInternal< ::lua_grammar::Function_FuncName >(arena); |
16416 | 2.33k | } |
16417 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Function* |
16418 | 2.33k | Arena::CreateMaybeMessage< ::lua_grammar::Function >(Arena* arena) { |
16419 | 2.33k | return Arena::CreateMessageInternal< ::lua_grammar::Function >(arena); |
16420 | 2.33k | } |
16421 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FuncBody_NameListWithEllipsis* |
16422 | 505 | Arena::CreateMaybeMessage< ::lua_grammar::FuncBody_NameListWithEllipsis >(Arena* arena) { |
16423 | 505 | return Arena::CreateMessageInternal< ::lua_grammar::FuncBody_NameListWithEllipsis >(arena); |
16424 | 505 | } |
16425 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FuncBody_ParList* |
16426 | 3.71k | Arena::CreateMaybeMessage< ::lua_grammar::FuncBody_ParList >(Arena* arena) { |
16427 | 3.71k | return Arena::CreateMessageInternal< ::lua_grammar::FuncBody_ParList >(arena); |
16428 | 3.71k | } |
16429 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FuncBody* |
16430 | 17.4k | Arena::CreateMaybeMessage< ::lua_grammar::FuncBody >(Arena* arena) { |
16431 | 17.4k | return Arena::CreateMessageInternal< ::lua_grammar::FuncBody >(arena); |
16432 | 17.4k | } |
16433 | | template<> PROTOBUF_NOINLINE ::lua_grammar::NameList* |
16434 | 27.8k | Arena::CreateMaybeMessage< ::lua_grammar::NameList >(Arena* arena) { |
16435 | 27.8k | return Arena::CreateMessageInternal< ::lua_grammar::NameList >(arena); |
16436 | 27.8k | } |
16437 | | template<> PROTOBUF_NOINLINE ::lua_grammar::LocalFunc* |
16438 | 2.11k | Arena::CreateMaybeMessage< ::lua_grammar::LocalFunc >(Arena* arena) { |
16439 | 2.11k | return Arena::CreateMessageInternal< ::lua_grammar::LocalFunc >(arena); |
16440 | 2.11k | } |
16441 | | template<> PROTOBUF_NOINLINE ::lua_grammar::LocalNames* |
16442 | 1.95k | Arena::CreateMaybeMessage< ::lua_grammar::LocalNames >(Arena* arena) { |
16443 | 1.95k | return Arena::CreateMessageInternal< ::lua_grammar::LocalNames >(arena); |
16444 | 1.95k | } |
16445 | | template<> PROTOBUF_NOINLINE ::lua_grammar::LastStatement_ReturnOptionalExpressionList* |
16446 | 3.51k | Arena::CreateMaybeMessage< ::lua_grammar::LastStatement_ReturnOptionalExpressionList >(Arena* arena) { |
16447 | 3.51k | return Arena::CreateMessageInternal< ::lua_grammar::LastStatement_ReturnOptionalExpressionList >(arena); |
16448 | 3.51k | } |
16449 | | template<> PROTOBUF_NOINLINE ::lua_grammar::LastStatement* |
16450 | 7.34k | Arena::CreateMaybeMessage< ::lua_grammar::LastStatement >(Arena* arena) { |
16451 | 7.34k | return Arena::CreateMessageInternal< ::lua_grammar::LastStatement >(arena); |
16452 | 7.34k | } |
16453 | | template<> PROTOBUF_NOINLINE ::lua_grammar::ExpressionList* |
16454 | 36.2k | Arena::CreateMaybeMessage< ::lua_grammar::ExpressionList >(Arena* arena) { |
16455 | 36.2k | return Arena::CreateMessageInternal< ::lua_grammar::ExpressionList >(arena); |
16456 | 36.2k | } |
16457 | | template<> PROTOBUF_NOINLINE ::lua_grammar::OptionalExpressionList* |
16458 | 3.08k | Arena::CreateMaybeMessage< ::lua_grammar::OptionalExpressionList >(Arena* arena) { |
16459 | 3.08k | return Arena::CreateMessageInternal< ::lua_grammar::OptionalExpressionList >(arena); |
16460 | 3.08k | } |
16461 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Variable_IndexWithExpression* |
16462 | 4.50k | Arena::CreateMaybeMessage< ::lua_grammar::Variable_IndexWithExpression >(Arena* arena) { |
16463 | 4.50k | return Arena::CreateMessageInternal< ::lua_grammar::Variable_IndexWithExpression >(arena); |
16464 | 4.50k | } |
16465 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Variable_IndexWithName* |
16466 | 4.56k | Arena::CreateMaybeMessage< ::lua_grammar::Variable_IndexWithName >(Arena* arena) { |
16467 | 4.56k | return Arena::CreateMessageInternal< ::lua_grammar::Variable_IndexWithName >(arena); |
16468 | 4.56k | } |
16469 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Variable* |
16470 | 19.1k | Arena::CreateMaybeMessage< ::lua_grammar::Variable >(Arena* arena) { |
16471 | 19.1k | return Arena::CreateMessageInternal< ::lua_grammar::Variable >(arena); |
16472 | 19.1k | } |
16473 | | template<> PROTOBUF_NOINLINE ::lua_grammar::PrefixExpression* |
16474 | 30.7k | Arena::CreateMaybeMessage< ::lua_grammar::PrefixExpression >(Arena* arena) { |
16475 | 30.7k | return Arena::CreateMessageInternal< ::lua_grammar::PrefixExpression >(arena); |
16476 | 30.7k | } |
16477 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Expression_AnonFunc* |
16478 | 13.1k | Arena::CreateMaybeMessage< ::lua_grammar::Expression_AnonFunc >(Arena* arena) { |
16479 | 13.1k | return Arena::CreateMessageInternal< ::lua_grammar::Expression_AnonFunc >(arena); |
16480 | 13.1k | } |
16481 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Expression_ExpBinaryOpExp* |
16482 | 18.9k | Arena::CreateMaybeMessage< ::lua_grammar::Expression_ExpBinaryOpExp >(Arena* arena) { |
16483 | 18.9k | return Arena::CreateMessageInternal< ::lua_grammar::Expression_ExpBinaryOpExp >(arena); |
16484 | 18.9k | } |
16485 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Expression_UnaryOpExp* |
16486 | 4.99k | Arena::CreateMaybeMessage< ::lua_grammar::Expression_UnaryOpExp >(Arena* arena) { |
16487 | 4.99k | return Arena::CreateMessageInternal< ::lua_grammar::Expression_UnaryOpExp >(arena); |
16488 | 4.99k | } |
16489 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Expression* |
16490 | 139k | Arena::CreateMaybeMessage< ::lua_grammar::Expression >(Arena* arena) { |
16491 | 139k | return Arena::CreateMessageInternal< ::lua_grammar::Expression >(arena); |
16492 | 139k | } |
16493 | | template<> PROTOBUF_NOINLINE ::lua_grammar::TableConstructor* |
16494 | 5.50k | Arena::CreateMaybeMessage< ::lua_grammar::TableConstructor >(Arena* arena) { |
16495 | 5.50k | return Arena::CreateMessageInternal< ::lua_grammar::TableConstructor >(arena); |
16496 | 5.50k | } |
16497 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FieldList_FieldWithFieldSep* |
16498 | 4.26k | Arena::CreateMaybeMessage< ::lua_grammar::FieldList_FieldWithFieldSep >(Arena* arena) { |
16499 | 4.26k | return Arena::CreateMessageInternal< ::lua_grammar::FieldList_FieldWithFieldSep >(arena); |
16500 | 4.26k | } |
16501 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FieldList* |
16502 | 4.19k | Arena::CreateMaybeMessage< ::lua_grammar::FieldList >(Arena* arena) { |
16503 | 4.19k | return Arena::CreateMessageInternal< ::lua_grammar::FieldList >(arena); |
16504 | 4.19k | } |
16505 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Field_ExpressionAssignment* |
16506 | 2.57k | Arena::CreateMaybeMessage< ::lua_grammar::Field_ExpressionAssignment >(Arena* arena) { |
16507 | 2.57k | return Arena::CreateMessageInternal< ::lua_grammar::Field_ExpressionAssignment >(arena); |
16508 | 2.57k | } |
16509 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Field_NameAssignment* |
16510 | 350 | Arena::CreateMaybeMessage< ::lua_grammar::Field_NameAssignment >(Arena* arena) { |
16511 | 350 | return Arena::CreateMessageInternal< ::lua_grammar::Field_NameAssignment >(arena); |
16512 | 350 | } |
16513 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Field* |
16514 | 8.45k | Arena::CreateMaybeMessage< ::lua_grammar::Field >(Arena* arena) { |
16515 | 8.45k | return Arena::CreateMessageInternal< ::lua_grammar::Field >(arena); |
16516 | 8.45k | } |
16517 | | template<> PROTOBUF_NOINLINE ::lua_grammar::FieldSep* |
16518 | 4.79k | Arena::CreateMaybeMessage< ::lua_grammar::FieldSep >(Arena* arena) { |
16519 | 4.79k | return Arena::CreateMessageInternal< ::lua_grammar::FieldSep >(arena); |
16520 | 4.79k | } |
16521 | | template<> PROTOBUF_NOINLINE ::lua_grammar::BinaryOperator* |
16522 | 18.9k | Arena::CreateMaybeMessage< ::lua_grammar::BinaryOperator >(Arena* arena) { |
16523 | 18.9k | return Arena::CreateMessageInternal< ::lua_grammar::BinaryOperator >(arena); |
16524 | 18.9k | } |
16525 | | template<> PROTOBUF_NOINLINE ::lua_grammar::UnaryOperator* |
16526 | 4.97k | Arena::CreateMaybeMessage< ::lua_grammar::UnaryOperator >(Arena* arena) { |
16527 | 4.97k | return Arena::CreateMessageInternal< ::lua_grammar::UnaryOperator >(arena); |
16528 | 4.97k | } |
16529 | | template<> PROTOBUF_NOINLINE ::lua_grammar::Name* |
16530 | 47.3k | Arena::CreateMaybeMessage< ::lua_grammar::Name >(Arena* arena) { |
16531 | 47.3k | return Arena::CreateMessageInternal< ::lua_grammar::Name >(arena); |
16532 | 47.3k | } |
16533 | | PROTOBUF_NAMESPACE_CLOSE |
16534 | | |
16535 | | // @@protoc_insertion_point(global_scope) |
16536 | | #include <google/protobuf/port_undef.inc> |