/src/testdir/build/tests/luaL_loadbuffer_proto/lua_grammar.pb.h
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 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_lua_5fgrammar_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_lua_5fgrammar_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3021007 < PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata_lite.h> |
28 | | #include <google/protobuf/generated_message_reflection.h> |
29 | | #include <google/protobuf/message.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | #include <google/protobuf/unknown_field_set.h> |
33 | | // @@protoc_insertion_point(includes) |
34 | | #include <google/protobuf/port_def.inc> |
35 | | #define PROTOBUF_INTERNAL_EXPORT_lua_5fgrammar_2eproto |
36 | | PROTOBUF_NAMESPACE_OPEN |
37 | | namespace internal { |
38 | | class AnyMetadata; |
39 | | } // namespace internal |
40 | | PROTOBUF_NAMESPACE_CLOSE |
41 | | |
42 | | // Internal implementation detail -- do not use these members. |
43 | | struct TableStruct_lua_5fgrammar_2eproto { |
44 | | static const uint32_t offsets[]; |
45 | | }; |
46 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_lua_5fgrammar_2eproto; |
47 | | namespace lua_grammar { |
48 | | class AssignmentList; |
49 | | struct AssignmentListDefaultTypeInternal; |
50 | | extern AssignmentListDefaultTypeInternal _AssignmentList_default_instance_; |
51 | | class AssignmentList_VariableList; |
52 | | struct AssignmentList_VariableListDefaultTypeInternal; |
53 | | extern AssignmentList_VariableListDefaultTypeInternal _AssignmentList_VariableList_default_instance_; |
54 | | class BinaryOperator; |
55 | | struct BinaryOperatorDefaultTypeInternal; |
56 | | extern BinaryOperatorDefaultTypeInternal _BinaryOperator_default_instance_; |
57 | | class Block; |
58 | | struct BlockDefaultTypeInternal; |
59 | | extern BlockDefaultTypeInternal _Block_default_instance_; |
60 | | class Chunk; |
61 | | struct ChunkDefaultTypeInternal; |
62 | | extern ChunkDefaultTypeInternal _Chunk_default_instance_; |
63 | | class DoBlock; |
64 | | struct DoBlockDefaultTypeInternal; |
65 | | extern DoBlockDefaultTypeInternal _DoBlock_default_instance_; |
66 | | class Expression; |
67 | | struct ExpressionDefaultTypeInternal; |
68 | | extern ExpressionDefaultTypeInternal _Expression_default_instance_; |
69 | | class ExpressionList; |
70 | | struct ExpressionListDefaultTypeInternal; |
71 | | extern ExpressionListDefaultTypeInternal _ExpressionList_default_instance_; |
72 | | class Expression_AnonFunc; |
73 | | struct Expression_AnonFuncDefaultTypeInternal; |
74 | | extern Expression_AnonFuncDefaultTypeInternal _Expression_AnonFunc_default_instance_; |
75 | | class Expression_ExpBinaryOpExp; |
76 | | struct Expression_ExpBinaryOpExpDefaultTypeInternal; |
77 | | extern Expression_ExpBinaryOpExpDefaultTypeInternal _Expression_ExpBinaryOpExp_default_instance_; |
78 | | class Expression_UnaryOpExp; |
79 | | struct Expression_UnaryOpExpDefaultTypeInternal; |
80 | | extern Expression_UnaryOpExpDefaultTypeInternal _Expression_UnaryOpExp_default_instance_; |
81 | | class Field; |
82 | | struct FieldDefaultTypeInternal; |
83 | | extern FieldDefaultTypeInternal _Field_default_instance_; |
84 | | class FieldList; |
85 | | struct FieldListDefaultTypeInternal; |
86 | | extern FieldListDefaultTypeInternal _FieldList_default_instance_; |
87 | | class FieldList_FieldWithFieldSep; |
88 | | struct FieldList_FieldWithFieldSepDefaultTypeInternal; |
89 | | extern FieldList_FieldWithFieldSepDefaultTypeInternal _FieldList_FieldWithFieldSep_default_instance_; |
90 | | class FieldSep; |
91 | | struct FieldSepDefaultTypeInternal; |
92 | | extern FieldSepDefaultTypeInternal _FieldSep_default_instance_; |
93 | | class Field_ExpressionAssignment; |
94 | | struct Field_ExpressionAssignmentDefaultTypeInternal; |
95 | | extern Field_ExpressionAssignmentDefaultTypeInternal _Field_ExpressionAssignment_default_instance_; |
96 | | class Field_NameAssignment; |
97 | | struct Field_NameAssignmentDefaultTypeInternal; |
98 | | extern Field_NameAssignmentDefaultTypeInternal _Field_NameAssignment_default_instance_; |
99 | | class ForCycleList; |
100 | | struct ForCycleListDefaultTypeInternal; |
101 | | extern ForCycleListDefaultTypeInternal _ForCycleList_default_instance_; |
102 | | class ForCycleName; |
103 | | struct ForCycleNameDefaultTypeInternal; |
104 | | extern ForCycleNameDefaultTypeInternal _ForCycleName_default_instance_; |
105 | | class FuncBody; |
106 | | struct FuncBodyDefaultTypeInternal; |
107 | | extern FuncBodyDefaultTypeInternal _FuncBody_default_instance_; |
108 | | class FuncBody_NameListWithEllipsis; |
109 | | struct FuncBody_NameListWithEllipsisDefaultTypeInternal; |
110 | | extern FuncBody_NameListWithEllipsisDefaultTypeInternal _FuncBody_NameListWithEllipsis_default_instance_; |
111 | | class FuncBody_ParList; |
112 | | struct FuncBody_ParListDefaultTypeInternal; |
113 | | extern FuncBody_ParListDefaultTypeInternal _FuncBody_ParList_default_instance_; |
114 | | class Function; |
115 | | struct FunctionDefaultTypeInternal; |
116 | | extern FunctionDefaultTypeInternal _Function_default_instance_; |
117 | | class FunctionCall; |
118 | | struct FunctionCallDefaultTypeInternal; |
119 | | extern FunctionCallDefaultTypeInternal _FunctionCall_default_instance_; |
120 | | class FunctionCall_Args; |
121 | | struct FunctionCall_ArgsDefaultTypeInternal; |
122 | | extern FunctionCall_ArgsDefaultTypeInternal _FunctionCall_Args_default_instance_; |
123 | | class FunctionCall_PrefixArgs; |
124 | | struct FunctionCall_PrefixArgsDefaultTypeInternal; |
125 | | extern FunctionCall_PrefixArgsDefaultTypeInternal _FunctionCall_PrefixArgs_default_instance_; |
126 | | class FunctionCall_PrefixNamedArgs; |
127 | | struct FunctionCall_PrefixNamedArgsDefaultTypeInternal; |
128 | | extern FunctionCall_PrefixNamedArgsDefaultTypeInternal _FunctionCall_PrefixNamedArgs_default_instance_; |
129 | | class Function_FuncName; |
130 | | struct Function_FuncNameDefaultTypeInternal; |
131 | | extern Function_FuncNameDefaultTypeInternal _Function_FuncName_default_instance_; |
132 | | class IfStatement; |
133 | | struct IfStatementDefaultTypeInternal; |
134 | | extern IfStatementDefaultTypeInternal _IfStatement_default_instance_; |
135 | | class IfStatement_ElseIfBlock; |
136 | | struct IfStatement_ElseIfBlockDefaultTypeInternal; |
137 | | extern IfStatement_ElseIfBlockDefaultTypeInternal _IfStatement_ElseIfBlock_default_instance_; |
138 | | class LastStatement; |
139 | | struct LastStatementDefaultTypeInternal; |
140 | | extern LastStatementDefaultTypeInternal _LastStatement_default_instance_; |
141 | | class LastStatement_ReturnOptionalExpressionList; |
142 | | struct LastStatement_ReturnOptionalExpressionListDefaultTypeInternal; |
143 | | extern LastStatement_ReturnOptionalExpressionListDefaultTypeInternal _LastStatement_ReturnOptionalExpressionList_default_instance_; |
144 | | class LocalFunc; |
145 | | struct LocalFuncDefaultTypeInternal; |
146 | | extern LocalFuncDefaultTypeInternal _LocalFunc_default_instance_; |
147 | | class LocalNames; |
148 | | struct LocalNamesDefaultTypeInternal; |
149 | | extern LocalNamesDefaultTypeInternal _LocalNames_default_instance_; |
150 | | class Name; |
151 | | struct NameDefaultTypeInternal; |
152 | | extern NameDefaultTypeInternal _Name_default_instance_; |
153 | | class NameList; |
154 | | struct NameListDefaultTypeInternal; |
155 | | extern NameListDefaultTypeInternal _NameList_default_instance_; |
156 | | class OptionalExpressionList; |
157 | | struct OptionalExpressionListDefaultTypeInternal; |
158 | | extern OptionalExpressionListDefaultTypeInternal _OptionalExpressionList_default_instance_; |
159 | | class PrefixExpression; |
160 | | struct PrefixExpressionDefaultTypeInternal; |
161 | | extern PrefixExpressionDefaultTypeInternal _PrefixExpression_default_instance_; |
162 | | class RepeatCycle; |
163 | | struct RepeatCycleDefaultTypeInternal; |
164 | | extern RepeatCycleDefaultTypeInternal _RepeatCycle_default_instance_; |
165 | | class Statement; |
166 | | struct StatementDefaultTypeInternal; |
167 | | extern StatementDefaultTypeInternal _Statement_default_instance_; |
168 | | class TableConstructor; |
169 | | struct TableConstructorDefaultTypeInternal; |
170 | | extern TableConstructorDefaultTypeInternal _TableConstructor_default_instance_; |
171 | | class UnaryOperator; |
172 | | struct UnaryOperatorDefaultTypeInternal; |
173 | | extern UnaryOperatorDefaultTypeInternal _UnaryOperator_default_instance_; |
174 | | class Variable; |
175 | | struct VariableDefaultTypeInternal; |
176 | | extern VariableDefaultTypeInternal _Variable_default_instance_; |
177 | | class Variable_IndexWithExpression; |
178 | | struct Variable_IndexWithExpressionDefaultTypeInternal; |
179 | | extern Variable_IndexWithExpressionDefaultTypeInternal _Variable_IndexWithExpression_default_instance_; |
180 | | class Variable_IndexWithName; |
181 | | struct Variable_IndexWithNameDefaultTypeInternal; |
182 | | extern Variable_IndexWithNameDefaultTypeInternal _Variable_IndexWithName_default_instance_; |
183 | | class WhileCycle; |
184 | | struct WhileCycleDefaultTypeInternal; |
185 | | extern WhileCycleDefaultTypeInternal _WhileCycle_default_instance_; |
186 | | } // namespace lua_grammar |
187 | | PROTOBUF_NAMESPACE_OPEN |
188 | | template<> ::lua_grammar::AssignmentList* Arena::CreateMaybeMessage<::lua_grammar::AssignmentList>(Arena*); |
189 | | template<> ::lua_grammar::AssignmentList_VariableList* Arena::CreateMaybeMessage<::lua_grammar::AssignmentList_VariableList>(Arena*); |
190 | | template<> ::lua_grammar::BinaryOperator* Arena::CreateMaybeMessage<::lua_grammar::BinaryOperator>(Arena*); |
191 | | template<> ::lua_grammar::Block* Arena::CreateMaybeMessage<::lua_grammar::Block>(Arena*); |
192 | | template<> ::lua_grammar::Chunk* Arena::CreateMaybeMessage<::lua_grammar::Chunk>(Arena*); |
193 | | template<> ::lua_grammar::DoBlock* Arena::CreateMaybeMessage<::lua_grammar::DoBlock>(Arena*); |
194 | | template<> ::lua_grammar::Expression* Arena::CreateMaybeMessage<::lua_grammar::Expression>(Arena*); |
195 | | template<> ::lua_grammar::ExpressionList* Arena::CreateMaybeMessage<::lua_grammar::ExpressionList>(Arena*); |
196 | | template<> ::lua_grammar::Expression_AnonFunc* Arena::CreateMaybeMessage<::lua_grammar::Expression_AnonFunc>(Arena*); |
197 | | template<> ::lua_grammar::Expression_ExpBinaryOpExp* Arena::CreateMaybeMessage<::lua_grammar::Expression_ExpBinaryOpExp>(Arena*); |
198 | | template<> ::lua_grammar::Expression_UnaryOpExp* Arena::CreateMaybeMessage<::lua_grammar::Expression_UnaryOpExp>(Arena*); |
199 | | template<> ::lua_grammar::Field* Arena::CreateMaybeMessage<::lua_grammar::Field>(Arena*); |
200 | | template<> ::lua_grammar::FieldList* Arena::CreateMaybeMessage<::lua_grammar::FieldList>(Arena*); |
201 | | template<> ::lua_grammar::FieldList_FieldWithFieldSep* Arena::CreateMaybeMessage<::lua_grammar::FieldList_FieldWithFieldSep>(Arena*); |
202 | | template<> ::lua_grammar::FieldSep* Arena::CreateMaybeMessage<::lua_grammar::FieldSep>(Arena*); |
203 | | template<> ::lua_grammar::Field_ExpressionAssignment* Arena::CreateMaybeMessage<::lua_grammar::Field_ExpressionAssignment>(Arena*); |
204 | | template<> ::lua_grammar::Field_NameAssignment* Arena::CreateMaybeMessage<::lua_grammar::Field_NameAssignment>(Arena*); |
205 | | template<> ::lua_grammar::ForCycleList* Arena::CreateMaybeMessage<::lua_grammar::ForCycleList>(Arena*); |
206 | | template<> ::lua_grammar::ForCycleName* Arena::CreateMaybeMessage<::lua_grammar::ForCycleName>(Arena*); |
207 | | template<> ::lua_grammar::FuncBody* Arena::CreateMaybeMessage<::lua_grammar::FuncBody>(Arena*); |
208 | | template<> ::lua_grammar::FuncBody_NameListWithEllipsis* Arena::CreateMaybeMessage<::lua_grammar::FuncBody_NameListWithEllipsis>(Arena*); |
209 | | template<> ::lua_grammar::FuncBody_ParList* Arena::CreateMaybeMessage<::lua_grammar::FuncBody_ParList>(Arena*); |
210 | | template<> ::lua_grammar::Function* Arena::CreateMaybeMessage<::lua_grammar::Function>(Arena*); |
211 | | template<> ::lua_grammar::FunctionCall* Arena::CreateMaybeMessage<::lua_grammar::FunctionCall>(Arena*); |
212 | | template<> ::lua_grammar::FunctionCall_Args* Arena::CreateMaybeMessage<::lua_grammar::FunctionCall_Args>(Arena*); |
213 | | template<> ::lua_grammar::FunctionCall_PrefixArgs* Arena::CreateMaybeMessage<::lua_grammar::FunctionCall_PrefixArgs>(Arena*); |
214 | | template<> ::lua_grammar::FunctionCall_PrefixNamedArgs* Arena::CreateMaybeMessage<::lua_grammar::FunctionCall_PrefixNamedArgs>(Arena*); |
215 | | template<> ::lua_grammar::Function_FuncName* Arena::CreateMaybeMessage<::lua_grammar::Function_FuncName>(Arena*); |
216 | | template<> ::lua_grammar::IfStatement* Arena::CreateMaybeMessage<::lua_grammar::IfStatement>(Arena*); |
217 | | template<> ::lua_grammar::IfStatement_ElseIfBlock* Arena::CreateMaybeMessage<::lua_grammar::IfStatement_ElseIfBlock>(Arena*); |
218 | | template<> ::lua_grammar::LastStatement* Arena::CreateMaybeMessage<::lua_grammar::LastStatement>(Arena*); |
219 | | template<> ::lua_grammar::LastStatement_ReturnOptionalExpressionList* Arena::CreateMaybeMessage<::lua_grammar::LastStatement_ReturnOptionalExpressionList>(Arena*); |
220 | | template<> ::lua_grammar::LocalFunc* Arena::CreateMaybeMessage<::lua_grammar::LocalFunc>(Arena*); |
221 | | template<> ::lua_grammar::LocalNames* Arena::CreateMaybeMessage<::lua_grammar::LocalNames>(Arena*); |
222 | | template<> ::lua_grammar::Name* Arena::CreateMaybeMessage<::lua_grammar::Name>(Arena*); |
223 | | template<> ::lua_grammar::NameList* Arena::CreateMaybeMessage<::lua_grammar::NameList>(Arena*); |
224 | | template<> ::lua_grammar::OptionalExpressionList* Arena::CreateMaybeMessage<::lua_grammar::OptionalExpressionList>(Arena*); |
225 | | template<> ::lua_grammar::PrefixExpression* Arena::CreateMaybeMessage<::lua_grammar::PrefixExpression>(Arena*); |
226 | | template<> ::lua_grammar::RepeatCycle* Arena::CreateMaybeMessage<::lua_grammar::RepeatCycle>(Arena*); |
227 | | template<> ::lua_grammar::Statement* Arena::CreateMaybeMessage<::lua_grammar::Statement>(Arena*); |
228 | | template<> ::lua_grammar::TableConstructor* Arena::CreateMaybeMessage<::lua_grammar::TableConstructor>(Arena*); |
229 | | template<> ::lua_grammar::UnaryOperator* Arena::CreateMaybeMessage<::lua_grammar::UnaryOperator>(Arena*); |
230 | | template<> ::lua_grammar::Variable* Arena::CreateMaybeMessage<::lua_grammar::Variable>(Arena*); |
231 | | template<> ::lua_grammar::Variable_IndexWithExpression* Arena::CreateMaybeMessage<::lua_grammar::Variable_IndexWithExpression>(Arena*); |
232 | | template<> ::lua_grammar::Variable_IndexWithName* Arena::CreateMaybeMessage<::lua_grammar::Variable_IndexWithName>(Arena*); |
233 | | template<> ::lua_grammar::WhileCycle* Arena::CreateMaybeMessage<::lua_grammar::WhileCycle>(Arena*); |
234 | | PROTOBUF_NAMESPACE_CLOSE |
235 | | namespace lua_grammar { |
236 | | |
237 | | // =================================================================== |
238 | | |
239 | | class Block final : |
240 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Block) */ { |
241 | | public: |
242 | 993 | inline Block() : Block(nullptr) {} |
243 | | ~Block() override; |
244 | | explicit PROTOBUF_CONSTEXPR Block(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
245 | | |
246 | | Block(const Block& from); |
247 | | Block(Block&& from) noexcept |
248 | 0 | : Block() { |
249 | 0 | *this = ::std::move(from); |
250 | 0 | } |
251 | | |
252 | 0 | inline Block& operator=(const Block& from) { |
253 | 0 | CopyFrom(from); |
254 | 0 | return *this; |
255 | 0 | } |
256 | 0 | inline Block& operator=(Block&& from) noexcept { |
257 | 0 | if (this == &from) return *this; |
258 | 0 | if (GetOwningArena() == from.GetOwningArena() |
259 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
260 | 0 | && GetOwningArena() != nullptr |
261 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
262 | 0 | ) { |
263 | 0 | InternalSwap(&from); |
264 | 0 | } else { |
265 | 0 | CopyFrom(from); |
266 | 0 | } |
267 | 0 | return *this; |
268 | 0 | } |
269 | | |
270 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
271 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
272 | 0 | } |
273 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
274 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
275 | 0 | } |
276 | | |
277 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
278 | 0 | return GetDescriptor(); |
279 | 0 | } |
280 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
281 | 0 | return default_instance().GetMetadata().descriptor; |
282 | 0 | } |
283 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
284 | 0 | return default_instance().GetMetadata().reflection; |
285 | 0 | } |
286 | 0 | static const Block& default_instance() { |
287 | 0 | return *internal_default_instance(); |
288 | 0 | } |
289 | 61.7k | static inline const Block* internal_default_instance() { |
290 | 61.7k | return reinterpret_cast<const Block*>( |
291 | 61.7k | &_Block_default_instance_); |
292 | 61.7k | } |
293 | | static constexpr int kIndexInFileMessages = |
294 | | 0; |
295 | | |
296 | 0 | friend void swap(Block& a, Block& b) { |
297 | 0 | a.Swap(&b); |
298 | 0 | } |
299 | 0 | inline void Swap(Block* other) { |
300 | 0 | if (other == this) return; |
301 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
302 | 0 | if (GetOwningArena() != nullptr && |
303 | 0 | GetOwningArena() == other->GetOwningArena()) { |
304 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
305 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
306 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
307 | 0 | InternalSwap(other); |
308 | 0 | } else { |
309 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
310 | 0 | } |
311 | 0 | } |
312 | 0 | void UnsafeArenaSwap(Block* other) { |
313 | 0 | if (other == this) return; |
314 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
315 | 0 | InternalSwap(other); |
316 | 0 | } |
317 | | |
318 | | // implements Message ---------------------------------------------- |
319 | | |
320 | 60.7k | Block* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
321 | 60.7k | return CreateMaybeMessage<Block>(arena); |
322 | 60.7k | } |
323 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
324 | | void CopyFrom(const Block& from); |
325 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
326 | 0 | void MergeFrom( const Block& from) { |
327 | 0 | Block::MergeImpl(*this, from); |
328 | 0 | } |
329 | | private: |
330 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
331 | | public: |
332 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
333 | | bool IsInitialized() const final; |
334 | | |
335 | | size_t ByteSizeLong() const final; |
336 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
337 | | uint8_t* _InternalSerialize( |
338 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
339 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
340 | | |
341 | | private: |
342 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
343 | | void SharedDtor(); |
344 | | void SetCachedSize(int size) const final; |
345 | | void InternalSwap(Block* other); |
346 | | |
347 | | private: |
348 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
349 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
350 | 0 | return "lua_grammar.Block"; |
351 | 0 | } |
352 | | protected: |
353 | | explicit Block(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
354 | | bool is_message_owned = false); |
355 | | public: |
356 | | |
357 | | static const ClassData _class_data_; |
358 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
359 | | |
360 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
361 | | |
362 | | // nested types ---------------------------------------------------- |
363 | | |
364 | | // accessors ------------------------------------------------------- |
365 | | |
366 | | enum : int { |
367 | | kChunkFieldNumber = 1, |
368 | | }; |
369 | | // required .lua_grammar.Chunk chunk = 1; |
370 | | bool has_chunk() const; |
371 | | private: |
372 | | bool _internal_has_chunk() const; |
373 | | public: |
374 | | void clear_chunk(); |
375 | | const ::lua_grammar::Chunk& chunk() const; |
376 | | PROTOBUF_NODISCARD ::lua_grammar::Chunk* release_chunk(); |
377 | | ::lua_grammar::Chunk* mutable_chunk(); |
378 | | void set_allocated_chunk(::lua_grammar::Chunk* chunk); |
379 | | private: |
380 | | const ::lua_grammar::Chunk& _internal_chunk() const; |
381 | | ::lua_grammar::Chunk* _internal_mutable_chunk(); |
382 | | public: |
383 | | void unsafe_arena_set_allocated_chunk( |
384 | | ::lua_grammar::Chunk* chunk); |
385 | | ::lua_grammar::Chunk* unsafe_arena_release_chunk(); |
386 | | |
387 | | // @@protoc_insertion_point(class_scope:lua_grammar.Block) |
388 | | private: |
389 | | class _Internal; |
390 | | |
391 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
392 | | typedef void InternalArenaConstructable_; |
393 | | typedef void DestructorSkippable_; |
394 | | struct Impl_ { |
395 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
396 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
397 | | ::lua_grammar::Chunk* chunk_; |
398 | | }; |
399 | | union { Impl_ _impl_; }; |
400 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
401 | | }; |
402 | | // ------------------------------------------------------------------- |
403 | | |
404 | | class Chunk final : |
405 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Chunk) */ { |
406 | | public: |
407 | 0 | inline Chunk() : Chunk(nullptr) {} |
408 | | ~Chunk() override; |
409 | | explicit PROTOBUF_CONSTEXPR Chunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
410 | | |
411 | | Chunk(const Chunk& from); |
412 | | Chunk(Chunk&& from) noexcept |
413 | 0 | : Chunk() { |
414 | 0 | *this = ::std::move(from); |
415 | 0 | } |
416 | | |
417 | 0 | inline Chunk& operator=(const Chunk& from) { |
418 | 0 | CopyFrom(from); |
419 | 0 | return *this; |
420 | 0 | } |
421 | 0 | inline Chunk& operator=(Chunk&& from) noexcept { |
422 | 0 | if (this == &from) return *this; |
423 | 0 | if (GetOwningArena() == from.GetOwningArena() |
424 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
425 | 0 | && GetOwningArena() != nullptr |
426 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
427 | 0 | ) { |
428 | 0 | InternalSwap(&from); |
429 | 0 | } else { |
430 | 0 | CopyFrom(from); |
431 | 0 | } |
432 | 0 | return *this; |
433 | 0 | } |
434 | | |
435 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
436 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
437 | 0 | } |
438 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
439 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
440 | 0 | } |
441 | | |
442 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
443 | 0 | return GetDescriptor(); |
444 | 0 | } |
445 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
446 | 0 | return default_instance().GetMetadata().descriptor; |
447 | 0 | } |
448 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
449 | 0 | return default_instance().GetMetadata().reflection; |
450 | 0 | } |
451 | 0 | static const Chunk& default_instance() { |
452 | 0 | return *internal_default_instance(); |
453 | 0 | } |
454 | 61.7k | static inline const Chunk* internal_default_instance() { |
455 | 61.7k | return reinterpret_cast<const Chunk*>( |
456 | 61.7k | &_Chunk_default_instance_); |
457 | 61.7k | } |
458 | | static constexpr int kIndexInFileMessages = |
459 | | 1; |
460 | | |
461 | 0 | friend void swap(Chunk& a, Chunk& b) { |
462 | 0 | a.Swap(&b); |
463 | 0 | } |
464 | 0 | inline void Swap(Chunk* other) { |
465 | 0 | if (other == this) return; |
466 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
467 | 0 | if (GetOwningArena() != nullptr && |
468 | 0 | GetOwningArena() == other->GetOwningArena()) { |
469 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
470 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
471 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
472 | 0 | InternalSwap(other); |
473 | 0 | } else { |
474 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
475 | 0 | } |
476 | 0 | } |
477 | 0 | void UnsafeArenaSwap(Chunk* other) { |
478 | 0 | if (other == this) return; |
479 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
480 | 0 | InternalSwap(other); |
481 | 0 | } |
482 | | |
483 | | // implements Message ---------------------------------------------- |
484 | | |
485 | 61.7k | Chunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
486 | 61.7k | return CreateMaybeMessage<Chunk>(arena); |
487 | 61.7k | } |
488 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
489 | | void CopyFrom(const Chunk& from); |
490 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
491 | 0 | void MergeFrom( const Chunk& from) { |
492 | 0 | Chunk::MergeImpl(*this, from); |
493 | 0 | } |
494 | | private: |
495 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
496 | | public: |
497 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
498 | | bool IsInitialized() const final; |
499 | | |
500 | | size_t ByteSizeLong() const final; |
501 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
502 | | uint8_t* _InternalSerialize( |
503 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
504 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
505 | | |
506 | | private: |
507 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
508 | | void SharedDtor(); |
509 | | void SetCachedSize(int size) const final; |
510 | | void InternalSwap(Chunk* other); |
511 | | |
512 | | private: |
513 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
514 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
515 | 0 | return "lua_grammar.Chunk"; |
516 | 0 | } |
517 | | protected: |
518 | | explicit Chunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
519 | | bool is_message_owned = false); |
520 | | public: |
521 | | |
522 | | static const ClassData _class_data_; |
523 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
524 | | |
525 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
526 | | |
527 | | // nested types ---------------------------------------------------- |
528 | | |
529 | | // accessors ------------------------------------------------------- |
530 | | |
531 | | enum : int { |
532 | | kStatFieldNumber = 1, |
533 | | kLaststatFieldNumber = 2, |
534 | | }; |
535 | | // repeated .lua_grammar.Statement stat = 1; |
536 | | int stat_size() const; |
537 | | private: |
538 | | int _internal_stat_size() const; |
539 | | public: |
540 | | void clear_stat(); |
541 | | ::lua_grammar::Statement* mutable_stat(int index); |
542 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Statement >* |
543 | | mutable_stat(); |
544 | | private: |
545 | | const ::lua_grammar::Statement& _internal_stat(int index) const; |
546 | | ::lua_grammar::Statement* _internal_add_stat(); |
547 | | public: |
548 | | const ::lua_grammar::Statement& stat(int index) const; |
549 | | ::lua_grammar::Statement* add_stat(); |
550 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Statement >& |
551 | | stat() const; |
552 | | |
553 | | // optional .lua_grammar.LastStatement laststat = 2; |
554 | | bool has_laststat() const; |
555 | | private: |
556 | | bool _internal_has_laststat() const; |
557 | | public: |
558 | | void clear_laststat(); |
559 | | const ::lua_grammar::LastStatement& laststat() const; |
560 | | PROTOBUF_NODISCARD ::lua_grammar::LastStatement* release_laststat(); |
561 | | ::lua_grammar::LastStatement* mutable_laststat(); |
562 | | void set_allocated_laststat(::lua_grammar::LastStatement* laststat); |
563 | | private: |
564 | | const ::lua_grammar::LastStatement& _internal_laststat() const; |
565 | | ::lua_grammar::LastStatement* _internal_mutable_laststat(); |
566 | | public: |
567 | | void unsafe_arena_set_allocated_laststat( |
568 | | ::lua_grammar::LastStatement* laststat); |
569 | | ::lua_grammar::LastStatement* unsafe_arena_release_laststat(); |
570 | | |
571 | | // @@protoc_insertion_point(class_scope:lua_grammar.Chunk) |
572 | | private: |
573 | | class _Internal; |
574 | | |
575 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
576 | | typedef void InternalArenaConstructable_; |
577 | | typedef void DestructorSkippable_; |
578 | | struct Impl_ { |
579 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
580 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
581 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Statement > stat_; |
582 | | ::lua_grammar::LastStatement* laststat_; |
583 | | }; |
584 | | union { Impl_ _impl_; }; |
585 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
586 | | }; |
587 | | // ------------------------------------------------------------------- |
588 | | |
589 | | class Statement final : |
590 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Statement) */ { |
591 | | public: |
592 | 0 | inline Statement() : Statement(nullptr) {} |
593 | | ~Statement() override; |
594 | | explicit PROTOBUF_CONSTEXPR Statement(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
595 | | |
596 | | Statement(const Statement& from); |
597 | | Statement(Statement&& from) noexcept |
598 | 0 | : Statement() { |
599 | 0 | *this = ::std::move(from); |
600 | 0 | } |
601 | | |
602 | 0 | inline Statement& operator=(const Statement& from) { |
603 | 0 | CopyFrom(from); |
604 | 0 | return *this; |
605 | 0 | } |
606 | 0 | inline Statement& operator=(Statement&& from) noexcept { |
607 | 0 | if (this == &from) return *this; |
608 | 0 | if (GetOwningArena() == from.GetOwningArena() |
609 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
610 | 0 | && GetOwningArena() != nullptr |
611 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
612 | 0 | ) { |
613 | 0 | InternalSwap(&from); |
614 | 0 | } else { |
615 | 0 | CopyFrom(from); |
616 | 0 | } |
617 | 0 | return *this; |
618 | 0 | } |
619 | | |
620 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
621 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
622 | 0 | } |
623 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
624 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
625 | 0 | } |
626 | | |
627 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
628 | 0 | return GetDescriptor(); |
629 | 0 | } |
630 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
631 | 0 | return default_instance().GetMetadata().descriptor; |
632 | 0 | } |
633 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
634 | 0 | return default_instance().GetMetadata().reflection; |
635 | 0 | } |
636 | 0 | static const Statement& default_instance() { |
637 | 0 | return *internal_default_instance(); |
638 | 0 | } |
639 | | enum StatOneofCase { |
640 | | kList = 1, |
641 | | kCall = 2, |
642 | | kBlock = 3, |
643 | | kWhilecycle = 4, |
644 | | kRepeatcycle = 5, |
645 | | kIfstat = 6, |
646 | | kForcyclename = 7, |
647 | | kForcyclelist = 8, |
648 | | kFunc = 9, |
649 | | kLocalfunc = 10, |
650 | | kLocalnames = 11, |
651 | | STAT_ONEOF_NOT_SET = 0, |
652 | | }; |
653 | | |
654 | 0 | static inline const Statement* internal_default_instance() { |
655 | 0 | return reinterpret_cast<const Statement*>( |
656 | 0 | &_Statement_default_instance_); |
657 | 0 | } |
658 | | static constexpr int kIndexInFileMessages = |
659 | | 2; |
660 | | |
661 | 0 | friend void swap(Statement& a, Statement& b) { |
662 | 0 | a.Swap(&b); |
663 | 0 | } |
664 | 0 | inline void Swap(Statement* other) { |
665 | 0 | if (other == this) return; |
666 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
667 | 0 | if (GetOwningArena() != nullptr && |
668 | 0 | GetOwningArena() == other->GetOwningArena()) { |
669 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
670 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
671 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
672 | 0 | InternalSwap(other); |
673 | 0 | } else { |
674 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
675 | 0 | } |
676 | 0 | } |
677 | 0 | void UnsafeArenaSwap(Statement* other) { |
678 | 0 | if (other == this) return; |
679 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
680 | 0 | InternalSwap(other); |
681 | 0 | } |
682 | | |
683 | | // implements Message ---------------------------------------------- |
684 | | |
685 | 69.1k | Statement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
686 | 69.1k | return CreateMaybeMessage<Statement>(arena); |
687 | 69.1k | } |
688 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
689 | | void CopyFrom(const Statement& from); |
690 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
691 | 0 | void MergeFrom( const Statement& from) { |
692 | 0 | Statement::MergeImpl(*this, from); |
693 | 0 | } |
694 | | private: |
695 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
696 | | public: |
697 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
698 | | bool IsInitialized() const final; |
699 | | |
700 | | size_t ByteSizeLong() const final; |
701 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
702 | | uint8_t* _InternalSerialize( |
703 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
704 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
705 | | |
706 | | private: |
707 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
708 | | void SharedDtor(); |
709 | | void SetCachedSize(int size) const final; |
710 | | void InternalSwap(Statement* other); |
711 | | |
712 | | private: |
713 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
714 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
715 | 0 | return "lua_grammar.Statement"; |
716 | 0 | } |
717 | | protected: |
718 | | explicit Statement(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
719 | | bool is_message_owned = false); |
720 | | public: |
721 | | |
722 | | static const ClassData _class_data_; |
723 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
724 | | |
725 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
726 | | |
727 | | // nested types ---------------------------------------------------- |
728 | | |
729 | | // accessors ------------------------------------------------------- |
730 | | |
731 | | enum : int { |
732 | | kSemicolonFieldNumber = 12, |
733 | | kListFieldNumber = 1, |
734 | | kCallFieldNumber = 2, |
735 | | kBlockFieldNumber = 3, |
736 | | kWhilecycleFieldNumber = 4, |
737 | | kRepeatcycleFieldNumber = 5, |
738 | | kIfstatFieldNumber = 6, |
739 | | kForcyclenameFieldNumber = 7, |
740 | | kForcyclelistFieldNumber = 8, |
741 | | kFuncFieldNumber = 9, |
742 | | kLocalfuncFieldNumber = 10, |
743 | | kLocalnamesFieldNumber = 11, |
744 | | }; |
745 | | // optional bool semicolon = 12; |
746 | | bool has_semicolon() const; |
747 | | private: |
748 | | bool _internal_has_semicolon() const; |
749 | | public: |
750 | | void clear_semicolon(); |
751 | | bool semicolon() const; |
752 | | void set_semicolon(bool value); |
753 | | private: |
754 | | bool _internal_semicolon() const; |
755 | | void _internal_set_semicolon(bool value); |
756 | | public: |
757 | | |
758 | | // .lua_grammar.AssignmentList list = 1; |
759 | | bool has_list() const; |
760 | | private: |
761 | | bool _internal_has_list() const; |
762 | | public: |
763 | | void clear_list(); |
764 | | const ::lua_grammar::AssignmentList& list() const; |
765 | | PROTOBUF_NODISCARD ::lua_grammar::AssignmentList* release_list(); |
766 | | ::lua_grammar::AssignmentList* mutable_list(); |
767 | | void set_allocated_list(::lua_grammar::AssignmentList* list); |
768 | | private: |
769 | | const ::lua_grammar::AssignmentList& _internal_list() const; |
770 | | ::lua_grammar::AssignmentList* _internal_mutable_list(); |
771 | | public: |
772 | | void unsafe_arena_set_allocated_list( |
773 | | ::lua_grammar::AssignmentList* list); |
774 | | ::lua_grammar::AssignmentList* unsafe_arena_release_list(); |
775 | | |
776 | | // .lua_grammar.FunctionCall call = 2; |
777 | | bool has_call() const; |
778 | | private: |
779 | | bool _internal_has_call() const; |
780 | | public: |
781 | | void clear_call(); |
782 | | const ::lua_grammar::FunctionCall& call() const; |
783 | | PROTOBUF_NODISCARD ::lua_grammar::FunctionCall* release_call(); |
784 | | ::lua_grammar::FunctionCall* mutable_call(); |
785 | | void set_allocated_call(::lua_grammar::FunctionCall* call); |
786 | | private: |
787 | | const ::lua_grammar::FunctionCall& _internal_call() const; |
788 | | ::lua_grammar::FunctionCall* _internal_mutable_call(); |
789 | | public: |
790 | | void unsafe_arena_set_allocated_call( |
791 | | ::lua_grammar::FunctionCall* call); |
792 | | ::lua_grammar::FunctionCall* unsafe_arena_release_call(); |
793 | | |
794 | | // .lua_grammar.DoBlock block = 3; |
795 | | bool has_block() const; |
796 | | private: |
797 | | bool _internal_has_block() const; |
798 | | public: |
799 | | void clear_block(); |
800 | | const ::lua_grammar::DoBlock& block() const; |
801 | | PROTOBUF_NODISCARD ::lua_grammar::DoBlock* release_block(); |
802 | | ::lua_grammar::DoBlock* mutable_block(); |
803 | | void set_allocated_block(::lua_grammar::DoBlock* block); |
804 | | private: |
805 | | const ::lua_grammar::DoBlock& _internal_block() const; |
806 | | ::lua_grammar::DoBlock* _internal_mutable_block(); |
807 | | public: |
808 | | void unsafe_arena_set_allocated_block( |
809 | | ::lua_grammar::DoBlock* block); |
810 | | ::lua_grammar::DoBlock* unsafe_arena_release_block(); |
811 | | |
812 | | // .lua_grammar.WhileCycle whilecycle = 4; |
813 | | bool has_whilecycle() const; |
814 | | private: |
815 | | bool _internal_has_whilecycle() const; |
816 | | public: |
817 | | void clear_whilecycle(); |
818 | | const ::lua_grammar::WhileCycle& whilecycle() const; |
819 | | PROTOBUF_NODISCARD ::lua_grammar::WhileCycle* release_whilecycle(); |
820 | | ::lua_grammar::WhileCycle* mutable_whilecycle(); |
821 | | void set_allocated_whilecycle(::lua_grammar::WhileCycle* whilecycle); |
822 | | private: |
823 | | const ::lua_grammar::WhileCycle& _internal_whilecycle() const; |
824 | | ::lua_grammar::WhileCycle* _internal_mutable_whilecycle(); |
825 | | public: |
826 | | void unsafe_arena_set_allocated_whilecycle( |
827 | | ::lua_grammar::WhileCycle* whilecycle); |
828 | | ::lua_grammar::WhileCycle* unsafe_arena_release_whilecycle(); |
829 | | |
830 | | // .lua_grammar.RepeatCycle repeatcycle = 5; |
831 | | bool has_repeatcycle() const; |
832 | | private: |
833 | | bool _internal_has_repeatcycle() const; |
834 | | public: |
835 | | void clear_repeatcycle(); |
836 | | const ::lua_grammar::RepeatCycle& repeatcycle() const; |
837 | | PROTOBUF_NODISCARD ::lua_grammar::RepeatCycle* release_repeatcycle(); |
838 | | ::lua_grammar::RepeatCycle* mutable_repeatcycle(); |
839 | | void set_allocated_repeatcycle(::lua_grammar::RepeatCycle* repeatcycle); |
840 | | private: |
841 | | const ::lua_grammar::RepeatCycle& _internal_repeatcycle() const; |
842 | | ::lua_grammar::RepeatCycle* _internal_mutable_repeatcycle(); |
843 | | public: |
844 | | void unsafe_arena_set_allocated_repeatcycle( |
845 | | ::lua_grammar::RepeatCycle* repeatcycle); |
846 | | ::lua_grammar::RepeatCycle* unsafe_arena_release_repeatcycle(); |
847 | | |
848 | | // .lua_grammar.IfStatement ifstat = 6; |
849 | | bool has_ifstat() const; |
850 | | private: |
851 | | bool _internal_has_ifstat() const; |
852 | | public: |
853 | | void clear_ifstat(); |
854 | | const ::lua_grammar::IfStatement& ifstat() const; |
855 | | PROTOBUF_NODISCARD ::lua_grammar::IfStatement* release_ifstat(); |
856 | | ::lua_grammar::IfStatement* mutable_ifstat(); |
857 | | void set_allocated_ifstat(::lua_grammar::IfStatement* ifstat); |
858 | | private: |
859 | | const ::lua_grammar::IfStatement& _internal_ifstat() const; |
860 | | ::lua_grammar::IfStatement* _internal_mutable_ifstat(); |
861 | | public: |
862 | | void unsafe_arena_set_allocated_ifstat( |
863 | | ::lua_grammar::IfStatement* ifstat); |
864 | | ::lua_grammar::IfStatement* unsafe_arena_release_ifstat(); |
865 | | |
866 | | // .lua_grammar.ForCycleName forcyclename = 7; |
867 | | bool has_forcyclename() const; |
868 | | private: |
869 | | bool _internal_has_forcyclename() const; |
870 | | public: |
871 | | void clear_forcyclename(); |
872 | | const ::lua_grammar::ForCycleName& forcyclename() const; |
873 | | PROTOBUF_NODISCARD ::lua_grammar::ForCycleName* release_forcyclename(); |
874 | | ::lua_grammar::ForCycleName* mutable_forcyclename(); |
875 | | void set_allocated_forcyclename(::lua_grammar::ForCycleName* forcyclename); |
876 | | private: |
877 | | const ::lua_grammar::ForCycleName& _internal_forcyclename() const; |
878 | | ::lua_grammar::ForCycleName* _internal_mutable_forcyclename(); |
879 | | public: |
880 | | void unsafe_arena_set_allocated_forcyclename( |
881 | | ::lua_grammar::ForCycleName* forcyclename); |
882 | | ::lua_grammar::ForCycleName* unsafe_arena_release_forcyclename(); |
883 | | |
884 | | // .lua_grammar.ForCycleList forcyclelist = 8; |
885 | | bool has_forcyclelist() const; |
886 | | private: |
887 | | bool _internal_has_forcyclelist() const; |
888 | | public: |
889 | | void clear_forcyclelist(); |
890 | | const ::lua_grammar::ForCycleList& forcyclelist() const; |
891 | | PROTOBUF_NODISCARD ::lua_grammar::ForCycleList* release_forcyclelist(); |
892 | | ::lua_grammar::ForCycleList* mutable_forcyclelist(); |
893 | | void set_allocated_forcyclelist(::lua_grammar::ForCycleList* forcyclelist); |
894 | | private: |
895 | | const ::lua_grammar::ForCycleList& _internal_forcyclelist() const; |
896 | | ::lua_grammar::ForCycleList* _internal_mutable_forcyclelist(); |
897 | | public: |
898 | | void unsafe_arena_set_allocated_forcyclelist( |
899 | | ::lua_grammar::ForCycleList* forcyclelist); |
900 | | ::lua_grammar::ForCycleList* unsafe_arena_release_forcyclelist(); |
901 | | |
902 | | // .lua_grammar.Function func = 9; |
903 | | bool has_func() const; |
904 | | private: |
905 | | bool _internal_has_func() const; |
906 | | public: |
907 | | void clear_func(); |
908 | | const ::lua_grammar::Function& func() const; |
909 | | PROTOBUF_NODISCARD ::lua_grammar::Function* release_func(); |
910 | | ::lua_grammar::Function* mutable_func(); |
911 | | void set_allocated_func(::lua_grammar::Function* func); |
912 | | private: |
913 | | const ::lua_grammar::Function& _internal_func() const; |
914 | | ::lua_grammar::Function* _internal_mutable_func(); |
915 | | public: |
916 | | void unsafe_arena_set_allocated_func( |
917 | | ::lua_grammar::Function* func); |
918 | | ::lua_grammar::Function* unsafe_arena_release_func(); |
919 | | |
920 | | // .lua_grammar.LocalFunc localfunc = 10; |
921 | | bool has_localfunc() const; |
922 | | private: |
923 | | bool _internal_has_localfunc() const; |
924 | | public: |
925 | | void clear_localfunc(); |
926 | | const ::lua_grammar::LocalFunc& localfunc() const; |
927 | | PROTOBUF_NODISCARD ::lua_grammar::LocalFunc* release_localfunc(); |
928 | | ::lua_grammar::LocalFunc* mutable_localfunc(); |
929 | | void set_allocated_localfunc(::lua_grammar::LocalFunc* localfunc); |
930 | | private: |
931 | | const ::lua_grammar::LocalFunc& _internal_localfunc() const; |
932 | | ::lua_grammar::LocalFunc* _internal_mutable_localfunc(); |
933 | | public: |
934 | | void unsafe_arena_set_allocated_localfunc( |
935 | | ::lua_grammar::LocalFunc* localfunc); |
936 | | ::lua_grammar::LocalFunc* unsafe_arena_release_localfunc(); |
937 | | |
938 | | // .lua_grammar.LocalNames localnames = 11; |
939 | | bool has_localnames() const; |
940 | | private: |
941 | | bool _internal_has_localnames() const; |
942 | | public: |
943 | | void clear_localnames(); |
944 | | const ::lua_grammar::LocalNames& localnames() const; |
945 | | PROTOBUF_NODISCARD ::lua_grammar::LocalNames* release_localnames(); |
946 | | ::lua_grammar::LocalNames* mutable_localnames(); |
947 | | void set_allocated_localnames(::lua_grammar::LocalNames* localnames); |
948 | | private: |
949 | | const ::lua_grammar::LocalNames& _internal_localnames() const; |
950 | | ::lua_grammar::LocalNames* _internal_mutable_localnames(); |
951 | | public: |
952 | | void unsafe_arena_set_allocated_localnames( |
953 | | ::lua_grammar::LocalNames* localnames); |
954 | | ::lua_grammar::LocalNames* unsafe_arena_release_localnames(); |
955 | | |
956 | | void clear_stat_oneof(); |
957 | | StatOneofCase stat_oneof_case() const; |
958 | | // @@protoc_insertion_point(class_scope:lua_grammar.Statement) |
959 | | private: |
960 | | class _Internal; |
961 | | void set_has_list(); |
962 | | void set_has_call(); |
963 | | void set_has_block(); |
964 | | void set_has_whilecycle(); |
965 | | void set_has_repeatcycle(); |
966 | | void set_has_ifstat(); |
967 | | void set_has_forcyclename(); |
968 | | void set_has_forcyclelist(); |
969 | | void set_has_func(); |
970 | | void set_has_localfunc(); |
971 | | void set_has_localnames(); |
972 | | |
973 | | inline bool has_stat_oneof() const; |
974 | | inline void clear_has_stat_oneof(); |
975 | | |
976 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
977 | | typedef void InternalArenaConstructable_; |
978 | | typedef void DestructorSkippable_; |
979 | | struct Impl_ { |
980 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
981 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
982 | | bool semicolon_; |
983 | | union StatOneofUnion { |
984 | 69.1k | constexpr StatOneofUnion() : _constinit_{} {} |
985 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
986 | | ::lua_grammar::AssignmentList* list_; |
987 | | ::lua_grammar::FunctionCall* call_; |
988 | | ::lua_grammar::DoBlock* block_; |
989 | | ::lua_grammar::WhileCycle* whilecycle_; |
990 | | ::lua_grammar::RepeatCycle* repeatcycle_; |
991 | | ::lua_grammar::IfStatement* ifstat_; |
992 | | ::lua_grammar::ForCycleName* forcyclename_; |
993 | | ::lua_grammar::ForCycleList* forcyclelist_; |
994 | | ::lua_grammar::Function* func_; |
995 | | ::lua_grammar::LocalFunc* localfunc_; |
996 | | ::lua_grammar::LocalNames* localnames_; |
997 | | } stat_oneof_; |
998 | | uint32_t _oneof_case_[1]; |
999 | | |
1000 | | }; |
1001 | | union { Impl_ _impl_; }; |
1002 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
1003 | | }; |
1004 | | // ------------------------------------------------------------------- |
1005 | | |
1006 | | class AssignmentList_VariableList final : |
1007 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.AssignmentList.VariableList) */ { |
1008 | | public: |
1009 | 0 | inline AssignmentList_VariableList() : AssignmentList_VariableList(nullptr) {} |
1010 | | ~AssignmentList_VariableList() override; |
1011 | | explicit PROTOBUF_CONSTEXPR AssignmentList_VariableList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1012 | | |
1013 | | AssignmentList_VariableList(const AssignmentList_VariableList& from); |
1014 | | AssignmentList_VariableList(AssignmentList_VariableList&& from) noexcept |
1015 | 0 | : AssignmentList_VariableList() { |
1016 | 0 | *this = ::std::move(from); |
1017 | 0 | } |
1018 | | |
1019 | 0 | inline AssignmentList_VariableList& operator=(const AssignmentList_VariableList& from) { |
1020 | 0 | CopyFrom(from); |
1021 | 0 | return *this; |
1022 | 0 | } |
1023 | 0 | inline AssignmentList_VariableList& operator=(AssignmentList_VariableList&& from) noexcept { |
1024 | 0 | if (this == &from) return *this; |
1025 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1026 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1027 | 0 | && GetOwningArena() != nullptr |
1028 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1029 | 0 | ) { |
1030 | 0 | InternalSwap(&from); |
1031 | 0 | } else { |
1032 | 0 | CopyFrom(from); |
1033 | 0 | } |
1034 | 0 | return *this; |
1035 | 0 | } |
1036 | | |
1037 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1038 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1039 | 0 | } |
1040 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1041 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1042 | 0 | } |
1043 | | |
1044 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1045 | 0 | return GetDescriptor(); |
1046 | 0 | } |
1047 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1048 | 0 | return default_instance().GetMetadata().descriptor; |
1049 | 0 | } |
1050 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1051 | 0 | return default_instance().GetMetadata().reflection; |
1052 | 0 | } |
1053 | 0 | static const AssignmentList_VariableList& default_instance() { |
1054 | 0 | return *internal_default_instance(); |
1055 | 0 | } |
1056 | 4.47k | static inline const AssignmentList_VariableList* internal_default_instance() { |
1057 | 4.47k | return reinterpret_cast<const AssignmentList_VariableList*>( |
1058 | 4.47k | &_AssignmentList_VariableList_default_instance_); |
1059 | 4.47k | } |
1060 | | static constexpr int kIndexInFileMessages = |
1061 | | 3; |
1062 | | |
1063 | 0 | friend void swap(AssignmentList_VariableList& a, AssignmentList_VariableList& b) { |
1064 | 0 | a.Swap(&b); |
1065 | 0 | } |
1066 | 0 | inline void Swap(AssignmentList_VariableList* other) { |
1067 | 0 | if (other == this) return; |
1068 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1069 | 0 | if (GetOwningArena() != nullptr && |
1070 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1071 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1072 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1073 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1074 | 0 | InternalSwap(other); |
1075 | 0 | } else { |
1076 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1077 | 0 | } |
1078 | 0 | } |
1079 | 0 | void UnsafeArenaSwap(AssignmentList_VariableList* other) { |
1080 | 0 | if (other == this) return; |
1081 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1082 | 0 | InternalSwap(other); |
1083 | 0 | } |
1084 | | |
1085 | | // implements Message ---------------------------------------------- |
1086 | | |
1087 | 4.47k | AssignmentList_VariableList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1088 | 4.47k | return CreateMaybeMessage<AssignmentList_VariableList>(arena); |
1089 | 4.47k | } |
1090 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1091 | | void CopyFrom(const AssignmentList_VariableList& from); |
1092 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1093 | 0 | void MergeFrom( const AssignmentList_VariableList& from) { |
1094 | 0 | AssignmentList_VariableList::MergeImpl(*this, from); |
1095 | 0 | } |
1096 | | private: |
1097 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1098 | | public: |
1099 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1100 | | bool IsInitialized() const final; |
1101 | | |
1102 | | size_t ByteSizeLong() const final; |
1103 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1104 | | uint8_t* _InternalSerialize( |
1105 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1106 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1107 | | |
1108 | | private: |
1109 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1110 | | void SharedDtor(); |
1111 | | void SetCachedSize(int size) const final; |
1112 | | void InternalSwap(AssignmentList_VariableList* other); |
1113 | | |
1114 | | private: |
1115 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1116 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1117 | 0 | return "lua_grammar.AssignmentList.VariableList"; |
1118 | 0 | } |
1119 | | protected: |
1120 | | explicit AssignmentList_VariableList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1121 | | bool is_message_owned = false); |
1122 | | public: |
1123 | | |
1124 | | static const ClassData _class_data_; |
1125 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1126 | | |
1127 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1128 | | |
1129 | | // nested types ---------------------------------------------------- |
1130 | | |
1131 | | // accessors ------------------------------------------------------- |
1132 | | |
1133 | | enum : int { |
1134 | | kVarsFieldNumber = 2, |
1135 | | kVarFieldNumber = 1, |
1136 | | }; |
1137 | | // repeated .lua_grammar.Variable vars = 2; |
1138 | | int vars_size() const; |
1139 | | private: |
1140 | | int _internal_vars_size() const; |
1141 | | public: |
1142 | | void clear_vars(); |
1143 | | ::lua_grammar::Variable* mutable_vars(int index); |
1144 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Variable >* |
1145 | | mutable_vars(); |
1146 | | private: |
1147 | | const ::lua_grammar::Variable& _internal_vars(int index) const; |
1148 | | ::lua_grammar::Variable* _internal_add_vars(); |
1149 | | public: |
1150 | | const ::lua_grammar::Variable& vars(int index) const; |
1151 | | ::lua_grammar::Variable* add_vars(); |
1152 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Variable >& |
1153 | | vars() const; |
1154 | | |
1155 | | // required .lua_grammar.Variable var = 1; |
1156 | | bool has_var() const; |
1157 | | private: |
1158 | | bool _internal_has_var() const; |
1159 | | public: |
1160 | | void clear_var(); |
1161 | | const ::lua_grammar::Variable& var() const; |
1162 | | PROTOBUF_NODISCARD ::lua_grammar::Variable* release_var(); |
1163 | | ::lua_grammar::Variable* mutable_var(); |
1164 | | void set_allocated_var(::lua_grammar::Variable* var); |
1165 | | private: |
1166 | | const ::lua_grammar::Variable& _internal_var() const; |
1167 | | ::lua_grammar::Variable* _internal_mutable_var(); |
1168 | | public: |
1169 | | void unsafe_arena_set_allocated_var( |
1170 | | ::lua_grammar::Variable* var); |
1171 | | ::lua_grammar::Variable* unsafe_arena_release_var(); |
1172 | | |
1173 | | // @@protoc_insertion_point(class_scope:lua_grammar.AssignmentList.VariableList) |
1174 | | private: |
1175 | | class _Internal; |
1176 | | |
1177 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1178 | | typedef void InternalArenaConstructable_; |
1179 | | typedef void DestructorSkippable_; |
1180 | | struct Impl_ { |
1181 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1182 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1183 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Variable > vars_; |
1184 | | ::lua_grammar::Variable* var_; |
1185 | | }; |
1186 | | union { Impl_ _impl_; }; |
1187 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
1188 | | }; |
1189 | | // ------------------------------------------------------------------- |
1190 | | |
1191 | | class AssignmentList final : |
1192 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.AssignmentList) */ { |
1193 | | public: |
1194 | 0 | inline AssignmentList() : AssignmentList(nullptr) {} |
1195 | | ~AssignmentList() override; |
1196 | | explicit PROTOBUF_CONSTEXPR AssignmentList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1197 | | |
1198 | | AssignmentList(const AssignmentList& from); |
1199 | | AssignmentList(AssignmentList&& from) noexcept |
1200 | 0 | : AssignmentList() { |
1201 | 0 | *this = ::std::move(from); |
1202 | 0 | } |
1203 | | |
1204 | 0 | inline AssignmentList& operator=(const AssignmentList& from) { |
1205 | 0 | CopyFrom(from); |
1206 | 0 | return *this; |
1207 | 0 | } |
1208 | 0 | inline AssignmentList& operator=(AssignmentList&& from) noexcept { |
1209 | 0 | if (this == &from) return *this; |
1210 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1211 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1212 | 0 | && GetOwningArena() != nullptr |
1213 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1214 | 0 | ) { |
1215 | 0 | InternalSwap(&from); |
1216 | 0 | } else { |
1217 | 0 | CopyFrom(from); |
1218 | 0 | } |
1219 | 0 | return *this; |
1220 | 0 | } |
1221 | | |
1222 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1223 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1224 | 0 | } |
1225 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1226 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1227 | 0 | } |
1228 | | |
1229 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1230 | 0 | return GetDescriptor(); |
1231 | 0 | } |
1232 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1233 | 0 | return default_instance().GetMetadata().descriptor; |
1234 | 0 | } |
1235 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1236 | 0 | return default_instance().GetMetadata().reflection; |
1237 | 0 | } |
1238 | 0 | static const AssignmentList& default_instance() { |
1239 | 0 | return *internal_default_instance(); |
1240 | 0 | } |
1241 | 8.92k | static inline const AssignmentList* internal_default_instance() { |
1242 | 8.92k | return reinterpret_cast<const AssignmentList*>( |
1243 | 8.92k | &_AssignmentList_default_instance_); |
1244 | 8.92k | } |
1245 | | static constexpr int kIndexInFileMessages = |
1246 | | 4; |
1247 | | |
1248 | 0 | friend void swap(AssignmentList& a, AssignmentList& b) { |
1249 | 0 | a.Swap(&b); |
1250 | 0 | } |
1251 | 0 | inline void Swap(AssignmentList* other) { |
1252 | 0 | if (other == this) return; |
1253 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1254 | 0 | if (GetOwningArena() != nullptr && |
1255 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1256 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1257 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1258 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1259 | 0 | InternalSwap(other); |
1260 | 0 | } else { |
1261 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1262 | 0 | } |
1263 | 0 | } |
1264 | 0 | void UnsafeArenaSwap(AssignmentList* other) { |
1265 | 0 | if (other == this) return; |
1266 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1267 | 0 | InternalSwap(other); |
1268 | 0 | } |
1269 | | |
1270 | | // implements Message ---------------------------------------------- |
1271 | | |
1272 | 4.46k | AssignmentList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1273 | 4.46k | return CreateMaybeMessage<AssignmentList>(arena); |
1274 | 4.46k | } |
1275 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1276 | | void CopyFrom(const AssignmentList& from); |
1277 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1278 | 0 | void MergeFrom( const AssignmentList& from) { |
1279 | 0 | AssignmentList::MergeImpl(*this, from); |
1280 | 0 | } |
1281 | | private: |
1282 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1283 | | public: |
1284 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1285 | | bool IsInitialized() const final; |
1286 | | |
1287 | | size_t ByteSizeLong() const final; |
1288 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1289 | | uint8_t* _InternalSerialize( |
1290 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1291 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1292 | | |
1293 | | private: |
1294 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1295 | | void SharedDtor(); |
1296 | | void SetCachedSize(int size) const final; |
1297 | | void InternalSwap(AssignmentList* other); |
1298 | | |
1299 | | private: |
1300 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1301 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1302 | 0 | return "lua_grammar.AssignmentList"; |
1303 | 0 | } |
1304 | | protected: |
1305 | | explicit AssignmentList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1306 | | bool is_message_owned = false); |
1307 | | public: |
1308 | | |
1309 | | static const ClassData _class_data_; |
1310 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1311 | | |
1312 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1313 | | |
1314 | | // nested types ---------------------------------------------------- |
1315 | | |
1316 | | typedef AssignmentList_VariableList VariableList; |
1317 | | |
1318 | | // accessors ------------------------------------------------------- |
1319 | | |
1320 | | enum : int { |
1321 | | kVarlistFieldNumber = 1, |
1322 | | kExplistFieldNumber = 2, |
1323 | | }; |
1324 | | // required .lua_grammar.AssignmentList.VariableList varlist = 1; |
1325 | | bool has_varlist() const; |
1326 | | private: |
1327 | | bool _internal_has_varlist() const; |
1328 | | public: |
1329 | | void clear_varlist(); |
1330 | | const ::lua_grammar::AssignmentList_VariableList& varlist() const; |
1331 | | PROTOBUF_NODISCARD ::lua_grammar::AssignmentList_VariableList* release_varlist(); |
1332 | | ::lua_grammar::AssignmentList_VariableList* mutable_varlist(); |
1333 | | void set_allocated_varlist(::lua_grammar::AssignmentList_VariableList* varlist); |
1334 | | private: |
1335 | | const ::lua_grammar::AssignmentList_VariableList& _internal_varlist() const; |
1336 | | ::lua_grammar::AssignmentList_VariableList* _internal_mutable_varlist(); |
1337 | | public: |
1338 | | void unsafe_arena_set_allocated_varlist( |
1339 | | ::lua_grammar::AssignmentList_VariableList* varlist); |
1340 | | ::lua_grammar::AssignmentList_VariableList* unsafe_arena_release_varlist(); |
1341 | | |
1342 | | // required .lua_grammar.ExpressionList explist = 2; |
1343 | | bool has_explist() const; |
1344 | | private: |
1345 | | bool _internal_has_explist() const; |
1346 | | public: |
1347 | | void clear_explist(); |
1348 | | const ::lua_grammar::ExpressionList& explist() const; |
1349 | | PROTOBUF_NODISCARD ::lua_grammar::ExpressionList* release_explist(); |
1350 | | ::lua_grammar::ExpressionList* mutable_explist(); |
1351 | | void set_allocated_explist(::lua_grammar::ExpressionList* explist); |
1352 | | private: |
1353 | | const ::lua_grammar::ExpressionList& _internal_explist() const; |
1354 | | ::lua_grammar::ExpressionList* _internal_mutable_explist(); |
1355 | | public: |
1356 | | void unsafe_arena_set_allocated_explist( |
1357 | | ::lua_grammar::ExpressionList* explist); |
1358 | | ::lua_grammar::ExpressionList* unsafe_arena_release_explist(); |
1359 | | |
1360 | | // @@protoc_insertion_point(class_scope:lua_grammar.AssignmentList) |
1361 | | private: |
1362 | | class _Internal; |
1363 | | |
1364 | | // helper for ByteSizeLong() |
1365 | | size_t RequiredFieldsByteSizeFallback() const; |
1366 | | |
1367 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1368 | | typedef void InternalArenaConstructable_; |
1369 | | typedef void DestructorSkippable_; |
1370 | | struct Impl_ { |
1371 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1372 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1373 | | ::lua_grammar::AssignmentList_VariableList* varlist_; |
1374 | | ::lua_grammar::ExpressionList* explist_; |
1375 | | }; |
1376 | | union { Impl_ _impl_; }; |
1377 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
1378 | | }; |
1379 | | // ------------------------------------------------------------------- |
1380 | | |
1381 | | class FunctionCall_Args final : |
1382 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FunctionCall.Args) */ { |
1383 | | public: |
1384 | 0 | inline FunctionCall_Args() : FunctionCall_Args(nullptr) {} |
1385 | | ~FunctionCall_Args() override; |
1386 | | explicit PROTOBUF_CONSTEXPR FunctionCall_Args(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1387 | | |
1388 | | FunctionCall_Args(const FunctionCall_Args& from); |
1389 | | FunctionCall_Args(FunctionCall_Args&& from) noexcept |
1390 | 0 | : FunctionCall_Args() { |
1391 | 0 | *this = ::std::move(from); |
1392 | 0 | } |
1393 | | |
1394 | 0 | inline FunctionCall_Args& operator=(const FunctionCall_Args& from) { |
1395 | 0 | CopyFrom(from); |
1396 | 0 | return *this; |
1397 | 0 | } |
1398 | 0 | inline FunctionCall_Args& operator=(FunctionCall_Args&& from) noexcept { |
1399 | 0 | if (this == &from) return *this; |
1400 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1401 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1402 | 0 | && GetOwningArena() != nullptr |
1403 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1404 | 0 | ) { |
1405 | 0 | InternalSwap(&from); |
1406 | 0 | } else { |
1407 | 0 | CopyFrom(from); |
1408 | 0 | } |
1409 | 0 | return *this; |
1410 | 0 | } |
1411 | | |
1412 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1413 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1414 | 0 | } |
1415 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1416 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1417 | 0 | } |
1418 | | |
1419 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1420 | 0 | return GetDescriptor(); |
1421 | 0 | } |
1422 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1423 | 0 | return default_instance().GetMetadata().descriptor; |
1424 | 0 | } |
1425 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1426 | 0 | return default_instance().GetMetadata().reflection; |
1427 | 0 | } |
1428 | 0 | static const FunctionCall_Args& default_instance() { |
1429 | 0 | return *internal_default_instance(); |
1430 | 0 | } |
1431 | | enum ArgsOneofCase { |
1432 | | kExplist = 1, |
1433 | | kTableconstructor = 2, |
1434 | | kStr = 3, |
1435 | | ARGS_ONEOF_NOT_SET = 0, |
1436 | | }; |
1437 | | |
1438 | 0 | static inline const FunctionCall_Args* internal_default_instance() { |
1439 | 0 | return reinterpret_cast<const FunctionCall_Args*>( |
1440 | 0 | &_FunctionCall_Args_default_instance_); |
1441 | 0 | } |
1442 | | static constexpr int kIndexInFileMessages = |
1443 | | 5; |
1444 | | |
1445 | 0 | friend void swap(FunctionCall_Args& a, FunctionCall_Args& b) { |
1446 | 0 | a.Swap(&b); |
1447 | 0 | } |
1448 | 0 | inline void Swap(FunctionCall_Args* other) { |
1449 | 0 | if (other == this) return; |
1450 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1451 | 0 | if (GetOwningArena() != nullptr && |
1452 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1453 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1454 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1455 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1456 | 0 | InternalSwap(other); |
1457 | 0 | } else { |
1458 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1459 | 0 | } |
1460 | 0 | } |
1461 | 0 | void UnsafeArenaSwap(FunctionCall_Args* other) { |
1462 | 0 | if (other == this) return; |
1463 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1464 | 0 | InternalSwap(other); |
1465 | 0 | } |
1466 | | |
1467 | | // implements Message ---------------------------------------------- |
1468 | | |
1469 | 6.30k | FunctionCall_Args* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1470 | 6.30k | return CreateMaybeMessage<FunctionCall_Args>(arena); |
1471 | 6.30k | } |
1472 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1473 | | void CopyFrom(const FunctionCall_Args& from); |
1474 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1475 | 0 | void MergeFrom( const FunctionCall_Args& from) { |
1476 | 0 | FunctionCall_Args::MergeImpl(*this, from); |
1477 | 0 | } |
1478 | | private: |
1479 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1480 | | public: |
1481 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1482 | | bool IsInitialized() const final; |
1483 | | |
1484 | | size_t ByteSizeLong() const final; |
1485 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1486 | | uint8_t* _InternalSerialize( |
1487 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1488 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1489 | | |
1490 | | private: |
1491 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1492 | | void SharedDtor(); |
1493 | | void SetCachedSize(int size) const final; |
1494 | | void InternalSwap(FunctionCall_Args* other); |
1495 | | |
1496 | | private: |
1497 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1498 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1499 | 0 | return "lua_grammar.FunctionCall.Args"; |
1500 | 0 | } |
1501 | | protected: |
1502 | | explicit FunctionCall_Args(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1503 | | bool is_message_owned = false); |
1504 | | public: |
1505 | | |
1506 | | static const ClassData _class_data_; |
1507 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1508 | | |
1509 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1510 | | |
1511 | | // nested types ---------------------------------------------------- |
1512 | | |
1513 | | // accessors ------------------------------------------------------- |
1514 | | |
1515 | | enum : int { |
1516 | | kExplistFieldNumber = 1, |
1517 | | kTableconstructorFieldNumber = 2, |
1518 | | kStrFieldNumber = 3, |
1519 | | }; |
1520 | | // .lua_grammar.OptionalExpressionList explist = 1; |
1521 | | bool has_explist() const; |
1522 | | private: |
1523 | | bool _internal_has_explist() const; |
1524 | | public: |
1525 | | void clear_explist(); |
1526 | | const ::lua_grammar::OptionalExpressionList& explist() const; |
1527 | | PROTOBUF_NODISCARD ::lua_grammar::OptionalExpressionList* release_explist(); |
1528 | | ::lua_grammar::OptionalExpressionList* mutable_explist(); |
1529 | | void set_allocated_explist(::lua_grammar::OptionalExpressionList* explist); |
1530 | | private: |
1531 | | const ::lua_grammar::OptionalExpressionList& _internal_explist() const; |
1532 | | ::lua_grammar::OptionalExpressionList* _internal_mutable_explist(); |
1533 | | public: |
1534 | | void unsafe_arena_set_allocated_explist( |
1535 | | ::lua_grammar::OptionalExpressionList* explist); |
1536 | | ::lua_grammar::OptionalExpressionList* unsafe_arena_release_explist(); |
1537 | | |
1538 | | // .lua_grammar.TableConstructor tableconstructor = 2; |
1539 | | bool has_tableconstructor() const; |
1540 | | private: |
1541 | | bool _internal_has_tableconstructor() const; |
1542 | | public: |
1543 | | void clear_tableconstructor(); |
1544 | | const ::lua_grammar::TableConstructor& tableconstructor() const; |
1545 | | PROTOBUF_NODISCARD ::lua_grammar::TableConstructor* release_tableconstructor(); |
1546 | | ::lua_grammar::TableConstructor* mutable_tableconstructor(); |
1547 | | void set_allocated_tableconstructor(::lua_grammar::TableConstructor* tableconstructor); |
1548 | | private: |
1549 | | const ::lua_grammar::TableConstructor& _internal_tableconstructor() const; |
1550 | | ::lua_grammar::TableConstructor* _internal_mutable_tableconstructor(); |
1551 | | public: |
1552 | | void unsafe_arena_set_allocated_tableconstructor( |
1553 | | ::lua_grammar::TableConstructor* tableconstructor); |
1554 | | ::lua_grammar::TableConstructor* unsafe_arena_release_tableconstructor(); |
1555 | | |
1556 | | // string str = 3; |
1557 | | bool has_str() const; |
1558 | | private: |
1559 | | bool _internal_has_str() const; |
1560 | | public: |
1561 | | void clear_str(); |
1562 | | const std::string& str() const; |
1563 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
1564 | | void set_str(ArgT0&& arg0, ArgT... args); |
1565 | | std::string* mutable_str(); |
1566 | | PROTOBUF_NODISCARD std::string* release_str(); |
1567 | | void set_allocated_str(std::string* str); |
1568 | | private: |
1569 | | const std::string& _internal_str() const; |
1570 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_str(const std::string& value); |
1571 | | std::string* _internal_mutable_str(); |
1572 | | public: |
1573 | | |
1574 | | void clear_args_oneof(); |
1575 | | ArgsOneofCase args_oneof_case() const; |
1576 | | // @@protoc_insertion_point(class_scope:lua_grammar.FunctionCall.Args) |
1577 | | private: |
1578 | | class _Internal; |
1579 | | void set_has_explist(); |
1580 | | void set_has_tableconstructor(); |
1581 | | void set_has_str(); |
1582 | | |
1583 | | inline bool has_args_oneof() const; |
1584 | | inline void clear_has_args_oneof(); |
1585 | | |
1586 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1587 | | typedef void InternalArenaConstructable_; |
1588 | | typedef void DestructorSkippable_; |
1589 | | struct Impl_ { |
1590 | | union ArgsOneofUnion { |
1591 | 6.30k | constexpr ArgsOneofUnion() : _constinit_{} {} |
1592 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
1593 | | ::lua_grammar::OptionalExpressionList* explist_; |
1594 | | ::lua_grammar::TableConstructor* tableconstructor_; |
1595 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr str_; |
1596 | | } args_oneof_; |
1597 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1598 | | uint32_t _oneof_case_[1]; |
1599 | | |
1600 | | }; |
1601 | | union { Impl_ _impl_; }; |
1602 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
1603 | | }; |
1604 | | // ------------------------------------------------------------------- |
1605 | | |
1606 | | class FunctionCall_PrefixArgs final : |
1607 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FunctionCall.PrefixArgs) */ { |
1608 | | public: |
1609 | 0 | inline FunctionCall_PrefixArgs() : FunctionCall_PrefixArgs(nullptr) {} |
1610 | | ~FunctionCall_PrefixArgs() override; |
1611 | | explicit PROTOBUF_CONSTEXPR FunctionCall_PrefixArgs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1612 | | |
1613 | | FunctionCall_PrefixArgs(const FunctionCall_PrefixArgs& from); |
1614 | | FunctionCall_PrefixArgs(FunctionCall_PrefixArgs&& from) noexcept |
1615 | 0 | : FunctionCall_PrefixArgs() { |
1616 | 0 | *this = ::std::move(from); |
1617 | 0 | } |
1618 | | |
1619 | 0 | inline FunctionCall_PrefixArgs& operator=(const FunctionCall_PrefixArgs& from) { |
1620 | 0 | CopyFrom(from); |
1621 | 0 | return *this; |
1622 | 0 | } |
1623 | 0 | inline FunctionCall_PrefixArgs& operator=(FunctionCall_PrefixArgs&& from) noexcept { |
1624 | 0 | if (this == &from) return *this; |
1625 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1626 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1627 | 0 | && GetOwningArena() != nullptr |
1628 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1629 | 0 | ) { |
1630 | 0 | InternalSwap(&from); |
1631 | 0 | } else { |
1632 | 0 | CopyFrom(from); |
1633 | 0 | } |
1634 | 0 | return *this; |
1635 | 0 | } |
1636 | | |
1637 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1638 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1639 | 0 | } |
1640 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1641 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1642 | 0 | } |
1643 | | |
1644 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1645 | 0 | return GetDescriptor(); |
1646 | 0 | } |
1647 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1648 | 0 | return default_instance().GetMetadata().descriptor; |
1649 | 0 | } |
1650 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1651 | 0 | return default_instance().GetMetadata().reflection; |
1652 | 0 | } |
1653 | 0 | static const FunctionCall_PrefixArgs& default_instance() { |
1654 | 0 | return *internal_default_instance(); |
1655 | 0 | } |
1656 | 7.74k | static inline const FunctionCall_PrefixArgs* internal_default_instance() { |
1657 | 7.74k | return reinterpret_cast<const FunctionCall_PrefixArgs*>( |
1658 | 7.74k | &_FunctionCall_PrefixArgs_default_instance_); |
1659 | 7.74k | } |
1660 | | static constexpr int kIndexInFileMessages = |
1661 | | 6; |
1662 | | |
1663 | 0 | friend void swap(FunctionCall_PrefixArgs& a, FunctionCall_PrefixArgs& b) { |
1664 | 0 | a.Swap(&b); |
1665 | 0 | } |
1666 | 0 | inline void Swap(FunctionCall_PrefixArgs* other) { |
1667 | 0 | if (other == this) return; |
1668 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1669 | 0 | if (GetOwningArena() != nullptr && |
1670 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1671 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1672 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1673 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1674 | 0 | InternalSwap(other); |
1675 | 0 | } else { |
1676 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1677 | 0 | } |
1678 | 0 | } |
1679 | 0 | void UnsafeArenaSwap(FunctionCall_PrefixArgs* other) { |
1680 | 0 | if (other == this) return; |
1681 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1682 | 0 | InternalSwap(other); |
1683 | 0 | } |
1684 | | |
1685 | | // implements Message ---------------------------------------------- |
1686 | | |
1687 | 3.87k | FunctionCall_PrefixArgs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1688 | 3.87k | return CreateMaybeMessage<FunctionCall_PrefixArgs>(arena); |
1689 | 3.87k | } |
1690 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1691 | | void CopyFrom(const FunctionCall_PrefixArgs& from); |
1692 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1693 | 0 | void MergeFrom( const FunctionCall_PrefixArgs& from) { |
1694 | 0 | FunctionCall_PrefixArgs::MergeImpl(*this, from); |
1695 | 0 | } |
1696 | | private: |
1697 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1698 | | public: |
1699 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1700 | | bool IsInitialized() const final; |
1701 | | |
1702 | | size_t ByteSizeLong() const final; |
1703 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1704 | | uint8_t* _InternalSerialize( |
1705 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1706 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1707 | | |
1708 | | private: |
1709 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1710 | | void SharedDtor(); |
1711 | | void SetCachedSize(int size) const final; |
1712 | | void InternalSwap(FunctionCall_PrefixArgs* other); |
1713 | | |
1714 | | private: |
1715 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1716 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1717 | 0 | return "lua_grammar.FunctionCall.PrefixArgs"; |
1718 | 0 | } |
1719 | | protected: |
1720 | | explicit FunctionCall_PrefixArgs(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1721 | | bool is_message_owned = false); |
1722 | | public: |
1723 | | |
1724 | | static const ClassData _class_data_; |
1725 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1726 | | |
1727 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1728 | | |
1729 | | // nested types ---------------------------------------------------- |
1730 | | |
1731 | | // accessors ------------------------------------------------------- |
1732 | | |
1733 | | enum : int { |
1734 | | kPrefixexpFieldNumber = 1, |
1735 | | kArgsFieldNumber = 2, |
1736 | | }; |
1737 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
1738 | | bool has_prefixexp() const; |
1739 | | private: |
1740 | | bool _internal_has_prefixexp() const; |
1741 | | public: |
1742 | | void clear_prefixexp(); |
1743 | | const ::lua_grammar::PrefixExpression& prefixexp() const; |
1744 | | PROTOBUF_NODISCARD ::lua_grammar::PrefixExpression* release_prefixexp(); |
1745 | | ::lua_grammar::PrefixExpression* mutable_prefixexp(); |
1746 | | void set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp); |
1747 | | private: |
1748 | | const ::lua_grammar::PrefixExpression& _internal_prefixexp() const; |
1749 | | ::lua_grammar::PrefixExpression* _internal_mutable_prefixexp(); |
1750 | | public: |
1751 | | void unsafe_arena_set_allocated_prefixexp( |
1752 | | ::lua_grammar::PrefixExpression* prefixexp); |
1753 | | ::lua_grammar::PrefixExpression* unsafe_arena_release_prefixexp(); |
1754 | | |
1755 | | // required .lua_grammar.FunctionCall.Args args = 2; |
1756 | | bool has_args() const; |
1757 | | private: |
1758 | | bool _internal_has_args() const; |
1759 | | public: |
1760 | | void clear_args(); |
1761 | | const ::lua_grammar::FunctionCall_Args& args() const; |
1762 | | PROTOBUF_NODISCARD ::lua_grammar::FunctionCall_Args* release_args(); |
1763 | | ::lua_grammar::FunctionCall_Args* mutable_args(); |
1764 | | void set_allocated_args(::lua_grammar::FunctionCall_Args* args); |
1765 | | private: |
1766 | | const ::lua_grammar::FunctionCall_Args& _internal_args() const; |
1767 | | ::lua_grammar::FunctionCall_Args* _internal_mutable_args(); |
1768 | | public: |
1769 | | void unsafe_arena_set_allocated_args( |
1770 | | ::lua_grammar::FunctionCall_Args* args); |
1771 | | ::lua_grammar::FunctionCall_Args* unsafe_arena_release_args(); |
1772 | | |
1773 | | // @@protoc_insertion_point(class_scope:lua_grammar.FunctionCall.PrefixArgs) |
1774 | | private: |
1775 | | class _Internal; |
1776 | | |
1777 | | // helper for ByteSizeLong() |
1778 | | size_t RequiredFieldsByteSizeFallback() const; |
1779 | | |
1780 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1781 | | typedef void InternalArenaConstructable_; |
1782 | | typedef void DestructorSkippable_; |
1783 | | struct Impl_ { |
1784 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1785 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1786 | | ::lua_grammar::PrefixExpression* prefixexp_; |
1787 | | ::lua_grammar::FunctionCall_Args* args_; |
1788 | | }; |
1789 | | union { Impl_ _impl_; }; |
1790 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
1791 | | }; |
1792 | | // ------------------------------------------------------------------- |
1793 | | |
1794 | | class FunctionCall_PrefixNamedArgs final : |
1795 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FunctionCall.PrefixNamedArgs) */ { |
1796 | | public: |
1797 | 0 | inline FunctionCall_PrefixNamedArgs() : FunctionCall_PrefixNamedArgs(nullptr) {} |
1798 | | ~FunctionCall_PrefixNamedArgs() override; |
1799 | | explicit PROTOBUF_CONSTEXPR FunctionCall_PrefixNamedArgs(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
1800 | | |
1801 | | FunctionCall_PrefixNamedArgs(const FunctionCall_PrefixNamedArgs& from); |
1802 | | FunctionCall_PrefixNamedArgs(FunctionCall_PrefixNamedArgs&& from) noexcept |
1803 | 0 | : FunctionCall_PrefixNamedArgs() { |
1804 | 0 | *this = ::std::move(from); |
1805 | 0 | } |
1806 | | |
1807 | 0 | inline FunctionCall_PrefixNamedArgs& operator=(const FunctionCall_PrefixNamedArgs& from) { |
1808 | 0 | CopyFrom(from); |
1809 | 0 | return *this; |
1810 | 0 | } |
1811 | 0 | inline FunctionCall_PrefixNamedArgs& operator=(FunctionCall_PrefixNamedArgs&& from) noexcept { |
1812 | 0 | if (this == &from) return *this; |
1813 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1814 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1815 | 0 | && GetOwningArena() != nullptr |
1816 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1817 | 0 | ) { |
1818 | 0 | InternalSwap(&from); |
1819 | 0 | } else { |
1820 | 0 | CopyFrom(from); |
1821 | 0 | } |
1822 | 0 | return *this; |
1823 | 0 | } |
1824 | | |
1825 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1826 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1827 | 0 | } |
1828 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1829 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1830 | 0 | } |
1831 | | |
1832 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1833 | 0 | return GetDescriptor(); |
1834 | 0 | } |
1835 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1836 | 0 | return default_instance().GetMetadata().descriptor; |
1837 | 0 | } |
1838 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1839 | 0 | return default_instance().GetMetadata().reflection; |
1840 | 0 | } |
1841 | 0 | static const FunctionCall_PrefixNamedArgs& default_instance() { |
1842 | 0 | return *internal_default_instance(); |
1843 | 0 | } |
1844 | 7.61k | static inline const FunctionCall_PrefixNamedArgs* internal_default_instance() { |
1845 | 7.61k | return reinterpret_cast<const FunctionCall_PrefixNamedArgs*>( |
1846 | 7.61k | &_FunctionCall_PrefixNamedArgs_default_instance_); |
1847 | 7.61k | } |
1848 | | static constexpr int kIndexInFileMessages = |
1849 | | 7; |
1850 | | |
1851 | 0 | friend void swap(FunctionCall_PrefixNamedArgs& a, FunctionCall_PrefixNamedArgs& b) { |
1852 | 0 | a.Swap(&b); |
1853 | 0 | } |
1854 | 0 | inline void Swap(FunctionCall_PrefixNamedArgs* other) { |
1855 | 0 | if (other == this) return; |
1856 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1857 | 0 | if (GetOwningArena() != nullptr && |
1858 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1859 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1860 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1861 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1862 | 0 | InternalSwap(other); |
1863 | 0 | } else { |
1864 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1865 | 0 | } |
1866 | 0 | } |
1867 | 0 | void UnsafeArenaSwap(FunctionCall_PrefixNamedArgs* other) { |
1868 | 0 | if (other == this) return; |
1869 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1870 | 0 | InternalSwap(other); |
1871 | 0 | } |
1872 | | |
1873 | | // implements Message ---------------------------------------------- |
1874 | | |
1875 | 2.53k | FunctionCall_PrefixNamedArgs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1876 | 2.53k | return CreateMaybeMessage<FunctionCall_PrefixNamedArgs>(arena); |
1877 | 2.53k | } |
1878 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1879 | | void CopyFrom(const FunctionCall_PrefixNamedArgs& from); |
1880 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1881 | 0 | void MergeFrom( const FunctionCall_PrefixNamedArgs& from) { |
1882 | 0 | FunctionCall_PrefixNamedArgs::MergeImpl(*this, from); |
1883 | 0 | } |
1884 | | private: |
1885 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1886 | | public: |
1887 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1888 | | bool IsInitialized() const final; |
1889 | | |
1890 | | size_t ByteSizeLong() const final; |
1891 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1892 | | uint8_t* _InternalSerialize( |
1893 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1894 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1895 | | |
1896 | | private: |
1897 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1898 | | void SharedDtor(); |
1899 | | void SetCachedSize(int size) const final; |
1900 | | void InternalSwap(FunctionCall_PrefixNamedArgs* other); |
1901 | | |
1902 | | private: |
1903 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1904 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1905 | 0 | return "lua_grammar.FunctionCall.PrefixNamedArgs"; |
1906 | 0 | } |
1907 | | protected: |
1908 | | explicit FunctionCall_PrefixNamedArgs(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1909 | | bool is_message_owned = false); |
1910 | | public: |
1911 | | |
1912 | | static const ClassData _class_data_; |
1913 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1914 | | |
1915 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1916 | | |
1917 | | // nested types ---------------------------------------------------- |
1918 | | |
1919 | | // accessors ------------------------------------------------------- |
1920 | | |
1921 | | enum : int { |
1922 | | kPrefixexpFieldNumber = 1, |
1923 | | kNameFieldNumber = 2, |
1924 | | kArgsFieldNumber = 3, |
1925 | | }; |
1926 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
1927 | | bool has_prefixexp() const; |
1928 | | private: |
1929 | | bool _internal_has_prefixexp() const; |
1930 | | public: |
1931 | | void clear_prefixexp(); |
1932 | | const ::lua_grammar::PrefixExpression& prefixexp() const; |
1933 | | PROTOBUF_NODISCARD ::lua_grammar::PrefixExpression* release_prefixexp(); |
1934 | | ::lua_grammar::PrefixExpression* mutable_prefixexp(); |
1935 | | void set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp); |
1936 | | private: |
1937 | | const ::lua_grammar::PrefixExpression& _internal_prefixexp() const; |
1938 | | ::lua_grammar::PrefixExpression* _internal_mutable_prefixexp(); |
1939 | | public: |
1940 | | void unsafe_arena_set_allocated_prefixexp( |
1941 | | ::lua_grammar::PrefixExpression* prefixexp); |
1942 | | ::lua_grammar::PrefixExpression* unsafe_arena_release_prefixexp(); |
1943 | | |
1944 | | // required .lua_grammar.Name name = 2; |
1945 | | bool has_name() const; |
1946 | | private: |
1947 | | bool _internal_has_name() const; |
1948 | | public: |
1949 | | void clear_name(); |
1950 | | const ::lua_grammar::Name& name() const; |
1951 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_name(); |
1952 | | ::lua_grammar::Name* mutable_name(); |
1953 | | void set_allocated_name(::lua_grammar::Name* name); |
1954 | | private: |
1955 | | const ::lua_grammar::Name& _internal_name() const; |
1956 | | ::lua_grammar::Name* _internal_mutable_name(); |
1957 | | public: |
1958 | | void unsafe_arena_set_allocated_name( |
1959 | | ::lua_grammar::Name* name); |
1960 | | ::lua_grammar::Name* unsafe_arena_release_name(); |
1961 | | |
1962 | | // required .lua_grammar.FunctionCall.Args args = 3; |
1963 | | bool has_args() const; |
1964 | | private: |
1965 | | bool _internal_has_args() const; |
1966 | | public: |
1967 | | void clear_args(); |
1968 | | const ::lua_grammar::FunctionCall_Args& args() const; |
1969 | | PROTOBUF_NODISCARD ::lua_grammar::FunctionCall_Args* release_args(); |
1970 | | ::lua_grammar::FunctionCall_Args* mutable_args(); |
1971 | | void set_allocated_args(::lua_grammar::FunctionCall_Args* args); |
1972 | | private: |
1973 | | const ::lua_grammar::FunctionCall_Args& _internal_args() const; |
1974 | | ::lua_grammar::FunctionCall_Args* _internal_mutable_args(); |
1975 | | public: |
1976 | | void unsafe_arena_set_allocated_args( |
1977 | | ::lua_grammar::FunctionCall_Args* args); |
1978 | | ::lua_grammar::FunctionCall_Args* unsafe_arena_release_args(); |
1979 | | |
1980 | | // @@protoc_insertion_point(class_scope:lua_grammar.FunctionCall.PrefixNamedArgs) |
1981 | | private: |
1982 | | class _Internal; |
1983 | | |
1984 | | // helper for ByteSizeLong() |
1985 | | size_t RequiredFieldsByteSizeFallback() const; |
1986 | | |
1987 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1988 | | typedef void InternalArenaConstructable_; |
1989 | | typedef void DestructorSkippable_; |
1990 | | struct Impl_ { |
1991 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1992 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1993 | | ::lua_grammar::PrefixExpression* prefixexp_; |
1994 | | ::lua_grammar::Name* name_; |
1995 | | ::lua_grammar::FunctionCall_Args* args_; |
1996 | | }; |
1997 | | union { Impl_ _impl_; }; |
1998 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
1999 | | }; |
2000 | | // ------------------------------------------------------------------- |
2001 | | |
2002 | | class FunctionCall final : |
2003 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FunctionCall) */ { |
2004 | | public: |
2005 | 0 | inline FunctionCall() : FunctionCall(nullptr) {} |
2006 | | ~FunctionCall() override; |
2007 | | explicit PROTOBUF_CONSTEXPR FunctionCall(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2008 | | |
2009 | | FunctionCall(const FunctionCall& from); |
2010 | | FunctionCall(FunctionCall&& from) noexcept |
2011 | 0 | : FunctionCall() { |
2012 | 0 | *this = ::std::move(from); |
2013 | 0 | } |
2014 | | |
2015 | 0 | inline FunctionCall& operator=(const FunctionCall& from) { |
2016 | 0 | CopyFrom(from); |
2017 | 0 | return *this; |
2018 | 0 | } |
2019 | 0 | inline FunctionCall& operator=(FunctionCall&& from) noexcept { |
2020 | 0 | if (this == &from) return *this; |
2021 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2022 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2023 | 0 | && GetOwningArena() != nullptr |
2024 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2025 | 0 | ) { |
2026 | 0 | InternalSwap(&from); |
2027 | 0 | } else { |
2028 | 0 | CopyFrom(from); |
2029 | 0 | } |
2030 | 0 | return *this; |
2031 | 0 | } |
2032 | | |
2033 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2034 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2035 | 0 | } |
2036 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2037 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2038 | 0 | } |
2039 | | |
2040 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2041 | 0 | return GetDescriptor(); |
2042 | 0 | } |
2043 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2044 | 0 | return default_instance().GetMetadata().descriptor; |
2045 | 0 | } |
2046 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2047 | 0 | return default_instance().GetMetadata().reflection; |
2048 | 0 | } |
2049 | 0 | static const FunctionCall& default_instance() { |
2050 | 0 | return *internal_default_instance(); |
2051 | 0 | } |
2052 | | enum CallOneofCase { |
2053 | | kPrefArgs = 1, |
2054 | | kNamedArgs = 2, |
2055 | | CALL_ONEOF_NOT_SET = 0, |
2056 | | }; |
2057 | | |
2058 | 0 | static inline const FunctionCall* internal_default_instance() { |
2059 | 0 | return reinterpret_cast<const FunctionCall*>( |
2060 | 0 | &_FunctionCall_default_instance_); |
2061 | 0 | } |
2062 | | static constexpr int kIndexInFileMessages = |
2063 | | 8; |
2064 | | |
2065 | 0 | friend void swap(FunctionCall& a, FunctionCall& b) { |
2066 | 0 | a.Swap(&b); |
2067 | 0 | } |
2068 | 0 | inline void Swap(FunctionCall* other) { |
2069 | 0 | if (other == this) return; |
2070 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2071 | 0 | if (GetOwningArena() != nullptr && |
2072 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2073 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2074 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2075 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2076 | 0 | InternalSwap(other); |
2077 | 0 | } else { |
2078 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2079 | 0 | } |
2080 | 0 | } |
2081 | 0 | void UnsafeArenaSwap(FunctionCall* other) { |
2082 | 0 | if (other == this) return; |
2083 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2084 | 0 | InternalSwap(other); |
2085 | 0 | } |
2086 | | |
2087 | | // implements Message ---------------------------------------------- |
2088 | | |
2089 | 12.8k | FunctionCall* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2090 | 12.8k | return CreateMaybeMessage<FunctionCall>(arena); |
2091 | 12.8k | } |
2092 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2093 | | void CopyFrom(const FunctionCall& from); |
2094 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2095 | 0 | void MergeFrom( const FunctionCall& from) { |
2096 | 0 | FunctionCall::MergeImpl(*this, from); |
2097 | 0 | } |
2098 | | private: |
2099 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2100 | | public: |
2101 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2102 | | bool IsInitialized() const final; |
2103 | | |
2104 | | size_t ByteSizeLong() const final; |
2105 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2106 | | uint8_t* _InternalSerialize( |
2107 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2108 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2109 | | |
2110 | | private: |
2111 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2112 | | void SharedDtor(); |
2113 | | void SetCachedSize(int size) const final; |
2114 | | void InternalSwap(FunctionCall* other); |
2115 | | |
2116 | | private: |
2117 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2118 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2119 | 0 | return "lua_grammar.FunctionCall"; |
2120 | 0 | } |
2121 | | protected: |
2122 | | explicit FunctionCall(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2123 | | bool is_message_owned = false); |
2124 | | public: |
2125 | | |
2126 | | static const ClassData _class_data_; |
2127 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2128 | | |
2129 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2130 | | |
2131 | | // nested types ---------------------------------------------------- |
2132 | | |
2133 | | typedef FunctionCall_Args Args; |
2134 | | typedef FunctionCall_PrefixArgs PrefixArgs; |
2135 | | typedef FunctionCall_PrefixNamedArgs PrefixNamedArgs; |
2136 | | |
2137 | | // accessors ------------------------------------------------------- |
2138 | | |
2139 | | enum : int { |
2140 | | kPrefArgsFieldNumber = 1, |
2141 | | kNamedArgsFieldNumber = 2, |
2142 | | }; |
2143 | | // .lua_grammar.FunctionCall.PrefixArgs prefArgs = 1; |
2144 | | bool has_prefargs() const; |
2145 | | private: |
2146 | | bool _internal_has_prefargs() const; |
2147 | | public: |
2148 | | void clear_prefargs(); |
2149 | | const ::lua_grammar::FunctionCall_PrefixArgs& prefargs() const; |
2150 | | PROTOBUF_NODISCARD ::lua_grammar::FunctionCall_PrefixArgs* release_prefargs(); |
2151 | | ::lua_grammar::FunctionCall_PrefixArgs* mutable_prefargs(); |
2152 | | void set_allocated_prefargs(::lua_grammar::FunctionCall_PrefixArgs* prefargs); |
2153 | | private: |
2154 | | const ::lua_grammar::FunctionCall_PrefixArgs& _internal_prefargs() const; |
2155 | | ::lua_grammar::FunctionCall_PrefixArgs* _internal_mutable_prefargs(); |
2156 | | public: |
2157 | | void unsafe_arena_set_allocated_prefargs( |
2158 | | ::lua_grammar::FunctionCall_PrefixArgs* prefargs); |
2159 | | ::lua_grammar::FunctionCall_PrefixArgs* unsafe_arena_release_prefargs(); |
2160 | | |
2161 | | // .lua_grammar.FunctionCall.PrefixNamedArgs namedArgs = 2; |
2162 | | bool has_namedargs() const; |
2163 | | private: |
2164 | | bool _internal_has_namedargs() const; |
2165 | | public: |
2166 | | void clear_namedargs(); |
2167 | | const ::lua_grammar::FunctionCall_PrefixNamedArgs& namedargs() const; |
2168 | | PROTOBUF_NODISCARD ::lua_grammar::FunctionCall_PrefixNamedArgs* release_namedargs(); |
2169 | | ::lua_grammar::FunctionCall_PrefixNamedArgs* mutable_namedargs(); |
2170 | | void set_allocated_namedargs(::lua_grammar::FunctionCall_PrefixNamedArgs* namedargs); |
2171 | | private: |
2172 | | const ::lua_grammar::FunctionCall_PrefixNamedArgs& _internal_namedargs() const; |
2173 | | ::lua_grammar::FunctionCall_PrefixNamedArgs* _internal_mutable_namedargs(); |
2174 | | public: |
2175 | | void unsafe_arena_set_allocated_namedargs( |
2176 | | ::lua_grammar::FunctionCall_PrefixNamedArgs* namedargs); |
2177 | | ::lua_grammar::FunctionCall_PrefixNamedArgs* unsafe_arena_release_namedargs(); |
2178 | | |
2179 | | void clear_call_oneof(); |
2180 | | CallOneofCase call_oneof_case() const; |
2181 | | // @@protoc_insertion_point(class_scope:lua_grammar.FunctionCall) |
2182 | | private: |
2183 | | class _Internal; |
2184 | | void set_has_prefargs(); |
2185 | | void set_has_namedargs(); |
2186 | | |
2187 | | inline bool has_call_oneof() const; |
2188 | | inline void clear_has_call_oneof(); |
2189 | | |
2190 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2191 | | typedef void InternalArenaConstructable_; |
2192 | | typedef void DestructorSkippable_; |
2193 | | struct Impl_ { |
2194 | | union CallOneofUnion { |
2195 | 12.8k | constexpr CallOneofUnion() : _constinit_{} {} |
2196 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
2197 | | ::lua_grammar::FunctionCall_PrefixArgs* prefargs_; |
2198 | | ::lua_grammar::FunctionCall_PrefixNamedArgs* namedargs_; |
2199 | | } call_oneof_; |
2200 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2201 | | uint32_t _oneof_case_[1]; |
2202 | | |
2203 | | }; |
2204 | | union { Impl_ _impl_; }; |
2205 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
2206 | | }; |
2207 | | // ------------------------------------------------------------------- |
2208 | | |
2209 | | class DoBlock final : |
2210 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.DoBlock) */ { |
2211 | | public: |
2212 | 0 | inline DoBlock() : DoBlock(nullptr) {} |
2213 | | ~DoBlock() override; |
2214 | | explicit PROTOBUF_CONSTEXPR DoBlock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2215 | | |
2216 | | DoBlock(const DoBlock& from); |
2217 | | DoBlock(DoBlock&& from) noexcept |
2218 | 0 | : DoBlock() { |
2219 | 0 | *this = ::std::move(from); |
2220 | 0 | } |
2221 | | |
2222 | 0 | inline DoBlock& operator=(const DoBlock& from) { |
2223 | 0 | CopyFrom(from); |
2224 | 0 | return *this; |
2225 | 0 | } |
2226 | 0 | inline DoBlock& operator=(DoBlock&& from) noexcept { |
2227 | 0 | if (this == &from) return *this; |
2228 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2229 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2230 | 0 | && GetOwningArena() != nullptr |
2231 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2232 | 0 | ) { |
2233 | 0 | InternalSwap(&from); |
2234 | 0 | } else { |
2235 | 0 | CopyFrom(from); |
2236 | 0 | } |
2237 | 0 | return *this; |
2238 | 0 | } |
2239 | | |
2240 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2241 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2242 | 0 | } |
2243 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2244 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2245 | 0 | } |
2246 | | |
2247 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2248 | 0 | return GetDescriptor(); |
2249 | 0 | } |
2250 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2251 | 0 | return default_instance().GetMetadata().descriptor; |
2252 | 0 | } |
2253 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2254 | 0 | return default_instance().GetMetadata().reflection; |
2255 | 0 | } |
2256 | 0 | static const DoBlock& default_instance() { |
2257 | 0 | return *internal_default_instance(); |
2258 | 0 | } |
2259 | 30.8k | static inline const DoBlock* internal_default_instance() { |
2260 | 30.8k | return reinterpret_cast<const DoBlock*>( |
2261 | 30.8k | &_DoBlock_default_instance_); |
2262 | 30.8k | } |
2263 | | static constexpr int kIndexInFileMessages = |
2264 | | 9; |
2265 | | |
2266 | 0 | friend void swap(DoBlock& a, DoBlock& b) { |
2267 | 0 | a.Swap(&b); |
2268 | 0 | } |
2269 | 0 | inline void Swap(DoBlock* other) { |
2270 | 0 | if (other == this) return; |
2271 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2272 | 0 | if (GetOwningArena() != nullptr && |
2273 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2274 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2275 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2276 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2277 | 0 | InternalSwap(other); |
2278 | 0 | } else { |
2279 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2280 | 0 | } |
2281 | 0 | } |
2282 | 0 | void UnsafeArenaSwap(DoBlock* other) { |
2283 | 0 | if (other == this) return; |
2284 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2285 | 0 | InternalSwap(other); |
2286 | 0 | } |
2287 | | |
2288 | | // implements Message ---------------------------------------------- |
2289 | | |
2290 | 30.8k | DoBlock* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2291 | 30.8k | return CreateMaybeMessage<DoBlock>(arena); |
2292 | 30.8k | } |
2293 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2294 | | void CopyFrom(const DoBlock& from); |
2295 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2296 | 0 | void MergeFrom( const DoBlock& from) { |
2297 | 0 | DoBlock::MergeImpl(*this, from); |
2298 | 0 | } |
2299 | | private: |
2300 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2301 | | public: |
2302 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2303 | | bool IsInitialized() const final; |
2304 | | |
2305 | | size_t ByteSizeLong() const final; |
2306 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2307 | | uint8_t* _InternalSerialize( |
2308 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2309 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2310 | | |
2311 | | private: |
2312 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2313 | | void SharedDtor(); |
2314 | | void SetCachedSize(int size) const final; |
2315 | | void InternalSwap(DoBlock* other); |
2316 | | |
2317 | | private: |
2318 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2319 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2320 | 0 | return "lua_grammar.DoBlock"; |
2321 | 0 | } |
2322 | | protected: |
2323 | | explicit DoBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2324 | | bool is_message_owned = false); |
2325 | | public: |
2326 | | |
2327 | | static const ClassData _class_data_; |
2328 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2329 | | |
2330 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2331 | | |
2332 | | // nested types ---------------------------------------------------- |
2333 | | |
2334 | | // accessors ------------------------------------------------------- |
2335 | | |
2336 | | enum : int { |
2337 | | kBlockFieldNumber = 1, |
2338 | | }; |
2339 | | // required .lua_grammar.Block block = 1; |
2340 | | bool has_block() const; |
2341 | | private: |
2342 | | bool _internal_has_block() const; |
2343 | | public: |
2344 | | void clear_block(); |
2345 | | const ::lua_grammar::Block& block() const; |
2346 | | PROTOBUF_NODISCARD ::lua_grammar::Block* release_block(); |
2347 | | ::lua_grammar::Block* mutable_block(); |
2348 | | void set_allocated_block(::lua_grammar::Block* block); |
2349 | | private: |
2350 | | const ::lua_grammar::Block& _internal_block() const; |
2351 | | ::lua_grammar::Block* _internal_mutable_block(); |
2352 | | public: |
2353 | | void unsafe_arena_set_allocated_block( |
2354 | | ::lua_grammar::Block* block); |
2355 | | ::lua_grammar::Block* unsafe_arena_release_block(); |
2356 | | |
2357 | | // @@protoc_insertion_point(class_scope:lua_grammar.DoBlock) |
2358 | | private: |
2359 | | class _Internal; |
2360 | | |
2361 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2362 | | typedef void InternalArenaConstructable_; |
2363 | | typedef void DestructorSkippable_; |
2364 | | struct Impl_ { |
2365 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2366 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2367 | | ::lua_grammar::Block* block_; |
2368 | | }; |
2369 | | union { Impl_ _impl_; }; |
2370 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
2371 | | }; |
2372 | | // ------------------------------------------------------------------- |
2373 | | |
2374 | | class WhileCycle final : |
2375 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.WhileCycle) */ { |
2376 | | public: |
2377 | 0 | inline WhileCycle() : WhileCycle(nullptr) {} |
2378 | | ~WhileCycle() override; |
2379 | | explicit PROTOBUF_CONSTEXPR WhileCycle(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2380 | | |
2381 | | WhileCycle(const WhileCycle& from); |
2382 | | WhileCycle(WhileCycle&& from) noexcept |
2383 | 0 | : WhileCycle() { |
2384 | 0 | *this = ::std::move(from); |
2385 | 0 | } |
2386 | | |
2387 | 0 | inline WhileCycle& operator=(const WhileCycle& from) { |
2388 | 0 | CopyFrom(from); |
2389 | 0 | return *this; |
2390 | 0 | } |
2391 | 0 | inline WhileCycle& operator=(WhileCycle&& from) noexcept { |
2392 | 0 | if (this == &from) return *this; |
2393 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2394 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2395 | 0 | && GetOwningArena() != nullptr |
2396 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2397 | 0 | ) { |
2398 | 0 | InternalSwap(&from); |
2399 | 0 | } else { |
2400 | 0 | CopyFrom(from); |
2401 | 0 | } |
2402 | 0 | return *this; |
2403 | 0 | } |
2404 | | |
2405 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2406 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2407 | 0 | } |
2408 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2409 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2410 | 0 | } |
2411 | | |
2412 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2413 | 0 | return GetDescriptor(); |
2414 | 0 | } |
2415 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2416 | 0 | return default_instance().GetMetadata().descriptor; |
2417 | 0 | } |
2418 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2419 | 0 | return default_instance().GetMetadata().reflection; |
2420 | 0 | } |
2421 | 0 | static const WhileCycle& default_instance() { |
2422 | 0 | return *internal_default_instance(); |
2423 | 0 | } |
2424 | 6.19k | static inline const WhileCycle* internal_default_instance() { |
2425 | 6.19k | return reinterpret_cast<const WhileCycle*>( |
2426 | 6.19k | &_WhileCycle_default_instance_); |
2427 | 6.19k | } |
2428 | | static constexpr int kIndexInFileMessages = |
2429 | | 10; |
2430 | | |
2431 | 0 | friend void swap(WhileCycle& a, WhileCycle& b) { |
2432 | 0 | a.Swap(&b); |
2433 | 0 | } |
2434 | 0 | inline void Swap(WhileCycle* other) { |
2435 | 0 | if (other == this) return; |
2436 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2437 | 0 | if (GetOwningArena() != nullptr && |
2438 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2439 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2440 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2441 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2442 | 0 | InternalSwap(other); |
2443 | 0 | } else { |
2444 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2445 | 0 | } |
2446 | 0 | } |
2447 | 0 | void UnsafeArenaSwap(WhileCycle* other) { |
2448 | 0 | if (other == this) return; |
2449 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2450 | 0 | InternalSwap(other); |
2451 | 0 | } |
2452 | | |
2453 | | // implements Message ---------------------------------------------- |
2454 | | |
2455 | 3.09k | WhileCycle* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2456 | 3.09k | return CreateMaybeMessage<WhileCycle>(arena); |
2457 | 3.09k | } |
2458 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2459 | | void CopyFrom(const WhileCycle& from); |
2460 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2461 | 0 | void MergeFrom( const WhileCycle& from) { |
2462 | 0 | WhileCycle::MergeImpl(*this, from); |
2463 | 0 | } |
2464 | | private: |
2465 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2466 | | public: |
2467 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2468 | | bool IsInitialized() const final; |
2469 | | |
2470 | | size_t ByteSizeLong() const final; |
2471 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2472 | | uint8_t* _InternalSerialize( |
2473 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2474 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2475 | | |
2476 | | private: |
2477 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2478 | | void SharedDtor(); |
2479 | | void SetCachedSize(int size) const final; |
2480 | | void InternalSwap(WhileCycle* other); |
2481 | | |
2482 | | private: |
2483 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2484 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2485 | 0 | return "lua_grammar.WhileCycle"; |
2486 | 0 | } |
2487 | | protected: |
2488 | | explicit WhileCycle(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2489 | | bool is_message_owned = false); |
2490 | | public: |
2491 | | |
2492 | | static const ClassData _class_data_; |
2493 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2494 | | |
2495 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2496 | | |
2497 | | // nested types ---------------------------------------------------- |
2498 | | |
2499 | | // accessors ------------------------------------------------------- |
2500 | | |
2501 | | enum : int { |
2502 | | kConditionFieldNumber = 1, |
2503 | | kDoblockFieldNumber = 2, |
2504 | | }; |
2505 | | // required .lua_grammar.Expression condition = 1; |
2506 | | bool has_condition() const; |
2507 | | private: |
2508 | | bool _internal_has_condition() const; |
2509 | | public: |
2510 | | void clear_condition(); |
2511 | | const ::lua_grammar::Expression& condition() const; |
2512 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_condition(); |
2513 | | ::lua_grammar::Expression* mutable_condition(); |
2514 | | void set_allocated_condition(::lua_grammar::Expression* condition); |
2515 | | private: |
2516 | | const ::lua_grammar::Expression& _internal_condition() const; |
2517 | | ::lua_grammar::Expression* _internal_mutable_condition(); |
2518 | | public: |
2519 | | void unsafe_arena_set_allocated_condition( |
2520 | | ::lua_grammar::Expression* condition); |
2521 | | ::lua_grammar::Expression* unsafe_arena_release_condition(); |
2522 | | |
2523 | | // required .lua_grammar.DoBlock doblock = 2; |
2524 | | bool has_doblock() const; |
2525 | | private: |
2526 | | bool _internal_has_doblock() const; |
2527 | | public: |
2528 | | void clear_doblock(); |
2529 | | const ::lua_grammar::DoBlock& doblock() const; |
2530 | | PROTOBUF_NODISCARD ::lua_grammar::DoBlock* release_doblock(); |
2531 | | ::lua_grammar::DoBlock* mutable_doblock(); |
2532 | | void set_allocated_doblock(::lua_grammar::DoBlock* doblock); |
2533 | | private: |
2534 | | const ::lua_grammar::DoBlock& _internal_doblock() const; |
2535 | | ::lua_grammar::DoBlock* _internal_mutable_doblock(); |
2536 | | public: |
2537 | | void unsafe_arena_set_allocated_doblock( |
2538 | | ::lua_grammar::DoBlock* doblock); |
2539 | | ::lua_grammar::DoBlock* unsafe_arena_release_doblock(); |
2540 | | |
2541 | | // @@protoc_insertion_point(class_scope:lua_grammar.WhileCycle) |
2542 | | private: |
2543 | | class _Internal; |
2544 | | |
2545 | | // helper for ByteSizeLong() |
2546 | | size_t RequiredFieldsByteSizeFallback() const; |
2547 | | |
2548 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2549 | | typedef void InternalArenaConstructable_; |
2550 | | typedef void DestructorSkippable_; |
2551 | | struct Impl_ { |
2552 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2553 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2554 | | ::lua_grammar::Expression* condition_; |
2555 | | ::lua_grammar::DoBlock* doblock_; |
2556 | | }; |
2557 | | union { Impl_ _impl_; }; |
2558 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
2559 | | }; |
2560 | | // ------------------------------------------------------------------- |
2561 | | |
2562 | | class RepeatCycle final : |
2563 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.RepeatCycle) */ { |
2564 | | public: |
2565 | 0 | inline RepeatCycle() : RepeatCycle(nullptr) {} |
2566 | | ~RepeatCycle() override; |
2567 | | explicit PROTOBUF_CONSTEXPR RepeatCycle(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2568 | | |
2569 | | RepeatCycle(const RepeatCycle& from); |
2570 | | RepeatCycle(RepeatCycle&& from) noexcept |
2571 | 0 | : RepeatCycle() { |
2572 | 0 | *this = ::std::move(from); |
2573 | 0 | } |
2574 | | |
2575 | 0 | inline RepeatCycle& operator=(const RepeatCycle& from) { |
2576 | 0 | CopyFrom(from); |
2577 | 0 | return *this; |
2578 | 0 | } |
2579 | 0 | inline RepeatCycle& operator=(RepeatCycle&& from) noexcept { |
2580 | 0 | if (this == &from) return *this; |
2581 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2582 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2583 | 0 | && GetOwningArena() != nullptr |
2584 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2585 | 0 | ) { |
2586 | 0 | InternalSwap(&from); |
2587 | 0 | } else { |
2588 | 0 | CopyFrom(from); |
2589 | 0 | } |
2590 | 0 | return *this; |
2591 | 0 | } |
2592 | | |
2593 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2594 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2595 | 0 | } |
2596 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2597 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2598 | 0 | } |
2599 | | |
2600 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2601 | 0 | return GetDescriptor(); |
2602 | 0 | } |
2603 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2604 | 0 | return default_instance().GetMetadata().descriptor; |
2605 | 0 | } |
2606 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2607 | 0 | return default_instance().GetMetadata().reflection; |
2608 | 0 | } |
2609 | 0 | static const RepeatCycle& default_instance() { |
2610 | 0 | return *internal_default_instance(); |
2611 | 0 | } |
2612 | 12.7k | static inline const RepeatCycle* internal_default_instance() { |
2613 | 12.7k | return reinterpret_cast<const RepeatCycle*>( |
2614 | 12.7k | &_RepeatCycle_default_instance_); |
2615 | 12.7k | } |
2616 | | static constexpr int kIndexInFileMessages = |
2617 | | 11; |
2618 | | |
2619 | 0 | friend void swap(RepeatCycle& a, RepeatCycle& b) { |
2620 | 0 | a.Swap(&b); |
2621 | 0 | } |
2622 | 0 | inline void Swap(RepeatCycle* other) { |
2623 | 0 | if (other == this) return; |
2624 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2625 | 0 | if (GetOwningArena() != nullptr && |
2626 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2627 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2628 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2629 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2630 | 0 | InternalSwap(other); |
2631 | 0 | } else { |
2632 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2633 | 0 | } |
2634 | 0 | } |
2635 | 0 | void UnsafeArenaSwap(RepeatCycle* other) { |
2636 | 0 | if (other == this) return; |
2637 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2638 | 0 | InternalSwap(other); |
2639 | 0 | } |
2640 | | |
2641 | | // implements Message ---------------------------------------------- |
2642 | | |
2643 | 6.39k | RepeatCycle* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2644 | 6.39k | return CreateMaybeMessage<RepeatCycle>(arena); |
2645 | 6.39k | } |
2646 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2647 | | void CopyFrom(const RepeatCycle& from); |
2648 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2649 | 0 | void MergeFrom( const RepeatCycle& from) { |
2650 | 0 | RepeatCycle::MergeImpl(*this, from); |
2651 | 0 | } |
2652 | | private: |
2653 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2654 | | public: |
2655 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2656 | | bool IsInitialized() const final; |
2657 | | |
2658 | | size_t ByteSizeLong() const final; |
2659 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2660 | | uint8_t* _InternalSerialize( |
2661 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2662 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2663 | | |
2664 | | private: |
2665 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2666 | | void SharedDtor(); |
2667 | | void SetCachedSize(int size) const final; |
2668 | | void InternalSwap(RepeatCycle* other); |
2669 | | |
2670 | | private: |
2671 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2672 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2673 | 0 | return "lua_grammar.RepeatCycle"; |
2674 | 0 | } |
2675 | | protected: |
2676 | | explicit RepeatCycle(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2677 | | bool is_message_owned = false); |
2678 | | public: |
2679 | | |
2680 | | static const ClassData _class_data_; |
2681 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2682 | | |
2683 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2684 | | |
2685 | | // nested types ---------------------------------------------------- |
2686 | | |
2687 | | // accessors ------------------------------------------------------- |
2688 | | |
2689 | | enum : int { |
2690 | | kBlockFieldNumber = 1, |
2691 | | kConditionFieldNumber = 2, |
2692 | | }; |
2693 | | // required .lua_grammar.Block block = 1; |
2694 | | bool has_block() const; |
2695 | | private: |
2696 | | bool _internal_has_block() const; |
2697 | | public: |
2698 | | void clear_block(); |
2699 | | const ::lua_grammar::Block& block() const; |
2700 | | PROTOBUF_NODISCARD ::lua_grammar::Block* release_block(); |
2701 | | ::lua_grammar::Block* mutable_block(); |
2702 | | void set_allocated_block(::lua_grammar::Block* block); |
2703 | | private: |
2704 | | const ::lua_grammar::Block& _internal_block() const; |
2705 | | ::lua_grammar::Block* _internal_mutable_block(); |
2706 | | public: |
2707 | | void unsafe_arena_set_allocated_block( |
2708 | | ::lua_grammar::Block* block); |
2709 | | ::lua_grammar::Block* unsafe_arena_release_block(); |
2710 | | |
2711 | | // required .lua_grammar.Expression condition = 2; |
2712 | | bool has_condition() const; |
2713 | | private: |
2714 | | bool _internal_has_condition() const; |
2715 | | public: |
2716 | | void clear_condition(); |
2717 | | const ::lua_grammar::Expression& condition() const; |
2718 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_condition(); |
2719 | | ::lua_grammar::Expression* mutable_condition(); |
2720 | | void set_allocated_condition(::lua_grammar::Expression* condition); |
2721 | | private: |
2722 | | const ::lua_grammar::Expression& _internal_condition() const; |
2723 | | ::lua_grammar::Expression* _internal_mutable_condition(); |
2724 | | public: |
2725 | | void unsafe_arena_set_allocated_condition( |
2726 | | ::lua_grammar::Expression* condition); |
2727 | | ::lua_grammar::Expression* unsafe_arena_release_condition(); |
2728 | | |
2729 | | // @@protoc_insertion_point(class_scope:lua_grammar.RepeatCycle) |
2730 | | private: |
2731 | | class _Internal; |
2732 | | |
2733 | | // helper for ByteSizeLong() |
2734 | | size_t RequiredFieldsByteSizeFallback() const; |
2735 | | |
2736 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2737 | | typedef void InternalArenaConstructable_; |
2738 | | typedef void DestructorSkippable_; |
2739 | | struct Impl_ { |
2740 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2741 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2742 | | ::lua_grammar::Block* block_; |
2743 | | ::lua_grammar::Expression* condition_; |
2744 | | }; |
2745 | | union { Impl_ _impl_; }; |
2746 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
2747 | | }; |
2748 | | // ------------------------------------------------------------------- |
2749 | | |
2750 | | class IfStatement_ElseIfBlock final : |
2751 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.IfStatement.ElseIfBlock) */ { |
2752 | | public: |
2753 | 0 | inline IfStatement_ElseIfBlock() : IfStatement_ElseIfBlock(nullptr) {} |
2754 | | ~IfStatement_ElseIfBlock() override; |
2755 | | explicit PROTOBUF_CONSTEXPR IfStatement_ElseIfBlock(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2756 | | |
2757 | | IfStatement_ElseIfBlock(const IfStatement_ElseIfBlock& from); |
2758 | | IfStatement_ElseIfBlock(IfStatement_ElseIfBlock&& from) noexcept |
2759 | 0 | : IfStatement_ElseIfBlock() { |
2760 | 0 | *this = ::std::move(from); |
2761 | 0 | } |
2762 | | |
2763 | 0 | inline IfStatement_ElseIfBlock& operator=(const IfStatement_ElseIfBlock& from) { |
2764 | 0 | CopyFrom(from); |
2765 | 0 | return *this; |
2766 | 0 | } |
2767 | 0 | inline IfStatement_ElseIfBlock& operator=(IfStatement_ElseIfBlock&& from) noexcept { |
2768 | 0 | if (this == &from) return *this; |
2769 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2770 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2771 | 0 | && GetOwningArena() != nullptr |
2772 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2773 | 0 | ) { |
2774 | 0 | InternalSwap(&from); |
2775 | 0 | } else { |
2776 | 0 | CopyFrom(from); |
2777 | 0 | } |
2778 | 0 | return *this; |
2779 | 0 | } |
2780 | | |
2781 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2782 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2783 | 0 | } |
2784 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2785 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2786 | 0 | } |
2787 | | |
2788 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2789 | 0 | return GetDescriptor(); |
2790 | 0 | } |
2791 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2792 | 0 | return default_instance().GetMetadata().descriptor; |
2793 | 0 | } |
2794 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2795 | 0 | return default_instance().GetMetadata().reflection; |
2796 | 0 | } |
2797 | 0 | static const IfStatement_ElseIfBlock& default_instance() { |
2798 | 0 | return *internal_default_instance(); |
2799 | 0 | } |
2800 | 3.29k | static inline const IfStatement_ElseIfBlock* internal_default_instance() { |
2801 | 3.29k | return reinterpret_cast<const IfStatement_ElseIfBlock*>( |
2802 | 3.29k | &_IfStatement_ElseIfBlock_default_instance_); |
2803 | 3.29k | } |
2804 | | static constexpr int kIndexInFileMessages = |
2805 | | 12; |
2806 | | |
2807 | 0 | friend void swap(IfStatement_ElseIfBlock& a, IfStatement_ElseIfBlock& b) { |
2808 | 0 | a.Swap(&b); |
2809 | 0 | } |
2810 | 0 | inline void Swap(IfStatement_ElseIfBlock* other) { |
2811 | 0 | if (other == this) return; |
2812 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
2813 | 0 | if (GetOwningArena() != nullptr && |
2814 | 0 | GetOwningArena() == other->GetOwningArena()) { |
2815 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
2816 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
2817 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
2818 | 0 | InternalSwap(other); |
2819 | 0 | } else { |
2820 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2821 | 0 | } |
2822 | 0 | } |
2823 | 0 | void UnsafeArenaSwap(IfStatement_ElseIfBlock* other) { |
2824 | 0 | if (other == this) return; |
2825 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
2826 | 0 | InternalSwap(other); |
2827 | 0 | } |
2828 | | |
2829 | | // implements Message ---------------------------------------------- |
2830 | | |
2831 | 1.64k | IfStatement_ElseIfBlock* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
2832 | 1.64k | return CreateMaybeMessage<IfStatement_ElseIfBlock>(arena); |
2833 | 1.64k | } |
2834 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
2835 | | void CopyFrom(const IfStatement_ElseIfBlock& from); |
2836 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
2837 | 0 | void MergeFrom( const IfStatement_ElseIfBlock& from) { |
2838 | 0 | IfStatement_ElseIfBlock::MergeImpl(*this, from); |
2839 | 0 | } |
2840 | | private: |
2841 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
2842 | | public: |
2843 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2844 | | bool IsInitialized() const final; |
2845 | | |
2846 | | size_t ByteSizeLong() const final; |
2847 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2848 | | uint8_t* _InternalSerialize( |
2849 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
2850 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
2851 | | |
2852 | | private: |
2853 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
2854 | | void SharedDtor(); |
2855 | | void SetCachedSize(int size) const final; |
2856 | | void InternalSwap(IfStatement_ElseIfBlock* other); |
2857 | | |
2858 | | private: |
2859 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2860 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2861 | 0 | return "lua_grammar.IfStatement.ElseIfBlock"; |
2862 | 0 | } |
2863 | | protected: |
2864 | | explicit IfStatement_ElseIfBlock(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
2865 | | bool is_message_owned = false); |
2866 | | public: |
2867 | | |
2868 | | static const ClassData _class_data_; |
2869 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
2870 | | |
2871 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2872 | | |
2873 | | // nested types ---------------------------------------------------- |
2874 | | |
2875 | | // accessors ------------------------------------------------------- |
2876 | | |
2877 | | enum : int { |
2878 | | kConditionFieldNumber = 1, |
2879 | | kBlockFieldNumber = 2, |
2880 | | }; |
2881 | | // required .lua_grammar.Expression condition = 1; |
2882 | | bool has_condition() const; |
2883 | | private: |
2884 | | bool _internal_has_condition() const; |
2885 | | public: |
2886 | | void clear_condition(); |
2887 | | const ::lua_grammar::Expression& condition() const; |
2888 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_condition(); |
2889 | | ::lua_grammar::Expression* mutable_condition(); |
2890 | | void set_allocated_condition(::lua_grammar::Expression* condition); |
2891 | | private: |
2892 | | const ::lua_grammar::Expression& _internal_condition() const; |
2893 | | ::lua_grammar::Expression* _internal_mutable_condition(); |
2894 | | public: |
2895 | | void unsafe_arena_set_allocated_condition( |
2896 | | ::lua_grammar::Expression* condition); |
2897 | | ::lua_grammar::Expression* unsafe_arena_release_condition(); |
2898 | | |
2899 | | // required .lua_grammar.Block block = 2; |
2900 | | bool has_block() const; |
2901 | | private: |
2902 | | bool _internal_has_block() const; |
2903 | | public: |
2904 | | void clear_block(); |
2905 | | const ::lua_grammar::Block& block() const; |
2906 | | PROTOBUF_NODISCARD ::lua_grammar::Block* release_block(); |
2907 | | ::lua_grammar::Block* mutable_block(); |
2908 | | void set_allocated_block(::lua_grammar::Block* block); |
2909 | | private: |
2910 | | const ::lua_grammar::Block& _internal_block() const; |
2911 | | ::lua_grammar::Block* _internal_mutable_block(); |
2912 | | public: |
2913 | | void unsafe_arena_set_allocated_block( |
2914 | | ::lua_grammar::Block* block); |
2915 | | ::lua_grammar::Block* unsafe_arena_release_block(); |
2916 | | |
2917 | | // @@protoc_insertion_point(class_scope:lua_grammar.IfStatement.ElseIfBlock) |
2918 | | private: |
2919 | | class _Internal; |
2920 | | |
2921 | | // helper for ByteSizeLong() |
2922 | | size_t RequiredFieldsByteSizeFallback() const; |
2923 | | |
2924 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2925 | | typedef void InternalArenaConstructable_; |
2926 | | typedef void DestructorSkippable_; |
2927 | | struct Impl_ { |
2928 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
2929 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2930 | | ::lua_grammar::Expression* condition_; |
2931 | | ::lua_grammar::Block* block_; |
2932 | | }; |
2933 | | union { Impl_ _impl_; }; |
2934 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
2935 | | }; |
2936 | | // ------------------------------------------------------------------- |
2937 | | |
2938 | | class IfStatement final : |
2939 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.IfStatement) */ { |
2940 | | public: |
2941 | 0 | inline IfStatement() : IfStatement(nullptr) {} |
2942 | | ~IfStatement() override; |
2943 | | explicit PROTOBUF_CONSTEXPR IfStatement(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
2944 | | |
2945 | | IfStatement(const IfStatement& from); |
2946 | | IfStatement(IfStatement&& from) noexcept |
2947 | 0 | : IfStatement() { |
2948 | 0 | *this = ::std::move(from); |
2949 | 0 | } |
2950 | | |
2951 | 0 | inline IfStatement& operator=(const IfStatement& from) { |
2952 | 0 | CopyFrom(from); |
2953 | 0 | return *this; |
2954 | 0 | } |
2955 | 0 | inline IfStatement& operator=(IfStatement&& from) noexcept { |
2956 | 0 | if (this == &from) return *this; |
2957 | 0 | if (GetOwningArena() == from.GetOwningArena() |
2958 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
2959 | 0 | && GetOwningArena() != nullptr |
2960 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
2961 | 0 | ) { |
2962 | 0 | InternalSwap(&from); |
2963 | 0 | } else { |
2964 | 0 | CopyFrom(from); |
2965 | 0 | } |
2966 | 0 | return *this; |
2967 | 0 | } |
2968 | | |
2969 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
2970 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
2971 | 0 | } |
2972 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
2973 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
2974 | 0 | } |
2975 | | |
2976 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2977 | 0 | return GetDescriptor(); |
2978 | 0 | } |
2979 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2980 | 0 | return default_instance().GetMetadata().descriptor; |
2981 | 0 | } |
2982 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2983 | 0 | return default_instance().GetMetadata().reflection; |
2984 | 0 | } |
2985 | 0 | static const IfStatement& default_instance() { |
2986 | 0 | return *internal_default_instance(); |
2987 | 0 | } |
2988 | 9.81k | static inline const IfStatement* internal_default_instance() { |
2989 | 9.81k | return reinterpret_cast<const IfStatement*>( |
2990 | 9.81k | &_IfStatement_default_instance_); |
2991 | 9.81k | } |
2992 | | static constexpr int kIndexInFileMessages = |
2993 | | 13; |
2994 | | |
2995 | 0 | friend void swap(IfStatement& a, IfStatement& b) { |
2996 | 0 | a.Swap(&b); |
2997 | 0 | } |
2998 | 0 | inline void Swap(IfStatement* other) { |
2999 | 0 | if (other == this) return; |
3000 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3001 | 0 | if (GetOwningArena() != nullptr && |
3002 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3003 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3004 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3005 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3006 | 0 | InternalSwap(other); |
3007 | 0 | } else { |
3008 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3009 | 0 | } |
3010 | 0 | } |
3011 | 0 | void UnsafeArenaSwap(IfStatement* other) { |
3012 | 0 | if (other == this) return; |
3013 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3014 | 0 | InternalSwap(other); |
3015 | 0 | } |
3016 | | |
3017 | | // implements Message ---------------------------------------------- |
3018 | | |
3019 | 3.27k | IfStatement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3020 | 3.27k | return CreateMaybeMessage<IfStatement>(arena); |
3021 | 3.27k | } |
3022 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3023 | | void CopyFrom(const IfStatement& from); |
3024 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3025 | 0 | void MergeFrom( const IfStatement& from) { |
3026 | 0 | IfStatement::MergeImpl(*this, from); |
3027 | 0 | } |
3028 | | private: |
3029 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3030 | | public: |
3031 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3032 | | bool IsInitialized() const final; |
3033 | | |
3034 | | size_t ByteSizeLong() const final; |
3035 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3036 | | uint8_t* _InternalSerialize( |
3037 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3038 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3039 | | |
3040 | | private: |
3041 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3042 | | void SharedDtor(); |
3043 | | void SetCachedSize(int size) const final; |
3044 | | void InternalSwap(IfStatement* other); |
3045 | | |
3046 | | private: |
3047 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3048 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3049 | 0 | return "lua_grammar.IfStatement"; |
3050 | 0 | } |
3051 | | protected: |
3052 | | explicit IfStatement(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3053 | | bool is_message_owned = false); |
3054 | | public: |
3055 | | |
3056 | | static const ClassData _class_data_; |
3057 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3058 | | |
3059 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3060 | | |
3061 | | // nested types ---------------------------------------------------- |
3062 | | |
3063 | | typedef IfStatement_ElseIfBlock ElseIfBlock; |
3064 | | |
3065 | | // accessors ------------------------------------------------------- |
3066 | | |
3067 | | enum : int { |
3068 | | kClausesFieldNumber = 3, |
3069 | | kConditionFieldNumber = 1, |
3070 | | kFirstFieldNumber = 2, |
3071 | | kLastFieldNumber = 4, |
3072 | | }; |
3073 | | // repeated .lua_grammar.IfStatement.ElseIfBlock clauses = 3; |
3074 | | int clauses_size() const; |
3075 | | private: |
3076 | | int _internal_clauses_size() const; |
3077 | | public: |
3078 | | void clear_clauses(); |
3079 | | ::lua_grammar::IfStatement_ElseIfBlock* mutable_clauses(int index); |
3080 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::IfStatement_ElseIfBlock >* |
3081 | | mutable_clauses(); |
3082 | | private: |
3083 | | const ::lua_grammar::IfStatement_ElseIfBlock& _internal_clauses(int index) const; |
3084 | | ::lua_grammar::IfStatement_ElseIfBlock* _internal_add_clauses(); |
3085 | | public: |
3086 | | const ::lua_grammar::IfStatement_ElseIfBlock& clauses(int index) const; |
3087 | | ::lua_grammar::IfStatement_ElseIfBlock* add_clauses(); |
3088 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::IfStatement_ElseIfBlock >& |
3089 | | clauses() const; |
3090 | | |
3091 | | // required .lua_grammar.Expression condition = 1; |
3092 | | bool has_condition() const; |
3093 | | private: |
3094 | | bool _internal_has_condition() const; |
3095 | | public: |
3096 | | void clear_condition(); |
3097 | | const ::lua_grammar::Expression& condition() const; |
3098 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_condition(); |
3099 | | ::lua_grammar::Expression* mutable_condition(); |
3100 | | void set_allocated_condition(::lua_grammar::Expression* condition); |
3101 | | private: |
3102 | | const ::lua_grammar::Expression& _internal_condition() const; |
3103 | | ::lua_grammar::Expression* _internal_mutable_condition(); |
3104 | | public: |
3105 | | void unsafe_arena_set_allocated_condition( |
3106 | | ::lua_grammar::Expression* condition); |
3107 | | ::lua_grammar::Expression* unsafe_arena_release_condition(); |
3108 | | |
3109 | | // required .lua_grammar.Block first = 2; |
3110 | | bool has_first() const; |
3111 | | private: |
3112 | | bool _internal_has_first() const; |
3113 | | public: |
3114 | | void clear_first(); |
3115 | | const ::lua_grammar::Block& first() const; |
3116 | | PROTOBUF_NODISCARD ::lua_grammar::Block* release_first(); |
3117 | | ::lua_grammar::Block* mutable_first(); |
3118 | | void set_allocated_first(::lua_grammar::Block* first); |
3119 | | private: |
3120 | | const ::lua_grammar::Block& _internal_first() const; |
3121 | | ::lua_grammar::Block* _internal_mutable_first(); |
3122 | | public: |
3123 | | void unsafe_arena_set_allocated_first( |
3124 | | ::lua_grammar::Block* first); |
3125 | | ::lua_grammar::Block* unsafe_arena_release_first(); |
3126 | | |
3127 | | // optional .lua_grammar.Block last = 4; |
3128 | | bool has_last() const; |
3129 | | private: |
3130 | | bool _internal_has_last() const; |
3131 | | public: |
3132 | | void clear_last(); |
3133 | | const ::lua_grammar::Block& last() const; |
3134 | | PROTOBUF_NODISCARD ::lua_grammar::Block* release_last(); |
3135 | | ::lua_grammar::Block* mutable_last(); |
3136 | | void set_allocated_last(::lua_grammar::Block* last); |
3137 | | private: |
3138 | | const ::lua_grammar::Block& _internal_last() const; |
3139 | | ::lua_grammar::Block* _internal_mutable_last(); |
3140 | | public: |
3141 | | void unsafe_arena_set_allocated_last( |
3142 | | ::lua_grammar::Block* last); |
3143 | | ::lua_grammar::Block* unsafe_arena_release_last(); |
3144 | | |
3145 | | // @@protoc_insertion_point(class_scope:lua_grammar.IfStatement) |
3146 | | private: |
3147 | | class _Internal; |
3148 | | |
3149 | | // helper for ByteSizeLong() |
3150 | | size_t RequiredFieldsByteSizeFallback() const; |
3151 | | |
3152 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3153 | | typedef void InternalArenaConstructable_; |
3154 | | typedef void DestructorSkippable_; |
3155 | | struct Impl_ { |
3156 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3157 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3158 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::IfStatement_ElseIfBlock > clauses_; |
3159 | | ::lua_grammar::Expression* condition_; |
3160 | | ::lua_grammar::Block* first_; |
3161 | | ::lua_grammar::Block* last_; |
3162 | | }; |
3163 | | union { Impl_ _impl_; }; |
3164 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
3165 | | }; |
3166 | | // ------------------------------------------------------------------- |
3167 | | |
3168 | | class ForCycleName final : |
3169 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.ForCycleName) */ { |
3170 | | public: |
3171 | 0 | inline ForCycleName() : ForCycleName(nullptr) {} |
3172 | | ~ForCycleName() override; |
3173 | | explicit PROTOBUF_CONSTEXPR ForCycleName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3174 | | |
3175 | | ForCycleName(const ForCycleName& from); |
3176 | | ForCycleName(ForCycleName&& from) noexcept |
3177 | 0 | : ForCycleName() { |
3178 | 0 | *this = ::std::move(from); |
3179 | 0 | } |
3180 | | |
3181 | 0 | inline ForCycleName& operator=(const ForCycleName& from) { |
3182 | 0 | CopyFrom(from); |
3183 | 0 | return *this; |
3184 | 0 | } |
3185 | 0 | inline ForCycleName& operator=(ForCycleName&& from) noexcept { |
3186 | 0 | if (this == &from) return *this; |
3187 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3188 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3189 | 0 | && GetOwningArena() != nullptr |
3190 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3191 | 0 | ) { |
3192 | 0 | InternalSwap(&from); |
3193 | 0 | } else { |
3194 | 0 | CopyFrom(from); |
3195 | 0 | } |
3196 | 0 | return *this; |
3197 | 0 | } |
3198 | | |
3199 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3200 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3201 | 0 | } |
3202 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3203 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3204 | 0 | } |
3205 | | |
3206 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3207 | 0 | return GetDescriptor(); |
3208 | 0 | } |
3209 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3210 | 0 | return default_instance().GetMetadata().descriptor; |
3211 | 0 | } |
3212 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3213 | 0 | return default_instance().GetMetadata().reflection; |
3214 | 0 | } |
3215 | 0 | static const ForCycleName& default_instance() { |
3216 | 0 | return *internal_default_instance(); |
3217 | 0 | } |
3218 | 6.78k | static inline const ForCycleName* internal_default_instance() { |
3219 | 6.78k | return reinterpret_cast<const ForCycleName*>( |
3220 | 6.78k | &_ForCycleName_default_instance_); |
3221 | 6.78k | } |
3222 | | static constexpr int kIndexInFileMessages = |
3223 | | 14; |
3224 | | |
3225 | 0 | friend void swap(ForCycleName& a, ForCycleName& b) { |
3226 | 0 | a.Swap(&b); |
3227 | 0 | } |
3228 | 0 | inline void Swap(ForCycleName* other) { |
3229 | 0 | if (other == this) return; |
3230 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3231 | 0 | if (GetOwningArena() != nullptr && |
3232 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3233 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3234 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3235 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3236 | 0 | InternalSwap(other); |
3237 | 0 | } else { |
3238 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3239 | 0 | } |
3240 | 0 | } |
3241 | 0 | void UnsafeArenaSwap(ForCycleName* other) { |
3242 | 0 | if (other == this) return; |
3243 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3244 | 0 | InternalSwap(other); |
3245 | 0 | } |
3246 | | |
3247 | | // implements Message ---------------------------------------------- |
3248 | | |
3249 | 1.35k | ForCycleName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3250 | 1.35k | return CreateMaybeMessage<ForCycleName>(arena); |
3251 | 1.35k | } |
3252 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3253 | | void CopyFrom(const ForCycleName& from); |
3254 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3255 | 0 | void MergeFrom( const ForCycleName& from) { |
3256 | 0 | ForCycleName::MergeImpl(*this, from); |
3257 | 0 | } |
3258 | | private: |
3259 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3260 | | public: |
3261 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3262 | | bool IsInitialized() const final; |
3263 | | |
3264 | | size_t ByteSizeLong() const final; |
3265 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3266 | | uint8_t* _InternalSerialize( |
3267 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3268 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3269 | | |
3270 | | private: |
3271 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3272 | | void SharedDtor(); |
3273 | | void SetCachedSize(int size) const final; |
3274 | | void InternalSwap(ForCycleName* other); |
3275 | | |
3276 | | private: |
3277 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3278 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3279 | 0 | return "lua_grammar.ForCycleName"; |
3280 | 0 | } |
3281 | | protected: |
3282 | | explicit ForCycleName(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3283 | | bool is_message_owned = false); |
3284 | | public: |
3285 | | |
3286 | | static const ClassData _class_data_; |
3287 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3288 | | |
3289 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3290 | | |
3291 | | // nested types ---------------------------------------------------- |
3292 | | |
3293 | | // accessors ------------------------------------------------------- |
3294 | | |
3295 | | enum : int { |
3296 | | kNameFieldNumber = 1, |
3297 | | kStartexpFieldNumber = 2, |
3298 | | kStopexpFieldNumber = 3, |
3299 | | kStepexpFieldNumber = 4, |
3300 | | kDoblockFieldNumber = 5, |
3301 | | }; |
3302 | | // required .lua_grammar.Name name = 1; |
3303 | | bool has_name() const; |
3304 | | private: |
3305 | | bool _internal_has_name() const; |
3306 | | public: |
3307 | | void clear_name(); |
3308 | | const ::lua_grammar::Name& name() const; |
3309 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_name(); |
3310 | | ::lua_grammar::Name* mutable_name(); |
3311 | | void set_allocated_name(::lua_grammar::Name* name); |
3312 | | private: |
3313 | | const ::lua_grammar::Name& _internal_name() const; |
3314 | | ::lua_grammar::Name* _internal_mutable_name(); |
3315 | | public: |
3316 | | void unsafe_arena_set_allocated_name( |
3317 | | ::lua_grammar::Name* name); |
3318 | | ::lua_grammar::Name* unsafe_arena_release_name(); |
3319 | | |
3320 | | // required .lua_grammar.Expression startexp = 2; |
3321 | | bool has_startexp() const; |
3322 | | private: |
3323 | | bool _internal_has_startexp() const; |
3324 | | public: |
3325 | | void clear_startexp(); |
3326 | | const ::lua_grammar::Expression& startexp() const; |
3327 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_startexp(); |
3328 | | ::lua_grammar::Expression* mutable_startexp(); |
3329 | | void set_allocated_startexp(::lua_grammar::Expression* startexp); |
3330 | | private: |
3331 | | const ::lua_grammar::Expression& _internal_startexp() const; |
3332 | | ::lua_grammar::Expression* _internal_mutable_startexp(); |
3333 | | public: |
3334 | | void unsafe_arena_set_allocated_startexp( |
3335 | | ::lua_grammar::Expression* startexp); |
3336 | | ::lua_grammar::Expression* unsafe_arena_release_startexp(); |
3337 | | |
3338 | | // required .lua_grammar.Expression stopexp = 3; |
3339 | | bool has_stopexp() const; |
3340 | | private: |
3341 | | bool _internal_has_stopexp() const; |
3342 | | public: |
3343 | | void clear_stopexp(); |
3344 | | const ::lua_grammar::Expression& stopexp() const; |
3345 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_stopexp(); |
3346 | | ::lua_grammar::Expression* mutable_stopexp(); |
3347 | | void set_allocated_stopexp(::lua_grammar::Expression* stopexp); |
3348 | | private: |
3349 | | const ::lua_grammar::Expression& _internal_stopexp() const; |
3350 | | ::lua_grammar::Expression* _internal_mutable_stopexp(); |
3351 | | public: |
3352 | | void unsafe_arena_set_allocated_stopexp( |
3353 | | ::lua_grammar::Expression* stopexp); |
3354 | | ::lua_grammar::Expression* unsafe_arena_release_stopexp(); |
3355 | | |
3356 | | // optional .lua_grammar.Expression stepexp = 4; |
3357 | | bool has_stepexp() const; |
3358 | | private: |
3359 | | bool _internal_has_stepexp() const; |
3360 | | public: |
3361 | | void clear_stepexp(); |
3362 | | const ::lua_grammar::Expression& stepexp() const; |
3363 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_stepexp(); |
3364 | | ::lua_grammar::Expression* mutable_stepexp(); |
3365 | | void set_allocated_stepexp(::lua_grammar::Expression* stepexp); |
3366 | | private: |
3367 | | const ::lua_grammar::Expression& _internal_stepexp() const; |
3368 | | ::lua_grammar::Expression* _internal_mutable_stepexp(); |
3369 | | public: |
3370 | | void unsafe_arena_set_allocated_stepexp( |
3371 | | ::lua_grammar::Expression* stepexp); |
3372 | | ::lua_grammar::Expression* unsafe_arena_release_stepexp(); |
3373 | | |
3374 | | // required .lua_grammar.DoBlock doblock = 5; |
3375 | | bool has_doblock() const; |
3376 | | private: |
3377 | | bool _internal_has_doblock() const; |
3378 | | public: |
3379 | | void clear_doblock(); |
3380 | | const ::lua_grammar::DoBlock& doblock() const; |
3381 | | PROTOBUF_NODISCARD ::lua_grammar::DoBlock* release_doblock(); |
3382 | | ::lua_grammar::DoBlock* mutable_doblock(); |
3383 | | void set_allocated_doblock(::lua_grammar::DoBlock* doblock); |
3384 | | private: |
3385 | | const ::lua_grammar::DoBlock& _internal_doblock() const; |
3386 | | ::lua_grammar::DoBlock* _internal_mutable_doblock(); |
3387 | | public: |
3388 | | void unsafe_arena_set_allocated_doblock( |
3389 | | ::lua_grammar::DoBlock* doblock); |
3390 | | ::lua_grammar::DoBlock* unsafe_arena_release_doblock(); |
3391 | | |
3392 | | // @@protoc_insertion_point(class_scope:lua_grammar.ForCycleName) |
3393 | | private: |
3394 | | class _Internal; |
3395 | | |
3396 | | // helper for ByteSizeLong() |
3397 | | size_t RequiredFieldsByteSizeFallback() const; |
3398 | | |
3399 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3400 | | typedef void InternalArenaConstructable_; |
3401 | | typedef void DestructorSkippable_; |
3402 | | struct Impl_ { |
3403 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3404 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3405 | | ::lua_grammar::Name* name_; |
3406 | | ::lua_grammar::Expression* startexp_; |
3407 | | ::lua_grammar::Expression* stopexp_; |
3408 | | ::lua_grammar::Expression* stepexp_; |
3409 | | ::lua_grammar::DoBlock* doblock_; |
3410 | | }; |
3411 | | union { Impl_ _impl_; }; |
3412 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
3413 | | }; |
3414 | | // ------------------------------------------------------------------- |
3415 | | |
3416 | | class ForCycleList final : |
3417 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.ForCycleList) */ { |
3418 | | public: |
3419 | 0 | inline ForCycleList() : ForCycleList(nullptr) {} |
3420 | | ~ForCycleList() override; |
3421 | | explicit PROTOBUF_CONSTEXPR ForCycleList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3422 | | |
3423 | | ForCycleList(const ForCycleList& from); |
3424 | | ForCycleList(ForCycleList&& from) noexcept |
3425 | 0 | : ForCycleList() { |
3426 | 0 | *this = ::std::move(from); |
3427 | 0 | } |
3428 | | |
3429 | 0 | inline ForCycleList& operator=(const ForCycleList& from) { |
3430 | 0 | CopyFrom(from); |
3431 | 0 | return *this; |
3432 | 0 | } |
3433 | 0 | inline ForCycleList& operator=(ForCycleList&& from) noexcept { |
3434 | 0 | if (this == &from) return *this; |
3435 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3436 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3437 | 0 | && GetOwningArena() != nullptr |
3438 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3439 | 0 | ) { |
3440 | 0 | InternalSwap(&from); |
3441 | 0 | } else { |
3442 | 0 | CopyFrom(from); |
3443 | 0 | } |
3444 | 0 | return *this; |
3445 | 0 | } |
3446 | | |
3447 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3448 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3449 | 0 | } |
3450 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3451 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3452 | 0 | } |
3453 | | |
3454 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3455 | 0 | return GetDescriptor(); |
3456 | 0 | } |
3457 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3458 | 0 | return default_instance().GetMetadata().descriptor; |
3459 | 0 | } |
3460 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3461 | 0 | return default_instance().GetMetadata().reflection; |
3462 | 0 | } |
3463 | 0 | static const ForCycleList& default_instance() { |
3464 | 0 | return *internal_default_instance(); |
3465 | 0 | } |
3466 | 76.3k | static inline const ForCycleList* internal_default_instance() { |
3467 | 76.3k | return reinterpret_cast<const ForCycleList*>( |
3468 | 76.3k | &_ForCycleList_default_instance_); |
3469 | 76.3k | } |
3470 | | static constexpr int kIndexInFileMessages = |
3471 | | 15; |
3472 | | |
3473 | 0 | friend void swap(ForCycleList& a, ForCycleList& b) { |
3474 | 0 | a.Swap(&b); |
3475 | 0 | } |
3476 | 0 | inline void Swap(ForCycleList* other) { |
3477 | 0 | if (other == this) return; |
3478 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3479 | 0 | if (GetOwningArena() != nullptr && |
3480 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3481 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3482 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3483 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3484 | 0 | InternalSwap(other); |
3485 | 0 | } else { |
3486 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3487 | 0 | } |
3488 | 0 | } |
3489 | 0 | void UnsafeArenaSwap(ForCycleList* other) { |
3490 | 0 | if (other == this) return; |
3491 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3492 | 0 | InternalSwap(other); |
3493 | 0 | } |
3494 | | |
3495 | | // implements Message ---------------------------------------------- |
3496 | | |
3497 | 25.4k | ForCycleList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3498 | 25.4k | return CreateMaybeMessage<ForCycleList>(arena); |
3499 | 25.4k | } |
3500 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3501 | | void CopyFrom(const ForCycleList& from); |
3502 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3503 | 0 | void MergeFrom( const ForCycleList& from) { |
3504 | 0 | ForCycleList::MergeImpl(*this, from); |
3505 | 0 | } |
3506 | | private: |
3507 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3508 | | public: |
3509 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3510 | | bool IsInitialized() const final; |
3511 | | |
3512 | | size_t ByteSizeLong() const final; |
3513 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3514 | | uint8_t* _InternalSerialize( |
3515 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3516 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3517 | | |
3518 | | private: |
3519 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3520 | | void SharedDtor(); |
3521 | | void SetCachedSize(int size) const final; |
3522 | | void InternalSwap(ForCycleList* other); |
3523 | | |
3524 | | private: |
3525 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3526 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3527 | 0 | return "lua_grammar.ForCycleList"; |
3528 | 0 | } |
3529 | | protected: |
3530 | | explicit ForCycleList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3531 | | bool is_message_owned = false); |
3532 | | public: |
3533 | | |
3534 | | static const ClassData _class_data_; |
3535 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3536 | | |
3537 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3538 | | |
3539 | | // nested types ---------------------------------------------------- |
3540 | | |
3541 | | // accessors ------------------------------------------------------- |
3542 | | |
3543 | | enum : int { |
3544 | | kNamesFieldNumber = 1, |
3545 | | kExpressionsFieldNumber = 2, |
3546 | | kDoblockFieldNumber = 3, |
3547 | | }; |
3548 | | // required .lua_grammar.NameList names = 1; |
3549 | | bool has_names() const; |
3550 | | private: |
3551 | | bool _internal_has_names() const; |
3552 | | public: |
3553 | | void clear_names(); |
3554 | | const ::lua_grammar::NameList& names() const; |
3555 | | PROTOBUF_NODISCARD ::lua_grammar::NameList* release_names(); |
3556 | | ::lua_grammar::NameList* mutable_names(); |
3557 | | void set_allocated_names(::lua_grammar::NameList* names); |
3558 | | private: |
3559 | | const ::lua_grammar::NameList& _internal_names() const; |
3560 | | ::lua_grammar::NameList* _internal_mutable_names(); |
3561 | | public: |
3562 | | void unsafe_arena_set_allocated_names( |
3563 | | ::lua_grammar::NameList* names); |
3564 | | ::lua_grammar::NameList* unsafe_arena_release_names(); |
3565 | | |
3566 | | // required .lua_grammar.ExpressionList expressions = 2; |
3567 | | bool has_expressions() const; |
3568 | | private: |
3569 | | bool _internal_has_expressions() const; |
3570 | | public: |
3571 | | void clear_expressions(); |
3572 | | const ::lua_grammar::ExpressionList& expressions() const; |
3573 | | PROTOBUF_NODISCARD ::lua_grammar::ExpressionList* release_expressions(); |
3574 | | ::lua_grammar::ExpressionList* mutable_expressions(); |
3575 | | void set_allocated_expressions(::lua_grammar::ExpressionList* expressions); |
3576 | | private: |
3577 | | const ::lua_grammar::ExpressionList& _internal_expressions() const; |
3578 | | ::lua_grammar::ExpressionList* _internal_mutable_expressions(); |
3579 | | public: |
3580 | | void unsafe_arena_set_allocated_expressions( |
3581 | | ::lua_grammar::ExpressionList* expressions); |
3582 | | ::lua_grammar::ExpressionList* unsafe_arena_release_expressions(); |
3583 | | |
3584 | | // required .lua_grammar.DoBlock doblock = 3; |
3585 | | bool has_doblock() const; |
3586 | | private: |
3587 | | bool _internal_has_doblock() const; |
3588 | | public: |
3589 | | void clear_doblock(); |
3590 | | const ::lua_grammar::DoBlock& doblock() const; |
3591 | | PROTOBUF_NODISCARD ::lua_grammar::DoBlock* release_doblock(); |
3592 | | ::lua_grammar::DoBlock* mutable_doblock(); |
3593 | | void set_allocated_doblock(::lua_grammar::DoBlock* doblock); |
3594 | | private: |
3595 | | const ::lua_grammar::DoBlock& _internal_doblock() const; |
3596 | | ::lua_grammar::DoBlock* _internal_mutable_doblock(); |
3597 | | public: |
3598 | | void unsafe_arena_set_allocated_doblock( |
3599 | | ::lua_grammar::DoBlock* doblock); |
3600 | | ::lua_grammar::DoBlock* unsafe_arena_release_doblock(); |
3601 | | |
3602 | | // @@protoc_insertion_point(class_scope:lua_grammar.ForCycleList) |
3603 | | private: |
3604 | | class _Internal; |
3605 | | |
3606 | | // helper for ByteSizeLong() |
3607 | | size_t RequiredFieldsByteSizeFallback() const; |
3608 | | |
3609 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3610 | | typedef void InternalArenaConstructable_; |
3611 | | typedef void DestructorSkippable_; |
3612 | | struct Impl_ { |
3613 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3614 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3615 | | ::lua_grammar::NameList* names_; |
3616 | | ::lua_grammar::ExpressionList* expressions_; |
3617 | | ::lua_grammar::DoBlock* doblock_; |
3618 | | }; |
3619 | | union { Impl_ _impl_; }; |
3620 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
3621 | | }; |
3622 | | // ------------------------------------------------------------------- |
3623 | | |
3624 | | class Function_FuncName final : |
3625 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Function.FuncName) */ { |
3626 | | public: |
3627 | 0 | inline Function_FuncName() : Function_FuncName(nullptr) {} |
3628 | | ~Function_FuncName() override; |
3629 | | explicit PROTOBUF_CONSTEXPR Function_FuncName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3630 | | |
3631 | | Function_FuncName(const Function_FuncName& from); |
3632 | | Function_FuncName(Function_FuncName&& from) noexcept |
3633 | 0 | : Function_FuncName() { |
3634 | 0 | *this = ::std::move(from); |
3635 | 0 | } |
3636 | | |
3637 | 0 | inline Function_FuncName& operator=(const Function_FuncName& from) { |
3638 | 0 | CopyFrom(from); |
3639 | 0 | return *this; |
3640 | 0 | } |
3641 | 0 | inline Function_FuncName& operator=(Function_FuncName&& from) noexcept { |
3642 | 0 | if (this == &from) return *this; |
3643 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3644 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3645 | 0 | && GetOwningArena() != nullptr |
3646 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3647 | 0 | ) { |
3648 | 0 | InternalSwap(&from); |
3649 | 0 | } else { |
3650 | 0 | CopyFrom(from); |
3651 | 0 | } |
3652 | 0 | return *this; |
3653 | 0 | } |
3654 | | |
3655 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3656 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3657 | 0 | } |
3658 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3659 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3660 | 0 | } |
3661 | | |
3662 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3663 | 0 | return GetDescriptor(); |
3664 | 0 | } |
3665 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3666 | 0 | return default_instance().GetMetadata().descriptor; |
3667 | 0 | } |
3668 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3669 | 0 | return default_instance().GetMetadata().reflection; |
3670 | 0 | } |
3671 | 0 | static const Function_FuncName& default_instance() { |
3672 | 0 | return *internal_default_instance(); |
3673 | 0 | } |
3674 | 4.67k | static inline const Function_FuncName* internal_default_instance() { |
3675 | 4.67k | return reinterpret_cast<const Function_FuncName*>( |
3676 | 4.67k | &_Function_FuncName_default_instance_); |
3677 | 4.67k | } |
3678 | | static constexpr int kIndexInFileMessages = |
3679 | | 16; |
3680 | | |
3681 | 0 | friend void swap(Function_FuncName& a, Function_FuncName& b) { |
3682 | 0 | a.Swap(&b); |
3683 | 0 | } |
3684 | 0 | inline void Swap(Function_FuncName* other) { |
3685 | 0 | if (other == this) return; |
3686 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3687 | 0 | if (GetOwningArena() != nullptr && |
3688 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3689 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3690 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3691 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3692 | 0 | InternalSwap(other); |
3693 | 0 | } else { |
3694 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3695 | 0 | } |
3696 | 0 | } |
3697 | 0 | void UnsafeArenaSwap(Function_FuncName* other) { |
3698 | 0 | if (other == this) return; |
3699 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3700 | 0 | InternalSwap(other); |
3701 | 0 | } |
3702 | | |
3703 | | // implements Message ---------------------------------------------- |
3704 | | |
3705 | 2.33k | Function_FuncName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3706 | 2.33k | return CreateMaybeMessage<Function_FuncName>(arena); |
3707 | 2.33k | } |
3708 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3709 | | void CopyFrom(const Function_FuncName& from); |
3710 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3711 | 0 | void MergeFrom( const Function_FuncName& from) { |
3712 | 0 | Function_FuncName::MergeImpl(*this, from); |
3713 | 0 | } |
3714 | | private: |
3715 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3716 | | public: |
3717 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3718 | | bool IsInitialized() const final; |
3719 | | |
3720 | | size_t ByteSizeLong() const final; |
3721 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3722 | | uint8_t* _InternalSerialize( |
3723 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3724 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3725 | | |
3726 | | private: |
3727 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3728 | | void SharedDtor(); |
3729 | | void SetCachedSize(int size) const final; |
3730 | | void InternalSwap(Function_FuncName* other); |
3731 | | |
3732 | | private: |
3733 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3734 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3735 | 0 | return "lua_grammar.Function.FuncName"; |
3736 | 0 | } |
3737 | | protected: |
3738 | | explicit Function_FuncName(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3739 | | bool is_message_owned = false); |
3740 | | public: |
3741 | | |
3742 | | static const ClassData _class_data_; |
3743 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3744 | | |
3745 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3746 | | |
3747 | | // nested types ---------------------------------------------------- |
3748 | | |
3749 | | // accessors ------------------------------------------------------- |
3750 | | |
3751 | | enum : int { |
3752 | | kNamesFieldNumber = 2, |
3753 | | kFirstnameFieldNumber = 1, |
3754 | | kLastnameFieldNumber = 3, |
3755 | | }; |
3756 | | // repeated .lua_grammar.Name names = 2; |
3757 | | int names_size() const; |
3758 | | private: |
3759 | | int _internal_names_size() const; |
3760 | | public: |
3761 | | void clear_names(); |
3762 | | ::lua_grammar::Name* mutable_names(int index); |
3763 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >* |
3764 | | mutable_names(); |
3765 | | private: |
3766 | | const ::lua_grammar::Name& _internal_names(int index) const; |
3767 | | ::lua_grammar::Name* _internal_add_names(); |
3768 | | public: |
3769 | | const ::lua_grammar::Name& names(int index) const; |
3770 | | ::lua_grammar::Name* add_names(); |
3771 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >& |
3772 | | names() const; |
3773 | | |
3774 | | // required .lua_grammar.Name firstname = 1; |
3775 | | bool has_firstname() const; |
3776 | | private: |
3777 | | bool _internal_has_firstname() const; |
3778 | | public: |
3779 | | void clear_firstname(); |
3780 | | const ::lua_grammar::Name& firstname() const; |
3781 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_firstname(); |
3782 | | ::lua_grammar::Name* mutable_firstname(); |
3783 | | void set_allocated_firstname(::lua_grammar::Name* firstname); |
3784 | | private: |
3785 | | const ::lua_grammar::Name& _internal_firstname() const; |
3786 | | ::lua_grammar::Name* _internal_mutable_firstname(); |
3787 | | public: |
3788 | | void unsafe_arena_set_allocated_firstname( |
3789 | | ::lua_grammar::Name* firstname); |
3790 | | ::lua_grammar::Name* unsafe_arena_release_firstname(); |
3791 | | |
3792 | | // optional .lua_grammar.Name lastname = 3; |
3793 | | bool has_lastname() const; |
3794 | | private: |
3795 | | bool _internal_has_lastname() const; |
3796 | | public: |
3797 | | void clear_lastname(); |
3798 | | const ::lua_grammar::Name& lastname() const; |
3799 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_lastname(); |
3800 | | ::lua_grammar::Name* mutable_lastname(); |
3801 | | void set_allocated_lastname(::lua_grammar::Name* lastname); |
3802 | | private: |
3803 | | const ::lua_grammar::Name& _internal_lastname() const; |
3804 | | ::lua_grammar::Name* _internal_mutable_lastname(); |
3805 | | public: |
3806 | | void unsafe_arena_set_allocated_lastname( |
3807 | | ::lua_grammar::Name* lastname); |
3808 | | ::lua_grammar::Name* unsafe_arena_release_lastname(); |
3809 | | |
3810 | | // @@protoc_insertion_point(class_scope:lua_grammar.Function.FuncName) |
3811 | | private: |
3812 | | class _Internal; |
3813 | | |
3814 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
3815 | | typedef void InternalArenaConstructable_; |
3816 | | typedef void DestructorSkippable_; |
3817 | | struct Impl_ { |
3818 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
3819 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
3820 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name > names_; |
3821 | | ::lua_grammar::Name* firstname_; |
3822 | | ::lua_grammar::Name* lastname_; |
3823 | | }; |
3824 | | union { Impl_ _impl_; }; |
3825 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
3826 | | }; |
3827 | | // ------------------------------------------------------------------- |
3828 | | |
3829 | | class Function final : |
3830 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Function) */ { |
3831 | | public: |
3832 | 0 | inline Function() : Function(nullptr) {} |
3833 | | ~Function() override; |
3834 | | explicit PROTOBUF_CONSTEXPR Function(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
3835 | | |
3836 | | Function(const Function& from); |
3837 | | Function(Function&& from) noexcept |
3838 | 0 | : Function() { |
3839 | 0 | *this = ::std::move(from); |
3840 | 0 | } |
3841 | | |
3842 | 0 | inline Function& operator=(const Function& from) { |
3843 | 0 | CopyFrom(from); |
3844 | 0 | return *this; |
3845 | 0 | } |
3846 | 0 | inline Function& operator=(Function&& from) noexcept { |
3847 | 0 | if (this == &from) return *this; |
3848 | 0 | if (GetOwningArena() == from.GetOwningArena() |
3849 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
3850 | 0 | && GetOwningArena() != nullptr |
3851 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
3852 | 0 | ) { |
3853 | 0 | InternalSwap(&from); |
3854 | 0 | } else { |
3855 | 0 | CopyFrom(from); |
3856 | 0 | } |
3857 | 0 | return *this; |
3858 | 0 | } |
3859 | | |
3860 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
3861 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
3862 | 0 | } |
3863 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
3864 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
3865 | 0 | } |
3866 | | |
3867 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
3868 | 0 | return GetDescriptor(); |
3869 | 0 | } |
3870 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
3871 | 0 | return default_instance().GetMetadata().descriptor; |
3872 | 0 | } |
3873 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
3874 | 0 | return default_instance().GetMetadata().reflection; |
3875 | 0 | } |
3876 | 0 | static const Function& default_instance() { |
3877 | 0 | return *internal_default_instance(); |
3878 | 0 | } |
3879 | 4.67k | static inline const Function* internal_default_instance() { |
3880 | 4.67k | return reinterpret_cast<const Function*>( |
3881 | 4.67k | &_Function_default_instance_); |
3882 | 4.67k | } |
3883 | | static constexpr int kIndexInFileMessages = |
3884 | | 17; |
3885 | | |
3886 | 0 | friend void swap(Function& a, Function& b) { |
3887 | 0 | a.Swap(&b); |
3888 | 0 | } |
3889 | 0 | inline void Swap(Function* other) { |
3890 | 0 | if (other == this) return; |
3891 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
3892 | 0 | if (GetOwningArena() != nullptr && |
3893 | 0 | GetOwningArena() == other->GetOwningArena()) { |
3894 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
3895 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
3896 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
3897 | 0 | InternalSwap(other); |
3898 | 0 | } else { |
3899 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
3900 | 0 | } |
3901 | 0 | } |
3902 | 0 | void UnsafeArenaSwap(Function* other) { |
3903 | 0 | if (other == this) return; |
3904 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
3905 | 0 | InternalSwap(other); |
3906 | 0 | } |
3907 | | |
3908 | | // implements Message ---------------------------------------------- |
3909 | | |
3910 | 2.33k | Function* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
3911 | 2.33k | return CreateMaybeMessage<Function>(arena); |
3912 | 2.33k | } |
3913 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
3914 | | void CopyFrom(const Function& from); |
3915 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
3916 | 0 | void MergeFrom( const Function& from) { |
3917 | 0 | Function::MergeImpl(*this, from); |
3918 | 0 | } |
3919 | | private: |
3920 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
3921 | | public: |
3922 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
3923 | | bool IsInitialized() const final; |
3924 | | |
3925 | | size_t ByteSizeLong() const final; |
3926 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
3927 | | uint8_t* _InternalSerialize( |
3928 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
3929 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
3930 | | |
3931 | | private: |
3932 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
3933 | | void SharedDtor(); |
3934 | | void SetCachedSize(int size) const final; |
3935 | | void InternalSwap(Function* other); |
3936 | | |
3937 | | private: |
3938 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
3939 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
3940 | 0 | return "lua_grammar.Function"; |
3941 | 0 | } |
3942 | | protected: |
3943 | | explicit Function(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
3944 | | bool is_message_owned = false); |
3945 | | public: |
3946 | | |
3947 | | static const ClassData _class_data_; |
3948 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
3949 | | |
3950 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
3951 | | |
3952 | | // nested types ---------------------------------------------------- |
3953 | | |
3954 | | typedef Function_FuncName FuncName; |
3955 | | |
3956 | | // accessors ------------------------------------------------------- |
3957 | | |
3958 | | enum : int { |
3959 | | kNameFieldNumber = 1, |
3960 | | kBodyFieldNumber = 2, |
3961 | | }; |
3962 | | // required .lua_grammar.Function.FuncName name = 1; |
3963 | | bool has_name() const; |
3964 | | private: |
3965 | | bool _internal_has_name() const; |
3966 | | public: |
3967 | | void clear_name(); |
3968 | | const ::lua_grammar::Function_FuncName& name() const; |
3969 | | PROTOBUF_NODISCARD ::lua_grammar::Function_FuncName* release_name(); |
3970 | | ::lua_grammar::Function_FuncName* mutable_name(); |
3971 | | void set_allocated_name(::lua_grammar::Function_FuncName* name); |
3972 | | private: |
3973 | | const ::lua_grammar::Function_FuncName& _internal_name() const; |
3974 | | ::lua_grammar::Function_FuncName* _internal_mutable_name(); |
3975 | | public: |
3976 | | void unsafe_arena_set_allocated_name( |
3977 | | ::lua_grammar::Function_FuncName* name); |
3978 | | ::lua_grammar::Function_FuncName* unsafe_arena_release_name(); |
3979 | | |
3980 | | // required .lua_grammar.FuncBody body = 2; |
3981 | | bool has_body() const; |
3982 | | private: |
3983 | | bool _internal_has_body() const; |
3984 | | public: |
3985 | | void clear_body(); |
3986 | | const ::lua_grammar::FuncBody& body() const; |
3987 | | PROTOBUF_NODISCARD ::lua_grammar::FuncBody* release_body(); |
3988 | | ::lua_grammar::FuncBody* mutable_body(); |
3989 | | void set_allocated_body(::lua_grammar::FuncBody* body); |
3990 | | private: |
3991 | | const ::lua_grammar::FuncBody& _internal_body() const; |
3992 | | ::lua_grammar::FuncBody* _internal_mutable_body(); |
3993 | | public: |
3994 | | void unsafe_arena_set_allocated_body( |
3995 | | ::lua_grammar::FuncBody* body); |
3996 | | ::lua_grammar::FuncBody* unsafe_arena_release_body(); |
3997 | | |
3998 | | // @@protoc_insertion_point(class_scope:lua_grammar.Function) |
3999 | | private: |
4000 | | class _Internal; |
4001 | | |
4002 | | // helper for ByteSizeLong() |
4003 | | size_t RequiredFieldsByteSizeFallback() const; |
4004 | | |
4005 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4006 | | typedef void InternalArenaConstructable_; |
4007 | | typedef void DestructorSkippable_; |
4008 | | struct Impl_ { |
4009 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4010 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4011 | | ::lua_grammar::Function_FuncName* name_; |
4012 | | ::lua_grammar::FuncBody* body_; |
4013 | | }; |
4014 | | union { Impl_ _impl_; }; |
4015 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
4016 | | }; |
4017 | | // ------------------------------------------------------------------- |
4018 | | |
4019 | | class FuncBody_NameListWithEllipsis final : |
4020 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FuncBody.NameListWithEllipsis) */ { |
4021 | | public: |
4022 | 0 | inline FuncBody_NameListWithEllipsis() : FuncBody_NameListWithEllipsis(nullptr) {} |
4023 | | ~FuncBody_NameListWithEllipsis() override; |
4024 | | explicit PROTOBUF_CONSTEXPR FuncBody_NameListWithEllipsis(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4025 | | |
4026 | | FuncBody_NameListWithEllipsis(const FuncBody_NameListWithEllipsis& from); |
4027 | | FuncBody_NameListWithEllipsis(FuncBody_NameListWithEllipsis&& from) noexcept |
4028 | 0 | : FuncBody_NameListWithEllipsis() { |
4029 | 0 | *this = ::std::move(from); |
4030 | 0 | } |
4031 | | |
4032 | 0 | inline FuncBody_NameListWithEllipsis& operator=(const FuncBody_NameListWithEllipsis& from) { |
4033 | 0 | CopyFrom(from); |
4034 | 0 | return *this; |
4035 | 0 | } |
4036 | 0 | inline FuncBody_NameListWithEllipsis& operator=(FuncBody_NameListWithEllipsis&& from) noexcept { |
4037 | 0 | if (this == &from) return *this; |
4038 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4039 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4040 | 0 | && GetOwningArena() != nullptr |
4041 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4042 | 0 | ) { |
4043 | 0 | InternalSwap(&from); |
4044 | 0 | } else { |
4045 | 0 | CopyFrom(from); |
4046 | 0 | } |
4047 | 0 | return *this; |
4048 | 0 | } |
4049 | | |
4050 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4051 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4052 | 0 | } |
4053 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4054 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4055 | 0 | } |
4056 | | |
4057 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4058 | 0 | return GetDescriptor(); |
4059 | 0 | } |
4060 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4061 | 0 | return default_instance().GetMetadata().descriptor; |
4062 | 0 | } |
4063 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4064 | 0 | return default_instance().GetMetadata().reflection; |
4065 | 0 | } |
4066 | 0 | static const FuncBody_NameListWithEllipsis& default_instance() { |
4067 | 0 | return *internal_default_instance(); |
4068 | 0 | } |
4069 | 505 | static inline const FuncBody_NameListWithEllipsis* internal_default_instance() { |
4070 | 505 | return reinterpret_cast<const FuncBody_NameListWithEllipsis*>( |
4071 | 505 | &_FuncBody_NameListWithEllipsis_default_instance_); |
4072 | 505 | } |
4073 | | static constexpr int kIndexInFileMessages = |
4074 | | 18; |
4075 | | |
4076 | 0 | friend void swap(FuncBody_NameListWithEllipsis& a, FuncBody_NameListWithEllipsis& b) { |
4077 | 0 | a.Swap(&b); |
4078 | 0 | } |
4079 | 0 | inline void Swap(FuncBody_NameListWithEllipsis* other) { |
4080 | 0 | if (other == this) return; |
4081 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4082 | 0 | if (GetOwningArena() != nullptr && |
4083 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4084 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4085 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4086 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4087 | 0 | InternalSwap(other); |
4088 | 0 | } else { |
4089 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4090 | 0 | } |
4091 | 0 | } |
4092 | 0 | void UnsafeArenaSwap(FuncBody_NameListWithEllipsis* other) { |
4093 | 0 | if (other == this) return; |
4094 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4095 | 0 | InternalSwap(other); |
4096 | 0 | } |
4097 | | |
4098 | | // implements Message ---------------------------------------------- |
4099 | | |
4100 | 505 | FuncBody_NameListWithEllipsis* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4101 | 505 | return CreateMaybeMessage<FuncBody_NameListWithEllipsis>(arena); |
4102 | 505 | } |
4103 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4104 | | void CopyFrom(const FuncBody_NameListWithEllipsis& from); |
4105 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4106 | 0 | void MergeFrom( const FuncBody_NameListWithEllipsis& from) { |
4107 | 0 | FuncBody_NameListWithEllipsis::MergeImpl(*this, from); |
4108 | 0 | } |
4109 | | private: |
4110 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4111 | | public: |
4112 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4113 | | bool IsInitialized() const final; |
4114 | | |
4115 | | size_t ByteSizeLong() const final; |
4116 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4117 | | uint8_t* _InternalSerialize( |
4118 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4119 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4120 | | |
4121 | | private: |
4122 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4123 | | void SharedDtor(); |
4124 | | void SetCachedSize(int size) const final; |
4125 | | void InternalSwap(FuncBody_NameListWithEllipsis* other); |
4126 | | |
4127 | | private: |
4128 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4129 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4130 | 0 | return "lua_grammar.FuncBody.NameListWithEllipsis"; |
4131 | 0 | } |
4132 | | protected: |
4133 | | explicit FuncBody_NameListWithEllipsis(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4134 | | bool is_message_owned = false); |
4135 | | public: |
4136 | | |
4137 | | static const ClassData _class_data_; |
4138 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4139 | | |
4140 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4141 | | |
4142 | | // nested types ---------------------------------------------------- |
4143 | | |
4144 | | // accessors ------------------------------------------------------- |
4145 | | |
4146 | | enum : int { |
4147 | | kEllipsisFieldNumber = 2, |
4148 | | kNamelistFieldNumber = 1, |
4149 | | }; |
4150 | | // optional string ellipsis = 2; |
4151 | | bool has_ellipsis() const; |
4152 | | private: |
4153 | | bool _internal_has_ellipsis() const; |
4154 | | public: |
4155 | | void clear_ellipsis(); |
4156 | | const std::string& ellipsis() const; |
4157 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
4158 | | void set_ellipsis(ArgT0&& arg0, ArgT... args); |
4159 | | std::string* mutable_ellipsis(); |
4160 | | PROTOBUF_NODISCARD std::string* release_ellipsis(); |
4161 | | void set_allocated_ellipsis(std::string* ellipsis); |
4162 | | private: |
4163 | | const std::string& _internal_ellipsis() const; |
4164 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_ellipsis(const std::string& value); |
4165 | | std::string* _internal_mutable_ellipsis(); |
4166 | | public: |
4167 | | |
4168 | | // required .lua_grammar.NameList namelist = 1; |
4169 | | bool has_namelist() const; |
4170 | | private: |
4171 | | bool _internal_has_namelist() const; |
4172 | | public: |
4173 | | void clear_namelist(); |
4174 | | const ::lua_grammar::NameList& namelist() const; |
4175 | | PROTOBUF_NODISCARD ::lua_grammar::NameList* release_namelist(); |
4176 | | ::lua_grammar::NameList* mutable_namelist(); |
4177 | | void set_allocated_namelist(::lua_grammar::NameList* namelist); |
4178 | | private: |
4179 | | const ::lua_grammar::NameList& _internal_namelist() const; |
4180 | | ::lua_grammar::NameList* _internal_mutable_namelist(); |
4181 | | public: |
4182 | | void unsafe_arena_set_allocated_namelist( |
4183 | | ::lua_grammar::NameList* namelist); |
4184 | | ::lua_grammar::NameList* unsafe_arena_release_namelist(); |
4185 | | |
4186 | | // @@protoc_insertion_point(class_scope:lua_grammar.FuncBody.NameListWithEllipsis) |
4187 | | private: |
4188 | | class _Internal; |
4189 | | |
4190 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4191 | | typedef void InternalArenaConstructable_; |
4192 | | typedef void DestructorSkippable_; |
4193 | | struct Impl_ { |
4194 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4195 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4196 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ellipsis_; |
4197 | | ::lua_grammar::NameList* namelist_; |
4198 | | }; |
4199 | | union { Impl_ _impl_; }; |
4200 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
4201 | | }; |
4202 | | // ------------------------------------------------------------------- |
4203 | | |
4204 | | class FuncBody_ParList final : |
4205 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FuncBody.ParList) */ { |
4206 | | public: |
4207 | 0 | inline FuncBody_ParList() : FuncBody_ParList(nullptr) {} |
4208 | | ~FuncBody_ParList() override; |
4209 | | explicit PROTOBUF_CONSTEXPR FuncBody_ParList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4210 | | |
4211 | | FuncBody_ParList(const FuncBody_ParList& from); |
4212 | | FuncBody_ParList(FuncBody_ParList&& from) noexcept |
4213 | 0 | : FuncBody_ParList() { |
4214 | 0 | *this = ::std::move(from); |
4215 | 0 | } |
4216 | | |
4217 | 0 | inline FuncBody_ParList& operator=(const FuncBody_ParList& from) { |
4218 | 0 | CopyFrom(from); |
4219 | 0 | return *this; |
4220 | 0 | } |
4221 | 0 | inline FuncBody_ParList& operator=(FuncBody_ParList&& from) noexcept { |
4222 | 0 | if (this == &from) return *this; |
4223 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4224 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4225 | 0 | && GetOwningArena() != nullptr |
4226 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4227 | 0 | ) { |
4228 | 0 | InternalSwap(&from); |
4229 | 0 | } else { |
4230 | 0 | CopyFrom(from); |
4231 | 0 | } |
4232 | 0 | return *this; |
4233 | 0 | } |
4234 | | |
4235 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4236 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4237 | 0 | } |
4238 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4239 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4240 | 0 | } |
4241 | | |
4242 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4243 | 0 | return GetDescriptor(); |
4244 | 0 | } |
4245 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4246 | 0 | return default_instance().GetMetadata().descriptor; |
4247 | 0 | } |
4248 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4249 | 0 | return default_instance().GetMetadata().reflection; |
4250 | 0 | } |
4251 | 0 | static const FuncBody_ParList& default_instance() { |
4252 | 0 | return *internal_default_instance(); |
4253 | 0 | } |
4254 | | enum ParlistOneofCase { |
4255 | | kNamelist = 1, |
4256 | | kEllipsis = 2, |
4257 | | PARLIST_ONEOF_NOT_SET = 0, |
4258 | | }; |
4259 | | |
4260 | 0 | static inline const FuncBody_ParList* internal_default_instance() { |
4261 | 0 | return reinterpret_cast<const FuncBody_ParList*>( |
4262 | 0 | &_FuncBody_ParList_default_instance_); |
4263 | 0 | } |
4264 | | static constexpr int kIndexInFileMessages = |
4265 | | 19; |
4266 | | |
4267 | 0 | friend void swap(FuncBody_ParList& a, FuncBody_ParList& b) { |
4268 | 0 | a.Swap(&b); |
4269 | 0 | } |
4270 | 0 | inline void Swap(FuncBody_ParList* other) { |
4271 | 0 | if (other == this) return; |
4272 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4273 | 0 | if (GetOwningArena() != nullptr && |
4274 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4275 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4276 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4277 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4278 | 0 | InternalSwap(other); |
4279 | 0 | } else { |
4280 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4281 | 0 | } |
4282 | 0 | } |
4283 | 0 | void UnsafeArenaSwap(FuncBody_ParList* other) { |
4284 | 0 | if (other == this) return; |
4285 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4286 | 0 | InternalSwap(other); |
4287 | 0 | } |
4288 | | |
4289 | | // implements Message ---------------------------------------------- |
4290 | | |
4291 | 3.71k | FuncBody_ParList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4292 | 3.71k | return CreateMaybeMessage<FuncBody_ParList>(arena); |
4293 | 3.71k | } |
4294 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4295 | | void CopyFrom(const FuncBody_ParList& from); |
4296 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4297 | 0 | void MergeFrom( const FuncBody_ParList& from) { |
4298 | 0 | FuncBody_ParList::MergeImpl(*this, from); |
4299 | 0 | } |
4300 | | private: |
4301 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4302 | | public: |
4303 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4304 | | bool IsInitialized() const final; |
4305 | | |
4306 | | size_t ByteSizeLong() const final; |
4307 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4308 | | uint8_t* _InternalSerialize( |
4309 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4310 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4311 | | |
4312 | | private: |
4313 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4314 | | void SharedDtor(); |
4315 | | void SetCachedSize(int size) const final; |
4316 | | void InternalSwap(FuncBody_ParList* other); |
4317 | | |
4318 | | private: |
4319 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4320 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4321 | 0 | return "lua_grammar.FuncBody.ParList"; |
4322 | 0 | } |
4323 | | protected: |
4324 | | explicit FuncBody_ParList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4325 | | bool is_message_owned = false); |
4326 | | public: |
4327 | | |
4328 | | static const ClassData _class_data_; |
4329 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4330 | | |
4331 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4332 | | |
4333 | | // nested types ---------------------------------------------------- |
4334 | | |
4335 | | // accessors ------------------------------------------------------- |
4336 | | |
4337 | | enum : int { |
4338 | | kNamelistFieldNumber = 1, |
4339 | | kEllipsisFieldNumber = 2, |
4340 | | }; |
4341 | | // .lua_grammar.FuncBody.NameListWithEllipsis namelist = 1; |
4342 | | bool has_namelist() const; |
4343 | | private: |
4344 | | bool _internal_has_namelist() const; |
4345 | | public: |
4346 | | void clear_namelist(); |
4347 | | const ::lua_grammar::FuncBody_NameListWithEllipsis& namelist() const; |
4348 | | PROTOBUF_NODISCARD ::lua_grammar::FuncBody_NameListWithEllipsis* release_namelist(); |
4349 | | ::lua_grammar::FuncBody_NameListWithEllipsis* mutable_namelist(); |
4350 | | void set_allocated_namelist(::lua_grammar::FuncBody_NameListWithEllipsis* namelist); |
4351 | | private: |
4352 | | const ::lua_grammar::FuncBody_NameListWithEllipsis& _internal_namelist() const; |
4353 | | ::lua_grammar::FuncBody_NameListWithEllipsis* _internal_mutable_namelist(); |
4354 | | public: |
4355 | | void unsafe_arena_set_allocated_namelist( |
4356 | | ::lua_grammar::FuncBody_NameListWithEllipsis* namelist); |
4357 | | ::lua_grammar::FuncBody_NameListWithEllipsis* unsafe_arena_release_namelist(); |
4358 | | |
4359 | | // string ellipsis = 2; |
4360 | | bool has_ellipsis() const; |
4361 | | private: |
4362 | | bool _internal_has_ellipsis() const; |
4363 | | public: |
4364 | | void clear_ellipsis(); |
4365 | | const std::string& ellipsis() const; |
4366 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
4367 | | void set_ellipsis(ArgT0&& arg0, ArgT... args); |
4368 | | std::string* mutable_ellipsis(); |
4369 | | PROTOBUF_NODISCARD std::string* release_ellipsis(); |
4370 | | void set_allocated_ellipsis(std::string* ellipsis); |
4371 | | private: |
4372 | | const std::string& _internal_ellipsis() const; |
4373 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_ellipsis(const std::string& value); |
4374 | | std::string* _internal_mutable_ellipsis(); |
4375 | | public: |
4376 | | |
4377 | | void clear_parlist_oneof(); |
4378 | | ParlistOneofCase parlist_oneof_case() const; |
4379 | | // @@protoc_insertion_point(class_scope:lua_grammar.FuncBody.ParList) |
4380 | | private: |
4381 | | class _Internal; |
4382 | | void set_has_namelist(); |
4383 | | void set_has_ellipsis(); |
4384 | | |
4385 | | inline bool has_parlist_oneof() const; |
4386 | | inline void clear_has_parlist_oneof(); |
4387 | | |
4388 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4389 | | typedef void InternalArenaConstructable_; |
4390 | | typedef void DestructorSkippable_; |
4391 | | struct Impl_ { |
4392 | | union ParlistOneofUnion { |
4393 | 3.71k | constexpr ParlistOneofUnion() : _constinit_{} {} |
4394 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
4395 | | ::lua_grammar::FuncBody_NameListWithEllipsis* namelist_; |
4396 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ellipsis_; |
4397 | | } parlist_oneof_; |
4398 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4399 | | uint32_t _oneof_case_[1]; |
4400 | | |
4401 | | }; |
4402 | | union { Impl_ _impl_; }; |
4403 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
4404 | | }; |
4405 | | // ------------------------------------------------------------------- |
4406 | | |
4407 | | class FuncBody final : |
4408 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FuncBody) */ { |
4409 | | public: |
4410 | 0 | inline FuncBody() : FuncBody(nullptr) {} |
4411 | | ~FuncBody() override; |
4412 | | explicit PROTOBUF_CONSTEXPR FuncBody(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4413 | | |
4414 | | FuncBody(const FuncBody& from); |
4415 | | FuncBody(FuncBody&& from) noexcept |
4416 | 0 | : FuncBody() { |
4417 | 0 | *this = ::std::move(from); |
4418 | 0 | } |
4419 | | |
4420 | 0 | inline FuncBody& operator=(const FuncBody& from) { |
4421 | 0 | CopyFrom(from); |
4422 | 0 | return *this; |
4423 | 0 | } |
4424 | 0 | inline FuncBody& operator=(FuncBody&& from) noexcept { |
4425 | 0 | if (this == &from) return *this; |
4426 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4427 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4428 | 0 | && GetOwningArena() != nullptr |
4429 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4430 | 0 | ) { |
4431 | 0 | InternalSwap(&from); |
4432 | 0 | } else { |
4433 | 0 | CopyFrom(from); |
4434 | 0 | } |
4435 | 0 | return *this; |
4436 | 0 | } |
4437 | | |
4438 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4439 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4440 | 0 | } |
4441 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4442 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4443 | 0 | } |
4444 | | |
4445 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4446 | 0 | return GetDescriptor(); |
4447 | 0 | } |
4448 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4449 | 0 | return default_instance().GetMetadata().descriptor; |
4450 | 0 | } |
4451 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4452 | 0 | return default_instance().GetMetadata().reflection; |
4453 | 0 | } |
4454 | 0 | static const FuncBody& default_instance() { |
4455 | 0 | return *internal_default_instance(); |
4456 | 0 | } |
4457 | 34.9k | static inline const FuncBody* internal_default_instance() { |
4458 | 34.9k | return reinterpret_cast<const FuncBody*>( |
4459 | 34.9k | &_FuncBody_default_instance_); |
4460 | 34.9k | } |
4461 | | static constexpr int kIndexInFileMessages = |
4462 | | 20; |
4463 | | |
4464 | 0 | friend void swap(FuncBody& a, FuncBody& b) { |
4465 | 0 | a.Swap(&b); |
4466 | 0 | } |
4467 | 0 | inline void Swap(FuncBody* other) { |
4468 | 0 | if (other == this) return; |
4469 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4470 | 0 | if (GetOwningArena() != nullptr && |
4471 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4472 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4473 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4474 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4475 | 0 | InternalSwap(other); |
4476 | 0 | } else { |
4477 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4478 | 0 | } |
4479 | 0 | } |
4480 | 0 | void UnsafeArenaSwap(FuncBody* other) { |
4481 | 0 | if (other == this) return; |
4482 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4483 | 0 | InternalSwap(other); |
4484 | 0 | } |
4485 | | |
4486 | | // implements Message ---------------------------------------------- |
4487 | | |
4488 | 17.4k | FuncBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4489 | 17.4k | return CreateMaybeMessage<FuncBody>(arena); |
4490 | 17.4k | } |
4491 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4492 | | void CopyFrom(const FuncBody& from); |
4493 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4494 | 0 | void MergeFrom( const FuncBody& from) { |
4495 | 0 | FuncBody::MergeImpl(*this, from); |
4496 | 0 | } |
4497 | | private: |
4498 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4499 | | public: |
4500 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4501 | | bool IsInitialized() const final; |
4502 | | |
4503 | | size_t ByteSizeLong() const final; |
4504 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4505 | | uint8_t* _InternalSerialize( |
4506 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4507 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4508 | | |
4509 | | private: |
4510 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4511 | | void SharedDtor(); |
4512 | | void SetCachedSize(int size) const final; |
4513 | | void InternalSwap(FuncBody* other); |
4514 | | |
4515 | | private: |
4516 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4517 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4518 | 0 | return "lua_grammar.FuncBody"; |
4519 | 0 | } |
4520 | | protected: |
4521 | | explicit FuncBody(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4522 | | bool is_message_owned = false); |
4523 | | public: |
4524 | | |
4525 | | static const ClassData _class_data_; |
4526 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4527 | | |
4528 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4529 | | |
4530 | | // nested types ---------------------------------------------------- |
4531 | | |
4532 | | typedef FuncBody_NameListWithEllipsis NameListWithEllipsis; |
4533 | | typedef FuncBody_ParList ParList; |
4534 | | |
4535 | | // accessors ------------------------------------------------------- |
4536 | | |
4537 | | enum : int { |
4538 | | kParlistFieldNumber = 1, |
4539 | | kBlockFieldNumber = 2, |
4540 | | }; |
4541 | | // optional .lua_grammar.FuncBody.ParList parlist = 1; |
4542 | | bool has_parlist() const; |
4543 | | private: |
4544 | | bool _internal_has_parlist() const; |
4545 | | public: |
4546 | | void clear_parlist(); |
4547 | | const ::lua_grammar::FuncBody_ParList& parlist() const; |
4548 | | PROTOBUF_NODISCARD ::lua_grammar::FuncBody_ParList* release_parlist(); |
4549 | | ::lua_grammar::FuncBody_ParList* mutable_parlist(); |
4550 | | void set_allocated_parlist(::lua_grammar::FuncBody_ParList* parlist); |
4551 | | private: |
4552 | | const ::lua_grammar::FuncBody_ParList& _internal_parlist() const; |
4553 | | ::lua_grammar::FuncBody_ParList* _internal_mutable_parlist(); |
4554 | | public: |
4555 | | void unsafe_arena_set_allocated_parlist( |
4556 | | ::lua_grammar::FuncBody_ParList* parlist); |
4557 | | ::lua_grammar::FuncBody_ParList* unsafe_arena_release_parlist(); |
4558 | | |
4559 | | // required .lua_grammar.Block block = 2; |
4560 | | bool has_block() const; |
4561 | | private: |
4562 | | bool _internal_has_block() const; |
4563 | | public: |
4564 | | void clear_block(); |
4565 | | const ::lua_grammar::Block& block() const; |
4566 | | PROTOBUF_NODISCARD ::lua_grammar::Block* release_block(); |
4567 | | ::lua_grammar::Block* mutable_block(); |
4568 | | void set_allocated_block(::lua_grammar::Block* block); |
4569 | | private: |
4570 | | const ::lua_grammar::Block& _internal_block() const; |
4571 | | ::lua_grammar::Block* _internal_mutable_block(); |
4572 | | public: |
4573 | | void unsafe_arena_set_allocated_block( |
4574 | | ::lua_grammar::Block* block); |
4575 | | ::lua_grammar::Block* unsafe_arena_release_block(); |
4576 | | |
4577 | | // @@protoc_insertion_point(class_scope:lua_grammar.FuncBody) |
4578 | | private: |
4579 | | class _Internal; |
4580 | | |
4581 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4582 | | typedef void InternalArenaConstructable_; |
4583 | | typedef void DestructorSkippable_; |
4584 | | struct Impl_ { |
4585 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4586 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4587 | | ::lua_grammar::FuncBody_ParList* parlist_; |
4588 | | ::lua_grammar::Block* block_; |
4589 | | }; |
4590 | | union { Impl_ _impl_; }; |
4591 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
4592 | | }; |
4593 | | // ------------------------------------------------------------------- |
4594 | | |
4595 | | class NameList final : |
4596 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.NameList) */ { |
4597 | | public: |
4598 | 0 | inline NameList() : NameList(nullptr) {} |
4599 | | ~NameList() override; |
4600 | | explicit PROTOBUF_CONSTEXPR NameList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4601 | | |
4602 | | NameList(const NameList& from); |
4603 | | NameList(NameList&& from) noexcept |
4604 | 0 | : NameList() { |
4605 | 0 | *this = ::std::move(from); |
4606 | 0 | } |
4607 | | |
4608 | 0 | inline NameList& operator=(const NameList& from) { |
4609 | 0 | CopyFrom(from); |
4610 | 0 | return *this; |
4611 | 0 | } |
4612 | 0 | inline NameList& operator=(NameList&& from) noexcept { |
4613 | 0 | if (this == &from) return *this; |
4614 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4615 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4616 | 0 | && GetOwningArena() != nullptr |
4617 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4618 | 0 | ) { |
4619 | 0 | InternalSwap(&from); |
4620 | 0 | } else { |
4621 | 0 | CopyFrom(from); |
4622 | 0 | } |
4623 | 0 | return *this; |
4624 | 0 | } |
4625 | | |
4626 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4627 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4628 | 0 | } |
4629 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4630 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4631 | 0 | } |
4632 | | |
4633 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4634 | 0 | return GetDescriptor(); |
4635 | 0 | } |
4636 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4637 | 0 | return default_instance().GetMetadata().descriptor; |
4638 | 0 | } |
4639 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4640 | 0 | return default_instance().GetMetadata().reflection; |
4641 | 0 | } |
4642 | 0 | static const NameList& default_instance() { |
4643 | 0 | return *internal_default_instance(); |
4644 | 0 | } |
4645 | 27.8k | static inline const NameList* internal_default_instance() { |
4646 | 27.8k | return reinterpret_cast<const NameList*>( |
4647 | 27.8k | &_NameList_default_instance_); |
4648 | 27.8k | } |
4649 | | static constexpr int kIndexInFileMessages = |
4650 | | 21; |
4651 | | |
4652 | 0 | friend void swap(NameList& a, NameList& b) { |
4653 | 0 | a.Swap(&b); |
4654 | 0 | } |
4655 | 0 | inline void Swap(NameList* other) { |
4656 | 0 | if (other == this) return; |
4657 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4658 | 0 | if (GetOwningArena() != nullptr && |
4659 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4660 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4661 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4662 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4663 | 0 | InternalSwap(other); |
4664 | 0 | } else { |
4665 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4666 | 0 | } |
4667 | 0 | } |
4668 | 0 | void UnsafeArenaSwap(NameList* other) { |
4669 | 0 | if (other == this) return; |
4670 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4671 | 0 | InternalSwap(other); |
4672 | 0 | } |
4673 | | |
4674 | | // implements Message ---------------------------------------------- |
4675 | | |
4676 | 27.8k | NameList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4677 | 27.8k | return CreateMaybeMessage<NameList>(arena); |
4678 | 27.8k | } |
4679 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4680 | | void CopyFrom(const NameList& from); |
4681 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4682 | 0 | void MergeFrom( const NameList& from) { |
4683 | 0 | NameList::MergeImpl(*this, from); |
4684 | 0 | } |
4685 | | private: |
4686 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4687 | | public: |
4688 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4689 | | bool IsInitialized() const final; |
4690 | | |
4691 | | size_t ByteSizeLong() const final; |
4692 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4693 | | uint8_t* _InternalSerialize( |
4694 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4695 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4696 | | |
4697 | | private: |
4698 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4699 | | void SharedDtor(); |
4700 | | void SetCachedSize(int size) const final; |
4701 | | void InternalSwap(NameList* other); |
4702 | | |
4703 | | private: |
4704 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4705 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4706 | 0 | return "lua_grammar.NameList"; |
4707 | 0 | } |
4708 | | protected: |
4709 | | explicit NameList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4710 | | bool is_message_owned = false); |
4711 | | public: |
4712 | | |
4713 | | static const ClassData _class_data_; |
4714 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4715 | | |
4716 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4717 | | |
4718 | | // nested types ---------------------------------------------------- |
4719 | | |
4720 | | // accessors ------------------------------------------------------- |
4721 | | |
4722 | | enum : int { |
4723 | | kNamesFieldNumber = 2, |
4724 | | kFirstnameFieldNumber = 1, |
4725 | | }; |
4726 | | // repeated .lua_grammar.Name names = 2; |
4727 | | int names_size() const; |
4728 | | private: |
4729 | | int _internal_names_size() const; |
4730 | | public: |
4731 | | void clear_names(); |
4732 | | ::lua_grammar::Name* mutable_names(int index); |
4733 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >* |
4734 | | mutable_names(); |
4735 | | private: |
4736 | | const ::lua_grammar::Name& _internal_names(int index) const; |
4737 | | ::lua_grammar::Name* _internal_add_names(); |
4738 | | public: |
4739 | | const ::lua_grammar::Name& names(int index) const; |
4740 | | ::lua_grammar::Name* add_names(); |
4741 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >& |
4742 | | names() const; |
4743 | | |
4744 | | // required .lua_grammar.Name firstname = 1; |
4745 | | bool has_firstname() const; |
4746 | | private: |
4747 | | bool _internal_has_firstname() const; |
4748 | | public: |
4749 | | void clear_firstname(); |
4750 | | const ::lua_grammar::Name& firstname() const; |
4751 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_firstname(); |
4752 | | ::lua_grammar::Name* mutable_firstname(); |
4753 | | void set_allocated_firstname(::lua_grammar::Name* firstname); |
4754 | | private: |
4755 | | const ::lua_grammar::Name& _internal_firstname() const; |
4756 | | ::lua_grammar::Name* _internal_mutable_firstname(); |
4757 | | public: |
4758 | | void unsafe_arena_set_allocated_firstname( |
4759 | | ::lua_grammar::Name* firstname); |
4760 | | ::lua_grammar::Name* unsafe_arena_release_firstname(); |
4761 | | |
4762 | | // @@protoc_insertion_point(class_scope:lua_grammar.NameList) |
4763 | | private: |
4764 | | class _Internal; |
4765 | | |
4766 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4767 | | typedef void InternalArenaConstructable_; |
4768 | | typedef void DestructorSkippable_; |
4769 | | struct Impl_ { |
4770 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4771 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4772 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name > names_; |
4773 | | ::lua_grammar::Name* firstname_; |
4774 | | }; |
4775 | | union { Impl_ _impl_; }; |
4776 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
4777 | | }; |
4778 | | // ------------------------------------------------------------------- |
4779 | | |
4780 | | class LocalFunc final : |
4781 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.LocalFunc) */ { |
4782 | | public: |
4783 | 0 | inline LocalFunc() : LocalFunc(nullptr) {} |
4784 | | ~LocalFunc() override; |
4785 | | explicit PROTOBUF_CONSTEXPR LocalFunc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4786 | | |
4787 | | LocalFunc(const LocalFunc& from); |
4788 | | LocalFunc(LocalFunc&& from) noexcept |
4789 | 0 | : LocalFunc() { |
4790 | 0 | *this = ::std::move(from); |
4791 | 0 | } |
4792 | | |
4793 | 0 | inline LocalFunc& operator=(const LocalFunc& from) { |
4794 | 0 | CopyFrom(from); |
4795 | 0 | return *this; |
4796 | 0 | } |
4797 | 0 | inline LocalFunc& operator=(LocalFunc&& from) noexcept { |
4798 | 0 | if (this == &from) return *this; |
4799 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4800 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4801 | 0 | && GetOwningArena() != nullptr |
4802 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4803 | 0 | ) { |
4804 | 0 | InternalSwap(&from); |
4805 | 0 | } else { |
4806 | 0 | CopyFrom(from); |
4807 | 0 | } |
4808 | 0 | return *this; |
4809 | 0 | } |
4810 | | |
4811 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
4812 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
4813 | 0 | } |
4814 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
4815 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
4816 | 0 | } |
4817 | | |
4818 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
4819 | 0 | return GetDescriptor(); |
4820 | 0 | } |
4821 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
4822 | 0 | return default_instance().GetMetadata().descriptor; |
4823 | 0 | } |
4824 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
4825 | 0 | return default_instance().GetMetadata().reflection; |
4826 | 0 | } |
4827 | 0 | static const LocalFunc& default_instance() { |
4828 | 0 | return *internal_default_instance(); |
4829 | 0 | } |
4830 | 4.22k | static inline const LocalFunc* internal_default_instance() { |
4831 | 4.22k | return reinterpret_cast<const LocalFunc*>( |
4832 | 4.22k | &_LocalFunc_default_instance_); |
4833 | 4.22k | } |
4834 | | static constexpr int kIndexInFileMessages = |
4835 | | 22; |
4836 | | |
4837 | 0 | friend void swap(LocalFunc& a, LocalFunc& b) { |
4838 | 0 | a.Swap(&b); |
4839 | 0 | } |
4840 | 0 | inline void Swap(LocalFunc* other) { |
4841 | 0 | if (other == this) return; |
4842 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
4843 | 0 | if (GetOwningArena() != nullptr && |
4844 | 0 | GetOwningArena() == other->GetOwningArena()) { |
4845 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
4846 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
4847 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
4848 | 0 | InternalSwap(other); |
4849 | 0 | } else { |
4850 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
4851 | 0 | } |
4852 | 0 | } |
4853 | 0 | void UnsafeArenaSwap(LocalFunc* other) { |
4854 | 0 | if (other == this) return; |
4855 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
4856 | 0 | InternalSwap(other); |
4857 | 0 | } |
4858 | | |
4859 | | // implements Message ---------------------------------------------- |
4860 | | |
4861 | 2.11k | LocalFunc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
4862 | 2.11k | return CreateMaybeMessage<LocalFunc>(arena); |
4863 | 2.11k | } |
4864 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
4865 | | void CopyFrom(const LocalFunc& from); |
4866 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
4867 | 0 | void MergeFrom( const LocalFunc& from) { |
4868 | 0 | LocalFunc::MergeImpl(*this, from); |
4869 | 0 | } |
4870 | | private: |
4871 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
4872 | | public: |
4873 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
4874 | | bool IsInitialized() const final; |
4875 | | |
4876 | | size_t ByteSizeLong() const final; |
4877 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
4878 | | uint8_t* _InternalSerialize( |
4879 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
4880 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
4881 | | |
4882 | | private: |
4883 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
4884 | | void SharedDtor(); |
4885 | | void SetCachedSize(int size) const final; |
4886 | | void InternalSwap(LocalFunc* other); |
4887 | | |
4888 | | private: |
4889 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
4890 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
4891 | 0 | return "lua_grammar.LocalFunc"; |
4892 | 0 | } |
4893 | | protected: |
4894 | | explicit LocalFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
4895 | | bool is_message_owned = false); |
4896 | | public: |
4897 | | |
4898 | | static const ClassData _class_data_; |
4899 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
4900 | | |
4901 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
4902 | | |
4903 | | // nested types ---------------------------------------------------- |
4904 | | |
4905 | | // accessors ------------------------------------------------------- |
4906 | | |
4907 | | enum : int { |
4908 | | kNameFieldNumber = 1, |
4909 | | kFuncbodyFieldNumber = 2, |
4910 | | }; |
4911 | | // required .lua_grammar.Name name = 1; |
4912 | | bool has_name() const; |
4913 | | private: |
4914 | | bool _internal_has_name() const; |
4915 | | public: |
4916 | | void clear_name(); |
4917 | | const ::lua_grammar::Name& name() const; |
4918 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_name(); |
4919 | | ::lua_grammar::Name* mutable_name(); |
4920 | | void set_allocated_name(::lua_grammar::Name* name); |
4921 | | private: |
4922 | | const ::lua_grammar::Name& _internal_name() const; |
4923 | | ::lua_grammar::Name* _internal_mutable_name(); |
4924 | | public: |
4925 | | void unsafe_arena_set_allocated_name( |
4926 | | ::lua_grammar::Name* name); |
4927 | | ::lua_grammar::Name* unsafe_arena_release_name(); |
4928 | | |
4929 | | // required .lua_grammar.FuncBody funcbody = 2; |
4930 | | bool has_funcbody() const; |
4931 | | private: |
4932 | | bool _internal_has_funcbody() const; |
4933 | | public: |
4934 | | void clear_funcbody(); |
4935 | | const ::lua_grammar::FuncBody& funcbody() const; |
4936 | | PROTOBUF_NODISCARD ::lua_grammar::FuncBody* release_funcbody(); |
4937 | | ::lua_grammar::FuncBody* mutable_funcbody(); |
4938 | | void set_allocated_funcbody(::lua_grammar::FuncBody* funcbody); |
4939 | | private: |
4940 | | const ::lua_grammar::FuncBody& _internal_funcbody() const; |
4941 | | ::lua_grammar::FuncBody* _internal_mutable_funcbody(); |
4942 | | public: |
4943 | | void unsafe_arena_set_allocated_funcbody( |
4944 | | ::lua_grammar::FuncBody* funcbody); |
4945 | | ::lua_grammar::FuncBody* unsafe_arena_release_funcbody(); |
4946 | | |
4947 | | // @@protoc_insertion_point(class_scope:lua_grammar.LocalFunc) |
4948 | | private: |
4949 | | class _Internal; |
4950 | | |
4951 | | // helper for ByteSizeLong() |
4952 | | size_t RequiredFieldsByteSizeFallback() const; |
4953 | | |
4954 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
4955 | | typedef void InternalArenaConstructable_; |
4956 | | typedef void DestructorSkippable_; |
4957 | | struct Impl_ { |
4958 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
4959 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
4960 | | ::lua_grammar::Name* name_; |
4961 | | ::lua_grammar::FuncBody* funcbody_; |
4962 | | }; |
4963 | | union { Impl_ _impl_; }; |
4964 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
4965 | | }; |
4966 | | // ------------------------------------------------------------------- |
4967 | | |
4968 | | class LocalNames final : |
4969 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.LocalNames) */ { |
4970 | | public: |
4971 | 0 | inline LocalNames() : LocalNames(nullptr) {} |
4972 | | ~LocalNames() override; |
4973 | | explicit PROTOBUF_CONSTEXPR LocalNames(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
4974 | | |
4975 | | LocalNames(const LocalNames& from); |
4976 | | LocalNames(LocalNames&& from) noexcept |
4977 | 0 | : LocalNames() { |
4978 | 0 | *this = ::std::move(from); |
4979 | 0 | } |
4980 | | |
4981 | 0 | inline LocalNames& operator=(const LocalNames& from) { |
4982 | 0 | CopyFrom(from); |
4983 | 0 | return *this; |
4984 | 0 | } |
4985 | 0 | inline LocalNames& operator=(LocalNames&& from) noexcept { |
4986 | 0 | if (this == &from) return *this; |
4987 | 0 | if (GetOwningArena() == from.GetOwningArena() |
4988 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
4989 | 0 | && GetOwningArena() != nullptr |
4990 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
4991 | 0 | ) { |
4992 | 0 | InternalSwap(&from); |
4993 | 0 | } else { |
4994 | 0 | CopyFrom(from); |
4995 | 0 | } |
4996 | 0 | return *this; |
4997 | 0 | } |
4998 | | |
4999 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
5000 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
5001 | 0 | } |
5002 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
5003 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5004 | 0 | } |
5005 | | |
5006 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
5007 | 0 | return GetDescriptor(); |
5008 | 0 | } |
5009 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
5010 | 0 | return default_instance().GetMetadata().descriptor; |
5011 | 0 | } |
5012 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
5013 | 0 | return default_instance().GetMetadata().reflection; |
5014 | 0 | } |
5015 | 0 | static const LocalNames& default_instance() { |
5016 | 0 | return *internal_default_instance(); |
5017 | 0 | } |
5018 | 3.90k | static inline const LocalNames* internal_default_instance() { |
5019 | 3.90k | return reinterpret_cast<const LocalNames*>( |
5020 | 3.90k | &_LocalNames_default_instance_); |
5021 | 3.90k | } |
5022 | | static constexpr int kIndexInFileMessages = |
5023 | | 23; |
5024 | | |
5025 | 0 | friend void swap(LocalNames& a, LocalNames& b) { |
5026 | 0 | a.Swap(&b); |
5027 | 0 | } |
5028 | 0 | inline void Swap(LocalNames* other) { |
5029 | 0 | if (other == this) return; |
5030 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
5031 | 0 | if (GetOwningArena() != nullptr && |
5032 | 0 | GetOwningArena() == other->GetOwningArena()) { |
5033 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
5034 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
5035 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
5036 | 0 | InternalSwap(other); |
5037 | 0 | } else { |
5038 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
5039 | 0 | } |
5040 | 0 | } |
5041 | 0 | void UnsafeArenaSwap(LocalNames* other) { |
5042 | 0 | if (other == this) return; |
5043 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
5044 | 0 | InternalSwap(other); |
5045 | 0 | } |
5046 | | |
5047 | | // implements Message ---------------------------------------------- |
5048 | | |
5049 | 1.95k | LocalNames* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
5050 | 1.95k | return CreateMaybeMessage<LocalNames>(arena); |
5051 | 1.95k | } |
5052 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
5053 | | void CopyFrom(const LocalNames& from); |
5054 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
5055 | 0 | void MergeFrom( const LocalNames& from) { |
5056 | 0 | LocalNames::MergeImpl(*this, from); |
5057 | 0 | } |
5058 | | private: |
5059 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
5060 | | public: |
5061 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
5062 | | bool IsInitialized() const final; |
5063 | | |
5064 | | size_t ByteSizeLong() const final; |
5065 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
5066 | | uint8_t* _InternalSerialize( |
5067 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
5068 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
5069 | | |
5070 | | private: |
5071 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
5072 | | void SharedDtor(); |
5073 | | void SetCachedSize(int size) const final; |
5074 | | void InternalSwap(LocalNames* other); |
5075 | | |
5076 | | private: |
5077 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
5078 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
5079 | 0 | return "lua_grammar.LocalNames"; |
5080 | 0 | } |
5081 | | protected: |
5082 | | explicit LocalNames(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5083 | | bool is_message_owned = false); |
5084 | | public: |
5085 | | |
5086 | | static const ClassData _class_data_; |
5087 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
5088 | | |
5089 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
5090 | | |
5091 | | // nested types ---------------------------------------------------- |
5092 | | |
5093 | | // accessors ------------------------------------------------------- |
5094 | | |
5095 | | enum : int { |
5096 | | kNamelistFieldNumber = 1, |
5097 | | kExplistFieldNumber = 2, |
5098 | | }; |
5099 | | // required .lua_grammar.NameList namelist = 1; |
5100 | | bool has_namelist() const; |
5101 | | private: |
5102 | | bool _internal_has_namelist() const; |
5103 | | public: |
5104 | | void clear_namelist(); |
5105 | | const ::lua_grammar::NameList& namelist() const; |
5106 | | PROTOBUF_NODISCARD ::lua_grammar::NameList* release_namelist(); |
5107 | | ::lua_grammar::NameList* mutable_namelist(); |
5108 | | void set_allocated_namelist(::lua_grammar::NameList* namelist); |
5109 | | private: |
5110 | | const ::lua_grammar::NameList& _internal_namelist() const; |
5111 | | ::lua_grammar::NameList* _internal_mutable_namelist(); |
5112 | | public: |
5113 | | void unsafe_arena_set_allocated_namelist( |
5114 | | ::lua_grammar::NameList* namelist); |
5115 | | ::lua_grammar::NameList* unsafe_arena_release_namelist(); |
5116 | | |
5117 | | // optional .lua_grammar.ExpressionList explist = 2; |
5118 | | bool has_explist() const; |
5119 | | private: |
5120 | | bool _internal_has_explist() const; |
5121 | | public: |
5122 | | void clear_explist(); |
5123 | | const ::lua_grammar::ExpressionList& explist() const; |
5124 | | PROTOBUF_NODISCARD ::lua_grammar::ExpressionList* release_explist(); |
5125 | | ::lua_grammar::ExpressionList* mutable_explist(); |
5126 | | void set_allocated_explist(::lua_grammar::ExpressionList* explist); |
5127 | | private: |
5128 | | const ::lua_grammar::ExpressionList& _internal_explist() const; |
5129 | | ::lua_grammar::ExpressionList* _internal_mutable_explist(); |
5130 | | public: |
5131 | | void unsafe_arena_set_allocated_explist( |
5132 | | ::lua_grammar::ExpressionList* explist); |
5133 | | ::lua_grammar::ExpressionList* unsafe_arena_release_explist(); |
5134 | | |
5135 | | // @@protoc_insertion_point(class_scope:lua_grammar.LocalNames) |
5136 | | private: |
5137 | | class _Internal; |
5138 | | |
5139 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
5140 | | typedef void InternalArenaConstructable_; |
5141 | | typedef void DestructorSkippable_; |
5142 | | struct Impl_ { |
5143 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
5144 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
5145 | | ::lua_grammar::NameList* namelist_; |
5146 | | ::lua_grammar::ExpressionList* explist_; |
5147 | | }; |
5148 | | union { Impl_ _impl_; }; |
5149 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
5150 | | }; |
5151 | | // ------------------------------------------------------------------- |
5152 | | |
5153 | | class LastStatement_ReturnOptionalExpressionList final : |
5154 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.LastStatement.ReturnOptionalExpressionList) */ { |
5155 | | public: |
5156 | 0 | inline LastStatement_ReturnOptionalExpressionList() : LastStatement_ReturnOptionalExpressionList(nullptr) {} |
5157 | | ~LastStatement_ReturnOptionalExpressionList() override; |
5158 | | explicit PROTOBUF_CONSTEXPR LastStatement_ReturnOptionalExpressionList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
5159 | | |
5160 | | LastStatement_ReturnOptionalExpressionList(const LastStatement_ReturnOptionalExpressionList& from); |
5161 | | LastStatement_ReturnOptionalExpressionList(LastStatement_ReturnOptionalExpressionList&& from) noexcept |
5162 | 0 | : LastStatement_ReturnOptionalExpressionList() { |
5163 | 0 | *this = ::std::move(from); |
5164 | 0 | } |
5165 | | |
5166 | 0 | inline LastStatement_ReturnOptionalExpressionList& operator=(const LastStatement_ReturnOptionalExpressionList& from) { |
5167 | 0 | CopyFrom(from); |
5168 | 0 | return *this; |
5169 | 0 | } |
5170 | 0 | inline LastStatement_ReturnOptionalExpressionList& operator=(LastStatement_ReturnOptionalExpressionList&& from) noexcept { |
5171 | 0 | if (this == &from) return *this; |
5172 | 0 | if (GetOwningArena() == from.GetOwningArena() |
5173 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
5174 | 0 | && GetOwningArena() != nullptr |
5175 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
5176 | 0 | ) { |
5177 | 0 | InternalSwap(&from); |
5178 | 0 | } else { |
5179 | 0 | CopyFrom(from); |
5180 | 0 | } |
5181 | 0 | return *this; |
5182 | 0 | } |
5183 | | |
5184 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
5185 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
5186 | 0 | } |
5187 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
5188 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5189 | 0 | } |
5190 | | |
5191 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
5192 | 0 | return GetDescriptor(); |
5193 | 0 | } |
5194 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
5195 | 0 | return default_instance().GetMetadata().descriptor; |
5196 | 0 | } |
5197 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
5198 | 0 | return default_instance().GetMetadata().reflection; |
5199 | 0 | } |
5200 | 0 | static const LastStatement_ReturnOptionalExpressionList& default_instance() { |
5201 | 0 | return *internal_default_instance(); |
5202 | 0 | } |
5203 | 3.51k | static inline const LastStatement_ReturnOptionalExpressionList* internal_default_instance() { |
5204 | 3.51k | return reinterpret_cast<const LastStatement_ReturnOptionalExpressionList*>( |
5205 | 3.51k | &_LastStatement_ReturnOptionalExpressionList_default_instance_); |
5206 | 3.51k | } |
5207 | | static constexpr int kIndexInFileMessages = |
5208 | | 24; |
5209 | | |
5210 | 0 | friend void swap(LastStatement_ReturnOptionalExpressionList& a, LastStatement_ReturnOptionalExpressionList& b) { |
5211 | 0 | a.Swap(&b); |
5212 | 0 | } |
5213 | 0 | inline void Swap(LastStatement_ReturnOptionalExpressionList* other) { |
5214 | 0 | if (other == this) return; |
5215 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
5216 | 0 | if (GetOwningArena() != nullptr && |
5217 | 0 | GetOwningArena() == other->GetOwningArena()) { |
5218 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
5219 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
5220 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
5221 | 0 | InternalSwap(other); |
5222 | 0 | } else { |
5223 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
5224 | 0 | } |
5225 | 0 | } |
5226 | 0 | void UnsafeArenaSwap(LastStatement_ReturnOptionalExpressionList* other) { |
5227 | 0 | if (other == this) return; |
5228 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
5229 | 0 | InternalSwap(other); |
5230 | 0 | } |
5231 | | |
5232 | | // implements Message ---------------------------------------------- |
5233 | | |
5234 | 3.51k | LastStatement_ReturnOptionalExpressionList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
5235 | 3.51k | return CreateMaybeMessage<LastStatement_ReturnOptionalExpressionList>(arena); |
5236 | 3.51k | } |
5237 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
5238 | | void CopyFrom(const LastStatement_ReturnOptionalExpressionList& from); |
5239 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
5240 | 0 | void MergeFrom( const LastStatement_ReturnOptionalExpressionList& from) { |
5241 | 0 | LastStatement_ReturnOptionalExpressionList::MergeImpl(*this, from); |
5242 | 0 | } |
5243 | | private: |
5244 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
5245 | | public: |
5246 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
5247 | | bool IsInitialized() const final; |
5248 | | |
5249 | | size_t ByteSizeLong() const final; |
5250 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
5251 | | uint8_t* _InternalSerialize( |
5252 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
5253 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
5254 | | |
5255 | | private: |
5256 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
5257 | | void SharedDtor(); |
5258 | | void SetCachedSize(int size) const final; |
5259 | | void InternalSwap(LastStatement_ReturnOptionalExpressionList* other); |
5260 | | |
5261 | | private: |
5262 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
5263 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
5264 | 0 | return "lua_grammar.LastStatement.ReturnOptionalExpressionList"; |
5265 | 0 | } |
5266 | | protected: |
5267 | | explicit LastStatement_ReturnOptionalExpressionList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5268 | | bool is_message_owned = false); |
5269 | | public: |
5270 | | |
5271 | | static const ClassData _class_data_; |
5272 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
5273 | | |
5274 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
5275 | | |
5276 | | // nested types ---------------------------------------------------- |
5277 | | |
5278 | | // accessors ------------------------------------------------------- |
5279 | | |
5280 | | enum : int { |
5281 | | kExplistFieldNumber = 1, |
5282 | | }; |
5283 | | // optional .lua_grammar.ExpressionList explist = 1; |
5284 | | bool has_explist() const; |
5285 | | private: |
5286 | | bool _internal_has_explist() const; |
5287 | | public: |
5288 | | void clear_explist(); |
5289 | | const ::lua_grammar::ExpressionList& explist() const; |
5290 | | PROTOBUF_NODISCARD ::lua_grammar::ExpressionList* release_explist(); |
5291 | | ::lua_grammar::ExpressionList* mutable_explist(); |
5292 | | void set_allocated_explist(::lua_grammar::ExpressionList* explist); |
5293 | | private: |
5294 | | const ::lua_grammar::ExpressionList& _internal_explist() const; |
5295 | | ::lua_grammar::ExpressionList* _internal_mutable_explist(); |
5296 | | public: |
5297 | | void unsafe_arena_set_allocated_explist( |
5298 | | ::lua_grammar::ExpressionList* explist); |
5299 | | ::lua_grammar::ExpressionList* unsafe_arena_release_explist(); |
5300 | | |
5301 | | // @@protoc_insertion_point(class_scope:lua_grammar.LastStatement.ReturnOptionalExpressionList) |
5302 | | private: |
5303 | | class _Internal; |
5304 | | |
5305 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
5306 | | typedef void InternalArenaConstructable_; |
5307 | | typedef void DestructorSkippable_; |
5308 | | struct Impl_ { |
5309 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
5310 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
5311 | | ::lua_grammar::ExpressionList* explist_; |
5312 | | }; |
5313 | | union { Impl_ _impl_; }; |
5314 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
5315 | | }; |
5316 | | // ------------------------------------------------------------------- |
5317 | | |
5318 | | class LastStatement final : |
5319 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.LastStatement) */ { |
5320 | | public: |
5321 | 0 | inline LastStatement() : LastStatement(nullptr) {} |
5322 | | ~LastStatement() override; |
5323 | | explicit PROTOBUF_CONSTEXPR LastStatement(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
5324 | | |
5325 | | LastStatement(const LastStatement& from); |
5326 | | LastStatement(LastStatement&& from) noexcept |
5327 | 0 | : LastStatement() { |
5328 | 0 | *this = ::std::move(from); |
5329 | 0 | } |
5330 | | |
5331 | 0 | inline LastStatement& operator=(const LastStatement& from) { |
5332 | 0 | CopyFrom(from); |
5333 | 0 | return *this; |
5334 | 0 | } |
5335 | 0 | inline LastStatement& operator=(LastStatement&& from) noexcept { |
5336 | 0 | if (this == &from) return *this; |
5337 | 0 | if (GetOwningArena() == from.GetOwningArena() |
5338 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
5339 | 0 | && GetOwningArena() != nullptr |
5340 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
5341 | 0 | ) { |
5342 | 0 | InternalSwap(&from); |
5343 | 0 | } else { |
5344 | 0 | CopyFrom(from); |
5345 | 0 | } |
5346 | 0 | return *this; |
5347 | 0 | } |
5348 | | |
5349 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
5350 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
5351 | 0 | } |
5352 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
5353 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5354 | 0 | } |
5355 | | |
5356 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
5357 | 0 | return GetDescriptor(); |
5358 | 0 | } |
5359 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
5360 | 0 | return default_instance().GetMetadata().descriptor; |
5361 | 0 | } |
5362 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
5363 | 0 | return default_instance().GetMetadata().reflection; |
5364 | 0 | } |
5365 | 0 | static const LastStatement& default_instance() { |
5366 | 0 | return *internal_default_instance(); |
5367 | 0 | } |
5368 | | enum LastOneofCase { |
5369 | | kExplist = 1, |
5370 | | kBreak = 2, |
5371 | | LAST_ONEOF_NOT_SET = 0, |
5372 | | }; |
5373 | | |
5374 | 0 | static inline const LastStatement* internal_default_instance() { |
5375 | 0 | return reinterpret_cast<const LastStatement*>( |
5376 | 0 | &_LastStatement_default_instance_); |
5377 | 0 | } |
5378 | | static constexpr int kIndexInFileMessages = |
5379 | | 25; |
5380 | | |
5381 | 0 | friend void swap(LastStatement& a, LastStatement& b) { |
5382 | 0 | a.Swap(&b); |
5383 | 0 | } |
5384 | 0 | inline void Swap(LastStatement* other) { |
5385 | 0 | if (other == this) return; |
5386 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
5387 | 0 | if (GetOwningArena() != nullptr && |
5388 | 0 | GetOwningArena() == other->GetOwningArena()) { |
5389 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
5390 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
5391 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
5392 | 0 | InternalSwap(other); |
5393 | 0 | } else { |
5394 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
5395 | 0 | } |
5396 | 0 | } |
5397 | 0 | void UnsafeArenaSwap(LastStatement* other) { |
5398 | 0 | if (other == this) return; |
5399 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
5400 | 0 | InternalSwap(other); |
5401 | 0 | } |
5402 | | |
5403 | | // implements Message ---------------------------------------------- |
5404 | | |
5405 | 7.34k | LastStatement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
5406 | 7.34k | return CreateMaybeMessage<LastStatement>(arena); |
5407 | 7.34k | } |
5408 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
5409 | | void CopyFrom(const LastStatement& from); |
5410 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
5411 | 0 | void MergeFrom( const LastStatement& from) { |
5412 | 0 | LastStatement::MergeImpl(*this, from); |
5413 | 0 | } |
5414 | | private: |
5415 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
5416 | | public: |
5417 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
5418 | | bool IsInitialized() const final; |
5419 | | |
5420 | | size_t ByteSizeLong() const final; |
5421 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
5422 | | uint8_t* _InternalSerialize( |
5423 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
5424 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
5425 | | |
5426 | | private: |
5427 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
5428 | | void SharedDtor(); |
5429 | | void SetCachedSize(int size) const final; |
5430 | | void InternalSwap(LastStatement* other); |
5431 | | |
5432 | | private: |
5433 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
5434 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
5435 | 0 | return "lua_grammar.LastStatement"; |
5436 | 0 | } |
5437 | | protected: |
5438 | | explicit LastStatement(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5439 | | bool is_message_owned = false); |
5440 | | public: |
5441 | | |
5442 | | static const ClassData _class_data_; |
5443 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
5444 | | |
5445 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
5446 | | |
5447 | | // nested types ---------------------------------------------------- |
5448 | | |
5449 | | typedef LastStatement_ReturnOptionalExpressionList ReturnOptionalExpressionList; |
5450 | | |
5451 | | // accessors ------------------------------------------------------- |
5452 | | |
5453 | | enum : int { |
5454 | | kSemicolonFieldNumber = 3, |
5455 | | kExplistFieldNumber = 1, |
5456 | | kBreakFieldNumber = 2, |
5457 | | }; |
5458 | | // optional bool semicolon = 3; |
5459 | | bool has_semicolon() const; |
5460 | | private: |
5461 | | bool _internal_has_semicolon() const; |
5462 | | public: |
5463 | | void clear_semicolon(); |
5464 | | bool semicolon() const; |
5465 | | void set_semicolon(bool value); |
5466 | | private: |
5467 | | bool _internal_semicolon() const; |
5468 | | void _internal_set_semicolon(bool value); |
5469 | | public: |
5470 | | |
5471 | | // .lua_grammar.LastStatement.ReturnOptionalExpressionList explist = 1; |
5472 | | bool has_explist() const; |
5473 | | private: |
5474 | | bool _internal_has_explist() const; |
5475 | | public: |
5476 | | void clear_explist(); |
5477 | | const ::lua_grammar::LastStatement_ReturnOptionalExpressionList& explist() const; |
5478 | | PROTOBUF_NODISCARD ::lua_grammar::LastStatement_ReturnOptionalExpressionList* release_explist(); |
5479 | | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* mutable_explist(); |
5480 | | void set_allocated_explist(::lua_grammar::LastStatement_ReturnOptionalExpressionList* explist); |
5481 | | private: |
5482 | | const ::lua_grammar::LastStatement_ReturnOptionalExpressionList& _internal_explist() const; |
5483 | | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* _internal_mutable_explist(); |
5484 | | public: |
5485 | | void unsafe_arena_set_allocated_explist( |
5486 | | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* explist); |
5487 | | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* unsafe_arena_release_explist(); |
5488 | | |
5489 | | // uint32 break = 2; |
5490 | | bool has_break_() const; |
5491 | | private: |
5492 | | bool _internal_has_break_() const; |
5493 | | public: |
5494 | | void clear_break_(); |
5495 | | uint32_t break_() const; |
5496 | | void set_break_(uint32_t value); |
5497 | | private: |
5498 | | uint32_t _internal_break_() const; |
5499 | | void _internal_set_break_(uint32_t value); |
5500 | | public: |
5501 | | |
5502 | | void clear_last_oneof(); |
5503 | | LastOneofCase last_oneof_case() const; |
5504 | | // @@protoc_insertion_point(class_scope:lua_grammar.LastStatement) |
5505 | | private: |
5506 | | class _Internal; |
5507 | | void set_has_explist(); |
5508 | | void set_has_break_(); |
5509 | | |
5510 | | inline bool has_last_oneof() const; |
5511 | | inline void clear_has_last_oneof(); |
5512 | | |
5513 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
5514 | | typedef void InternalArenaConstructable_; |
5515 | | typedef void DestructorSkippable_; |
5516 | | struct Impl_ { |
5517 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
5518 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
5519 | | bool semicolon_; |
5520 | | union LastOneofUnion { |
5521 | 7.34k | constexpr LastOneofUnion() : _constinit_{} {} |
5522 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
5523 | | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* explist_; |
5524 | | uint32_t break__; |
5525 | | } last_oneof_; |
5526 | | uint32_t _oneof_case_[1]; |
5527 | | |
5528 | | }; |
5529 | | union { Impl_ _impl_; }; |
5530 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
5531 | | }; |
5532 | | // ------------------------------------------------------------------- |
5533 | | |
5534 | | class ExpressionList final : |
5535 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.ExpressionList) */ { |
5536 | | public: |
5537 | 0 | inline ExpressionList() : ExpressionList(nullptr) {} |
5538 | | ~ExpressionList() override; |
5539 | | explicit PROTOBUF_CONSTEXPR ExpressionList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
5540 | | |
5541 | | ExpressionList(const ExpressionList& from); |
5542 | | ExpressionList(ExpressionList&& from) noexcept |
5543 | 0 | : ExpressionList() { |
5544 | 0 | *this = ::std::move(from); |
5545 | 0 | } |
5546 | | |
5547 | 0 | inline ExpressionList& operator=(const ExpressionList& from) { |
5548 | 0 | CopyFrom(from); |
5549 | 0 | return *this; |
5550 | 0 | } |
5551 | 0 | inline ExpressionList& operator=(ExpressionList&& from) noexcept { |
5552 | 0 | if (this == &from) return *this; |
5553 | 0 | if (GetOwningArena() == from.GetOwningArena() |
5554 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
5555 | 0 | && GetOwningArena() != nullptr |
5556 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
5557 | 0 | ) { |
5558 | 0 | InternalSwap(&from); |
5559 | 0 | } else { |
5560 | 0 | CopyFrom(from); |
5561 | 0 | } |
5562 | 0 | return *this; |
5563 | 0 | } |
5564 | | |
5565 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
5566 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
5567 | 0 | } |
5568 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
5569 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5570 | 0 | } |
5571 | | |
5572 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
5573 | 0 | return GetDescriptor(); |
5574 | 0 | } |
5575 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
5576 | 0 | return default_instance().GetMetadata().descriptor; |
5577 | 0 | } |
5578 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
5579 | 0 | return default_instance().GetMetadata().reflection; |
5580 | 0 | } |
5581 | 0 | static const ExpressionList& default_instance() { |
5582 | 0 | return *internal_default_instance(); |
5583 | 0 | } |
5584 | 36.2k | static inline const ExpressionList* internal_default_instance() { |
5585 | 36.2k | return reinterpret_cast<const ExpressionList*>( |
5586 | 36.2k | &_ExpressionList_default_instance_); |
5587 | 36.2k | } |
5588 | | static constexpr int kIndexInFileMessages = |
5589 | | 26; |
5590 | | |
5591 | 0 | friend void swap(ExpressionList& a, ExpressionList& b) { |
5592 | 0 | a.Swap(&b); |
5593 | 0 | } |
5594 | 0 | inline void Swap(ExpressionList* other) { |
5595 | 0 | if (other == this) return; |
5596 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
5597 | 0 | if (GetOwningArena() != nullptr && |
5598 | 0 | GetOwningArena() == other->GetOwningArena()) { |
5599 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
5600 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
5601 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
5602 | 0 | InternalSwap(other); |
5603 | 0 | } else { |
5604 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
5605 | 0 | } |
5606 | 0 | } |
5607 | 0 | void UnsafeArenaSwap(ExpressionList* other) { |
5608 | 0 | if (other == this) return; |
5609 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
5610 | 0 | InternalSwap(other); |
5611 | 0 | } |
5612 | | |
5613 | | // implements Message ---------------------------------------------- |
5614 | | |
5615 | 36.2k | ExpressionList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
5616 | 36.2k | return CreateMaybeMessage<ExpressionList>(arena); |
5617 | 36.2k | } |
5618 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
5619 | | void CopyFrom(const ExpressionList& from); |
5620 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
5621 | 0 | void MergeFrom( const ExpressionList& from) { |
5622 | 0 | ExpressionList::MergeImpl(*this, from); |
5623 | 0 | } |
5624 | | private: |
5625 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
5626 | | public: |
5627 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
5628 | | bool IsInitialized() const final; |
5629 | | |
5630 | | size_t ByteSizeLong() const final; |
5631 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
5632 | | uint8_t* _InternalSerialize( |
5633 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
5634 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
5635 | | |
5636 | | private: |
5637 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
5638 | | void SharedDtor(); |
5639 | | void SetCachedSize(int size) const final; |
5640 | | void InternalSwap(ExpressionList* other); |
5641 | | |
5642 | | private: |
5643 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
5644 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
5645 | 0 | return "lua_grammar.ExpressionList"; |
5646 | 0 | } |
5647 | | protected: |
5648 | | explicit ExpressionList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5649 | | bool is_message_owned = false); |
5650 | | public: |
5651 | | |
5652 | | static const ClassData _class_data_; |
5653 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
5654 | | |
5655 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
5656 | | |
5657 | | // nested types ---------------------------------------------------- |
5658 | | |
5659 | | // accessors ------------------------------------------------------- |
5660 | | |
5661 | | enum : int { |
5662 | | kExpressionsFieldNumber = 1, |
5663 | | kExplastFieldNumber = 2, |
5664 | | }; |
5665 | | // repeated .lua_grammar.Expression expressions = 1; |
5666 | | int expressions_size() const; |
5667 | | private: |
5668 | | int _internal_expressions_size() const; |
5669 | | public: |
5670 | | void clear_expressions(); |
5671 | | ::lua_grammar::Expression* mutable_expressions(int index); |
5672 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Expression >* |
5673 | | mutable_expressions(); |
5674 | | private: |
5675 | | const ::lua_grammar::Expression& _internal_expressions(int index) const; |
5676 | | ::lua_grammar::Expression* _internal_add_expressions(); |
5677 | | public: |
5678 | | const ::lua_grammar::Expression& expressions(int index) const; |
5679 | | ::lua_grammar::Expression* add_expressions(); |
5680 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Expression >& |
5681 | | expressions() const; |
5682 | | |
5683 | | // required .lua_grammar.Expression explast = 2; |
5684 | | bool has_explast() const; |
5685 | | private: |
5686 | | bool _internal_has_explast() const; |
5687 | | public: |
5688 | | void clear_explast(); |
5689 | | const ::lua_grammar::Expression& explast() const; |
5690 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_explast(); |
5691 | | ::lua_grammar::Expression* mutable_explast(); |
5692 | | void set_allocated_explast(::lua_grammar::Expression* explast); |
5693 | | private: |
5694 | | const ::lua_grammar::Expression& _internal_explast() const; |
5695 | | ::lua_grammar::Expression* _internal_mutable_explast(); |
5696 | | public: |
5697 | | void unsafe_arena_set_allocated_explast( |
5698 | | ::lua_grammar::Expression* explast); |
5699 | | ::lua_grammar::Expression* unsafe_arena_release_explast(); |
5700 | | |
5701 | | // @@protoc_insertion_point(class_scope:lua_grammar.ExpressionList) |
5702 | | private: |
5703 | | class _Internal; |
5704 | | |
5705 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
5706 | | typedef void InternalArenaConstructable_; |
5707 | | typedef void DestructorSkippable_; |
5708 | | struct Impl_ { |
5709 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
5710 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
5711 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Expression > expressions_; |
5712 | | ::lua_grammar::Expression* explast_; |
5713 | | }; |
5714 | | union { Impl_ _impl_; }; |
5715 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
5716 | | }; |
5717 | | // ------------------------------------------------------------------- |
5718 | | |
5719 | | class OptionalExpressionList final : |
5720 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.OptionalExpressionList) */ { |
5721 | | public: |
5722 | 0 | inline OptionalExpressionList() : OptionalExpressionList(nullptr) {} |
5723 | | ~OptionalExpressionList() override; |
5724 | | explicit PROTOBUF_CONSTEXPR OptionalExpressionList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
5725 | | |
5726 | | OptionalExpressionList(const OptionalExpressionList& from); |
5727 | | OptionalExpressionList(OptionalExpressionList&& from) noexcept |
5728 | 0 | : OptionalExpressionList() { |
5729 | 0 | *this = ::std::move(from); |
5730 | 0 | } |
5731 | | |
5732 | 0 | inline OptionalExpressionList& operator=(const OptionalExpressionList& from) { |
5733 | 0 | CopyFrom(from); |
5734 | 0 | return *this; |
5735 | 0 | } |
5736 | 0 | inline OptionalExpressionList& operator=(OptionalExpressionList&& from) noexcept { |
5737 | 0 | if (this == &from) return *this; |
5738 | 0 | if (GetOwningArena() == from.GetOwningArena() |
5739 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
5740 | 0 | && GetOwningArena() != nullptr |
5741 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
5742 | 0 | ) { |
5743 | 0 | InternalSwap(&from); |
5744 | 0 | } else { |
5745 | 0 | CopyFrom(from); |
5746 | 0 | } |
5747 | 0 | return *this; |
5748 | 0 | } |
5749 | | |
5750 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
5751 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
5752 | 0 | } |
5753 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
5754 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5755 | 0 | } |
5756 | | |
5757 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
5758 | 0 | return GetDescriptor(); |
5759 | 0 | } |
5760 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
5761 | 0 | return default_instance().GetMetadata().descriptor; |
5762 | 0 | } |
5763 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
5764 | 0 | return default_instance().GetMetadata().reflection; |
5765 | 0 | } |
5766 | 0 | static const OptionalExpressionList& default_instance() { |
5767 | 0 | return *internal_default_instance(); |
5768 | 0 | } |
5769 | 3.08k | static inline const OptionalExpressionList* internal_default_instance() { |
5770 | 3.08k | return reinterpret_cast<const OptionalExpressionList*>( |
5771 | 3.08k | &_OptionalExpressionList_default_instance_); |
5772 | 3.08k | } |
5773 | | static constexpr int kIndexInFileMessages = |
5774 | | 27; |
5775 | | |
5776 | 0 | friend void swap(OptionalExpressionList& a, OptionalExpressionList& b) { |
5777 | 0 | a.Swap(&b); |
5778 | 0 | } |
5779 | 0 | inline void Swap(OptionalExpressionList* other) { |
5780 | 0 | if (other == this) return; |
5781 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
5782 | 0 | if (GetOwningArena() != nullptr && |
5783 | 0 | GetOwningArena() == other->GetOwningArena()) { |
5784 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
5785 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
5786 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
5787 | 0 | InternalSwap(other); |
5788 | 0 | } else { |
5789 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
5790 | 0 | } |
5791 | 0 | } |
5792 | 0 | void UnsafeArenaSwap(OptionalExpressionList* other) { |
5793 | 0 | if (other == this) return; |
5794 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
5795 | 0 | InternalSwap(other); |
5796 | 0 | } |
5797 | | |
5798 | | // implements Message ---------------------------------------------- |
5799 | | |
5800 | 3.08k | OptionalExpressionList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
5801 | 3.08k | return CreateMaybeMessage<OptionalExpressionList>(arena); |
5802 | 3.08k | } |
5803 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
5804 | | void CopyFrom(const OptionalExpressionList& from); |
5805 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
5806 | 0 | void MergeFrom( const OptionalExpressionList& from) { |
5807 | 0 | OptionalExpressionList::MergeImpl(*this, from); |
5808 | 0 | } |
5809 | | private: |
5810 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
5811 | | public: |
5812 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
5813 | | bool IsInitialized() const final; |
5814 | | |
5815 | | size_t ByteSizeLong() const final; |
5816 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
5817 | | uint8_t* _InternalSerialize( |
5818 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
5819 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
5820 | | |
5821 | | private: |
5822 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
5823 | | void SharedDtor(); |
5824 | | void SetCachedSize(int size) const final; |
5825 | | void InternalSwap(OptionalExpressionList* other); |
5826 | | |
5827 | | private: |
5828 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
5829 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
5830 | 0 | return "lua_grammar.OptionalExpressionList"; |
5831 | 0 | } |
5832 | | protected: |
5833 | | explicit OptionalExpressionList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5834 | | bool is_message_owned = false); |
5835 | | public: |
5836 | | |
5837 | | static const ClassData _class_data_; |
5838 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
5839 | | |
5840 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
5841 | | |
5842 | | // nested types ---------------------------------------------------- |
5843 | | |
5844 | | // accessors ------------------------------------------------------- |
5845 | | |
5846 | | enum : int { |
5847 | | kExplistFieldNumber = 1, |
5848 | | }; |
5849 | | // optional .lua_grammar.ExpressionList explist = 1; |
5850 | | bool has_explist() const; |
5851 | | private: |
5852 | | bool _internal_has_explist() const; |
5853 | | public: |
5854 | | void clear_explist(); |
5855 | | const ::lua_grammar::ExpressionList& explist() const; |
5856 | | PROTOBUF_NODISCARD ::lua_grammar::ExpressionList* release_explist(); |
5857 | | ::lua_grammar::ExpressionList* mutable_explist(); |
5858 | | void set_allocated_explist(::lua_grammar::ExpressionList* explist); |
5859 | | private: |
5860 | | const ::lua_grammar::ExpressionList& _internal_explist() const; |
5861 | | ::lua_grammar::ExpressionList* _internal_mutable_explist(); |
5862 | | public: |
5863 | | void unsafe_arena_set_allocated_explist( |
5864 | | ::lua_grammar::ExpressionList* explist); |
5865 | | ::lua_grammar::ExpressionList* unsafe_arena_release_explist(); |
5866 | | |
5867 | | // @@protoc_insertion_point(class_scope:lua_grammar.OptionalExpressionList) |
5868 | | private: |
5869 | | class _Internal; |
5870 | | |
5871 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
5872 | | typedef void InternalArenaConstructable_; |
5873 | | typedef void DestructorSkippable_; |
5874 | | struct Impl_ { |
5875 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
5876 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
5877 | | ::lua_grammar::ExpressionList* explist_; |
5878 | | }; |
5879 | | union { Impl_ _impl_; }; |
5880 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
5881 | | }; |
5882 | | // ------------------------------------------------------------------- |
5883 | | |
5884 | | class Variable_IndexWithExpression final : |
5885 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Variable.IndexWithExpression) */ { |
5886 | | public: |
5887 | 0 | inline Variable_IndexWithExpression() : Variable_IndexWithExpression(nullptr) {} |
5888 | | ~Variable_IndexWithExpression() override; |
5889 | | explicit PROTOBUF_CONSTEXPR Variable_IndexWithExpression(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
5890 | | |
5891 | | Variable_IndexWithExpression(const Variable_IndexWithExpression& from); |
5892 | | Variable_IndexWithExpression(Variable_IndexWithExpression&& from) noexcept |
5893 | 0 | : Variable_IndexWithExpression() { |
5894 | 0 | *this = ::std::move(from); |
5895 | 0 | } |
5896 | | |
5897 | 0 | inline Variable_IndexWithExpression& operator=(const Variable_IndexWithExpression& from) { |
5898 | 0 | CopyFrom(from); |
5899 | 0 | return *this; |
5900 | 0 | } |
5901 | 0 | inline Variable_IndexWithExpression& operator=(Variable_IndexWithExpression&& from) noexcept { |
5902 | 0 | if (this == &from) return *this; |
5903 | 0 | if (GetOwningArena() == from.GetOwningArena() |
5904 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
5905 | 0 | && GetOwningArena() != nullptr |
5906 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
5907 | 0 | ) { |
5908 | 0 | InternalSwap(&from); |
5909 | 0 | } else { |
5910 | 0 | CopyFrom(from); |
5911 | 0 | } |
5912 | 0 | return *this; |
5913 | 0 | } |
5914 | | |
5915 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
5916 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
5917 | 0 | } |
5918 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
5919 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
5920 | 0 | } |
5921 | | |
5922 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
5923 | 0 | return GetDescriptor(); |
5924 | 0 | } |
5925 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
5926 | 0 | return default_instance().GetMetadata().descriptor; |
5927 | 0 | } |
5928 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
5929 | 0 | return default_instance().GetMetadata().reflection; |
5930 | 0 | } |
5931 | 0 | static const Variable_IndexWithExpression& default_instance() { |
5932 | 0 | return *internal_default_instance(); |
5933 | 0 | } |
5934 | 9.01k | static inline const Variable_IndexWithExpression* internal_default_instance() { |
5935 | 9.01k | return reinterpret_cast<const Variable_IndexWithExpression*>( |
5936 | 9.01k | &_Variable_IndexWithExpression_default_instance_); |
5937 | 9.01k | } |
5938 | | static constexpr int kIndexInFileMessages = |
5939 | | 28; |
5940 | | |
5941 | 0 | friend void swap(Variable_IndexWithExpression& a, Variable_IndexWithExpression& b) { |
5942 | 0 | a.Swap(&b); |
5943 | 0 | } |
5944 | 0 | inline void Swap(Variable_IndexWithExpression* other) { |
5945 | 0 | if (other == this) return; |
5946 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
5947 | 0 | if (GetOwningArena() != nullptr && |
5948 | 0 | GetOwningArena() == other->GetOwningArena()) { |
5949 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
5950 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
5951 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
5952 | 0 | InternalSwap(other); |
5953 | 0 | } else { |
5954 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
5955 | 0 | } |
5956 | 0 | } |
5957 | 0 | void UnsafeArenaSwap(Variable_IndexWithExpression* other) { |
5958 | 0 | if (other == this) return; |
5959 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
5960 | 0 | InternalSwap(other); |
5961 | 0 | } |
5962 | | |
5963 | | // implements Message ---------------------------------------------- |
5964 | | |
5965 | 4.50k | Variable_IndexWithExpression* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
5966 | 4.50k | return CreateMaybeMessage<Variable_IndexWithExpression>(arena); |
5967 | 4.50k | } |
5968 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
5969 | | void CopyFrom(const Variable_IndexWithExpression& from); |
5970 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
5971 | 0 | void MergeFrom( const Variable_IndexWithExpression& from) { |
5972 | 0 | Variable_IndexWithExpression::MergeImpl(*this, from); |
5973 | 0 | } |
5974 | | private: |
5975 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
5976 | | public: |
5977 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
5978 | | bool IsInitialized() const final; |
5979 | | |
5980 | | size_t ByteSizeLong() const final; |
5981 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
5982 | | uint8_t* _InternalSerialize( |
5983 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
5984 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
5985 | | |
5986 | | private: |
5987 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
5988 | | void SharedDtor(); |
5989 | | void SetCachedSize(int size) const final; |
5990 | | void InternalSwap(Variable_IndexWithExpression* other); |
5991 | | |
5992 | | private: |
5993 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
5994 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
5995 | 0 | return "lua_grammar.Variable.IndexWithExpression"; |
5996 | 0 | } |
5997 | | protected: |
5998 | | explicit Variable_IndexWithExpression(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
5999 | | bool is_message_owned = false); |
6000 | | public: |
6001 | | |
6002 | | static const ClassData _class_data_; |
6003 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
6004 | | |
6005 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
6006 | | |
6007 | | // nested types ---------------------------------------------------- |
6008 | | |
6009 | | // accessors ------------------------------------------------------- |
6010 | | |
6011 | | enum : int { |
6012 | | kPrefixexpFieldNumber = 1, |
6013 | | kExpFieldNumber = 2, |
6014 | | }; |
6015 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
6016 | | bool has_prefixexp() const; |
6017 | | private: |
6018 | | bool _internal_has_prefixexp() const; |
6019 | | public: |
6020 | | void clear_prefixexp(); |
6021 | | const ::lua_grammar::PrefixExpression& prefixexp() const; |
6022 | | PROTOBUF_NODISCARD ::lua_grammar::PrefixExpression* release_prefixexp(); |
6023 | | ::lua_grammar::PrefixExpression* mutable_prefixexp(); |
6024 | | void set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp); |
6025 | | private: |
6026 | | const ::lua_grammar::PrefixExpression& _internal_prefixexp() const; |
6027 | | ::lua_grammar::PrefixExpression* _internal_mutable_prefixexp(); |
6028 | | public: |
6029 | | void unsafe_arena_set_allocated_prefixexp( |
6030 | | ::lua_grammar::PrefixExpression* prefixexp); |
6031 | | ::lua_grammar::PrefixExpression* unsafe_arena_release_prefixexp(); |
6032 | | |
6033 | | // required .lua_grammar.Expression exp = 2; |
6034 | | bool has_exp() const; |
6035 | | private: |
6036 | | bool _internal_has_exp() const; |
6037 | | public: |
6038 | | void clear_exp(); |
6039 | | const ::lua_grammar::Expression& exp() const; |
6040 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_exp(); |
6041 | | ::lua_grammar::Expression* mutable_exp(); |
6042 | | void set_allocated_exp(::lua_grammar::Expression* exp); |
6043 | | private: |
6044 | | const ::lua_grammar::Expression& _internal_exp() const; |
6045 | | ::lua_grammar::Expression* _internal_mutable_exp(); |
6046 | | public: |
6047 | | void unsafe_arena_set_allocated_exp( |
6048 | | ::lua_grammar::Expression* exp); |
6049 | | ::lua_grammar::Expression* unsafe_arena_release_exp(); |
6050 | | |
6051 | | // @@protoc_insertion_point(class_scope:lua_grammar.Variable.IndexWithExpression) |
6052 | | private: |
6053 | | class _Internal; |
6054 | | |
6055 | | // helper for ByteSizeLong() |
6056 | | size_t RequiredFieldsByteSizeFallback() const; |
6057 | | |
6058 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
6059 | | typedef void InternalArenaConstructable_; |
6060 | | typedef void DestructorSkippable_; |
6061 | | struct Impl_ { |
6062 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
6063 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
6064 | | ::lua_grammar::PrefixExpression* prefixexp_; |
6065 | | ::lua_grammar::Expression* exp_; |
6066 | | }; |
6067 | | union { Impl_ _impl_; }; |
6068 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
6069 | | }; |
6070 | | // ------------------------------------------------------------------- |
6071 | | |
6072 | | class Variable_IndexWithName final : |
6073 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Variable.IndexWithName) */ { |
6074 | | public: |
6075 | 0 | inline Variable_IndexWithName() : Variable_IndexWithName(nullptr) {} |
6076 | | ~Variable_IndexWithName() override; |
6077 | | explicit PROTOBUF_CONSTEXPR Variable_IndexWithName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
6078 | | |
6079 | | Variable_IndexWithName(const Variable_IndexWithName& from); |
6080 | | Variable_IndexWithName(Variable_IndexWithName&& from) noexcept |
6081 | 0 | : Variable_IndexWithName() { |
6082 | 0 | *this = ::std::move(from); |
6083 | 0 | } |
6084 | | |
6085 | 0 | inline Variable_IndexWithName& operator=(const Variable_IndexWithName& from) { |
6086 | 0 | CopyFrom(from); |
6087 | 0 | return *this; |
6088 | 0 | } |
6089 | 0 | inline Variable_IndexWithName& operator=(Variable_IndexWithName&& from) noexcept { |
6090 | 0 | if (this == &from) return *this; |
6091 | 0 | if (GetOwningArena() == from.GetOwningArena() |
6092 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
6093 | 0 | && GetOwningArena() != nullptr |
6094 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
6095 | 0 | ) { |
6096 | 0 | InternalSwap(&from); |
6097 | 0 | } else { |
6098 | 0 | CopyFrom(from); |
6099 | 0 | } |
6100 | 0 | return *this; |
6101 | 0 | } |
6102 | | |
6103 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
6104 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
6105 | 0 | } |
6106 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
6107 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
6108 | 0 | } |
6109 | | |
6110 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
6111 | 0 | return GetDescriptor(); |
6112 | 0 | } |
6113 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
6114 | 0 | return default_instance().GetMetadata().descriptor; |
6115 | 0 | } |
6116 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
6117 | 0 | return default_instance().GetMetadata().reflection; |
6118 | 0 | } |
6119 | 0 | static const Variable_IndexWithName& default_instance() { |
6120 | 0 | return *internal_default_instance(); |
6121 | 0 | } |
6122 | 4.56k | static inline const Variable_IndexWithName* internal_default_instance() { |
6123 | 4.56k | return reinterpret_cast<const Variable_IndexWithName*>( |
6124 | 4.56k | &_Variable_IndexWithName_default_instance_); |
6125 | 4.56k | } |
6126 | | static constexpr int kIndexInFileMessages = |
6127 | | 29; |
6128 | | |
6129 | 0 | friend void swap(Variable_IndexWithName& a, Variable_IndexWithName& b) { |
6130 | 0 | a.Swap(&b); |
6131 | 0 | } |
6132 | 0 | inline void Swap(Variable_IndexWithName* other) { |
6133 | 0 | if (other == this) return; |
6134 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
6135 | 0 | if (GetOwningArena() != nullptr && |
6136 | 0 | GetOwningArena() == other->GetOwningArena()) { |
6137 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
6138 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
6139 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
6140 | 0 | InternalSwap(other); |
6141 | 0 | } else { |
6142 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
6143 | 0 | } |
6144 | 0 | } |
6145 | 0 | void UnsafeArenaSwap(Variable_IndexWithName* other) { |
6146 | 0 | if (other == this) return; |
6147 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
6148 | 0 | InternalSwap(other); |
6149 | 0 | } |
6150 | | |
6151 | | // implements Message ---------------------------------------------- |
6152 | | |
6153 | 4.56k | Variable_IndexWithName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
6154 | 4.56k | return CreateMaybeMessage<Variable_IndexWithName>(arena); |
6155 | 4.56k | } |
6156 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
6157 | | void CopyFrom(const Variable_IndexWithName& from); |
6158 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
6159 | 0 | void MergeFrom( const Variable_IndexWithName& from) { |
6160 | 0 | Variable_IndexWithName::MergeImpl(*this, from); |
6161 | 0 | } |
6162 | | private: |
6163 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
6164 | | public: |
6165 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
6166 | | bool IsInitialized() const final; |
6167 | | |
6168 | | size_t ByteSizeLong() const final; |
6169 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
6170 | | uint8_t* _InternalSerialize( |
6171 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
6172 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
6173 | | |
6174 | | private: |
6175 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
6176 | | void SharedDtor(); |
6177 | | void SetCachedSize(int size) const final; |
6178 | | void InternalSwap(Variable_IndexWithName* other); |
6179 | | |
6180 | | private: |
6181 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
6182 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
6183 | 0 | return "lua_grammar.Variable.IndexWithName"; |
6184 | 0 | } |
6185 | | protected: |
6186 | | explicit Variable_IndexWithName(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6187 | | bool is_message_owned = false); |
6188 | | public: |
6189 | | |
6190 | | static const ClassData _class_data_; |
6191 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
6192 | | |
6193 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
6194 | | |
6195 | | // nested types ---------------------------------------------------- |
6196 | | |
6197 | | // accessors ------------------------------------------------------- |
6198 | | |
6199 | | enum : int { |
6200 | | kNameFieldNumber = 2, |
6201 | | kPrefixexpFieldNumber = 1, |
6202 | | }; |
6203 | | // required string Name = 2; |
6204 | | bool has_name() const; |
6205 | | private: |
6206 | | bool _internal_has_name() const; |
6207 | | public: |
6208 | | void clear_name(); |
6209 | | const std::string& name() const; |
6210 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
6211 | | void set_name(ArgT0&& arg0, ArgT... args); |
6212 | | std::string* mutable_name(); |
6213 | | PROTOBUF_NODISCARD std::string* release_name(); |
6214 | | void set_allocated_name(std::string* name); |
6215 | | private: |
6216 | | const std::string& _internal_name() const; |
6217 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); |
6218 | | std::string* _internal_mutable_name(); |
6219 | | public: |
6220 | | |
6221 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
6222 | | bool has_prefixexp() const; |
6223 | | private: |
6224 | | bool _internal_has_prefixexp() const; |
6225 | | public: |
6226 | | void clear_prefixexp(); |
6227 | | const ::lua_grammar::PrefixExpression& prefixexp() const; |
6228 | | PROTOBUF_NODISCARD ::lua_grammar::PrefixExpression* release_prefixexp(); |
6229 | | ::lua_grammar::PrefixExpression* mutable_prefixexp(); |
6230 | | void set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp); |
6231 | | private: |
6232 | | const ::lua_grammar::PrefixExpression& _internal_prefixexp() const; |
6233 | | ::lua_grammar::PrefixExpression* _internal_mutable_prefixexp(); |
6234 | | public: |
6235 | | void unsafe_arena_set_allocated_prefixexp( |
6236 | | ::lua_grammar::PrefixExpression* prefixexp); |
6237 | | ::lua_grammar::PrefixExpression* unsafe_arena_release_prefixexp(); |
6238 | | |
6239 | | // @@protoc_insertion_point(class_scope:lua_grammar.Variable.IndexWithName) |
6240 | | private: |
6241 | | class _Internal; |
6242 | | |
6243 | | // helper for ByteSizeLong() |
6244 | | size_t RequiredFieldsByteSizeFallback() const; |
6245 | | |
6246 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
6247 | | typedef void InternalArenaConstructable_; |
6248 | | typedef void DestructorSkippable_; |
6249 | | struct Impl_ { |
6250 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
6251 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
6252 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
6253 | | ::lua_grammar::PrefixExpression* prefixexp_; |
6254 | | }; |
6255 | | union { Impl_ _impl_; }; |
6256 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
6257 | | }; |
6258 | | // ------------------------------------------------------------------- |
6259 | | |
6260 | | class Variable final : |
6261 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Variable) */ { |
6262 | | public: |
6263 | 0 | inline Variable() : Variable(nullptr) {} |
6264 | | ~Variable() override; |
6265 | | explicit PROTOBUF_CONSTEXPR Variable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
6266 | | |
6267 | | Variable(const Variable& from); |
6268 | | Variable(Variable&& from) noexcept |
6269 | 0 | : Variable() { |
6270 | 0 | *this = ::std::move(from); |
6271 | 0 | } |
6272 | | |
6273 | 0 | inline Variable& operator=(const Variable& from) { |
6274 | 0 | CopyFrom(from); |
6275 | 0 | return *this; |
6276 | 0 | } |
6277 | 0 | inline Variable& operator=(Variable&& from) noexcept { |
6278 | 0 | if (this == &from) return *this; |
6279 | 0 | if (GetOwningArena() == from.GetOwningArena() |
6280 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
6281 | 0 | && GetOwningArena() != nullptr |
6282 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
6283 | 0 | ) { |
6284 | 0 | InternalSwap(&from); |
6285 | 0 | } else { |
6286 | 0 | CopyFrom(from); |
6287 | 0 | } |
6288 | 0 | return *this; |
6289 | 0 | } |
6290 | | |
6291 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
6292 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
6293 | 0 | } |
6294 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
6295 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
6296 | 0 | } |
6297 | | |
6298 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
6299 | 0 | return GetDescriptor(); |
6300 | 0 | } |
6301 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
6302 | 0 | return default_instance().GetMetadata().descriptor; |
6303 | 0 | } |
6304 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
6305 | 0 | return default_instance().GetMetadata().reflection; |
6306 | 0 | } |
6307 | 0 | static const Variable& default_instance() { |
6308 | 0 | return *internal_default_instance(); |
6309 | 0 | } |
6310 | | enum VarOneofCase { |
6311 | | kName = 1, |
6312 | | kIndexexpr = 2, |
6313 | | kIndexname = 3, |
6314 | | VAR_ONEOF_NOT_SET = 0, |
6315 | | }; |
6316 | | |
6317 | 0 | static inline const Variable* internal_default_instance() { |
6318 | 0 | return reinterpret_cast<const Variable*>( |
6319 | 0 | &_Variable_default_instance_); |
6320 | 0 | } |
6321 | | static constexpr int kIndexInFileMessages = |
6322 | | 30; |
6323 | | |
6324 | 0 | friend void swap(Variable& a, Variable& b) { |
6325 | 0 | a.Swap(&b); |
6326 | 0 | } |
6327 | 0 | inline void Swap(Variable* other) { |
6328 | 0 | if (other == this) return; |
6329 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
6330 | 0 | if (GetOwningArena() != nullptr && |
6331 | 0 | GetOwningArena() == other->GetOwningArena()) { |
6332 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
6333 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
6334 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
6335 | 0 | InternalSwap(other); |
6336 | 0 | } else { |
6337 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
6338 | 0 | } |
6339 | 0 | } |
6340 | 0 | void UnsafeArenaSwap(Variable* other) { |
6341 | 0 | if (other == this) return; |
6342 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
6343 | 0 | InternalSwap(other); |
6344 | 0 | } |
6345 | | |
6346 | | // implements Message ---------------------------------------------- |
6347 | | |
6348 | 19.1k | Variable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
6349 | 19.1k | return CreateMaybeMessage<Variable>(arena); |
6350 | 19.1k | } |
6351 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
6352 | | void CopyFrom(const Variable& from); |
6353 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
6354 | 0 | void MergeFrom( const Variable& from) { |
6355 | 0 | Variable::MergeImpl(*this, from); |
6356 | 0 | } |
6357 | | private: |
6358 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
6359 | | public: |
6360 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
6361 | | bool IsInitialized() const final; |
6362 | | |
6363 | | size_t ByteSizeLong() const final; |
6364 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
6365 | | uint8_t* _InternalSerialize( |
6366 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
6367 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
6368 | | |
6369 | | private: |
6370 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
6371 | | void SharedDtor(); |
6372 | | void SetCachedSize(int size) const final; |
6373 | | void InternalSwap(Variable* other); |
6374 | | |
6375 | | private: |
6376 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
6377 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
6378 | 0 | return "lua_grammar.Variable"; |
6379 | 0 | } |
6380 | | protected: |
6381 | | explicit Variable(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6382 | | bool is_message_owned = false); |
6383 | | public: |
6384 | | |
6385 | | static const ClassData _class_data_; |
6386 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
6387 | | |
6388 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
6389 | | |
6390 | | // nested types ---------------------------------------------------- |
6391 | | |
6392 | | typedef Variable_IndexWithExpression IndexWithExpression; |
6393 | | typedef Variable_IndexWithName IndexWithName; |
6394 | | |
6395 | | // accessors ------------------------------------------------------- |
6396 | | |
6397 | | enum : int { |
6398 | | kNameFieldNumber = 1, |
6399 | | kIndexexprFieldNumber = 2, |
6400 | | kIndexnameFieldNumber = 3, |
6401 | | }; |
6402 | | // .lua_grammar.Name name = 1; |
6403 | | bool has_name() const; |
6404 | | private: |
6405 | | bool _internal_has_name() const; |
6406 | | public: |
6407 | | void clear_name(); |
6408 | | const ::lua_grammar::Name& name() const; |
6409 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_name(); |
6410 | | ::lua_grammar::Name* mutable_name(); |
6411 | | void set_allocated_name(::lua_grammar::Name* name); |
6412 | | private: |
6413 | | const ::lua_grammar::Name& _internal_name() const; |
6414 | | ::lua_grammar::Name* _internal_mutable_name(); |
6415 | | public: |
6416 | | void unsafe_arena_set_allocated_name( |
6417 | | ::lua_grammar::Name* name); |
6418 | | ::lua_grammar::Name* unsafe_arena_release_name(); |
6419 | | |
6420 | | // .lua_grammar.Variable.IndexWithExpression indexexpr = 2; |
6421 | | bool has_indexexpr() const; |
6422 | | private: |
6423 | | bool _internal_has_indexexpr() const; |
6424 | | public: |
6425 | | void clear_indexexpr(); |
6426 | | const ::lua_grammar::Variable_IndexWithExpression& indexexpr() const; |
6427 | | PROTOBUF_NODISCARD ::lua_grammar::Variable_IndexWithExpression* release_indexexpr(); |
6428 | | ::lua_grammar::Variable_IndexWithExpression* mutable_indexexpr(); |
6429 | | void set_allocated_indexexpr(::lua_grammar::Variable_IndexWithExpression* indexexpr); |
6430 | | private: |
6431 | | const ::lua_grammar::Variable_IndexWithExpression& _internal_indexexpr() const; |
6432 | | ::lua_grammar::Variable_IndexWithExpression* _internal_mutable_indexexpr(); |
6433 | | public: |
6434 | | void unsafe_arena_set_allocated_indexexpr( |
6435 | | ::lua_grammar::Variable_IndexWithExpression* indexexpr); |
6436 | | ::lua_grammar::Variable_IndexWithExpression* unsafe_arena_release_indexexpr(); |
6437 | | |
6438 | | // .lua_grammar.Variable.IndexWithName indexname = 3; |
6439 | | bool has_indexname() const; |
6440 | | private: |
6441 | | bool _internal_has_indexname() const; |
6442 | | public: |
6443 | | void clear_indexname(); |
6444 | | const ::lua_grammar::Variable_IndexWithName& indexname() const; |
6445 | | PROTOBUF_NODISCARD ::lua_grammar::Variable_IndexWithName* release_indexname(); |
6446 | | ::lua_grammar::Variable_IndexWithName* mutable_indexname(); |
6447 | | void set_allocated_indexname(::lua_grammar::Variable_IndexWithName* indexname); |
6448 | | private: |
6449 | | const ::lua_grammar::Variable_IndexWithName& _internal_indexname() const; |
6450 | | ::lua_grammar::Variable_IndexWithName* _internal_mutable_indexname(); |
6451 | | public: |
6452 | | void unsafe_arena_set_allocated_indexname( |
6453 | | ::lua_grammar::Variable_IndexWithName* indexname); |
6454 | | ::lua_grammar::Variable_IndexWithName* unsafe_arena_release_indexname(); |
6455 | | |
6456 | | void clear_var_oneof(); |
6457 | | VarOneofCase var_oneof_case() const; |
6458 | | // @@protoc_insertion_point(class_scope:lua_grammar.Variable) |
6459 | | private: |
6460 | | class _Internal; |
6461 | | void set_has_name(); |
6462 | | void set_has_indexexpr(); |
6463 | | void set_has_indexname(); |
6464 | | |
6465 | | inline bool has_var_oneof() const; |
6466 | | inline void clear_has_var_oneof(); |
6467 | | |
6468 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
6469 | | typedef void InternalArenaConstructable_; |
6470 | | typedef void DestructorSkippable_; |
6471 | | struct Impl_ { |
6472 | | union VarOneofUnion { |
6473 | 19.1k | constexpr VarOneofUnion() : _constinit_{} {} |
6474 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
6475 | | ::lua_grammar::Name* name_; |
6476 | | ::lua_grammar::Variable_IndexWithExpression* indexexpr_; |
6477 | | ::lua_grammar::Variable_IndexWithName* indexname_; |
6478 | | } var_oneof_; |
6479 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
6480 | | uint32_t _oneof_case_[1]; |
6481 | | |
6482 | | }; |
6483 | | union { Impl_ _impl_; }; |
6484 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
6485 | | }; |
6486 | | // ------------------------------------------------------------------- |
6487 | | |
6488 | | class PrefixExpression final : |
6489 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.PrefixExpression) */ { |
6490 | | public: |
6491 | 0 | inline PrefixExpression() : PrefixExpression(nullptr) {} |
6492 | | ~PrefixExpression() override; |
6493 | | explicit PROTOBUF_CONSTEXPR PrefixExpression(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
6494 | | |
6495 | | PrefixExpression(const PrefixExpression& from); |
6496 | | PrefixExpression(PrefixExpression&& from) noexcept |
6497 | 0 | : PrefixExpression() { |
6498 | 0 | *this = ::std::move(from); |
6499 | 0 | } |
6500 | | |
6501 | 0 | inline PrefixExpression& operator=(const PrefixExpression& from) { |
6502 | 0 | CopyFrom(from); |
6503 | 0 | return *this; |
6504 | 0 | } |
6505 | 0 | inline PrefixExpression& operator=(PrefixExpression&& from) noexcept { |
6506 | 0 | if (this == &from) return *this; |
6507 | 0 | if (GetOwningArena() == from.GetOwningArena() |
6508 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
6509 | 0 | && GetOwningArena() != nullptr |
6510 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
6511 | 0 | ) { |
6512 | 0 | InternalSwap(&from); |
6513 | 0 | } else { |
6514 | 0 | CopyFrom(from); |
6515 | 0 | } |
6516 | 0 | return *this; |
6517 | 0 | } |
6518 | | |
6519 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
6520 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
6521 | 0 | } |
6522 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
6523 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
6524 | 0 | } |
6525 | | |
6526 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
6527 | 0 | return GetDescriptor(); |
6528 | 0 | } |
6529 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
6530 | 0 | return default_instance().GetMetadata().descriptor; |
6531 | 0 | } |
6532 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
6533 | 0 | return default_instance().GetMetadata().reflection; |
6534 | 0 | } |
6535 | 0 | static const PrefixExpression& default_instance() { |
6536 | 0 | return *internal_default_instance(); |
6537 | 0 | } |
6538 | | enum PrefixOneofCase { |
6539 | | kVar = 1, |
6540 | | kFunctioncall = 2, |
6541 | | kExp = 3, |
6542 | | PREFIX_ONEOF_NOT_SET = 0, |
6543 | | }; |
6544 | | |
6545 | 0 | static inline const PrefixExpression* internal_default_instance() { |
6546 | 0 | return reinterpret_cast<const PrefixExpression*>( |
6547 | 0 | &_PrefixExpression_default_instance_); |
6548 | 0 | } |
6549 | | static constexpr int kIndexInFileMessages = |
6550 | | 31; |
6551 | | |
6552 | 0 | friend void swap(PrefixExpression& a, PrefixExpression& b) { |
6553 | 0 | a.Swap(&b); |
6554 | 0 | } |
6555 | 0 | inline void Swap(PrefixExpression* other) { |
6556 | 0 | if (other == this) return; |
6557 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
6558 | 0 | if (GetOwningArena() != nullptr && |
6559 | 0 | GetOwningArena() == other->GetOwningArena()) { |
6560 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
6561 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
6562 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
6563 | 0 | InternalSwap(other); |
6564 | 0 | } else { |
6565 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
6566 | 0 | } |
6567 | 0 | } |
6568 | 0 | void UnsafeArenaSwap(PrefixExpression* other) { |
6569 | 0 | if (other == this) return; |
6570 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
6571 | 0 | InternalSwap(other); |
6572 | 0 | } |
6573 | | |
6574 | | // implements Message ---------------------------------------------- |
6575 | | |
6576 | 30.7k | PrefixExpression* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
6577 | 30.7k | return CreateMaybeMessage<PrefixExpression>(arena); |
6578 | 30.7k | } |
6579 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
6580 | | void CopyFrom(const PrefixExpression& from); |
6581 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
6582 | 0 | void MergeFrom( const PrefixExpression& from) { |
6583 | 0 | PrefixExpression::MergeImpl(*this, from); |
6584 | 0 | } |
6585 | | private: |
6586 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
6587 | | public: |
6588 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
6589 | | bool IsInitialized() const final; |
6590 | | |
6591 | | size_t ByteSizeLong() const final; |
6592 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
6593 | | uint8_t* _InternalSerialize( |
6594 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
6595 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
6596 | | |
6597 | | private: |
6598 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
6599 | | void SharedDtor(); |
6600 | | void SetCachedSize(int size) const final; |
6601 | | void InternalSwap(PrefixExpression* other); |
6602 | | |
6603 | | private: |
6604 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
6605 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
6606 | 0 | return "lua_grammar.PrefixExpression"; |
6607 | 0 | } |
6608 | | protected: |
6609 | | explicit PrefixExpression(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6610 | | bool is_message_owned = false); |
6611 | | public: |
6612 | | |
6613 | | static const ClassData _class_data_; |
6614 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
6615 | | |
6616 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
6617 | | |
6618 | | // nested types ---------------------------------------------------- |
6619 | | |
6620 | | // accessors ------------------------------------------------------- |
6621 | | |
6622 | | enum : int { |
6623 | | kVarFieldNumber = 1, |
6624 | | kFunctioncallFieldNumber = 2, |
6625 | | kExpFieldNumber = 3, |
6626 | | }; |
6627 | | // .lua_grammar.Variable var = 1; |
6628 | | bool has_var() const; |
6629 | | private: |
6630 | | bool _internal_has_var() const; |
6631 | | public: |
6632 | | void clear_var(); |
6633 | | const ::lua_grammar::Variable& var() const; |
6634 | | PROTOBUF_NODISCARD ::lua_grammar::Variable* release_var(); |
6635 | | ::lua_grammar::Variable* mutable_var(); |
6636 | | void set_allocated_var(::lua_grammar::Variable* var); |
6637 | | private: |
6638 | | const ::lua_grammar::Variable& _internal_var() const; |
6639 | | ::lua_grammar::Variable* _internal_mutable_var(); |
6640 | | public: |
6641 | | void unsafe_arena_set_allocated_var( |
6642 | | ::lua_grammar::Variable* var); |
6643 | | ::lua_grammar::Variable* unsafe_arena_release_var(); |
6644 | | |
6645 | | // .lua_grammar.FunctionCall functioncall = 2; |
6646 | | bool has_functioncall() const; |
6647 | | private: |
6648 | | bool _internal_has_functioncall() const; |
6649 | | public: |
6650 | | void clear_functioncall(); |
6651 | | const ::lua_grammar::FunctionCall& functioncall() const; |
6652 | | PROTOBUF_NODISCARD ::lua_grammar::FunctionCall* release_functioncall(); |
6653 | | ::lua_grammar::FunctionCall* mutable_functioncall(); |
6654 | | void set_allocated_functioncall(::lua_grammar::FunctionCall* functioncall); |
6655 | | private: |
6656 | | const ::lua_grammar::FunctionCall& _internal_functioncall() const; |
6657 | | ::lua_grammar::FunctionCall* _internal_mutable_functioncall(); |
6658 | | public: |
6659 | | void unsafe_arena_set_allocated_functioncall( |
6660 | | ::lua_grammar::FunctionCall* functioncall); |
6661 | | ::lua_grammar::FunctionCall* unsafe_arena_release_functioncall(); |
6662 | | |
6663 | | // .lua_grammar.Expression exp = 3; |
6664 | | bool has_exp() const; |
6665 | | private: |
6666 | | bool _internal_has_exp() const; |
6667 | | public: |
6668 | | void clear_exp(); |
6669 | | const ::lua_grammar::Expression& exp() const; |
6670 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_exp(); |
6671 | | ::lua_grammar::Expression* mutable_exp(); |
6672 | | void set_allocated_exp(::lua_grammar::Expression* exp); |
6673 | | private: |
6674 | | const ::lua_grammar::Expression& _internal_exp() const; |
6675 | | ::lua_grammar::Expression* _internal_mutable_exp(); |
6676 | | public: |
6677 | | void unsafe_arena_set_allocated_exp( |
6678 | | ::lua_grammar::Expression* exp); |
6679 | | ::lua_grammar::Expression* unsafe_arena_release_exp(); |
6680 | | |
6681 | | void clear_prefix_oneof(); |
6682 | | PrefixOneofCase prefix_oneof_case() const; |
6683 | | // @@protoc_insertion_point(class_scope:lua_grammar.PrefixExpression) |
6684 | | private: |
6685 | | class _Internal; |
6686 | | void set_has_var(); |
6687 | | void set_has_functioncall(); |
6688 | | void set_has_exp(); |
6689 | | |
6690 | | inline bool has_prefix_oneof() const; |
6691 | | inline void clear_has_prefix_oneof(); |
6692 | | |
6693 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
6694 | | typedef void InternalArenaConstructable_; |
6695 | | typedef void DestructorSkippable_; |
6696 | | struct Impl_ { |
6697 | | union PrefixOneofUnion { |
6698 | 30.7k | constexpr PrefixOneofUnion() : _constinit_{} {} |
6699 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
6700 | | ::lua_grammar::Variable* var_; |
6701 | | ::lua_grammar::FunctionCall* functioncall_; |
6702 | | ::lua_grammar::Expression* exp_; |
6703 | | } prefix_oneof_; |
6704 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
6705 | | uint32_t _oneof_case_[1]; |
6706 | | |
6707 | | }; |
6708 | | union { Impl_ _impl_; }; |
6709 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
6710 | | }; |
6711 | | // ------------------------------------------------------------------- |
6712 | | |
6713 | | class Expression_AnonFunc final : |
6714 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Expression.AnonFunc) */ { |
6715 | | public: |
6716 | 0 | inline Expression_AnonFunc() : Expression_AnonFunc(nullptr) {} |
6717 | | ~Expression_AnonFunc() override; |
6718 | | explicit PROTOBUF_CONSTEXPR Expression_AnonFunc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
6719 | | |
6720 | | Expression_AnonFunc(const Expression_AnonFunc& from); |
6721 | | Expression_AnonFunc(Expression_AnonFunc&& from) noexcept |
6722 | 0 | : Expression_AnonFunc() { |
6723 | 0 | *this = ::std::move(from); |
6724 | 0 | } |
6725 | | |
6726 | 0 | inline Expression_AnonFunc& operator=(const Expression_AnonFunc& from) { |
6727 | 0 | CopyFrom(from); |
6728 | 0 | return *this; |
6729 | 0 | } |
6730 | 0 | inline Expression_AnonFunc& operator=(Expression_AnonFunc&& from) noexcept { |
6731 | 0 | if (this == &from) return *this; |
6732 | 0 | if (GetOwningArena() == from.GetOwningArena() |
6733 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
6734 | 0 | && GetOwningArena() != nullptr |
6735 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
6736 | 0 | ) { |
6737 | 0 | InternalSwap(&from); |
6738 | 0 | } else { |
6739 | 0 | CopyFrom(from); |
6740 | 0 | } |
6741 | 0 | return *this; |
6742 | 0 | } |
6743 | | |
6744 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
6745 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
6746 | 0 | } |
6747 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
6748 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
6749 | 0 | } |
6750 | | |
6751 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
6752 | 0 | return GetDescriptor(); |
6753 | 0 | } |
6754 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
6755 | 0 | return default_instance().GetMetadata().descriptor; |
6756 | 0 | } |
6757 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
6758 | 0 | return default_instance().GetMetadata().reflection; |
6759 | 0 | } |
6760 | 0 | static const Expression_AnonFunc& default_instance() { |
6761 | 0 | return *internal_default_instance(); |
6762 | 0 | } |
6763 | 13.1k | static inline const Expression_AnonFunc* internal_default_instance() { |
6764 | 13.1k | return reinterpret_cast<const Expression_AnonFunc*>( |
6765 | 13.1k | &_Expression_AnonFunc_default_instance_); |
6766 | 13.1k | } |
6767 | | static constexpr int kIndexInFileMessages = |
6768 | | 32; |
6769 | | |
6770 | 0 | friend void swap(Expression_AnonFunc& a, Expression_AnonFunc& b) { |
6771 | 0 | a.Swap(&b); |
6772 | 0 | } |
6773 | 0 | inline void Swap(Expression_AnonFunc* other) { |
6774 | 0 | if (other == this) return; |
6775 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
6776 | 0 | if (GetOwningArena() != nullptr && |
6777 | 0 | GetOwningArena() == other->GetOwningArena()) { |
6778 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
6779 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
6780 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
6781 | 0 | InternalSwap(other); |
6782 | 0 | } else { |
6783 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
6784 | 0 | } |
6785 | 0 | } |
6786 | 0 | void UnsafeArenaSwap(Expression_AnonFunc* other) { |
6787 | 0 | if (other == this) return; |
6788 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
6789 | 0 | InternalSwap(other); |
6790 | 0 | } |
6791 | | |
6792 | | // implements Message ---------------------------------------------- |
6793 | | |
6794 | 13.1k | Expression_AnonFunc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
6795 | 13.1k | return CreateMaybeMessage<Expression_AnonFunc>(arena); |
6796 | 13.1k | } |
6797 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
6798 | | void CopyFrom(const Expression_AnonFunc& from); |
6799 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
6800 | 0 | void MergeFrom( const Expression_AnonFunc& from) { |
6801 | 0 | Expression_AnonFunc::MergeImpl(*this, from); |
6802 | 0 | } |
6803 | | private: |
6804 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
6805 | | public: |
6806 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
6807 | | bool IsInitialized() const final; |
6808 | | |
6809 | | size_t ByteSizeLong() const final; |
6810 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
6811 | | uint8_t* _InternalSerialize( |
6812 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
6813 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
6814 | | |
6815 | | private: |
6816 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
6817 | | void SharedDtor(); |
6818 | | void SetCachedSize(int size) const final; |
6819 | | void InternalSwap(Expression_AnonFunc* other); |
6820 | | |
6821 | | private: |
6822 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
6823 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
6824 | 0 | return "lua_grammar.Expression.AnonFunc"; |
6825 | 0 | } |
6826 | | protected: |
6827 | | explicit Expression_AnonFunc(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6828 | | bool is_message_owned = false); |
6829 | | public: |
6830 | | |
6831 | | static const ClassData _class_data_; |
6832 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
6833 | | |
6834 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
6835 | | |
6836 | | // nested types ---------------------------------------------------- |
6837 | | |
6838 | | // accessors ------------------------------------------------------- |
6839 | | |
6840 | | enum : int { |
6841 | | kBodyFieldNumber = 1, |
6842 | | }; |
6843 | | // required .lua_grammar.FuncBody body = 1; |
6844 | | bool has_body() const; |
6845 | | private: |
6846 | | bool _internal_has_body() const; |
6847 | | public: |
6848 | | void clear_body(); |
6849 | | const ::lua_grammar::FuncBody& body() const; |
6850 | | PROTOBUF_NODISCARD ::lua_grammar::FuncBody* release_body(); |
6851 | | ::lua_grammar::FuncBody* mutable_body(); |
6852 | | void set_allocated_body(::lua_grammar::FuncBody* body); |
6853 | | private: |
6854 | | const ::lua_grammar::FuncBody& _internal_body() const; |
6855 | | ::lua_grammar::FuncBody* _internal_mutable_body(); |
6856 | | public: |
6857 | | void unsafe_arena_set_allocated_body( |
6858 | | ::lua_grammar::FuncBody* body); |
6859 | | ::lua_grammar::FuncBody* unsafe_arena_release_body(); |
6860 | | |
6861 | | // @@protoc_insertion_point(class_scope:lua_grammar.Expression.AnonFunc) |
6862 | | private: |
6863 | | class _Internal; |
6864 | | |
6865 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
6866 | | typedef void InternalArenaConstructable_; |
6867 | | typedef void DestructorSkippable_; |
6868 | | struct Impl_ { |
6869 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
6870 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
6871 | | ::lua_grammar::FuncBody* body_; |
6872 | | }; |
6873 | | union { Impl_ _impl_; }; |
6874 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
6875 | | }; |
6876 | | // ------------------------------------------------------------------- |
6877 | | |
6878 | | class Expression_ExpBinaryOpExp final : |
6879 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Expression.ExpBinaryOpExp) */ { |
6880 | | public: |
6881 | 0 | inline Expression_ExpBinaryOpExp() : Expression_ExpBinaryOpExp(nullptr) {} |
6882 | | ~Expression_ExpBinaryOpExp() override; |
6883 | | explicit PROTOBUF_CONSTEXPR Expression_ExpBinaryOpExp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
6884 | | |
6885 | | Expression_ExpBinaryOpExp(const Expression_ExpBinaryOpExp& from); |
6886 | | Expression_ExpBinaryOpExp(Expression_ExpBinaryOpExp&& from) noexcept |
6887 | 0 | : Expression_ExpBinaryOpExp() { |
6888 | 0 | *this = ::std::move(from); |
6889 | 0 | } |
6890 | | |
6891 | 0 | inline Expression_ExpBinaryOpExp& operator=(const Expression_ExpBinaryOpExp& from) { |
6892 | 0 | CopyFrom(from); |
6893 | 0 | return *this; |
6894 | 0 | } |
6895 | 0 | inline Expression_ExpBinaryOpExp& operator=(Expression_ExpBinaryOpExp&& from) noexcept { |
6896 | 0 | if (this == &from) return *this; |
6897 | 0 | if (GetOwningArena() == from.GetOwningArena() |
6898 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
6899 | 0 | && GetOwningArena() != nullptr |
6900 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
6901 | 0 | ) { |
6902 | 0 | InternalSwap(&from); |
6903 | 0 | } else { |
6904 | 0 | CopyFrom(from); |
6905 | 0 | } |
6906 | 0 | return *this; |
6907 | 0 | } |
6908 | | |
6909 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
6910 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
6911 | 0 | } |
6912 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
6913 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
6914 | 0 | } |
6915 | | |
6916 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
6917 | 0 | return GetDescriptor(); |
6918 | 0 | } |
6919 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
6920 | 0 | return default_instance().GetMetadata().descriptor; |
6921 | 0 | } |
6922 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
6923 | 0 | return default_instance().GetMetadata().reflection; |
6924 | 0 | } |
6925 | 0 | static const Expression_ExpBinaryOpExp& default_instance() { |
6926 | 0 | return *internal_default_instance(); |
6927 | 0 | } |
6928 | 56.8k | static inline const Expression_ExpBinaryOpExp* internal_default_instance() { |
6929 | 56.8k | return reinterpret_cast<const Expression_ExpBinaryOpExp*>( |
6930 | 56.8k | &_Expression_ExpBinaryOpExp_default_instance_); |
6931 | 56.8k | } |
6932 | | static constexpr int kIndexInFileMessages = |
6933 | | 33; |
6934 | | |
6935 | 0 | friend void swap(Expression_ExpBinaryOpExp& a, Expression_ExpBinaryOpExp& b) { |
6936 | 0 | a.Swap(&b); |
6937 | 0 | } |
6938 | 0 | inline void Swap(Expression_ExpBinaryOpExp* other) { |
6939 | 0 | if (other == this) return; |
6940 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
6941 | 0 | if (GetOwningArena() != nullptr && |
6942 | 0 | GetOwningArena() == other->GetOwningArena()) { |
6943 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
6944 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
6945 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
6946 | 0 | InternalSwap(other); |
6947 | 0 | } else { |
6948 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
6949 | 0 | } |
6950 | 0 | } |
6951 | 0 | void UnsafeArenaSwap(Expression_ExpBinaryOpExp* other) { |
6952 | 0 | if (other == this) return; |
6953 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
6954 | 0 | InternalSwap(other); |
6955 | 0 | } |
6956 | | |
6957 | | // implements Message ---------------------------------------------- |
6958 | | |
6959 | 18.9k | Expression_ExpBinaryOpExp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
6960 | 18.9k | return CreateMaybeMessage<Expression_ExpBinaryOpExp>(arena); |
6961 | 18.9k | } |
6962 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
6963 | | void CopyFrom(const Expression_ExpBinaryOpExp& from); |
6964 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
6965 | 0 | void MergeFrom( const Expression_ExpBinaryOpExp& from) { |
6966 | 0 | Expression_ExpBinaryOpExp::MergeImpl(*this, from); |
6967 | 0 | } |
6968 | | private: |
6969 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
6970 | | public: |
6971 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
6972 | | bool IsInitialized() const final; |
6973 | | |
6974 | | size_t ByteSizeLong() const final; |
6975 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
6976 | | uint8_t* _InternalSerialize( |
6977 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
6978 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
6979 | | |
6980 | | private: |
6981 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
6982 | | void SharedDtor(); |
6983 | | void SetCachedSize(int size) const final; |
6984 | | void InternalSwap(Expression_ExpBinaryOpExp* other); |
6985 | | |
6986 | | private: |
6987 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
6988 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
6989 | 0 | return "lua_grammar.Expression.ExpBinaryOpExp"; |
6990 | 0 | } |
6991 | | protected: |
6992 | | explicit Expression_ExpBinaryOpExp(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
6993 | | bool is_message_owned = false); |
6994 | | public: |
6995 | | |
6996 | | static const ClassData _class_data_; |
6997 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
6998 | | |
6999 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
7000 | | |
7001 | | // nested types ---------------------------------------------------- |
7002 | | |
7003 | | // accessors ------------------------------------------------------- |
7004 | | |
7005 | | enum : int { |
7006 | | kLeftexpFieldNumber = 1, |
7007 | | kBinopFieldNumber = 2, |
7008 | | kRightexpFieldNumber = 3, |
7009 | | }; |
7010 | | // required .lua_grammar.Expression leftexp = 1; |
7011 | | bool has_leftexp() const; |
7012 | | private: |
7013 | | bool _internal_has_leftexp() const; |
7014 | | public: |
7015 | | void clear_leftexp(); |
7016 | | const ::lua_grammar::Expression& leftexp() const; |
7017 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_leftexp(); |
7018 | | ::lua_grammar::Expression* mutable_leftexp(); |
7019 | | void set_allocated_leftexp(::lua_grammar::Expression* leftexp); |
7020 | | private: |
7021 | | const ::lua_grammar::Expression& _internal_leftexp() const; |
7022 | | ::lua_grammar::Expression* _internal_mutable_leftexp(); |
7023 | | public: |
7024 | | void unsafe_arena_set_allocated_leftexp( |
7025 | | ::lua_grammar::Expression* leftexp); |
7026 | | ::lua_grammar::Expression* unsafe_arena_release_leftexp(); |
7027 | | |
7028 | | // required .lua_grammar.BinaryOperator binop = 2; |
7029 | | bool has_binop() const; |
7030 | | private: |
7031 | | bool _internal_has_binop() const; |
7032 | | public: |
7033 | | void clear_binop(); |
7034 | | const ::lua_grammar::BinaryOperator& binop() const; |
7035 | | PROTOBUF_NODISCARD ::lua_grammar::BinaryOperator* release_binop(); |
7036 | | ::lua_grammar::BinaryOperator* mutable_binop(); |
7037 | | void set_allocated_binop(::lua_grammar::BinaryOperator* binop); |
7038 | | private: |
7039 | | const ::lua_grammar::BinaryOperator& _internal_binop() const; |
7040 | | ::lua_grammar::BinaryOperator* _internal_mutable_binop(); |
7041 | | public: |
7042 | | void unsafe_arena_set_allocated_binop( |
7043 | | ::lua_grammar::BinaryOperator* binop); |
7044 | | ::lua_grammar::BinaryOperator* unsafe_arena_release_binop(); |
7045 | | |
7046 | | // required .lua_grammar.Expression rightexp = 3; |
7047 | | bool has_rightexp() const; |
7048 | | private: |
7049 | | bool _internal_has_rightexp() const; |
7050 | | public: |
7051 | | void clear_rightexp(); |
7052 | | const ::lua_grammar::Expression& rightexp() const; |
7053 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_rightexp(); |
7054 | | ::lua_grammar::Expression* mutable_rightexp(); |
7055 | | void set_allocated_rightexp(::lua_grammar::Expression* rightexp); |
7056 | | private: |
7057 | | const ::lua_grammar::Expression& _internal_rightexp() const; |
7058 | | ::lua_grammar::Expression* _internal_mutable_rightexp(); |
7059 | | public: |
7060 | | void unsafe_arena_set_allocated_rightexp( |
7061 | | ::lua_grammar::Expression* rightexp); |
7062 | | ::lua_grammar::Expression* unsafe_arena_release_rightexp(); |
7063 | | |
7064 | | // @@protoc_insertion_point(class_scope:lua_grammar.Expression.ExpBinaryOpExp) |
7065 | | private: |
7066 | | class _Internal; |
7067 | | |
7068 | | // helper for ByteSizeLong() |
7069 | | size_t RequiredFieldsByteSizeFallback() const; |
7070 | | |
7071 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
7072 | | typedef void InternalArenaConstructable_; |
7073 | | typedef void DestructorSkippable_; |
7074 | | struct Impl_ { |
7075 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
7076 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
7077 | | ::lua_grammar::Expression* leftexp_; |
7078 | | ::lua_grammar::BinaryOperator* binop_; |
7079 | | ::lua_grammar::Expression* rightexp_; |
7080 | | }; |
7081 | | union { Impl_ _impl_; }; |
7082 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
7083 | | }; |
7084 | | // ------------------------------------------------------------------- |
7085 | | |
7086 | | class Expression_UnaryOpExp final : |
7087 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Expression.UnaryOpExp) */ { |
7088 | | public: |
7089 | 0 | inline Expression_UnaryOpExp() : Expression_UnaryOpExp(nullptr) {} |
7090 | | ~Expression_UnaryOpExp() override; |
7091 | | explicit PROTOBUF_CONSTEXPR Expression_UnaryOpExp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
7092 | | |
7093 | | Expression_UnaryOpExp(const Expression_UnaryOpExp& from); |
7094 | | Expression_UnaryOpExp(Expression_UnaryOpExp&& from) noexcept |
7095 | 0 | : Expression_UnaryOpExp() { |
7096 | 0 | *this = ::std::move(from); |
7097 | 0 | } |
7098 | | |
7099 | 0 | inline Expression_UnaryOpExp& operator=(const Expression_UnaryOpExp& from) { |
7100 | 0 | CopyFrom(from); |
7101 | 0 | return *this; |
7102 | 0 | } |
7103 | 0 | inline Expression_UnaryOpExp& operator=(Expression_UnaryOpExp&& from) noexcept { |
7104 | 0 | if (this == &from) return *this; |
7105 | 0 | if (GetOwningArena() == from.GetOwningArena() |
7106 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
7107 | 0 | && GetOwningArena() != nullptr |
7108 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
7109 | 0 | ) { |
7110 | 0 | InternalSwap(&from); |
7111 | 0 | } else { |
7112 | 0 | CopyFrom(from); |
7113 | 0 | } |
7114 | 0 | return *this; |
7115 | 0 | } |
7116 | | |
7117 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
7118 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
7119 | 0 | } |
7120 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
7121 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7122 | 0 | } |
7123 | | |
7124 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
7125 | 0 | return GetDescriptor(); |
7126 | 0 | } |
7127 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
7128 | 0 | return default_instance().GetMetadata().descriptor; |
7129 | 0 | } |
7130 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
7131 | 0 | return default_instance().GetMetadata().reflection; |
7132 | 0 | } |
7133 | 0 | static const Expression_UnaryOpExp& default_instance() { |
7134 | 0 | return *internal_default_instance(); |
7135 | 0 | } |
7136 | 9.99k | static inline const Expression_UnaryOpExp* internal_default_instance() { |
7137 | 9.99k | return reinterpret_cast<const Expression_UnaryOpExp*>( |
7138 | 9.99k | &_Expression_UnaryOpExp_default_instance_); |
7139 | 9.99k | } |
7140 | | static constexpr int kIndexInFileMessages = |
7141 | | 34; |
7142 | | |
7143 | 0 | friend void swap(Expression_UnaryOpExp& a, Expression_UnaryOpExp& b) { |
7144 | 0 | a.Swap(&b); |
7145 | 0 | } |
7146 | 0 | inline void Swap(Expression_UnaryOpExp* other) { |
7147 | 0 | if (other == this) return; |
7148 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
7149 | 0 | if (GetOwningArena() != nullptr && |
7150 | 0 | GetOwningArena() == other->GetOwningArena()) { |
7151 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
7152 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
7153 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
7154 | 0 | InternalSwap(other); |
7155 | 0 | } else { |
7156 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
7157 | 0 | } |
7158 | 0 | } |
7159 | 0 | void UnsafeArenaSwap(Expression_UnaryOpExp* other) { |
7160 | 0 | if (other == this) return; |
7161 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
7162 | 0 | InternalSwap(other); |
7163 | 0 | } |
7164 | | |
7165 | | // implements Message ---------------------------------------------- |
7166 | | |
7167 | 4.99k | Expression_UnaryOpExp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
7168 | 4.99k | return CreateMaybeMessage<Expression_UnaryOpExp>(arena); |
7169 | 4.99k | } |
7170 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
7171 | | void CopyFrom(const Expression_UnaryOpExp& from); |
7172 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
7173 | 0 | void MergeFrom( const Expression_UnaryOpExp& from) { |
7174 | 0 | Expression_UnaryOpExp::MergeImpl(*this, from); |
7175 | 0 | } |
7176 | | private: |
7177 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
7178 | | public: |
7179 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
7180 | | bool IsInitialized() const final; |
7181 | | |
7182 | | size_t ByteSizeLong() const final; |
7183 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
7184 | | uint8_t* _InternalSerialize( |
7185 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
7186 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
7187 | | |
7188 | | private: |
7189 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
7190 | | void SharedDtor(); |
7191 | | void SetCachedSize(int size) const final; |
7192 | | void InternalSwap(Expression_UnaryOpExp* other); |
7193 | | |
7194 | | private: |
7195 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
7196 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
7197 | 0 | return "lua_grammar.Expression.UnaryOpExp"; |
7198 | 0 | } |
7199 | | protected: |
7200 | | explicit Expression_UnaryOpExp(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
7201 | | bool is_message_owned = false); |
7202 | | public: |
7203 | | |
7204 | | static const ClassData _class_data_; |
7205 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
7206 | | |
7207 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
7208 | | |
7209 | | // nested types ---------------------------------------------------- |
7210 | | |
7211 | | // accessors ------------------------------------------------------- |
7212 | | |
7213 | | enum : int { |
7214 | | kUnopFieldNumber = 1, |
7215 | | kExpFieldNumber = 2, |
7216 | | }; |
7217 | | // required .lua_grammar.UnaryOperator unop = 1; |
7218 | | bool has_unop() const; |
7219 | | private: |
7220 | | bool _internal_has_unop() const; |
7221 | | public: |
7222 | | void clear_unop(); |
7223 | | const ::lua_grammar::UnaryOperator& unop() const; |
7224 | | PROTOBUF_NODISCARD ::lua_grammar::UnaryOperator* release_unop(); |
7225 | | ::lua_grammar::UnaryOperator* mutable_unop(); |
7226 | | void set_allocated_unop(::lua_grammar::UnaryOperator* unop); |
7227 | | private: |
7228 | | const ::lua_grammar::UnaryOperator& _internal_unop() const; |
7229 | | ::lua_grammar::UnaryOperator* _internal_mutable_unop(); |
7230 | | public: |
7231 | | void unsafe_arena_set_allocated_unop( |
7232 | | ::lua_grammar::UnaryOperator* unop); |
7233 | | ::lua_grammar::UnaryOperator* unsafe_arena_release_unop(); |
7234 | | |
7235 | | // required .lua_grammar.Expression exp = 2; |
7236 | | bool has_exp() const; |
7237 | | private: |
7238 | | bool _internal_has_exp() const; |
7239 | | public: |
7240 | | void clear_exp(); |
7241 | | const ::lua_grammar::Expression& exp() const; |
7242 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_exp(); |
7243 | | ::lua_grammar::Expression* mutable_exp(); |
7244 | | void set_allocated_exp(::lua_grammar::Expression* exp); |
7245 | | private: |
7246 | | const ::lua_grammar::Expression& _internal_exp() const; |
7247 | | ::lua_grammar::Expression* _internal_mutable_exp(); |
7248 | | public: |
7249 | | void unsafe_arena_set_allocated_exp( |
7250 | | ::lua_grammar::Expression* exp); |
7251 | | ::lua_grammar::Expression* unsafe_arena_release_exp(); |
7252 | | |
7253 | | // @@protoc_insertion_point(class_scope:lua_grammar.Expression.UnaryOpExp) |
7254 | | private: |
7255 | | class _Internal; |
7256 | | |
7257 | | // helper for ByteSizeLong() |
7258 | | size_t RequiredFieldsByteSizeFallback() const; |
7259 | | |
7260 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
7261 | | typedef void InternalArenaConstructable_; |
7262 | | typedef void DestructorSkippable_; |
7263 | | struct Impl_ { |
7264 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
7265 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
7266 | | ::lua_grammar::UnaryOperator* unop_; |
7267 | | ::lua_grammar::Expression* exp_; |
7268 | | }; |
7269 | | union { Impl_ _impl_; }; |
7270 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
7271 | | }; |
7272 | | // ------------------------------------------------------------------- |
7273 | | |
7274 | | class Expression final : |
7275 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Expression) */ { |
7276 | | public: |
7277 | 0 | inline Expression() : Expression(nullptr) {} |
7278 | | ~Expression() override; |
7279 | | explicit PROTOBUF_CONSTEXPR Expression(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
7280 | | |
7281 | | Expression(const Expression& from); |
7282 | | Expression(Expression&& from) noexcept |
7283 | 0 | : Expression() { |
7284 | 0 | *this = ::std::move(from); |
7285 | 0 | } |
7286 | | |
7287 | 0 | inline Expression& operator=(const Expression& from) { |
7288 | 0 | CopyFrom(from); |
7289 | 0 | return *this; |
7290 | 0 | } |
7291 | 0 | inline Expression& operator=(Expression&& from) noexcept { |
7292 | 0 | if (this == &from) return *this; |
7293 | 0 | if (GetOwningArena() == from.GetOwningArena() |
7294 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
7295 | 0 | && GetOwningArena() != nullptr |
7296 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
7297 | 0 | ) { |
7298 | 0 | InternalSwap(&from); |
7299 | 0 | } else { |
7300 | 0 | CopyFrom(from); |
7301 | 0 | } |
7302 | 0 | return *this; |
7303 | 0 | } |
7304 | | |
7305 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
7306 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
7307 | 0 | } |
7308 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
7309 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7310 | 0 | } |
7311 | | |
7312 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
7313 | 0 | return GetDescriptor(); |
7314 | 0 | } |
7315 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
7316 | 0 | return default_instance().GetMetadata().descriptor; |
7317 | 0 | } |
7318 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
7319 | 0 | return default_instance().GetMetadata().reflection; |
7320 | 0 | } |
7321 | 0 | static const Expression& default_instance() { |
7322 | 0 | return *internal_default_instance(); |
7323 | 0 | } |
7324 | | enum ExprOneofCase { |
7325 | | kNil = 1, |
7326 | | kFalse = 2, |
7327 | | kTrue = 3, |
7328 | | kNumber = 4, |
7329 | | kStr = 5, |
7330 | | kEllipsis = 6, |
7331 | | kFunction = 7, |
7332 | | kPrefixexp = 8, |
7333 | | kTableconstructor = 9, |
7334 | | kBinary = 10, |
7335 | | kUnary = 11, |
7336 | | EXPR_ONEOF_NOT_SET = 0, |
7337 | | }; |
7338 | | |
7339 | 0 | static inline const Expression* internal_default_instance() { |
7340 | 0 | return reinterpret_cast<const Expression*>( |
7341 | 0 | &_Expression_default_instance_); |
7342 | 0 | } |
7343 | | static constexpr int kIndexInFileMessages = |
7344 | | 35; |
7345 | | |
7346 | 0 | friend void swap(Expression& a, Expression& b) { |
7347 | 0 | a.Swap(&b); |
7348 | 0 | } |
7349 | 0 | inline void Swap(Expression* other) { |
7350 | 0 | if (other == this) return; |
7351 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
7352 | 0 | if (GetOwningArena() != nullptr && |
7353 | 0 | GetOwningArena() == other->GetOwningArena()) { |
7354 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
7355 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
7356 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
7357 | 0 | InternalSwap(other); |
7358 | 0 | } else { |
7359 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
7360 | 0 | } |
7361 | 0 | } |
7362 | 0 | void UnsafeArenaSwap(Expression* other) { |
7363 | 0 | if (other == this) return; |
7364 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
7365 | 0 | InternalSwap(other); |
7366 | 0 | } |
7367 | | |
7368 | | // implements Message ---------------------------------------------- |
7369 | | |
7370 | 139k | Expression* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
7371 | 139k | return CreateMaybeMessage<Expression>(arena); |
7372 | 139k | } |
7373 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
7374 | | void CopyFrom(const Expression& from); |
7375 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
7376 | 0 | void MergeFrom( const Expression& from) { |
7377 | 0 | Expression::MergeImpl(*this, from); |
7378 | 0 | } |
7379 | | private: |
7380 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
7381 | | public: |
7382 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
7383 | | bool IsInitialized() const final; |
7384 | | |
7385 | | size_t ByteSizeLong() const final; |
7386 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
7387 | | uint8_t* _InternalSerialize( |
7388 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
7389 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
7390 | | |
7391 | | private: |
7392 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
7393 | | void SharedDtor(); |
7394 | | void SetCachedSize(int size) const final; |
7395 | | void InternalSwap(Expression* other); |
7396 | | |
7397 | | private: |
7398 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
7399 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
7400 | 0 | return "lua_grammar.Expression"; |
7401 | 0 | } |
7402 | | protected: |
7403 | | explicit Expression(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
7404 | | bool is_message_owned = false); |
7405 | | public: |
7406 | | |
7407 | | static const ClassData _class_data_; |
7408 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
7409 | | |
7410 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
7411 | | |
7412 | | // nested types ---------------------------------------------------- |
7413 | | |
7414 | | typedef Expression_AnonFunc AnonFunc; |
7415 | | typedef Expression_ExpBinaryOpExp ExpBinaryOpExp; |
7416 | | typedef Expression_UnaryOpExp UnaryOpExp; |
7417 | | |
7418 | | // accessors ------------------------------------------------------- |
7419 | | |
7420 | | enum : int { |
7421 | | kNilFieldNumber = 1, |
7422 | | kFalseFieldNumber = 2, |
7423 | | kTrueFieldNumber = 3, |
7424 | | kNumberFieldNumber = 4, |
7425 | | kStrFieldNumber = 5, |
7426 | | kEllipsisFieldNumber = 6, |
7427 | | kFunctionFieldNumber = 7, |
7428 | | kPrefixexpFieldNumber = 8, |
7429 | | kTableconstructorFieldNumber = 9, |
7430 | | kBinaryFieldNumber = 10, |
7431 | | kUnaryFieldNumber = 11, |
7432 | | }; |
7433 | | // uint32 nil = 1; |
7434 | | bool has_nil() const; |
7435 | | private: |
7436 | | bool _internal_has_nil() const; |
7437 | | public: |
7438 | | void clear_nil(); |
7439 | | uint32_t nil() const; |
7440 | | void set_nil(uint32_t value); |
7441 | | private: |
7442 | | uint32_t _internal_nil() const; |
7443 | | void _internal_set_nil(uint32_t value); |
7444 | | public: |
7445 | | |
7446 | | // uint32 false = 2; |
7447 | | bool has_false_() const; |
7448 | | private: |
7449 | | bool _internal_has_false_() const; |
7450 | | public: |
7451 | | void clear_false_(); |
7452 | | uint32_t false_() const; |
7453 | | void set_false_(uint32_t value); |
7454 | | private: |
7455 | | uint32_t _internal_false_() const; |
7456 | | void _internal_set_false_(uint32_t value); |
7457 | | public: |
7458 | | |
7459 | | // uint32 true = 3; |
7460 | | bool has_true_() const; |
7461 | | private: |
7462 | | bool _internal_has_true_() const; |
7463 | | public: |
7464 | | void clear_true_(); |
7465 | | uint32_t true_() const; |
7466 | | void set_true_(uint32_t value); |
7467 | | private: |
7468 | | uint32_t _internal_true_() const; |
7469 | | void _internal_set_true_(uint32_t value); |
7470 | | public: |
7471 | | |
7472 | | // double number = 4; |
7473 | | bool has_number() const; |
7474 | | private: |
7475 | | bool _internal_has_number() const; |
7476 | | public: |
7477 | | void clear_number(); |
7478 | | double number() const; |
7479 | | void set_number(double value); |
7480 | | private: |
7481 | | double _internal_number() const; |
7482 | | void _internal_set_number(double value); |
7483 | | public: |
7484 | | |
7485 | | // string str = 5; |
7486 | | bool has_str() const; |
7487 | | private: |
7488 | | bool _internal_has_str() const; |
7489 | | public: |
7490 | | void clear_str(); |
7491 | | const std::string& str() const; |
7492 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
7493 | | void set_str(ArgT0&& arg0, ArgT... args); |
7494 | | std::string* mutable_str(); |
7495 | | PROTOBUF_NODISCARD std::string* release_str(); |
7496 | | void set_allocated_str(std::string* str); |
7497 | | private: |
7498 | | const std::string& _internal_str() const; |
7499 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_str(const std::string& value); |
7500 | | std::string* _internal_mutable_str(); |
7501 | | public: |
7502 | | |
7503 | | // string ellipsis = 6; |
7504 | | bool has_ellipsis() const; |
7505 | | private: |
7506 | | bool _internal_has_ellipsis() const; |
7507 | | public: |
7508 | | void clear_ellipsis(); |
7509 | | const std::string& ellipsis() const; |
7510 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
7511 | | void set_ellipsis(ArgT0&& arg0, ArgT... args); |
7512 | | std::string* mutable_ellipsis(); |
7513 | | PROTOBUF_NODISCARD std::string* release_ellipsis(); |
7514 | | void set_allocated_ellipsis(std::string* ellipsis); |
7515 | | private: |
7516 | | const std::string& _internal_ellipsis() const; |
7517 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_ellipsis(const std::string& value); |
7518 | | std::string* _internal_mutable_ellipsis(); |
7519 | | public: |
7520 | | |
7521 | | // .lua_grammar.Expression.AnonFunc function = 7; |
7522 | | bool has_function() const; |
7523 | | private: |
7524 | | bool _internal_has_function() const; |
7525 | | public: |
7526 | | void clear_function(); |
7527 | | const ::lua_grammar::Expression_AnonFunc& function() const; |
7528 | | PROTOBUF_NODISCARD ::lua_grammar::Expression_AnonFunc* release_function(); |
7529 | | ::lua_grammar::Expression_AnonFunc* mutable_function(); |
7530 | | void set_allocated_function(::lua_grammar::Expression_AnonFunc* function); |
7531 | | private: |
7532 | | const ::lua_grammar::Expression_AnonFunc& _internal_function() const; |
7533 | | ::lua_grammar::Expression_AnonFunc* _internal_mutable_function(); |
7534 | | public: |
7535 | | void unsafe_arena_set_allocated_function( |
7536 | | ::lua_grammar::Expression_AnonFunc* function); |
7537 | | ::lua_grammar::Expression_AnonFunc* unsafe_arena_release_function(); |
7538 | | |
7539 | | // .lua_grammar.PrefixExpression prefixexp = 8; |
7540 | | bool has_prefixexp() const; |
7541 | | private: |
7542 | | bool _internal_has_prefixexp() const; |
7543 | | public: |
7544 | | void clear_prefixexp(); |
7545 | | const ::lua_grammar::PrefixExpression& prefixexp() const; |
7546 | | PROTOBUF_NODISCARD ::lua_grammar::PrefixExpression* release_prefixexp(); |
7547 | | ::lua_grammar::PrefixExpression* mutable_prefixexp(); |
7548 | | void set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp); |
7549 | | private: |
7550 | | const ::lua_grammar::PrefixExpression& _internal_prefixexp() const; |
7551 | | ::lua_grammar::PrefixExpression* _internal_mutable_prefixexp(); |
7552 | | public: |
7553 | | void unsafe_arena_set_allocated_prefixexp( |
7554 | | ::lua_grammar::PrefixExpression* prefixexp); |
7555 | | ::lua_grammar::PrefixExpression* unsafe_arena_release_prefixexp(); |
7556 | | |
7557 | | // .lua_grammar.TableConstructor tableconstructor = 9; |
7558 | | bool has_tableconstructor() const; |
7559 | | private: |
7560 | | bool _internal_has_tableconstructor() const; |
7561 | | public: |
7562 | | void clear_tableconstructor(); |
7563 | | const ::lua_grammar::TableConstructor& tableconstructor() const; |
7564 | | PROTOBUF_NODISCARD ::lua_grammar::TableConstructor* release_tableconstructor(); |
7565 | | ::lua_grammar::TableConstructor* mutable_tableconstructor(); |
7566 | | void set_allocated_tableconstructor(::lua_grammar::TableConstructor* tableconstructor); |
7567 | | private: |
7568 | | const ::lua_grammar::TableConstructor& _internal_tableconstructor() const; |
7569 | | ::lua_grammar::TableConstructor* _internal_mutable_tableconstructor(); |
7570 | | public: |
7571 | | void unsafe_arena_set_allocated_tableconstructor( |
7572 | | ::lua_grammar::TableConstructor* tableconstructor); |
7573 | | ::lua_grammar::TableConstructor* unsafe_arena_release_tableconstructor(); |
7574 | | |
7575 | | // .lua_grammar.Expression.ExpBinaryOpExp binary = 10; |
7576 | | bool has_binary() const; |
7577 | | private: |
7578 | | bool _internal_has_binary() const; |
7579 | | public: |
7580 | | void clear_binary(); |
7581 | | const ::lua_grammar::Expression_ExpBinaryOpExp& binary() const; |
7582 | | PROTOBUF_NODISCARD ::lua_grammar::Expression_ExpBinaryOpExp* release_binary(); |
7583 | | ::lua_grammar::Expression_ExpBinaryOpExp* mutable_binary(); |
7584 | | void set_allocated_binary(::lua_grammar::Expression_ExpBinaryOpExp* binary); |
7585 | | private: |
7586 | | const ::lua_grammar::Expression_ExpBinaryOpExp& _internal_binary() const; |
7587 | | ::lua_grammar::Expression_ExpBinaryOpExp* _internal_mutable_binary(); |
7588 | | public: |
7589 | | void unsafe_arena_set_allocated_binary( |
7590 | | ::lua_grammar::Expression_ExpBinaryOpExp* binary); |
7591 | | ::lua_grammar::Expression_ExpBinaryOpExp* unsafe_arena_release_binary(); |
7592 | | |
7593 | | // .lua_grammar.Expression.UnaryOpExp unary = 11; |
7594 | | bool has_unary() const; |
7595 | | private: |
7596 | | bool _internal_has_unary() const; |
7597 | | public: |
7598 | | void clear_unary(); |
7599 | | const ::lua_grammar::Expression_UnaryOpExp& unary() const; |
7600 | | PROTOBUF_NODISCARD ::lua_grammar::Expression_UnaryOpExp* release_unary(); |
7601 | | ::lua_grammar::Expression_UnaryOpExp* mutable_unary(); |
7602 | | void set_allocated_unary(::lua_grammar::Expression_UnaryOpExp* unary); |
7603 | | private: |
7604 | | const ::lua_grammar::Expression_UnaryOpExp& _internal_unary() const; |
7605 | | ::lua_grammar::Expression_UnaryOpExp* _internal_mutable_unary(); |
7606 | | public: |
7607 | | void unsafe_arena_set_allocated_unary( |
7608 | | ::lua_grammar::Expression_UnaryOpExp* unary); |
7609 | | ::lua_grammar::Expression_UnaryOpExp* unsafe_arena_release_unary(); |
7610 | | |
7611 | | void clear_expr_oneof(); |
7612 | | ExprOneofCase expr_oneof_case() const; |
7613 | | // @@protoc_insertion_point(class_scope:lua_grammar.Expression) |
7614 | | private: |
7615 | | class _Internal; |
7616 | | void set_has_nil(); |
7617 | | void set_has_false_(); |
7618 | | void set_has_true_(); |
7619 | | void set_has_number(); |
7620 | | void set_has_str(); |
7621 | | void set_has_ellipsis(); |
7622 | | void set_has_function(); |
7623 | | void set_has_prefixexp(); |
7624 | | void set_has_tableconstructor(); |
7625 | | void set_has_binary(); |
7626 | | void set_has_unary(); |
7627 | | |
7628 | | inline bool has_expr_oneof() const; |
7629 | | inline void clear_has_expr_oneof(); |
7630 | | |
7631 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
7632 | | typedef void InternalArenaConstructable_; |
7633 | | typedef void DestructorSkippable_; |
7634 | | struct Impl_ { |
7635 | | union ExprOneofUnion { |
7636 | 139k | constexpr ExprOneofUnion() : _constinit_{} {} |
7637 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
7638 | | uint32_t nil_; |
7639 | | uint32_t false__; |
7640 | | uint32_t true__; |
7641 | | double number_; |
7642 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr str_; |
7643 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ellipsis_; |
7644 | | ::lua_grammar::Expression_AnonFunc* function_; |
7645 | | ::lua_grammar::PrefixExpression* prefixexp_; |
7646 | | ::lua_grammar::TableConstructor* tableconstructor_; |
7647 | | ::lua_grammar::Expression_ExpBinaryOpExp* binary_; |
7648 | | ::lua_grammar::Expression_UnaryOpExp* unary_; |
7649 | | } expr_oneof_; |
7650 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
7651 | | uint32_t _oneof_case_[1]; |
7652 | | |
7653 | | }; |
7654 | | union { Impl_ _impl_; }; |
7655 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
7656 | | }; |
7657 | | // ------------------------------------------------------------------- |
7658 | | |
7659 | | class TableConstructor final : |
7660 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.TableConstructor) */ { |
7661 | | public: |
7662 | 0 | inline TableConstructor() : TableConstructor(nullptr) {} |
7663 | | ~TableConstructor() override; |
7664 | | explicit PROTOBUF_CONSTEXPR TableConstructor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
7665 | | |
7666 | | TableConstructor(const TableConstructor& from); |
7667 | | TableConstructor(TableConstructor&& from) noexcept |
7668 | 0 | : TableConstructor() { |
7669 | 0 | *this = ::std::move(from); |
7670 | 0 | } |
7671 | | |
7672 | 0 | inline TableConstructor& operator=(const TableConstructor& from) { |
7673 | 0 | CopyFrom(from); |
7674 | 0 | return *this; |
7675 | 0 | } |
7676 | 0 | inline TableConstructor& operator=(TableConstructor&& from) noexcept { |
7677 | 0 | if (this == &from) return *this; |
7678 | 0 | if (GetOwningArena() == from.GetOwningArena() |
7679 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
7680 | 0 | && GetOwningArena() != nullptr |
7681 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
7682 | 0 | ) { |
7683 | 0 | InternalSwap(&from); |
7684 | 0 | } else { |
7685 | 0 | CopyFrom(from); |
7686 | 0 | } |
7687 | 0 | return *this; |
7688 | 0 | } |
7689 | | |
7690 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
7691 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
7692 | 0 | } |
7693 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
7694 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7695 | 0 | } |
7696 | | |
7697 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
7698 | 0 | return GetDescriptor(); |
7699 | 0 | } |
7700 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
7701 | 0 | return default_instance().GetMetadata().descriptor; |
7702 | 0 | } |
7703 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
7704 | 0 | return default_instance().GetMetadata().reflection; |
7705 | 0 | } |
7706 | 0 | static const TableConstructor& default_instance() { |
7707 | 0 | return *internal_default_instance(); |
7708 | 0 | } |
7709 | 5.50k | static inline const TableConstructor* internal_default_instance() { |
7710 | 5.50k | return reinterpret_cast<const TableConstructor*>( |
7711 | 5.50k | &_TableConstructor_default_instance_); |
7712 | 5.50k | } |
7713 | | static constexpr int kIndexInFileMessages = |
7714 | | 36; |
7715 | | |
7716 | 0 | friend void swap(TableConstructor& a, TableConstructor& b) { |
7717 | 0 | a.Swap(&b); |
7718 | 0 | } |
7719 | 0 | inline void Swap(TableConstructor* other) { |
7720 | 0 | if (other == this) return; |
7721 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
7722 | 0 | if (GetOwningArena() != nullptr && |
7723 | 0 | GetOwningArena() == other->GetOwningArena()) { |
7724 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
7725 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
7726 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
7727 | 0 | InternalSwap(other); |
7728 | 0 | } else { |
7729 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
7730 | 0 | } |
7731 | 0 | } |
7732 | 0 | void UnsafeArenaSwap(TableConstructor* other) { |
7733 | 0 | if (other == this) return; |
7734 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
7735 | 0 | InternalSwap(other); |
7736 | 0 | } |
7737 | | |
7738 | | // implements Message ---------------------------------------------- |
7739 | | |
7740 | 5.50k | TableConstructor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
7741 | 5.50k | return CreateMaybeMessage<TableConstructor>(arena); |
7742 | 5.50k | } |
7743 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
7744 | | void CopyFrom(const TableConstructor& from); |
7745 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
7746 | 0 | void MergeFrom( const TableConstructor& from) { |
7747 | 0 | TableConstructor::MergeImpl(*this, from); |
7748 | 0 | } |
7749 | | private: |
7750 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
7751 | | public: |
7752 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
7753 | | bool IsInitialized() const final; |
7754 | | |
7755 | | size_t ByteSizeLong() const final; |
7756 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
7757 | | uint8_t* _InternalSerialize( |
7758 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
7759 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
7760 | | |
7761 | | private: |
7762 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
7763 | | void SharedDtor(); |
7764 | | void SetCachedSize(int size) const final; |
7765 | | void InternalSwap(TableConstructor* other); |
7766 | | |
7767 | | private: |
7768 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
7769 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
7770 | 0 | return "lua_grammar.TableConstructor"; |
7771 | 0 | } |
7772 | | protected: |
7773 | | explicit TableConstructor(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
7774 | | bool is_message_owned = false); |
7775 | | public: |
7776 | | |
7777 | | static const ClassData _class_data_; |
7778 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
7779 | | |
7780 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
7781 | | |
7782 | | // nested types ---------------------------------------------------- |
7783 | | |
7784 | | // accessors ------------------------------------------------------- |
7785 | | |
7786 | | enum : int { |
7787 | | kFieldlistFieldNumber = 1, |
7788 | | }; |
7789 | | // optional .lua_grammar.FieldList fieldlist = 1; |
7790 | | bool has_fieldlist() const; |
7791 | | private: |
7792 | | bool _internal_has_fieldlist() const; |
7793 | | public: |
7794 | | void clear_fieldlist(); |
7795 | | const ::lua_grammar::FieldList& fieldlist() const; |
7796 | | PROTOBUF_NODISCARD ::lua_grammar::FieldList* release_fieldlist(); |
7797 | | ::lua_grammar::FieldList* mutable_fieldlist(); |
7798 | | void set_allocated_fieldlist(::lua_grammar::FieldList* fieldlist); |
7799 | | private: |
7800 | | const ::lua_grammar::FieldList& _internal_fieldlist() const; |
7801 | | ::lua_grammar::FieldList* _internal_mutable_fieldlist(); |
7802 | | public: |
7803 | | void unsafe_arena_set_allocated_fieldlist( |
7804 | | ::lua_grammar::FieldList* fieldlist); |
7805 | | ::lua_grammar::FieldList* unsafe_arena_release_fieldlist(); |
7806 | | |
7807 | | // @@protoc_insertion_point(class_scope:lua_grammar.TableConstructor) |
7808 | | private: |
7809 | | class _Internal; |
7810 | | |
7811 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
7812 | | typedef void InternalArenaConstructable_; |
7813 | | typedef void DestructorSkippable_; |
7814 | | struct Impl_ { |
7815 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
7816 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
7817 | | ::lua_grammar::FieldList* fieldlist_; |
7818 | | }; |
7819 | | union { Impl_ _impl_; }; |
7820 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
7821 | | }; |
7822 | | // ------------------------------------------------------------------- |
7823 | | |
7824 | | class FieldList_FieldWithFieldSep final : |
7825 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FieldList.FieldWithFieldSep) */ { |
7826 | | public: |
7827 | 0 | inline FieldList_FieldWithFieldSep() : FieldList_FieldWithFieldSep(nullptr) {} |
7828 | | ~FieldList_FieldWithFieldSep() override; |
7829 | | explicit PROTOBUF_CONSTEXPR FieldList_FieldWithFieldSep(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
7830 | | |
7831 | | FieldList_FieldWithFieldSep(const FieldList_FieldWithFieldSep& from); |
7832 | | FieldList_FieldWithFieldSep(FieldList_FieldWithFieldSep&& from) noexcept |
7833 | 0 | : FieldList_FieldWithFieldSep() { |
7834 | 0 | *this = ::std::move(from); |
7835 | 0 | } |
7836 | | |
7837 | 0 | inline FieldList_FieldWithFieldSep& operator=(const FieldList_FieldWithFieldSep& from) { |
7838 | 0 | CopyFrom(from); |
7839 | 0 | return *this; |
7840 | 0 | } |
7841 | 0 | inline FieldList_FieldWithFieldSep& operator=(FieldList_FieldWithFieldSep&& from) noexcept { |
7842 | 0 | if (this == &from) return *this; |
7843 | 0 | if (GetOwningArena() == from.GetOwningArena() |
7844 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
7845 | 0 | && GetOwningArena() != nullptr |
7846 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
7847 | 0 | ) { |
7848 | 0 | InternalSwap(&from); |
7849 | 0 | } else { |
7850 | 0 | CopyFrom(from); |
7851 | 0 | } |
7852 | 0 | return *this; |
7853 | 0 | } |
7854 | | |
7855 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
7856 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
7857 | 0 | } |
7858 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
7859 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
7860 | 0 | } |
7861 | | |
7862 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
7863 | 0 | return GetDescriptor(); |
7864 | 0 | } |
7865 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
7866 | 0 | return default_instance().GetMetadata().descriptor; |
7867 | 0 | } |
7868 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
7869 | 0 | return default_instance().GetMetadata().reflection; |
7870 | 0 | } |
7871 | 0 | static const FieldList_FieldWithFieldSep& default_instance() { |
7872 | 0 | return *internal_default_instance(); |
7873 | 0 | } |
7874 | 8.53k | static inline const FieldList_FieldWithFieldSep* internal_default_instance() { |
7875 | 8.53k | return reinterpret_cast<const FieldList_FieldWithFieldSep*>( |
7876 | 8.53k | &_FieldList_FieldWithFieldSep_default_instance_); |
7877 | 8.53k | } |
7878 | | static constexpr int kIndexInFileMessages = |
7879 | | 37; |
7880 | | |
7881 | 0 | friend void swap(FieldList_FieldWithFieldSep& a, FieldList_FieldWithFieldSep& b) { |
7882 | 0 | a.Swap(&b); |
7883 | 0 | } |
7884 | 0 | inline void Swap(FieldList_FieldWithFieldSep* other) { |
7885 | 0 | if (other == this) return; |
7886 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
7887 | 0 | if (GetOwningArena() != nullptr && |
7888 | 0 | GetOwningArena() == other->GetOwningArena()) { |
7889 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
7890 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
7891 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
7892 | 0 | InternalSwap(other); |
7893 | 0 | } else { |
7894 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
7895 | 0 | } |
7896 | 0 | } |
7897 | 0 | void UnsafeArenaSwap(FieldList_FieldWithFieldSep* other) { |
7898 | 0 | if (other == this) return; |
7899 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
7900 | 0 | InternalSwap(other); |
7901 | 0 | } |
7902 | | |
7903 | | // implements Message ---------------------------------------------- |
7904 | | |
7905 | 4.26k | FieldList_FieldWithFieldSep* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
7906 | 4.26k | return CreateMaybeMessage<FieldList_FieldWithFieldSep>(arena); |
7907 | 4.26k | } |
7908 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
7909 | | void CopyFrom(const FieldList_FieldWithFieldSep& from); |
7910 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
7911 | 0 | void MergeFrom( const FieldList_FieldWithFieldSep& from) { |
7912 | 0 | FieldList_FieldWithFieldSep::MergeImpl(*this, from); |
7913 | 0 | } |
7914 | | private: |
7915 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
7916 | | public: |
7917 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
7918 | | bool IsInitialized() const final; |
7919 | | |
7920 | | size_t ByteSizeLong() const final; |
7921 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
7922 | | uint8_t* _InternalSerialize( |
7923 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
7924 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
7925 | | |
7926 | | private: |
7927 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
7928 | | void SharedDtor(); |
7929 | | void SetCachedSize(int size) const final; |
7930 | | void InternalSwap(FieldList_FieldWithFieldSep* other); |
7931 | | |
7932 | | private: |
7933 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
7934 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
7935 | 0 | return "lua_grammar.FieldList.FieldWithFieldSep"; |
7936 | 0 | } |
7937 | | protected: |
7938 | | explicit FieldList_FieldWithFieldSep(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
7939 | | bool is_message_owned = false); |
7940 | | public: |
7941 | | |
7942 | | static const ClassData _class_data_; |
7943 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
7944 | | |
7945 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
7946 | | |
7947 | | // nested types ---------------------------------------------------- |
7948 | | |
7949 | | // accessors ------------------------------------------------------- |
7950 | | |
7951 | | enum : int { |
7952 | | kFieldFieldNumber = 1, |
7953 | | kSepFieldNumber = 2, |
7954 | | }; |
7955 | | // required .lua_grammar.Field field = 1; |
7956 | | bool has_field() const; |
7957 | | private: |
7958 | | bool _internal_has_field() const; |
7959 | | public: |
7960 | | void clear_field(); |
7961 | | const ::lua_grammar::Field& field() const; |
7962 | | PROTOBUF_NODISCARD ::lua_grammar::Field* release_field(); |
7963 | | ::lua_grammar::Field* mutable_field(); |
7964 | | void set_allocated_field(::lua_grammar::Field* field); |
7965 | | private: |
7966 | | const ::lua_grammar::Field& _internal_field() const; |
7967 | | ::lua_grammar::Field* _internal_mutable_field(); |
7968 | | public: |
7969 | | void unsafe_arena_set_allocated_field( |
7970 | | ::lua_grammar::Field* field); |
7971 | | ::lua_grammar::Field* unsafe_arena_release_field(); |
7972 | | |
7973 | | // required .lua_grammar.FieldSep sep = 2; |
7974 | | bool has_sep() const; |
7975 | | private: |
7976 | | bool _internal_has_sep() const; |
7977 | | public: |
7978 | | void clear_sep(); |
7979 | | const ::lua_grammar::FieldSep& sep() const; |
7980 | | PROTOBUF_NODISCARD ::lua_grammar::FieldSep* release_sep(); |
7981 | | ::lua_grammar::FieldSep* mutable_sep(); |
7982 | | void set_allocated_sep(::lua_grammar::FieldSep* sep); |
7983 | | private: |
7984 | | const ::lua_grammar::FieldSep& _internal_sep() const; |
7985 | | ::lua_grammar::FieldSep* _internal_mutable_sep(); |
7986 | | public: |
7987 | | void unsafe_arena_set_allocated_sep( |
7988 | | ::lua_grammar::FieldSep* sep); |
7989 | | ::lua_grammar::FieldSep* unsafe_arena_release_sep(); |
7990 | | |
7991 | | // @@protoc_insertion_point(class_scope:lua_grammar.FieldList.FieldWithFieldSep) |
7992 | | private: |
7993 | | class _Internal; |
7994 | | |
7995 | | // helper for ByteSizeLong() |
7996 | | size_t RequiredFieldsByteSizeFallback() const; |
7997 | | |
7998 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
7999 | | typedef void InternalArenaConstructable_; |
8000 | | typedef void DestructorSkippable_; |
8001 | | struct Impl_ { |
8002 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
8003 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
8004 | | ::lua_grammar::Field* field_; |
8005 | | ::lua_grammar::FieldSep* sep_; |
8006 | | }; |
8007 | | union { Impl_ _impl_; }; |
8008 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
8009 | | }; |
8010 | | // ------------------------------------------------------------------- |
8011 | | |
8012 | | class FieldList final : |
8013 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FieldList) */ { |
8014 | | public: |
8015 | 0 | inline FieldList() : FieldList(nullptr) {} |
8016 | | ~FieldList() override; |
8017 | | explicit PROTOBUF_CONSTEXPR FieldList(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
8018 | | |
8019 | | FieldList(const FieldList& from); |
8020 | | FieldList(FieldList&& from) noexcept |
8021 | 0 | : FieldList() { |
8022 | 0 | *this = ::std::move(from); |
8023 | 0 | } |
8024 | | |
8025 | 0 | inline FieldList& operator=(const FieldList& from) { |
8026 | 0 | CopyFrom(from); |
8027 | 0 | return *this; |
8028 | 0 | } |
8029 | 0 | inline FieldList& operator=(FieldList&& from) noexcept { |
8030 | 0 | if (this == &from) return *this; |
8031 | 0 | if (GetOwningArena() == from.GetOwningArena() |
8032 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
8033 | 0 | && GetOwningArena() != nullptr |
8034 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
8035 | 0 | ) { |
8036 | 0 | InternalSwap(&from); |
8037 | 0 | } else { |
8038 | 0 | CopyFrom(from); |
8039 | 0 | } |
8040 | 0 | return *this; |
8041 | 0 | } |
8042 | | |
8043 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
8044 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
8045 | 0 | } |
8046 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
8047 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8048 | 0 | } |
8049 | | |
8050 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
8051 | 0 | return GetDescriptor(); |
8052 | 0 | } |
8053 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
8054 | 0 | return default_instance().GetMetadata().descriptor; |
8055 | 0 | } |
8056 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
8057 | 0 | return default_instance().GetMetadata().reflection; |
8058 | 0 | } |
8059 | 0 | static const FieldList& default_instance() { |
8060 | 0 | return *internal_default_instance(); |
8061 | 0 | } |
8062 | 8.38k | static inline const FieldList* internal_default_instance() { |
8063 | 8.38k | return reinterpret_cast<const FieldList*>( |
8064 | 8.38k | &_FieldList_default_instance_); |
8065 | 8.38k | } |
8066 | | static constexpr int kIndexInFileMessages = |
8067 | | 38; |
8068 | | |
8069 | 0 | friend void swap(FieldList& a, FieldList& b) { |
8070 | 0 | a.Swap(&b); |
8071 | 0 | } |
8072 | 0 | inline void Swap(FieldList* other) { |
8073 | 0 | if (other == this) return; |
8074 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
8075 | 0 | if (GetOwningArena() != nullptr && |
8076 | 0 | GetOwningArena() == other->GetOwningArena()) { |
8077 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
8078 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
8079 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
8080 | 0 | InternalSwap(other); |
8081 | 0 | } else { |
8082 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
8083 | 0 | } |
8084 | 0 | } |
8085 | 0 | void UnsafeArenaSwap(FieldList* other) { |
8086 | 0 | if (other == this) return; |
8087 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
8088 | 0 | InternalSwap(other); |
8089 | 0 | } |
8090 | | |
8091 | | // implements Message ---------------------------------------------- |
8092 | | |
8093 | 4.19k | FieldList* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
8094 | 4.19k | return CreateMaybeMessage<FieldList>(arena); |
8095 | 4.19k | } |
8096 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
8097 | | void CopyFrom(const FieldList& from); |
8098 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
8099 | 0 | void MergeFrom( const FieldList& from) { |
8100 | 0 | FieldList::MergeImpl(*this, from); |
8101 | 0 | } |
8102 | | private: |
8103 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
8104 | | public: |
8105 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
8106 | | bool IsInitialized() const final; |
8107 | | |
8108 | | size_t ByteSizeLong() const final; |
8109 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
8110 | | uint8_t* _InternalSerialize( |
8111 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
8112 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
8113 | | |
8114 | | private: |
8115 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
8116 | | void SharedDtor(); |
8117 | | void SetCachedSize(int size) const final; |
8118 | | void InternalSwap(FieldList* other); |
8119 | | |
8120 | | private: |
8121 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
8122 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
8123 | 0 | return "lua_grammar.FieldList"; |
8124 | 0 | } |
8125 | | protected: |
8126 | | explicit FieldList(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8127 | | bool is_message_owned = false); |
8128 | | public: |
8129 | | |
8130 | | static const ClassData _class_data_; |
8131 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
8132 | | |
8133 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
8134 | | |
8135 | | // nested types ---------------------------------------------------- |
8136 | | |
8137 | | typedef FieldList_FieldWithFieldSep FieldWithFieldSep; |
8138 | | |
8139 | | // accessors ------------------------------------------------------- |
8140 | | |
8141 | | enum : int { |
8142 | | kFieldsFieldNumber = 2, |
8143 | | kFirstFieldFieldNumber = 1, |
8144 | | kLastSepFieldNumber = 3, |
8145 | | }; |
8146 | | // repeated .lua_grammar.FieldList.FieldWithFieldSep fields = 2; |
8147 | | int fields_size() const; |
8148 | | private: |
8149 | | int _internal_fields_size() const; |
8150 | | public: |
8151 | | void clear_fields(); |
8152 | | ::lua_grammar::FieldList_FieldWithFieldSep* mutable_fields(int index); |
8153 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::FieldList_FieldWithFieldSep >* |
8154 | | mutable_fields(); |
8155 | | private: |
8156 | | const ::lua_grammar::FieldList_FieldWithFieldSep& _internal_fields(int index) const; |
8157 | | ::lua_grammar::FieldList_FieldWithFieldSep* _internal_add_fields(); |
8158 | | public: |
8159 | | const ::lua_grammar::FieldList_FieldWithFieldSep& fields(int index) const; |
8160 | | ::lua_grammar::FieldList_FieldWithFieldSep* add_fields(); |
8161 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::FieldList_FieldWithFieldSep >& |
8162 | | fields() const; |
8163 | | |
8164 | | // required .lua_grammar.Field firstField = 1; |
8165 | | bool has_firstfield() const; |
8166 | | private: |
8167 | | bool _internal_has_firstfield() const; |
8168 | | public: |
8169 | | void clear_firstfield(); |
8170 | | const ::lua_grammar::Field& firstfield() const; |
8171 | | PROTOBUF_NODISCARD ::lua_grammar::Field* release_firstfield(); |
8172 | | ::lua_grammar::Field* mutable_firstfield(); |
8173 | | void set_allocated_firstfield(::lua_grammar::Field* firstfield); |
8174 | | private: |
8175 | | const ::lua_grammar::Field& _internal_firstfield() const; |
8176 | | ::lua_grammar::Field* _internal_mutable_firstfield(); |
8177 | | public: |
8178 | | void unsafe_arena_set_allocated_firstfield( |
8179 | | ::lua_grammar::Field* firstfield); |
8180 | | ::lua_grammar::Field* unsafe_arena_release_firstfield(); |
8181 | | |
8182 | | // optional .lua_grammar.FieldSep lastSep = 3; |
8183 | | bool has_lastsep() const; |
8184 | | private: |
8185 | | bool _internal_has_lastsep() const; |
8186 | | public: |
8187 | | void clear_lastsep(); |
8188 | | const ::lua_grammar::FieldSep& lastsep() const; |
8189 | | PROTOBUF_NODISCARD ::lua_grammar::FieldSep* release_lastsep(); |
8190 | | ::lua_grammar::FieldSep* mutable_lastsep(); |
8191 | | void set_allocated_lastsep(::lua_grammar::FieldSep* lastsep); |
8192 | | private: |
8193 | | const ::lua_grammar::FieldSep& _internal_lastsep() const; |
8194 | | ::lua_grammar::FieldSep* _internal_mutable_lastsep(); |
8195 | | public: |
8196 | | void unsafe_arena_set_allocated_lastsep( |
8197 | | ::lua_grammar::FieldSep* lastsep); |
8198 | | ::lua_grammar::FieldSep* unsafe_arena_release_lastsep(); |
8199 | | |
8200 | | // @@protoc_insertion_point(class_scope:lua_grammar.FieldList) |
8201 | | private: |
8202 | | class _Internal; |
8203 | | |
8204 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
8205 | | typedef void InternalArenaConstructable_; |
8206 | | typedef void DestructorSkippable_; |
8207 | | struct Impl_ { |
8208 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
8209 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
8210 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::FieldList_FieldWithFieldSep > fields_; |
8211 | | ::lua_grammar::Field* firstfield_; |
8212 | | ::lua_grammar::FieldSep* lastsep_; |
8213 | | }; |
8214 | | union { Impl_ _impl_; }; |
8215 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
8216 | | }; |
8217 | | // ------------------------------------------------------------------- |
8218 | | |
8219 | | class Field_ExpressionAssignment final : |
8220 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Field.ExpressionAssignment) */ { |
8221 | | public: |
8222 | 0 | inline Field_ExpressionAssignment() : Field_ExpressionAssignment(nullptr) {} |
8223 | | ~Field_ExpressionAssignment() override; |
8224 | | explicit PROTOBUF_CONSTEXPR Field_ExpressionAssignment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
8225 | | |
8226 | | Field_ExpressionAssignment(const Field_ExpressionAssignment& from); |
8227 | | Field_ExpressionAssignment(Field_ExpressionAssignment&& from) noexcept |
8228 | 0 | : Field_ExpressionAssignment() { |
8229 | 0 | *this = ::std::move(from); |
8230 | 0 | } |
8231 | | |
8232 | 0 | inline Field_ExpressionAssignment& operator=(const Field_ExpressionAssignment& from) { |
8233 | 0 | CopyFrom(from); |
8234 | 0 | return *this; |
8235 | 0 | } |
8236 | 0 | inline Field_ExpressionAssignment& operator=(Field_ExpressionAssignment&& from) noexcept { |
8237 | 0 | if (this == &from) return *this; |
8238 | 0 | if (GetOwningArena() == from.GetOwningArena() |
8239 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
8240 | 0 | && GetOwningArena() != nullptr |
8241 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
8242 | 0 | ) { |
8243 | 0 | InternalSwap(&from); |
8244 | 0 | } else { |
8245 | 0 | CopyFrom(from); |
8246 | 0 | } |
8247 | 0 | return *this; |
8248 | 0 | } |
8249 | | |
8250 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
8251 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
8252 | 0 | } |
8253 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
8254 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8255 | 0 | } |
8256 | | |
8257 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
8258 | 0 | return GetDescriptor(); |
8259 | 0 | } |
8260 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
8261 | 0 | return default_instance().GetMetadata().descriptor; |
8262 | 0 | } |
8263 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
8264 | 0 | return default_instance().GetMetadata().reflection; |
8265 | 0 | } |
8266 | 0 | static const Field_ExpressionAssignment& default_instance() { |
8267 | 0 | return *internal_default_instance(); |
8268 | 0 | } |
8269 | 5.14k | static inline const Field_ExpressionAssignment* internal_default_instance() { |
8270 | 5.14k | return reinterpret_cast<const Field_ExpressionAssignment*>( |
8271 | 5.14k | &_Field_ExpressionAssignment_default_instance_); |
8272 | 5.14k | } |
8273 | | static constexpr int kIndexInFileMessages = |
8274 | | 39; |
8275 | | |
8276 | 0 | friend void swap(Field_ExpressionAssignment& a, Field_ExpressionAssignment& b) { |
8277 | 0 | a.Swap(&b); |
8278 | 0 | } |
8279 | 0 | inline void Swap(Field_ExpressionAssignment* other) { |
8280 | 0 | if (other == this) return; |
8281 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
8282 | 0 | if (GetOwningArena() != nullptr && |
8283 | 0 | GetOwningArena() == other->GetOwningArena()) { |
8284 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
8285 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
8286 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
8287 | 0 | InternalSwap(other); |
8288 | 0 | } else { |
8289 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
8290 | 0 | } |
8291 | 0 | } |
8292 | 0 | void UnsafeArenaSwap(Field_ExpressionAssignment* other) { |
8293 | 0 | if (other == this) return; |
8294 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
8295 | 0 | InternalSwap(other); |
8296 | 0 | } |
8297 | | |
8298 | | // implements Message ---------------------------------------------- |
8299 | | |
8300 | 2.57k | Field_ExpressionAssignment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
8301 | 2.57k | return CreateMaybeMessage<Field_ExpressionAssignment>(arena); |
8302 | 2.57k | } |
8303 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
8304 | | void CopyFrom(const Field_ExpressionAssignment& from); |
8305 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
8306 | 0 | void MergeFrom( const Field_ExpressionAssignment& from) { |
8307 | 0 | Field_ExpressionAssignment::MergeImpl(*this, from); |
8308 | 0 | } |
8309 | | private: |
8310 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
8311 | | public: |
8312 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
8313 | | bool IsInitialized() const final; |
8314 | | |
8315 | | size_t ByteSizeLong() const final; |
8316 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
8317 | | uint8_t* _InternalSerialize( |
8318 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
8319 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
8320 | | |
8321 | | private: |
8322 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
8323 | | void SharedDtor(); |
8324 | | void SetCachedSize(int size) const final; |
8325 | | void InternalSwap(Field_ExpressionAssignment* other); |
8326 | | |
8327 | | private: |
8328 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
8329 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
8330 | 0 | return "lua_grammar.Field.ExpressionAssignment"; |
8331 | 0 | } |
8332 | | protected: |
8333 | | explicit Field_ExpressionAssignment(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8334 | | bool is_message_owned = false); |
8335 | | public: |
8336 | | |
8337 | | static const ClassData _class_data_; |
8338 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
8339 | | |
8340 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
8341 | | |
8342 | | // nested types ---------------------------------------------------- |
8343 | | |
8344 | | // accessors ------------------------------------------------------- |
8345 | | |
8346 | | enum : int { |
8347 | | kKeyFieldNumber = 1, |
8348 | | kValueFieldNumber = 2, |
8349 | | }; |
8350 | | // required .lua_grammar.Expression key = 1; |
8351 | | bool has_key() const; |
8352 | | private: |
8353 | | bool _internal_has_key() const; |
8354 | | public: |
8355 | | void clear_key(); |
8356 | | const ::lua_grammar::Expression& key() const; |
8357 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_key(); |
8358 | | ::lua_grammar::Expression* mutable_key(); |
8359 | | void set_allocated_key(::lua_grammar::Expression* key); |
8360 | | private: |
8361 | | const ::lua_grammar::Expression& _internal_key() const; |
8362 | | ::lua_grammar::Expression* _internal_mutable_key(); |
8363 | | public: |
8364 | | void unsafe_arena_set_allocated_key( |
8365 | | ::lua_grammar::Expression* key); |
8366 | | ::lua_grammar::Expression* unsafe_arena_release_key(); |
8367 | | |
8368 | | // required .lua_grammar.Expression value = 2; |
8369 | | bool has_value() const; |
8370 | | private: |
8371 | | bool _internal_has_value() const; |
8372 | | public: |
8373 | | void clear_value(); |
8374 | | const ::lua_grammar::Expression& value() const; |
8375 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_value(); |
8376 | | ::lua_grammar::Expression* mutable_value(); |
8377 | | void set_allocated_value(::lua_grammar::Expression* value); |
8378 | | private: |
8379 | | const ::lua_grammar::Expression& _internal_value() const; |
8380 | | ::lua_grammar::Expression* _internal_mutable_value(); |
8381 | | public: |
8382 | | void unsafe_arena_set_allocated_value( |
8383 | | ::lua_grammar::Expression* value); |
8384 | | ::lua_grammar::Expression* unsafe_arena_release_value(); |
8385 | | |
8386 | | // @@protoc_insertion_point(class_scope:lua_grammar.Field.ExpressionAssignment) |
8387 | | private: |
8388 | | class _Internal; |
8389 | | |
8390 | | // helper for ByteSizeLong() |
8391 | | size_t RequiredFieldsByteSizeFallback() const; |
8392 | | |
8393 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
8394 | | typedef void InternalArenaConstructable_; |
8395 | | typedef void DestructorSkippable_; |
8396 | | struct Impl_ { |
8397 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
8398 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
8399 | | ::lua_grammar::Expression* key_; |
8400 | | ::lua_grammar::Expression* value_; |
8401 | | }; |
8402 | | union { Impl_ _impl_; }; |
8403 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
8404 | | }; |
8405 | | // ------------------------------------------------------------------- |
8406 | | |
8407 | | class Field_NameAssignment final : |
8408 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Field.NameAssignment) */ { |
8409 | | public: |
8410 | 0 | inline Field_NameAssignment() : Field_NameAssignment(nullptr) {} |
8411 | | ~Field_NameAssignment() override; |
8412 | | explicit PROTOBUF_CONSTEXPR Field_NameAssignment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
8413 | | |
8414 | | Field_NameAssignment(const Field_NameAssignment& from); |
8415 | | Field_NameAssignment(Field_NameAssignment&& from) noexcept |
8416 | 0 | : Field_NameAssignment() { |
8417 | 0 | *this = ::std::move(from); |
8418 | 0 | } |
8419 | | |
8420 | 0 | inline Field_NameAssignment& operator=(const Field_NameAssignment& from) { |
8421 | 0 | CopyFrom(from); |
8422 | 0 | return *this; |
8423 | 0 | } |
8424 | 0 | inline Field_NameAssignment& operator=(Field_NameAssignment&& from) noexcept { |
8425 | 0 | if (this == &from) return *this; |
8426 | 0 | if (GetOwningArena() == from.GetOwningArena() |
8427 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
8428 | 0 | && GetOwningArena() != nullptr |
8429 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
8430 | 0 | ) { |
8431 | 0 | InternalSwap(&from); |
8432 | 0 | } else { |
8433 | 0 | CopyFrom(from); |
8434 | 0 | } |
8435 | 0 | return *this; |
8436 | 0 | } |
8437 | | |
8438 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
8439 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
8440 | 0 | } |
8441 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
8442 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8443 | 0 | } |
8444 | | |
8445 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
8446 | 0 | return GetDescriptor(); |
8447 | 0 | } |
8448 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
8449 | 0 | return default_instance().GetMetadata().descriptor; |
8450 | 0 | } |
8451 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
8452 | 0 | return default_instance().GetMetadata().reflection; |
8453 | 0 | } |
8454 | 0 | static const Field_NameAssignment& default_instance() { |
8455 | 0 | return *internal_default_instance(); |
8456 | 0 | } |
8457 | 700 | static inline const Field_NameAssignment* internal_default_instance() { |
8458 | 700 | return reinterpret_cast<const Field_NameAssignment*>( |
8459 | 700 | &_Field_NameAssignment_default_instance_); |
8460 | 700 | } |
8461 | | static constexpr int kIndexInFileMessages = |
8462 | | 40; |
8463 | | |
8464 | 0 | friend void swap(Field_NameAssignment& a, Field_NameAssignment& b) { |
8465 | 0 | a.Swap(&b); |
8466 | 0 | } |
8467 | 0 | inline void Swap(Field_NameAssignment* other) { |
8468 | 0 | if (other == this) return; |
8469 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
8470 | 0 | if (GetOwningArena() != nullptr && |
8471 | 0 | GetOwningArena() == other->GetOwningArena()) { |
8472 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
8473 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
8474 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
8475 | 0 | InternalSwap(other); |
8476 | 0 | } else { |
8477 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
8478 | 0 | } |
8479 | 0 | } |
8480 | 0 | void UnsafeArenaSwap(Field_NameAssignment* other) { |
8481 | 0 | if (other == this) return; |
8482 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
8483 | 0 | InternalSwap(other); |
8484 | 0 | } |
8485 | | |
8486 | | // implements Message ---------------------------------------------- |
8487 | | |
8488 | 350 | Field_NameAssignment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
8489 | 350 | return CreateMaybeMessage<Field_NameAssignment>(arena); |
8490 | 350 | } |
8491 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
8492 | | void CopyFrom(const Field_NameAssignment& from); |
8493 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
8494 | 0 | void MergeFrom( const Field_NameAssignment& from) { |
8495 | 0 | Field_NameAssignment::MergeImpl(*this, from); |
8496 | 0 | } |
8497 | | private: |
8498 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
8499 | | public: |
8500 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
8501 | | bool IsInitialized() const final; |
8502 | | |
8503 | | size_t ByteSizeLong() const final; |
8504 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
8505 | | uint8_t* _InternalSerialize( |
8506 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
8507 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
8508 | | |
8509 | | private: |
8510 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
8511 | | void SharedDtor(); |
8512 | | void SetCachedSize(int size) const final; |
8513 | | void InternalSwap(Field_NameAssignment* other); |
8514 | | |
8515 | | private: |
8516 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
8517 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
8518 | 0 | return "lua_grammar.Field.NameAssignment"; |
8519 | 0 | } |
8520 | | protected: |
8521 | | explicit Field_NameAssignment(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8522 | | bool is_message_owned = false); |
8523 | | public: |
8524 | | |
8525 | | static const ClassData _class_data_; |
8526 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
8527 | | |
8528 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
8529 | | |
8530 | | // nested types ---------------------------------------------------- |
8531 | | |
8532 | | // accessors ------------------------------------------------------- |
8533 | | |
8534 | | enum : int { |
8535 | | kNameFieldNumber = 1, |
8536 | | kValueFieldNumber = 2, |
8537 | | }; |
8538 | | // required .lua_grammar.Name name = 1; |
8539 | | bool has_name() const; |
8540 | | private: |
8541 | | bool _internal_has_name() const; |
8542 | | public: |
8543 | | void clear_name(); |
8544 | | const ::lua_grammar::Name& name() const; |
8545 | | PROTOBUF_NODISCARD ::lua_grammar::Name* release_name(); |
8546 | | ::lua_grammar::Name* mutable_name(); |
8547 | | void set_allocated_name(::lua_grammar::Name* name); |
8548 | | private: |
8549 | | const ::lua_grammar::Name& _internal_name() const; |
8550 | | ::lua_grammar::Name* _internal_mutable_name(); |
8551 | | public: |
8552 | | void unsafe_arena_set_allocated_name( |
8553 | | ::lua_grammar::Name* name); |
8554 | | ::lua_grammar::Name* unsafe_arena_release_name(); |
8555 | | |
8556 | | // required .lua_grammar.Expression value = 2; |
8557 | | bool has_value() const; |
8558 | | private: |
8559 | | bool _internal_has_value() const; |
8560 | | public: |
8561 | | void clear_value(); |
8562 | | const ::lua_grammar::Expression& value() const; |
8563 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_value(); |
8564 | | ::lua_grammar::Expression* mutable_value(); |
8565 | | void set_allocated_value(::lua_grammar::Expression* value); |
8566 | | private: |
8567 | | const ::lua_grammar::Expression& _internal_value() const; |
8568 | | ::lua_grammar::Expression* _internal_mutable_value(); |
8569 | | public: |
8570 | | void unsafe_arena_set_allocated_value( |
8571 | | ::lua_grammar::Expression* value); |
8572 | | ::lua_grammar::Expression* unsafe_arena_release_value(); |
8573 | | |
8574 | | // @@protoc_insertion_point(class_scope:lua_grammar.Field.NameAssignment) |
8575 | | private: |
8576 | | class _Internal; |
8577 | | |
8578 | | // helper for ByteSizeLong() |
8579 | | size_t RequiredFieldsByteSizeFallback() const; |
8580 | | |
8581 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
8582 | | typedef void InternalArenaConstructable_; |
8583 | | typedef void DestructorSkippable_; |
8584 | | struct Impl_ { |
8585 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
8586 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
8587 | | ::lua_grammar::Name* name_; |
8588 | | ::lua_grammar::Expression* value_; |
8589 | | }; |
8590 | | union { Impl_ _impl_; }; |
8591 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
8592 | | }; |
8593 | | // ------------------------------------------------------------------- |
8594 | | |
8595 | | class Field final : |
8596 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Field) */ { |
8597 | | public: |
8598 | 0 | inline Field() : Field(nullptr) {} |
8599 | | ~Field() override; |
8600 | | explicit PROTOBUF_CONSTEXPR Field(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
8601 | | |
8602 | | Field(const Field& from); |
8603 | | Field(Field&& from) noexcept |
8604 | 0 | : Field() { |
8605 | 0 | *this = ::std::move(from); |
8606 | 0 | } |
8607 | | |
8608 | 0 | inline Field& operator=(const Field& from) { |
8609 | 0 | CopyFrom(from); |
8610 | 0 | return *this; |
8611 | 0 | } |
8612 | 0 | inline Field& operator=(Field&& from) noexcept { |
8613 | 0 | if (this == &from) return *this; |
8614 | 0 | if (GetOwningArena() == from.GetOwningArena() |
8615 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
8616 | 0 | && GetOwningArena() != nullptr |
8617 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
8618 | 0 | ) { |
8619 | 0 | InternalSwap(&from); |
8620 | 0 | } else { |
8621 | 0 | CopyFrom(from); |
8622 | 0 | } |
8623 | 0 | return *this; |
8624 | 0 | } |
8625 | | |
8626 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
8627 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
8628 | 0 | } |
8629 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
8630 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8631 | 0 | } |
8632 | | |
8633 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
8634 | 0 | return GetDescriptor(); |
8635 | 0 | } |
8636 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
8637 | 0 | return default_instance().GetMetadata().descriptor; |
8638 | 0 | } |
8639 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
8640 | 0 | return default_instance().GetMetadata().reflection; |
8641 | 0 | } |
8642 | 0 | static const Field& default_instance() { |
8643 | 0 | return *internal_default_instance(); |
8644 | 0 | } |
8645 | | enum FieldOneofCase { |
8646 | | kExprassign = 1, |
8647 | | kNamedassign = 2, |
8648 | | kExpression = 3, |
8649 | | FIELD_ONEOF_NOT_SET = 0, |
8650 | | }; |
8651 | | |
8652 | 0 | static inline const Field* internal_default_instance() { |
8653 | 0 | return reinterpret_cast<const Field*>( |
8654 | 0 | &_Field_default_instance_); |
8655 | 0 | } |
8656 | | static constexpr int kIndexInFileMessages = |
8657 | | 41; |
8658 | | |
8659 | 0 | friend void swap(Field& a, Field& b) { |
8660 | 0 | a.Swap(&b); |
8661 | 0 | } |
8662 | 0 | inline void Swap(Field* other) { |
8663 | 0 | if (other == this) return; |
8664 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
8665 | 0 | if (GetOwningArena() != nullptr && |
8666 | 0 | GetOwningArena() == other->GetOwningArena()) { |
8667 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
8668 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
8669 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
8670 | 0 | InternalSwap(other); |
8671 | 0 | } else { |
8672 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
8673 | 0 | } |
8674 | 0 | } |
8675 | 0 | void UnsafeArenaSwap(Field* other) { |
8676 | 0 | if (other == this) return; |
8677 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
8678 | 0 | InternalSwap(other); |
8679 | 0 | } |
8680 | | |
8681 | | // implements Message ---------------------------------------------- |
8682 | | |
8683 | 8.45k | Field* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
8684 | 8.45k | return CreateMaybeMessage<Field>(arena); |
8685 | 8.45k | } |
8686 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
8687 | | void CopyFrom(const Field& from); |
8688 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
8689 | 0 | void MergeFrom( const Field& from) { |
8690 | 0 | Field::MergeImpl(*this, from); |
8691 | 0 | } |
8692 | | private: |
8693 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
8694 | | public: |
8695 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
8696 | | bool IsInitialized() const final; |
8697 | | |
8698 | | size_t ByteSizeLong() const final; |
8699 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
8700 | | uint8_t* _InternalSerialize( |
8701 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
8702 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
8703 | | |
8704 | | private: |
8705 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
8706 | | void SharedDtor(); |
8707 | | void SetCachedSize(int size) const final; |
8708 | | void InternalSwap(Field* other); |
8709 | | |
8710 | | private: |
8711 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
8712 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
8713 | 0 | return "lua_grammar.Field"; |
8714 | 0 | } |
8715 | | protected: |
8716 | | explicit Field(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8717 | | bool is_message_owned = false); |
8718 | | public: |
8719 | | |
8720 | | static const ClassData _class_data_; |
8721 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
8722 | | |
8723 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
8724 | | |
8725 | | // nested types ---------------------------------------------------- |
8726 | | |
8727 | | typedef Field_ExpressionAssignment ExpressionAssignment; |
8728 | | typedef Field_NameAssignment NameAssignment; |
8729 | | |
8730 | | // accessors ------------------------------------------------------- |
8731 | | |
8732 | | enum : int { |
8733 | | kExprassignFieldNumber = 1, |
8734 | | kNamedassignFieldNumber = 2, |
8735 | | kExpressionFieldNumber = 3, |
8736 | | }; |
8737 | | // .lua_grammar.Field.ExpressionAssignment exprassign = 1; |
8738 | | bool has_exprassign() const; |
8739 | | private: |
8740 | | bool _internal_has_exprassign() const; |
8741 | | public: |
8742 | | void clear_exprassign(); |
8743 | | const ::lua_grammar::Field_ExpressionAssignment& exprassign() const; |
8744 | | PROTOBUF_NODISCARD ::lua_grammar::Field_ExpressionAssignment* release_exprassign(); |
8745 | | ::lua_grammar::Field_ExpressionAssignment* mutable_exprassign(); |
8746 | | void set_allocated_exprassign(::lua_grammar::Field_ExpressionAssignment* exprassign); |
8747 | | private: |
8748 | | const ::lua_grammar::Field_ExpressionAssignment& _internal_exprassign() const; |
8749 | | ::lua_grammar::Field_ExpressionAssignment* _internal_mutable_exprassign(); |
8750 | | public: |
8751 | | void unsafe_arena_set_allocated_exprassign( |
8752 | | ::lua_grammar::Field_ExpressionAssignment* exprassign); |
8753 | | ::lua_grammar::Field_ExpressionAssignment* unsafe_arena_release_exprassign(); |
8754 | | |
8755 | | // .lua_grammar.Field.NameAssignment namedassign = 2; |
8756 | | bool has_namedassign() const; |
8757 | | private: |
8758 | | bool _internal_has_namedassign() const; |
8759 | | public: |
8760 | | void clear_namedassign(); |
8761 | | const ::lua_grammar::Field_NameAssignment& namedassign() const; |
8762 | | PROTOBUF_NODISCARD ::lua_grammar::Field_NameAssignment* release_namedassign(); |
8763 | | ::lua_grammar::Field_NameAssignment* mutable_namedassign(); |
8764 | | void set_allocated_namedassign(::lua_grammar::Field_NameAssignment* namedassign); |
8765 | | private: |
8766 | | const ::lua_grammar::Field_NameAssignment& _internal_namedassign() const; |
8767 | | ::lua_grammar::Field_NameAssignment* _internal_mutable_namedassign(); |
8768 | | public: |
8769 | | void unsafe_arena_set_allocated_namedassign( |
8770 | | ::lua_grammar::Field_NameAssignment* namedassign); |
8771 | | ::lua_grammar::Field_NameAssignment* unsafe_arena_release_namedassign(); |
8772 | | |
8773 | | // .lua_grammar.Expression expression = 3; |
8774 | | bool has_expression() const; |
8775 | | private: |
8776 | | bool _internal_has_expression() const; |
8777 | | public: |
8778 | | void clear_expression(); |
8779 | | const ::lua_grammar::Expression& expression() const; |
8780 | | PROTOBUF_NODISCARD ::lua_grammar::Expression* release_expression(); |
8781 | | ::lua_grammar::Expression* mutable_expression(); |
8782 | | void set_allocated_expression(::lua_grammar::Expression* expression); |
8783 | | private: |
8784 | | const ::lua_grammar::Expression& _internal_expression() const; |
8785 | | ::lua_grammar::Expression* _internal_mutable_expression(); |
8786 | | public: |
8787 | | void unsafe_arena_set_allocated_expression( |
8788 | | ::lua_grammar::Expression* expression); |
8789 | | ::lua_grammar::Expression* unsafe_arena_release_expression(); |
8790 | | |
8791 | | void clear_field_oneof(); |
8792 | | FieldOneofCase field_oneof_case() const; |
8793 | | // @@protoc_insertion_point(class_scope:lua_grammar.Field) |
8794 | | private: |
8795 | | class _Internal; |
8796 | | void set_has_exprassign(); |
8797 | | void set_has_namedassign(); |
8798 | | void set_has_expression(); |
8799 | | |
8800 | | inline bool has_field_oneof() const; |
8801 | | inline void clear_has_field_oneof(); |
8802 | | |
8803 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
8804 | | typedef void InternalArenaConstructable_; |
8805 | | typedef void DestructorSkippable_; |
8806 | | struct Impl_ { |
8807 | | union FieldOneofUnion { |
8808 | 8.45k | constexpr FieldOneofUnion() : _constinit_{} {} |
8809 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
8810 | | ::lua_grammar::Field_ExpressionAssignment* exprassign_; |
8811 | | ::lua_grammar::Field_NameAssignment* namedassign_; |
8812 | | ::lua_grammar::Expression* expression_; |
8813 | | } field_oneof_; |
8814 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
8815 | | uint32_t _oneof_case_[1]; |
8816 | | |
8817 | | }; |
8818 | | union { Impl_ _impl_; }; |
8819 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
8820 | | }; |
8821 | | // ------------------------------------------------------------------- |
8822 | | |
8823 | | class FieldSep final : |
8824 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.FieldSep) */ { |
8825 | | public: |
8826 | 0 | inline FieldSep() : FieldSep(nullptr) {} |
8827 | | ~FieldSep() override; |
8828 | | explicit PROTOBUF_CONSTEXPR FieldSep(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
8829 | | |
8830 | | FieldSep(const FieldSep& from); |
8831 | | FieldSep(FieldSep&& from) noexcept |
8832 | 0 | : FieldSep() { |
8833 | 0 | *this = ::std::move(from); |
8834 | 0 | } |
8835 | | |
8836 | 0 | inline FieldSep& operator=(const FieldSep& from) { |
8837 | 0 | CopyFrom(from); |
8838 | 0 | return *this; |
8839 | 0 | } |
8840 | 0 | inline FieldSep& operator=(FieldSep&& from) noexcept { |
8841 | 0 | if (this == &from) return *this; |
8842 | 0 | if (GetOwningArena() == from.GetOwningArena() |
8843 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
8844 | 0 | && GetOwningArena() != nullptr |
8845 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
8846 | 0 | ) { |
8847 | 0 | InternalSwap(&from); |
8848 | 0 | } else { |
8849 | 0 | CopyFrom(from); |
8850 | 0 | } |
8851 | 0 | return *this; |
8852 | 0 | } |
8853 | | |
8854 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
8855 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
8856 | 0 | } |
8857 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
8858 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
8859 | 0 | } |
8860 | | |
8861 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
8862 | 0 | return GetDescriptor(); |
8863 | 0 | } |
8864 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
8865 | 0 | return default_instance().GetMetadata().descriptor; |
8866 | 0 | } |
8867 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
8868 | 0 | return default_instance().GetMetadata().reflection; |
8869 | 0 | } |
8870 | 0 | static const FieldSep& default_instance() { |
8871 | 0 | return *internal_default_instance(); |
8872 | 0 | } |
8873 | | enum SepOneofCase { |
8874 | | kComma = 1, |
8875 | | kSemicolon = 2, |
8876 | | SEP_ONEOF_NOT_SET = 0, |
8877 | | }; |
8878 | | |
8879 | 0 | static inline const FieldSep* internal_default_instance() { |
8880 | 0 | return reinterpret_cast<const FieldSep*>( |
8881 | 0 | &_FieldSep_default_instance_); |
8882 | 0 | } |
8883 | | static constexpr int kIndexInFileMessages = |
8884 | | 42; |
8885 | | |
8886 | 0 | friend void swap(FieldSep& a, FieldSep& b) { |
8887 | 0 | a.Swap(&b); |
8888 | 0 | } |
8889 | 0 | inline void Swap(FieldSep* other) { |
8890 | 0 | if (other == this) return; |
8891 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
8892 | 0 | if (GetOwningArena() != nullptr && |
8893 | 0 | GetOwningArena() == other->GetOwningArena()) { |
8894 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
8895 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
8896 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
8897 | 0 | InternalSwap(other); |
8898 | 0 | } else { |
8899 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
8900 | 0 | } |
8901 | 0 | } |
8902 | 0 | void UnsafeArenaSwap(FieldSep* other) { |
8903 | 0 | if (other == this) return; |
8904 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
8905 | 0 | InternalSwap(other); |
8906 | 0 | } |
8907 | | |
8908 | | // implements Message ---------------------------------------------- |
8909 | | |
8910 | 4.79k | FieldSep* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
8911 | 4.79k | return CreateMaybeMessage<FieldSep>(arena); |
8912 | 4.79k | } |
8913 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
8914 | | void CopyFrom(const FieldSep& from); |
8915 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
8916 | 0 | void MergeFrom( const FieldSep& from) { |
8917 | 0 | FieldSep::MergeImpl(*this, from); |
8918 | 0 | } |
8919 | | private: |
8920 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
8921 | | public: |
8922 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
8923 | | bool IsInitialized() const final; |
8924 | | |
8925 | | size_t ByteSizeLong() const final; |
8926 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
8927 | | uint8_t* _InternalSerialize( |
8928 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
8929 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
8930 | | |
8931 | | private: |
8932 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
8933 | | void SharedDtor(); |
8934 | | void SetCachedSize(int size) const final; |
8935 | | void InternalSwap(FieldSep* other); |
8936 | | |
8937 | | private: |
8938 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
8939 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
8940 | 0 | return "lua_grammar.FieldSep"; |
8941 | 0 | } |
8942 | | protected: |
8943 | | explicit FieldSep(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
8944 | | bool is_message_owned = false); |
8945 | | public: |
8946 | | |
8947 | | static const ClassData _class_data_; |
8948 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
8949 | | |
8950 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
8951 | | |
8952 | | // nested types ---------------------------------------------------- |
8953 | | |
8954 | | // accessors ------------------------------------------------------- |
8955 | | |
8956 | | enum : int { |
8957 | | kCommaFieldNumber = 1, |
8958 | | kSemicolonFieldNumber = 2, |
8959 | | }; |
8960 | | // uint32 comma = 1; |
8961 | | bool has_comma() const; |
8962 | | private: |
8963 | | bool _internal_has_comma() const; |
8964 | | public: |
8965 | | void clear_comma(); |
8966 | | uint32_t comma() const; |
8967 | | void set_comma(uint32_t value); |
8968 | | private: |
8969 | | uint32_t _internal_comma() const; |
8970 | | void _internal_set_comma(uint32_t value); |
8971 | | public: |
8972 | | |
8973 | | // uint32 semicolon = 2; |
8974 | | bool has_semicolon() const; |
8975 | | private: |
8976 | | bool _internal_has_semicolon() const; |
8977 | | public: |
8978 | | void clear_semicolon(); |
8979 | | uint32_t semicolon() const; |
8980 | | void set_semicolon(uint32_t value); |
8981 | | private: |
8982 | | uint32_t _internal_semicolon() const; |
8983 | | void _internal_set_semicolon(uint32_t value); |
8984 | | public: |
8985 | | |
8986 | | void clear_sep_oneof(); |
8987 | | SepOneofCase sep_oneof_case() const; |
8988 | | // @@protoc_insertion_point(class_scope:lua_grammar.FieldSep) |
8989 | | private: |
8990 | | class _Internal; |
8991 | | void set_has_comma(); |
8992 | | void set_has_semicolon(); |
8993 | | |
8994 | | inline bool has_sep_oneof() const; |
8995 | | inline void clear_has_sep_oneof(); |
8996 | | |
8997 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
8998 | | typedef void InternalArenaConstructable_; |
8999 | | typedef void DestructorSkippable_; |
9000 | | struct Impl_ { |
9001 | | union SepOneofUnion { |
9002 | 4.79k | constexpr SepOneofUnion() : _constinit_{} {} |
9003 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
9004 | | uint32_t comma_; |
9005 | | uint32_t semicolon_; |
9006 | | } sep_oneof_; |
9007 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
9008 | | uint32_t _oneof_case_[1]; |
9009 | | |
9010 | | }; |
9011 | | union { Impl_ _impl_; }; |
9012 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
9013 | | }; |
9014 | | // ------------------------------------------------------------------- |
9015 | | |
9016 | | class BinaryOperator final : |
9017 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.BinaryOperator) */ { |
9018 | | public: |
9019 | 0 | inline BinaryOperator() : BinaryOperator(nullptr) {} |
9020 | | ~BinaryOperator() override; |
9021 | | explicit PROTOBUF_CONSTEXPR BinaryOperator(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
9022 | | |
9023 | | BinaryOperator(const BinaryOperator& from); |
9024 | | BinaryOperator(BinaryOperator&& from) noexcept |
9025 | 0 | : BinaryOperator() { |
9026 | 0 | *this = ::std::move(from); |
9027 | 0 | } |
9028 | | |
9029 | 0 | inline BinaryOperator& operator=(const BinaryOperator& from) { |
9030 | 0 | CopyFrom(from); |
9031 | 0 | return *this; |
9032 | 0 | } |
9033 | 0 | inline BinaryOperator& operator=(BinaryOperator&& from) noexcept { |
9034 | 0 | if (this == &from) return *this; |
9035 | 0 | if (GetOwningArena() == from.GetOwningArena() |
9036 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
9037 | 0 | && GetOwningArena() != nullptr |
9038 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
9039 | 0 | ) { |
9040 | 0 | InternalSwap(&from); |
9041 | 0 | } else { |
9042 | 0 | CopyFrom(from); |
9043 | 0 | } |
9044 | 0 | return *this; |
9045 | 0 | } |
9046 | | |
9047 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
9048 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
9049 | 0 | } |
9050 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
9051 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
9052 | 0 | } |
9053 | | |
9054 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
9055 | 0 | return GetDescriptor(); |
9056 | 0 | } |
9057 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
9058 | 0 | return default_instance().GetMetadata().descriptor; |
9059 | 0 | } |
9060 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
9061 | 0 | return default_instance().GetMetadata().reflection; |
9062 | 0 | } |
9063 | 0 | static const BinaryOperator& default_instance() { |
9064 | 0 | return *internal_default_instance(); |
9065 | 0 | } |
9066 | | enum BinaryOneofCase { |
9067 | | kAdd = 1, |
9068 | | kSub = 2, |
9069 | | kMult = 3, |
9070 | | kDiv = 4, |
9071 | | kExp = 5, |
9072 | | kMod = 6, |
9073 | | kConcat = 7, |
9074 | | kLess = 8, |
9075 | | kLessEqual = 9, |
9076 | | kGreater = 10, |
9077 | | kGreaterEqual = 11, |
9078 | | kEqual = 12, |
9079 | | kNotEqual = 13, |
9080 | | kAnd = 14, |
9081 | | kOr = 15, |
9082 | | BINARY_ONEOF_NOT_SET = 0, |
9083 | | }; |
9084 | | |
9085 | 0 | static inline const BinaryOperator* internal_default_instance() { |
9086 | 0 | return reinterpret_cast<const BinaryOperator*>( |
9087 | 0 | &_BinaryOperator_default_instance_); |
9088 | 0 | } |
9089 | | static constexpr int kIndexInFileMessages = |
9090 | | 43; |
9091 | | |
9092 | 0 | friend void swap(BinaryOperator& a, BinaryOperator& b) { |
9093 | 0 | a.Swap(&b); |
9094 | 0 | } |
9095 | 0 | inline void Swap(BinaryOperator* other) { |
9096 | 0 | if (other == this) return; |
9097 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
9098 | 0 | if (GetOwningArena() != nullptr && |
9099 | 0 | GetOwningArena() == other->GetOwningArena()) { |
9100 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
9101 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
9102 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
9103 | 0 | InternalSwap(other); |
9104 | 0 | } else { |
9105 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
9106 | 0 | } |
9107 | 0 | } |
9108 | 0 | void UnsafeArenaSwap(BinaryOperator* other) { |
9109 | 0 | if (other == this) return; |
9110 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
9111 | 0 | InternalSwap(other); |
9112 | 0 | } |
9113 | | |
9114 | | // implements Message ---------------------------------------------- |
9115 | | |
9116 | 18.9k | BinaryOperator* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
9117 | 18.9k | return CreateMaybeMessage<BinaryOperator>(arena); |
9118 | 18.9k | } |
9119 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
9120 | | void CopyFrom(const BinaryOperator& from); |
9121 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
9122 | 0 | void MergeFrom( const BinaryOperator& from) { |
9123 | 0 | BinaryOperator::MergeImpl(*this, from); |
9124 | 0 | } |
9125 | | private: |
9126 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
9127 | | public: |
9128 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
9129 | | bool IsInitialized() const final; |
9130 | | |
9131 | | size_t ByteSizeLong() const final; |
9132 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
9133 | | uint8_t* _InternalSerialize( |
9134 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
9135 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
9136 | | |
9137 | | private: |
9138 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
9139 | | void SharedDtor(); |
9140 | | void SetCachedSize(int size) const final; |
9141 | | void InternalSwap(BinaryOperator* other); |
9142 | | |
9143 | | private: |
9144 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
9145 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
9146 | 0 | return "lua_grammar.BinaryOperator"; |
9147 | 0 | } |
9148 | | protected: |
9149 | | explicit BinaryOperator(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
9150 | | bool is_message_owned = false); |
9151 | | public: |
9152 | | |
9153 | | static const ClassData _class_data_; |
9154 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
9155 | | |
9156 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
9157 | | |
9158 | | // nested types ---------------------------------------------------- |
9159 | | |
9160 | | // accessors ------------------------------------------------------- |
9161 | | |
9162 | | enum : int { |
9163 | | kAddFieldNumber = 1, |
9164 | | kSubFieldNumber = 2, |
9165 | | kMultFieldNumber = 3, |
9166 | | kDivFieldNumber = 4, |
9167 | | kExpFieldNumber = 5, |
9168 | | kModFieldNumber = 6, |
9169 | | kConcatFieldNumber = 7, |
9170 | | kLessFieldNumber = 8, |
9171 | | kLessEqualFieldNumber = 9, |
9172 | | kGreaterFieldNumber = 10, |
9173 | | kGreaterEqualFieldNumber = 11, |
9174 | | kEqualFieldNumber = 12, |
9175 | | kNotEqualFieldNumber = 13, |
9176 | | kAndFieldNumber = 14, |
9177 | | kOrFieldNumber = 15, |
9178 | | }; |
9179 | | // uint32 add = 1; |
9180 | | bool has_add() const; |
9181 | | private: |
9182 | | bool _internal_has_add() const; |
9183 | | public: |
9184 | | void clear_add(); |
9185 | | uint32_t add() const; |
9186 | | void set_add(uint32_t value); |
9187 | | private: |
9188 | | uint32_t _internal_add() const; |
9189 | | void _internal_set_add(uint32_t value); |
9190 | | public: |
9191 | | |
9192 | | // uint32 sub = 2; |
9193 | | bool has_sub() const; |
9194 | | private: |
9195 | | bool _internal_has_sub() const; |
9196 | | public: |
9197 | | void clear_sub(); |
9198 | | uint32_t sub() const; |
9199 | | void set_sub(uint32_t value); |
9200 | | private: |
9201 | | uint32_t _internal_sub() const; |
9202 | | void _internal_set_sub(uint32_t value); |
9203 | | public: |
9204 | | |
9205 | | // uint32 mult = 3; |
9206 | | bool has_mult() const; |
9207 | | private: |
9208 | | bool _internal_has_mult() const; |
9209 | | public: |
9210 | | void clear_mult(); |
9211 | | uint32_t mult() const; |
9212 | | void set_mult(uint32_t value); |
9213 | | private: |
9214 | | uint32_t _internal_mult() const; |
9215 | | void _internal_set_mult(uint32_t value); |
9216 | | public: |
9217 | | |
9218 | | // uint32 div = 4; |
9219 | | bool has_div() const; |
9220 | | private: |
9221 | | bool _internal_has_div() const; |
9222 | | public: |
9223 | | void clear_div(); |
9224 | | uint32_t div() const; |
9225 | | void set_div(uint32_t value); |
9226 | | private: |
9227 | | uint32_t _internal_div() const; |
9228 | | void _internal_set_div(uint32_t value); |
9229 | | public: |
9230 | | |
9231 | | // uint32 exp = 5; |
9232 | | bool has_exp() const; |
9233 | | private: |
9234 | | bool _internal_has_exp() const; |
9235 | | public: |
9236 | | void clear_exp(); |
9237 | | uint32_t exp() const; |
9238 | | void set_exp(uint32_t value); |
9239 | | private: |
9240 | | uint32_t _internal_exp() const; |
9241 | | void _internal_set_exp(uint32_t value); |
9242 | | public: |
9243 | | |
9244 | | // uint32 mod = 6; |
9245 | | bool has_mod() const; |
9246 | | private: |
9247 | | bool _internal_has_mod() const; |
9248 | | public: |
9249 | | void clear_mod(); |
9250 | | uint32_t mod() const; |
9251 | | void set_mod(uint32_t value); |
9252 | | private: |
9253 | | uint32_t _internal_mod() const; |
9254 | | void _internal_set_mod(uint32_t value); |
9255 | | public: |
9256 | | |
9257 | | // uint32 concat = 7; |
9258 | | bool has_concat() const; |
9259 | | private: |
9260 | | bool _internal_has_concat() const; |
9261 | | public: |
9262 | | void clear_concat(); |
9263 | | uint32_t concat() const; |
9264 | | void set_concat(uint32_t value); |
9265 | | private: |
9266 | | uint32_t _internal_concat() const; |
9267 | | void _internal_set_concat(uint32_t value); |
9268 | | public: |
9269 | | |
9270 | | // uint32 less = 8; |
9271 | | bool has_less() const; |
9272 | | private: |
9273 | | bool _internal_has_less() const; |
9274 | | public: |
9275 | | void clear_less(); |
9276 | | uint32_t less() const; |
9277 | | void set_less(uint32_t value); |
9278 | | private: |
9279 | | uint32_t _internal_less() const; |
9280 | | void _internal_set_less(uint32_t value); |
9281 | | public: |
9282 | | |
9283 | | // uint32 lessEqual = 9; |
9284 | | bool has_lessequal() const; |
9285 | | private: |
9286 | | bool _internal_has_lessequal() const; |
9287 | | public: |
9288 | | void clear_lessequal(); |
9289 | | uint32_t lessequal() const; |
9290 | | void set_lessequal(uint32_t value); |
9291 | | private: |
9292 | | uint32_t _internal_lessequal() const; |
9293 | | void _internal_set_lessequal(uint32_t value); |
9294 | | public: |
9295 | | |
9296 | | // uint32 greater = 10; |
9297 | | bool has_greater() const; |
9298 | | private: |
9299 | | bool _internal_has_greater() const; |
9300 | | public: |
9301 | | void clear_greater(); |
9302 | | uint32_t greater() const; |
9303 | | void set_greater(uint32_t value); |
9304 | | private: |
9305 | | uint32_t _internal_greater() const; |
9306 | | void _internal_set_greater(uint32_t value); |
9307 | | public: |
9308 | | |
9309 | | // uint32 greaterEqual = 11; |
9310 | | bool has_greaterequal() const; |
9311 | | private: |
9312 | | bool _internal_has_greaterequal() const; |
9313 | | public: |
9314 | | void clear_greaterequal(); |
9315 | | uint32_t greaterequal() const; |
9316 | | void set_greaterequal(uint32_t value); |
9317 | | private: |
9318 | | uint32_t _internal_greaterequal() const; |
9319 | | void _internal_set_greaterequal(uint32_t value); |
9320 | | public: |
9321 | | |
9322 | | // uint32 equal = 12; |
9323 | | bool has_equal() const; |
9324 | | private: |
9325 | | bool _internal_has_equal() const; |
9326 | | public: |
9327 | | void clear_equal(); |
9328 | | uint32_t equal() const; |
9329 | | void set_equal(uint32_t value); |
9330 | | private: |
9331 | | uint32_t _internal_equal() const; |
9332 | | void _internal_set_equal(uint32_t value); |
9333 | | public: |
9334 | | |
9335 | | // uint32 notEqual = 13; |
9336 | | bool has_notequal() const; |
9337 | | private: |
9338 | | bool _internal_has_notequal() const; |
9339 | | public: |
9340 | | void clear_notequal(); |
9341 | | uint32_t notequal() const; |
9342 | | void set_notequal(uint32_t value); |
9343 | | private: |
9344 | | uint32_t _internal_notequal() const; |
9345 | | void _internal_set_notequal(uint32_t value); |
9346 | | public: |
9347 | | |
9348 | | // uint32 and = 14; |
9349 | | bool has_and_() const; |
9350 | | private: |
9351 | | bool _internal_has_and_() const; |
9352 | | public: |
9353 | | void clear_and_(); |
9354 | | uint32_t and_() const; |
9355 | | void set_and_(uint32_t value); |
9356 | | private: |
9357 | | uint32_t _internal_and_() const; |
9358 | | void _internal_set_and_(uint32_t value); |
9359 | | public: |
9360 | | |
9361 | | // uint32 or = 15; |
9362 | | bool has_or_() const; |
9363 | | private: |
9364 | | bool _internal_has_or_() const; |
9365 | | public: |
9366 | | void clear_or_(); |
9367 | | uint32_t or_() const; |
9368 | | void set_or_(uint32_t value); |
9369 | | private: |
9370 | | uint32_t _internal_or_() const; |
9371 | | void _internal_set_or_(uint32_t value); |
9372 | | public: |
9373 | | |
9374 | | void clear_binary_oneof(); |
9375 | | BinaryOneofCase binary_oneof_case() const; |
9376 | | // @@protoc_insertion_point(class_scope:lua_grammar.BinaryOperator) |
9377 | | private: |
9378 | | class _Internal; |
9379 | | void set_has_add(); |
9380 | | void set_has_sub(); |
9381 | | void set_has_mult(); |
9382 | | void set_has_div(); |
9383 | | void set_has_exp(); |
9384 | | void set_has_mod(); |
9385 | | void set_has_concat(); |
9386 | | void set_has_less(); |
9387 | | void set_has_lessequal(); |
9388 | | void set_has_greater(); |
9389 | | void set_has_greaterequal(); |
9390 | | void set_has_equal(); |
9391 | | void set_has_notequal(); |
9392 | | void set_has_and_(); |
9393 | | void set_has_or_(); |
9394 | | |
9395 | | inline bool has_binary_oneof() const; |
9396 | | inline void clear_has_binary_oneof(); |
9397 | | |
9398 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
9399 | | typedef void InternalArenaConstructable_; |
9400 | | typedef void DestructorSkippable_; |
9401 | | struct Impl_ { |
9402 | | union BinaryOneofUnion { |
9403 | 18.9k | constexpr BinaryOneofUnion() : _constinit_{} {} |
9404 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
9405 | | uint32_t add_; |
9406 | | uint32_t sub_; |
9407 | | uint32_t mult_; |
9408 | | uint32_t div_; |
9409 | | uint32_t exp_; |
9410 | | uint32_t mod_; |
9411 | | uint32_t concat_; |
9412 | | uint32_t less_; |
9413 | | uint32_t lessequal_; |
9414 | | uint32_t greater_; |
9415 | | uint32_t greaterequal_; |
9416 | | uint32_t equal_; |
9417 | | uint32_t notequal_; |
9418 | | uint32_t and__; |
9419 | | uint32_t or__; |
9420 | | } binary_oneof_; |
9421 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
9422 | | uint32_t _oneof_case_[1]; |
9423 | | |
9424 | | }; |
9425 | | union { Impl_ _impl_; }; |
9426 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
9427 | | }; |
9428 | | // ------------------------------------------------------------------- |
9429 | | |
9430 | | class UnaryOperator final : |
9431 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.UnaryOperator) */ { |
9432 | | public: |
9433 | 0 | inline UnaryOperator() : UnaryOperator(nullptr) {} |
9434 | | ~UnaryOperator() override; |
9435 | | explicit PROTOBUF_CONSTEXPR UnaryOperator(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
9436 | | |
9437 | | UnaryOperator(const UnaryOperator& from); |
9438 | | UnaryOperator(UnaryOperator&& from) noexcept |
9439 | 0 | : UnaryOperator() { |
9440 | 0 | *this = ::std::move(from); |
9441 | 0 | } |
9442 | | |
9443 | 0 | inline UnaryOperator& operator=(const UnaryOperator& from) { |
9444 | 0 | CopyFrom(from); |
9445 | 0 | return *this; |
9446 | 0 | } |
9447 | 0 | inline UnaryOperator& operator=(UnaryOperator&& from) noexcept { |
9448 | 0 | if (this == &from) return *this; |
9449 | 0 | if (GetOwningArena() == from.GetOwningArena() |
9450 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
9451 | 0 | && GetOwningArena() != nullptr |
9452 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
9453 | 0 | ) { |
9454 | 0 | InternalSwap(&from); |
9455 | 0 | } else { |
9456 | 0 | CopyFrom(from); |
9457 | 0 | } |
9458 | 0 | return *this; |
9459 | 0 | } |
9460 | | |
9461 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
9462 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
9463 | 0 | } |
9464 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
9465 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
9466 | 0 | } |
9467 | | |
9468 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
9469 | 0 | return GetDescriptor(); |
9470 | 0 | } |
9471 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
9472 | 0 | return default_instance().GetMetadata().descriptor; |
9473 | 0 | } |
9474 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
9475 | 0 | return default_instance().GetMetadata().reflection; |
9476 | 0 | } |
9477 | 0 | static const UnaryOperator& default_instance() { |
9478 | 0 | return *internal_default_instance(); |
9479 | 0 | } |
9480 | | enum UnaryOneofCase { |
9481 | | kNegate = 1, |
9482 | | kNot = 2, |
9483 | | kLength = 3, |
9484 | | UNARY_ONEOF_NOT_SET = 0, |
9485 | | }; |
9486 | | |
9487 | 0 | static inline const UnaryOperator* internal_default_instance() { |
9488 | 0 | return reinterpret_cast<const UnaryOperator*>( |
9489 | 0 | &_UnaryOperator_default_instance_); |
9490 | 0 | } |
9491 | | static constexpr int kIndexInFileMessages = |
9492 | | 44; |
9493 | | |
9494 | 0 | friend void swap(UnaryOperator& a, UnaryOperator& b) { |
9495 | 0 | a.Swap(&b); |
9496 | 0 | } |
9497 | 0 | inline void Swap(UnaryOperator* other) { |
9498 | 0 | if (other == this) return; |
9499 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
9500 | 0 | if (GetOwningArena() != nullptr && |
9501 | 0 | GetOwningArena() == other->GetOwningArena()) { |
9502 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
9503 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
9504 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
9505 | 0 | InternalSwap(other); |
9506 | 0 | } else { |
9507 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
9508 | 0 | } |
9509 | 0 | } |
9510 | 0 | void UnsafeArenaSwap(UnaryOperator* other) { |
9511 | 0 | if (other == this) return; |
9512 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
9513 | 0 | InternalSwap(other); |
9514 | 0 | } |
9515 | | |
9516 | | // implements Message ---------------------------------------------- |
9517 | | |
9518 | 4.97k | UnaryOperator* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
9519 | 4.97k | return CreateMaybeMessage<UnaryOperator>(arena); |
9520 | 4.97k | } |
9521 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
9522 | | void CopyFrom(const UnaryOperator& from); |
9523 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
9524 | 0 | void MergeFrom( const UnaryOperator& from) { |
9525 | 0 | UnaryOperator::MergeImpl(*this, from); |
9526 | 0 | } |
9527 | | private: |
9528 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
9529 | | public: |
9530 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
9531 | | bool IsInitialized() const final; |
9532 | | |
9533 | | size_t ByteSizeLong() const final; |
9534 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
9535 | | uint8_t* _InternalSerialize( |
9536 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
9537 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
9538 | | |
9539 | | private: |
9540 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
9541 | | void SharedDtor(); |
9542 | | void SetCachedSize(int size) const final; |
9543 | | void InternalSwap(UnaryOperator* other); |
9544 | | |
9545 | | private: |
9546 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
9547 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
9548 | 0 | return "lua_grammar.UnaryOperator"; |
9549 | 0 | } |
9550 | | protected: |
9551 | | explicit UnaryOperator(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
9552 | | bool is_message_owned = false); |
9553 | | public: |
9554 | | |
9555 | | static const ClassData _class_data_; |
9556 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
9557 | | |
9558 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
9559 | | |
9560 | | // nested types ---------------------------------------------------- |
9561 | | |
9562 | | // accessors ------------------------------------------------------- |
9563 | | |
9564 | | enum : int { |
9565 | | kNegateFieldNumber = 1, |
9566 | | kNotFieldNumber = 2, |
9567 | | kLengthFieldNumber = 3, |
9568 | | }; |
9569 | | // uint32 negate = 1; |
9570 | | bool has_negate() const; |
9571 | | private: |
9572 | | bool _internal_has_negate() const; |
9573 | | public: |
9574 | | void clear_negate(); |
9575 | | uint32_t negate() const; |
9576 | | void set_negate(uint32_t value); |
9577 | | private: |
9578 | | uint32_t _internal_negate() const; |
9579 | | void _internal_set_negate(uint32_t value); |
9580 | | public: |
9581 | | |
9582 | | // uint32 not = 2; |
9583 | | bool has_not_() const; |
9584 | | private: |
9585 | | bool _internal_has_not_() const; |
9586 | | public: |
9587 | | void clear_not_(); |
9588 | | uint32_t not_() const; |
9589 | | void set_not_(uint32_t value); |
9590 | | private: |
9591 | | uint32_t _internal_not_() const; |
9592 | | void _internal_set_not_(uint32_t value); |
9593 | | public: |
9594 | | |
9595 | | // uint32 length = 3; |
9596 | | bool has_length() const; |
9597 | | private: |
9598 | | bool _internal_has_length() const; |
9599 | | public: |
9600 | | void clear_length(); |
9601 | | uint32_t length() const; |
9602 | | void set_length(uint32_t value); |
9603 | | private: |
9604 | | uint32_t _internal_length() const; |
9605 | | void _internal_set_length(uint32_t value); |
9606 | | public: |
9607 | | |
9608 | | void clear_unary_oneof(); |
9609 | | UnaryOneofCase unary_oneof_case() const; |
9610 | | // @@protoc_insertion_point(class_scope:lua_grammar.UnaryOperator) |
9611 | | private: |
9612 | | class _Internal; |
9613 | | void set_has_negate(); |
9614 | | void set_has_not_(); |
9615 | | void set_has_length(); |
9616 | | |
9617 | | inline bool has_unary_oneof() const; |
9618 | | inline void clear_has_unary_oneof(); |
9619 | | |
9620 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
9621 | | typedef void InternalArenaConstructable_; |
9622 | | typedef void DestructorSkippable_; |
9623 | | struct Impl_ { |
9624 | | union UnaryOneofUnion { |
9625 | 4.97k | constexpr UnaryOneofUnion() : _constinit_{} {} |
9626 | | ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; |
9627 | | uint32_t negate_; |
9628 | | uint32_t not__; |
9629 | | uint32_t length_; |
9630 | | } unary_oneof_; |
9631 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
9632 | | uint32_t _oneof_case_[1]; |
9633 | | |
9634 | | }; |
9635 | | union { Impl_ _impl_; }; |
9636 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
9637 | | }; |
9638 | | // ------------------------------------------------------------------- |
9639 | | |
9640 | | class Name final : |
9641 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:lua_grammar.Name) */ { |
9642 | | public: |
9643 | 0 | inline Name() : Name(nullptr) {} |
9644 | | ~Name() override; |
9645 | | explicit PROTOBUF_CONSTEXPR Name(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
9646 | | |
9647 | | Name(const Name& from); |
9648 | | Name(Name&& from) noexcept |
9649 | 0 | : Name() { |
9650 | 0 | *this = ::std::move(from); |
9651 | 0 | } |
9652 | | |
9653 | 0 | inline Name& operator=(const Name& from) { |
9654 | 0 | CopyFrom(from); |
9655 | 0 | return *this; |
9656 | 0 | } |
9657 | 0 | inline Name& operator=(Name&& from) noexcept { |
9658 | 0 | if (this == &from) return *this; |
9659 | 0 | if (GetOwningArena() == from.GetOwningArena() |
9660 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
9661 | 0 | && GetOwningArena() != nullptr |
9662 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
9663 | 0 | ) { |
9664 | 0 | InternalSwap(&from); |
9665 | 0 | } else { |
9666 | 0 | CopyFrom(from); |
9667 | 0 | } |
9668 | 0 | return *this; |
9669 | 0 | } |
9670 | | |
9671 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
9672 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
9673 | 0 | } |
9674 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
9675 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
9676 | 0 | } |
9677 | | |
9678 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
9679 | 0 | return GetDescriptor(); |
9680 | 0 | } |
9681 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
9682 | 0 | return default_instance().GetMetadata().descriptor; |
9683 | 0 | } |
9684 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
9685 | 0 | return default_instance().GetMetadata().reflection; |
9686 | 0 | } |
9687 | 0 | static const Name& default_instance() { |
9688 | 0 | return *internal_default_instance(); |
9689 | 0 | } |
9690 | 0 | static inline const Name* internal_default_instance() { |
9691 | 0 | return reinterpret_cast<const Name*>( |
9692 | 0 | &_Name_default_instance_); |
9693 | 0 | } |
9694 | | static constexpr int kIndexInFileMessages = |
9695 | | 45; |
9696 | | |
9697 | 0 | friend void swap(Name& a, Name& b) { |
9698 | 0 | a.Swap(&b); |
9699 | 0 | } |
9700 | 0 | inline void Swap(Name* other) { |
9701 | 0 | if (other == this) return; |
9702 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
9703 | 0 | if (GetOwningArena() != nullptr && |
9704 | 0 | GetOwningArena() == other->GetOwningArena()) { |
9705 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
9706 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
9707 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
9708 | 0 | InternalSwap(other); |
9709 | 0 | } else { |
9710 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
9711 | 0 | } |
9712 | 0 | } |
9713 | 0 | void UnsafeArenaSwap(Name* other) { |
9714 | 0 | if (other == this) return; |
9715 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
9716 | 0 | InternalSwap(other); |
9717 | 0 | } |
9718 | | |
9719 | | // implements Message ---------------------------------------------- |
9720 | | |
9721 | 47.3k | Name* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
9722 | 47.3k | return CreateMaybeMessage<Name>(arena); |
9723 | 47.3k | } |
9724 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
9725 | | void CopyFrom(const Name& from); |
9726 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
9727 | 0 | void MergeFrom( const Name& from) { |
9728 | 0 | Name::MergeImpl(*this, from); |
9729 | 0 | } |
9730 | | private: |
9731 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
9732 | | public: |
9733 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
9734 | | bool IsInitialized() const final; |
9735 | | |
9736 | | size_t ByteSizeLong() const final; |
9737 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
9738 | | uint8_t* _InternalSerialize( |
9739 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
9740 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
9741 | | |
9742 | | private: |
9743 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
9744 | | void SharedDtor(); |
9745 | | void SetCachedSize(int size) const final; |
9746 | | void InternalSwap(Name* other); |
9747 | | |
9748 | | private: |
9749 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
9750 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
9751 | 0 | return "lua_grammar.Name"; |
9752 | 0 | } |
9753 | | protected: |
9754 | | explicit Name(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
9755 | | bool is_message_owned = false); |
9756 | | public: |
9757 | | |
9758 | | static const ClassData _class_data_; |
9759 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
9760 | | |
9761 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
9762 | | |
9763 | | // nested types ---------------------------------------------------- |
9764 | | |
9765 | | // accessors ------------------------------------------------------- |
9766 | | |
9767 | | enum : int { |
9768 | | kNameFieldNumber = 1, |
9769 | | kNumFieldNumber = 2, |
9770 | | }; |
9771 | | // required string name = 1; |
9772 | | bool has_name() const; |
9773 | | private: |
9774 | | bool _internal_has_name() const; |
9775 | | public: |
9776 | | void clear_name(); |
9777 | | const std::string& name() const; |
9778 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
9779 | | void set_name(ArgT0&& arg0, ArgT... args); |
9780 | | std::string* mutable_name(); |
9781 | | PROTOBUF_NODISCARD std::string* release_name(); |
9782 | | void set_allocated_name(std::string* name); |
9783 | | private: |
9784 | | const std::string& _internal_name() const; |
9785 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); |
9786 | | std::string* _internal_mutable_name(); |
9787 | | public: |
9788 | | |
9789 | | // required uint32 num = 2; |
9790 | | bool has_num() const; |
9791 | | private: |
9792 | | bool _internal_has_num() const; |
9793 | | public: |
9794 | | void clear_num(); |
9795 | | uint32_t num() const; |
9796 | | void set_num(uint32_t value); |
9797 | | private: |
9798 | | uint32_t _internal_num() const; |
9799 | | void _internal_set_num(uint32_t value); |
9800 | | public: |
9801 | | |
9802 | | // @@protoc_insertion_point(class_scope:lua_grammar.Name) |
9803 | | private: |
9804 | | class _Internal; |
9805 | | |
9806 | | // helper for ByteSizeLong() |
9807 | | size_t RequiredFieldsByteSizeFallback() const; |
9808 | | |
9809 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
9810 | | typedef void InternalArenaConstructable_; |
9811 | | typedef void DestructorSkippable_; |
9812 | | struct Impl_ { |
9813 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
9814 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
9815 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
9816 | | uint32_t num_; |
9817 | | }; |
9818 | | union { Impl_ _impl_; }; |
9819 | | friend struct ::TableStruct_lua_5fgrammar_2eproto; |
9820 | | }; |
9821 | | // =================================================================== |
9822 | | |
9823 | | |
9824 | | // =================================================================== |
9825 | | |
9826 | | #ifdef __GNUC__ |
9827 | | #pragma GCC diagnostic push |
9828 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
9829 | | #endif // __GNUC__ |
9830 | | // Block |
9831 | | |
9832 | | // required .lua_grammar.Chunk chunk = 1; |
9833 | 60.9k | inline bool Block::_internal_has_chunk() const { |
9834 | 60.9k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
9835 | 60.9k | PROTOBUF_ASSUME(!value || _impl_.chunk_ != nullptr); |
9836 | 60.9k | return value; |
9837 | 60.9k | } |
9838 | 0 | inline bool Block::has_chunk() const { |
9839 | 0 | return _internal_has_chunk(); |
9840 | 0 | } |
9841 | 0 | inline void Block::clear_chunk() { |
9842 | 0 | if (_impl_.chunk_ != nullptr) _impl_.chunk_->Clear(); |
9843 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9844 | 0 | } |
9845 | 60.2k | inline const ::lua_grammar::Chunk& Block::_internal_chunk() const { |
9846 | 60.2k | const ::lua_grammar::Chunk* p = _impl_.chunk_; |
9847 | 60.2k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Chunk&>( |
9848 | 0 | ::lua_grammar::_Chunk_default_instance_); |
9849 | 60.2k | } |
9850 | 60.2k | inline const ::lua_grammar::Chunk& Block::chunk() const { |
9851 | | // @@protoc_insertion_point(field_get:lua_grammar.Block.chunk) |
9852 | 60.2k | return _internal_chunk(); |
9853 | 60.2k | } |
9854 | | inline void Block::unsafe_arena_set_allocated_chunk( |
9855 | 0 | ::lua_grammar::Chunk* chunk) { |
9856 | 0 | if (GetArenaForAllocation() == nullptr) { |
9857 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.chunk_); |
9858 | 0 | } |
9859 | 0 | _impl_.chunk_ = chunk; |
9860 | 0 | if (chunk) { |
9861 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9862 | 0 | } else { |
9863 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9864 | 0 | } |
9865 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Block.chunk) |
9866 | 0 | } |
9867 | 0 | inline ::lua_grammar::Chunk* Block::release_chunk() { |
9868 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9869 | 0 | ::lua_grammar::Chunk* temp = _impl_.chunk_; |
9870 | 0 | _impl_.chunk_ = nullptr; |
9871 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
9872 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
9873 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
9874 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
9875 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
9876 | 0 | if (GetArenaForAllocation() != nullptr) { |
9877 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
9878 | 0 | } |
9879 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
9880 | 0 | return temp; |
9881 | 0 | } |
9882 | 0 | inline ::lua_grammar::Chunk* Block::unsafe_arena_release_chunk() { |
9883 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Block.chunk) |
9884 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9885 | 0 | ::lua_grammar::Chunk* temp = _impl_.chunk_; |
9886 | 0 | _impl_.chunk_ = nullptr; |
9887 | 0 | return temp; |
9888 | 0 | } |
9889 | 0 | inline ::lua_grammar::Chunk* Block::_internal_mutable_chunk() { |
9890 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9891 | 0 | if (_impl_.chunk_ == nullptr) { |
9892 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Chunk>(GetArenaForAllocation()); |
9893 | 0 | _impl_.chunk_ = p; |
9894 | 0 | } |
9895 | 0 | return _impl_.chunk_; |
9896 | 0 | } |
9897 | 0 | inline ::lua_grammar::Chunk* Block::mutable_chunk() { |
9898 | 0 | ::lua_grammar::Chunk* _msg = _internal_mutable_chunk(); |
9899 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Block.chunk) |
9900 | 0 | return _msg; |
9901 | 0 | } |
9902 | 0 | inline void Block::set_allocated_chunk(::lua_grammar::Chunk* chunk) { |
9903 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
9904 | 0 | if (message_arena == nullptr) { |
9905 | 0 | delete _impl_.chunk_; |
9906 | 0 | } |
9907 | 0 | if (chunk) { |
9908 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
9909 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chunk); |
9910 | 0 | if (message_arena != submessage_arena) { |
9911 | 0 | chunk = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
9912 | 0 | message_arena, chunk, submessage_arena); |
9913 | 0 | } |
9914 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9915 | 0 | } else { |
9916 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9917 | 0 | } |
9918 | 0 | _impl_.chunk_ = chunk; |
9919 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Block.chunk) |
9920 | 0 | } |
9921 | | |
9922 | | // ------------------------------------------------------------------- |
9923 | | |
9924 | | // Chunk |
9925 | | |
9926 | | // repeated .lua_grammar.Statement stat = 1; |
9927 | 126k | inline int Chunk::_internal_stat_size() const { |
9928 | 126k | return _impl_.stat_.size(); |
9929 | 126k | } |
9930 | 126k | inline int Chunk::stat_size() const { |
9931 | 126k | return _internal_stat_size(); |
9932 | 126k | } |
9933 | 0 | inline void Chunk::clear_stat() { |
9934 | 0 | _impl_.stat_.Clear(); |
9935 | 0 | } |
9936 | 0 | inline ::lua_grammar::Statement* Chunk::mutable_stat(int index) { |
9937 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Chunk.stat) |
9938 | 0 | return _impl_.stat_.Mutable(index); |
9939 | 0 | } |
9940 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Statement >* |
9941 | 0 | Chunk::mutable_stat() { |
9942 | 0 | // @@protoc_insertion_point(field_mutable_list:lua_grammar.Chunk.stat) |
9943 | 0 | return &_impl_.stat_; |
9944 | 0 | } |
9945 | 66.5k | inline const ::lua_grammar::Statement& Chunk::_internal_stat(int index) const { |
9946 | 66.5k | return _impl_.stat_.Get(index); |
9947 | 66.5k | } |
9948 | 66.5k | inline const ::lua_grammar::Statement& Chunk::stat(int index) const { |
9949 | | // @@protoc_insertion_point(field_get:lua_grammar.Chunk.stat) |
9950 | 66.5k | return _internal_stat(index); |
9951 | 66.5k | } |
9952 | 0 | inline ::lua_grammar::Statement* Chunk::_internal_add_stat() { |
9953 | 0 | return _impl_.stat_.Add(); |
9954 | 0 | } |
9955 | 0 | inline ::lua_grammar::Statement* Chunk::add_stat() { |
9956 | 0 | ::lua_grammar::Statement* _add = _internal_add_stat(); |
9957 | 0 | // @@protoc_insertion_point(field_add:lua_grammar.Chunk.stat) |
9958 | 0 | return _add; |
9959 | 0 | } |
9960 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Statement >& |
9961 | 0 | Chunk::stat() const { |
9962 | 0 | // @@protoc_insertion_point(field_list:lua_grammar.Chunk.stat) |
9963 | 0 | return _impl_.stat_; |
9964 | 0 | } |
9965 | | |
9966 | | // optional .lua_grammar.LastStatement laststat = 2; |
9967 | 121k | inline bool Chunk::_internal_has_laststat() const { |
9968 | 121k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
9969 | 121k | PROTOBUF_ASSUME(!value || _impl_.laststat_ != nullptr); |
9970 | 121k | return value; |
9971 | 121k | } |
9972 | 60.2k | inline bool Chunk::has_laststat() const { |
9973 | 60.2k | return _internal_has_laststat(); |
9974 | 60.2k | } |
9975 | 0 | inline void Chunk::clear_laststat() { |
9976 | 0 | if (_impl_.laststat_ != nullptr) _impl_.laststat_->Clear(); |
9977 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9978 | 0 | } |
9979 | 7.03k | inline const ::lua_grammar::LastStatement& Chunk::_internal_laststat() const { |
9980 | 7.03k | const ::lua_grammar::LastStatement* p = _impl_.laststat_; |
9981 | 7.03k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::LastStatement&>( |
9982 | 0 | ::lua_grammar::_LastStatement_default_instance_); |
9983 | 7.03k | } |
9984 | 7.03k | inline const ::lua_grammar::LastStatement& Chunk::laststat() const { |
9985 | | // @@protoc_insertion_point(field_get:lua_grammar.Chunk.laststat) |
9986 | 7.03k | return _internal_laststat(); |
9987 | 7.03k | } |
9988 | | inline void Chunk::unsafe_arena_set_allocated_laststat( |
9989 | 0 | ::lua_grammar::LastStatement* laststat) { |
9990 | 0 | if (GetArenaForAllocation() == nullptr) { |
9991 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.laststat_); |
9992 | 0 | } |
9993 | 0 | _impl_.laststat_ = laststat; |
9994 | 0 | if (laststat) { |
9995 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
9996 | 0 | } else { |
9997 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
9998 | 0 | } |
9999 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Chunk.laststat) |
10000 | 0 | } |
10001 | 0 | inline ::lua_grammar::LastStatement* Chunk::release_laststat() { |
10002 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10003 | 0 | ::lua_grammar::LastStatement* temp = _impl_.laststat_; |
10004 | 0 | _impl_.laststat_ = nullptr; |
10005 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
10006 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
10007 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10008 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
10009 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
10010 | 0 | if (GetArenaForAllocation() != nullptr) { |
10011 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10012 | 0 | } |
10013 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
10014 | 0 | return temp; |
10015 | 0 | } |
10016 | 0 | inline ::lua_grammar::LastStatement* Chunk::unsafe_arena_release_laststat() { |
10017 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Chunk.laststat) |
10018 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10019 | 0 | ::lua_grammar::LastStatement* temp = _impl_.laststat_; |
10020 | 0 | _impl_.laststat_ = nullptr; |
10021 | 0 | return temp; |
10022 | 0 | } |
10023 | 0 | inline ::lua_grammar::LastStatement* Chunk::_internal_mutable_laststat() { |
10024 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
10025 | 0 | if (_impl_.laststat_ == nullptr) { |
10026 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::LastStatement>(GetArenaForAllocation()); |
10027 | 0 | _impl_.laststat_ = p; |
10028 | 0 | } |
10029 | 0 | return _impl_.laststat_; |
10030 | 0 | } |
10031 | 0 | inline ::lua_grammar::LastStatement* Chunk::mutable_laststat() { |
10032 | 0 | ::lua_grammar::LastStatement* _msg = _internal_mutable_laststat(); |
10033 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Chunk.laststat) |
10034 | 0 | return _msg; |
10035 | 0 | } |
10036 | 0 | inline void Chunk::set_allocated_laststat(::lua_grammar::LastStatement* laststat) { |
10037 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
10038 | 0 | if (message_arena == nullptr) { |
10039 | 0 | delete _impl_.laststat_; |
10040 | 0 | } |
10041 | 0 | if (laststat) { |
10042 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
10043 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(laststat); |
10044 | 0 | if (message_arena != submessage_arena) { |
10045 | 0 | laststat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
10046 | 0 | message_arena, laststat, submessage_arena); |
10047 | 0 | } |
10048 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
10049 | 0 | } else { |
10050 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10051 | 0 | } |
10052 | 0 | _impl_.laststat_ = laststat; |
10053 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Chunk.laststat) |
10054 | 0 | } |
10055 | | |
10056 | | // ------------------------------------------------------------------- |
10057 | | |
10058 | | // Statement |
10059 | | |
10060 | | // .lua_grammar.AssignmentList list = 1; |
10061 | 19.2k | inline bool Statement::_internal_has_list() const { |
10062 | 19.2k | return stat_oneof_case() == kList; |
10063 | 19.2k | } |
10064 | 0 | inline bool Statement::has_list() const { |
10065 | 0 | return _internal_has_list(); |
10066 | 0 | } |
10067 | 0 | inline void Statement::set_has_list() { |
10068 | 0 | _impl_._oneof_case_[0] = kList; |
10069 | 0 | } |
10070 | 0 | inline void Statement::clear_list() { |
10071 | 0 | if (_internal_has_list()) { |
10072 | 0 | if (GetArenaForAllocation() == nullptr) { |
10073 | 0 | delete _impl_.stat_oneof_.list_; |
10074 | 0 | } |
10075 | 0 | clear_has_stat_oneof(); |
10076 | 0 | } |
10077 | 0 | } |
10078 | 0 | inline ::lua_grammar::AssignmentList* Statement::release_list() { |
10079 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.list) |
10080 | 0 | if (_internal_has_list()) { |
10081 | 0 | clear_has_stat_oneof(); |
10082 | 0 | ::lua_grammar::AssignmentList* temp = _impl_.stat_oneof_.list_; |
10083 | 0 | if (GetArenaForAllocation() != nullptr) { |
10084 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10085 | 0 | } |
10086 | 0 | _impl_.stat_oneof_.list_ = nullptr; |
10087 | 0 | return temp; |
10088 | 0 | } else { |
10089 | 0 | return nullptr; |
10090 | 0 | } |
10091 | 0 | } |
10092 | 15.4k | inline const ::lua_grammar::AssignmentList& Statement::_internal_list() const { |
10093 | 15.4k | return _internal_has_list() |
10094 | 15.4k | ? *_impl_.stat_oneof_.list_ |
10095 | 15.4k | : reinterpret_cast< ::lua_grammar::AssignmentList&>(::lua_grammar::_AssignmentList_default_instance_); |
10096 | 15.4k | } |
10097 | 15.4k | inline const ::lua_grammar::AssignmentList& Statement::list() const { |
10098 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.list) |
10099 | 15.4k | return _internal_list(); |
10100 | 15.4k | } |
10101 | 0 | inline ::lua_grammar::AssignmentList* Statement::unsafe_arena_release_list() { |
10102 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.list) |
10103 | 0 | if (_internal_has_list()) { |
10104 | 0 | clear_has_stat_oneof(); |
10105 | 0 | ::lua_grammar::AssignmentList* temp = _impl_.stat_oneof_.list_; |
10106 | 0 | _impl_.stat_oneof_.list_ = nullptr; |
10107 | 0 | return temp; |
10108 | 0 | } else { |
10109 | 0 | return nullptr; |
10110 | 0 | } |
10111 | 0 | } |
10112 | 0 | inline void Statement::unsafe_arena_set_allocated_list(::lua_grammar::AssignmentList* list) { |
10113 | 0 | clear_stat_oneof(); |
10114 | 0 | if (list) { |
10115 | 0 | set_has_list(); |
10116 | 0 | _impl_.stat_oneof_.list_ = list; |
10117 | 0 | } |
10118 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.list) |
10119 | 0 | } |
10120 | 0 | inline ::lua_grammar::AssignmentList* Statement::_internal_mutable_list() { |
10121 | 0 | if (!_internal_has_list()) { |
10122 | 0 | clear_stat_oneof(); |
10123 | 0 | set_has_list(); |
10124 | 0 | _impl_.stat_oneof_.list_ = CreateMaybeMessage< ::lua_grammar::AssignmentList >(GetArenaForAllocation()); |
10125 | 0 | } |
10126 | 0 | return _impl_.stat_oneof_.list_; |
10127 | 0 | } |
10128 | 0 | inline ::lua_grammar::AssignmentList* Statement::mutable_list() { |
10129 | 0 | ::lua_grammar::AssignmentList* _msg = _internal_mutable_list(); |
10130 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.list) |
10131 | 0 | return _msg; |
10132 | 0 | } |
10133 | | |
10134 | | // .lua_grammar.FunctionCall call = 2; |
10135 | 10.0k | inline bool Statement::_internal_has_call() const { |
10136 | 10.0k | return stat_oneof_case() == kCall; |
10137 | 10.0k | } |
10138 | 0 | inline bool Statement::has_call() const { |
10139 | 0 | return _internal_has_call(); |
10140 | 0 | } |
10141 | 0 | inline void Statement::set_has_call() { |
10142 | 0 | _impl_._oneof_case_[0] = kCall; |
10143 | 0 | } |
10144 | 0 | inline void Statement::clear_call() { |
10145 | 0 | if (_internal_has_call()) { |
10146 | 0 | if (GetArenaForAllocation() == nullptr) { |
10147 | 0 | delete _impl_.stat_oneof_.call_; |
10148 | 0 | } |
10149 | 0 | clear_has_stat_oneof(); |
10150 | 0 | } |
10151 | 0 | } |
10152 | 0 | inline ::lua_grammar::FunctionCall* Statement::release_call() { |
10153 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.call) |
10154 | 0 | if (_internal_has_call()) { |
10155 | 0 | clear_has_stat_oneof(); |
10156 | 0 | ::lua_grammar::FunctionCall* temp = _impl_.stat_oneof_.call_; |
10157 | 0 | if (GetArenaForAllocation() != nullptr) { |
10158 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10159 | 0 | } |
10160 | 0 | _impl_.stat_oneof_.call_ = nullptr; |
10161 | 0 | return temp; |
10162 | 0 | } else { |
10163 | 0 | return nullptr; |
10164 | 0 | } |
10165 | 0 | } |
10166 | 5.03k | inline const ::lua_grammar::FunctionCall& Statement::_internal_call() const { |
10167 | 5.03k | return _internal_has_call() |
10168 | 5.03k | ? *_impl_.stat_oneof_.call_ |
10169 | 5.03k | : reinterpret_cast< ::lua_grammar::FunctionCall&>(::lua_grammar::_FunctionCall_default_instance_); |
10170 | 5.03k | } |
10171 | 5.03k | inline const ::lua_grammar::FunctionCall& Statement::call() const { |
10172 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.call) |
10173 | 5.03k | return _internal_call(); |
10174 | 5.03k | } |
10175 | 0 | inline ::lua_grammar::FunctionCall* Statement::unsafe_arena_release_call() { |
10176 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.call) |
10177 | 0 | if (_internal_has_call()) { |
10178 | 0 | clear_has_stat_oneof(); |
10179 | 0 | ::lua_grammar::FunctionCall* temp = _impl_.stat_oneof_.call_; |
10180 | 0 | _impl_.stat_oneof_.call_ = nullptr; |
10181 | 0 | return temp; |
10182 | 0 | } else { |
10183 | 0 | return nullptr; |
10184 | 0 | } |
10185 | 0 | } |
10186 | 0 | inline void Statement::unsafe_arena_set_allocated_call(::lua_grammar::FunctionCall* call) { |
10187 | 0 | clear_stat_oneof(); |
10188 | 0 | if (call) { |
10189 | 0 | set_has_call(); |
10190 | 0 | _impl_.stat_oneof_.call_ = call; |
10191 | 0 | } |
10192 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.call) |
10193 | 0 | } |
10194 | 0 | inline ::lua_grammar::FunctionCall* Statement::_internal_mutable_call() { |
10195 | 0 | if (!_internal_has_call()) { |
10196 | 0 | clear_stat_oneof(); |
10197 | 0 | set_has_call(); |
10198 | 0 | _impl_.stat_oneof_.call_ = CreateMaybeMessage< ::lua_grammar::FunctionCall >(GetArenaForAllocation()); |
10199 | 0 | } |
10200 | 0 | return _impl_.stat_oneof_.call_; |
10201 | 0 | } |
10202 | 0 | inline ::lua_grammar::FunctionCall* Statement::mutable_call() { |
10203 | 0 | ::lua_grammar::FunctionCall* _msg = _internal_mutable_call(); |
10204 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.call) |
10205 | 0 | return _msg; |
10206 | 0 | } |
10207 | | |
10208 | | // .lua_grammar.DoBlock block = 3; |
10209 | 2.39k | inline bool Statement::_internal_has_block() const { |
10210 | 2.39k | return stat_oneof_case() == kBlock; |
10211 | 2.39k | } |
10212 | 0 | inline bool Statement::has_block() const { |
10213 | 0 | return _internal_has_block(); |
10214 | 0 | } |
10215 | 0 | inline void Statement::set_has_block() { |
10216 | 0 | _impl_._oneof_case_[0] = kBlock; |
10217 | 0 | } |
10218 | 0 | inline void Statement::clear_block() { |
10219 | 0 | if (_internal_has_block()) { |
10220 | 0 | if (GetArenaForAllocation() == nullptr) { |
10221 | 0 | delete _impl_.stat_oneof_.block_; |
10222 | 0 | } |
10223 | 0 | clear_has_stat_oneof(); |
10224 | 0 | } |
10225 | 0 | } |
10226 | 0 | inline ::lua_grammar::DoBlock* Statement::release_block() { |
10227 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.block) |
10228 | 0 | if (_internal_has_block()) { |
10229 | 0 | clear_has_stat_oneof(); |
10230 | 0 | ::lua_grammar::DoBlock* temp = _impl_.stat_oneof_.block_; |
10231 | 0 | if (GetArenaForAllocation() != nullptr) { |
10232 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10233 | 0 | } |
10234 | 0 | _impl_.stat_oneof_.block_ = nullptr; |
10235 | 0 | return temp; |
10236 | 0 | } else { |
10237 | 0 | return nullptr; |
10238 | 0 | } |
10239 | 0 | } |
10240 | 1.19k | inline const ::lua_grammar::DoBlock& Statement::_internal_block() const { |
10241 | 1.19k | return _internal_has_block() |
10242 | 1.19k | ? *_impl_.stat_oneof_.block_ |
10243 | 1.19k | : reinterpret_cast< ::lua_grammar::DoBlock&>(::lua_grammar::_DoBlock_default_instance_); |
10244 | 1.19k | } |
10245 | 1.19k | inline const ::lua_grammar::DoBlock& Statement::block() const { |
10246 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.block) |
10247 | 1.19k | return _internal_block(); |
10248 | 1.19k | } |
10249 | 0 | inline ::lua_grammar::DoBlock* Statement::unsafe_arena_release_block() { |
10250 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.block) |
10251 | 0 | if (_internal_has_block()) { |
10252 | 0 | clear_has_stat_oneof(); |
10253 | 0 | ::lua_grammar::DoBlock* temp = _impl_.stat_oneof_.block_; |
10254 | 0 | _impl_.stat_oneof_.block_ = nullptr; |
10255 | 0 | return temp; |
10256 | 0 | } else { |
10257 | 0 | return nullptr; |
10258 | 0 | } |
10259 | 0 | } |
10260 | 0 | inline void Statement::unsafe_arena_set_allocated_block(::lua_grammar::DoBlock* block) { |
10261 | 0 | clear_stat_oneof(); |
10262 | 0 | if (block) { |
10263 | 0 | set_has_block(); |
10264 | 0 | _impl_.stat_oneof_.block_ = block; |
10265 | 0 | } |
10266 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.block) |
10267 | 0 | } |
10268 | 0 | inline ::lua_grammar::DoBlock* Statement::_internal_mutable_block() { |
10269 | 0 | if (!_internal_has_block()) { |
10270 | 0 | clear_stat_oneof(); |
10271 | 0 | set_has_block(); |
10272 | 0 | _impl_.stat_oneof_.block_ = CreateMaybeMessage< ::lua_grammar::DoBlock >(GetArenaForAllocation()); |
10273 | 0 | } |
10274 | 0 | return _impl_.stat_oneof_.block_; |
10275 | 0 | } |
10276 | 0 | inline ::lua_grammar::DoBlock* Statement::mutable_block() { |
10277 | 0 | ::lua_grammar::DoBlock* _msg = _internal_mutable_block(); |
10278 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.block) |
10279 | 0 | return _msg; |
10280 | 0 | } |
10281 | | |
10282 | | // .lua_grammar.WhileCycle whilecycle = 4; |
10283 | 6.15k | inline bool Statement::_internal_has_whilecycle() const { |
10284 | 6.15k | return stat_oneof_case() == kWhilecycle; |
10285 | 6.15k | } |
10286 | 0 | inline bool Statement::has_whilecycle() const { |
10287 | 0 | return _internal_has_whilecycle(); |
10288 | 0 | } |
10289 | 0 | inline void Statement::set_has_whilecycle() { |
10290 | 0 | _impl_._oneof_case_[0] = kWhilecycle; |
10291 | 0 | } |
10292 | 0 | inline void Statement::clear_whilecycle() { |
10293 | 0 | if (_internal_has_whilecycle()) { |
10294 | 0 | if (GetArenaForAllocation() == nullptr) { |
10295 | 0 | delete _impl_.stat_oneof_.whilecycle_; |
10296 | 0 | } |
10297 | 0 | clear_has_stat_oneof(); |
10298 | 0 | } |
10299 | 0 | } |
10300 | 0 | inline ::lua_grammar::WhileCycle* Statement::release_whilecycle() { |
10301 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.whilecycle) |
10302 | 0 | if (_internal_has_whilecycle()) { |
10303 | 0 | clear_has_stat_oneof(); |
10304 | 0 | ::lua_grammar::WhileCycle* temp = _impl_.stat_oneof_.whilecycle_; |
10305 | 0 | if (GetArenaForAllocation() != nullptr) { |
10306 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10307 | 0 | } |
10308 | 0 | _impl_.stat_oneof_.whilecycle_ = nullptr; |
10309 | 0 | return temp; |
10310 | 0 | } else { |
10311 | 0 | return nullptr; |
10312 | 0 | } |
10313 | 0 | } |
10314 | 3.07k | inline const ::lua_grammar::WhileCycle& Statement::_internal_whilecycle() const { |
10315 | 3.07k | return _internal_has_whilecycle() |
10316 | 3.07k | ? *_impl_.stat_oneof_.whilecycle_ |
10317 | 3.07k | : reinterpret_cast< ::lua_grammar::WhileCycle&>(::lua_grammar::_WhileCycle_default_instance_); |
10318 | 3.07k | } |
10319 | 3.07k | inline const ::lua_grammar::WhileCycle& Statement::whilecycle() const { |
10320 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.whilecycle) |
10321 | 3.07k | return _internal_whilecycle(); |
10322 | 3.07k | } |
10323 | 0 | inline ::lua_grammar::WhileCycle* Statement::unsafe_arena_release_whilecycle() { |
10324 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.whilecycle) |
10325 | 0 | if (_internal_has_whilecycle()) { |
10326 | 0 | clear_has_stat_oneof(); |
10327 | 0 | ::lua_grammar::WhileCycle* temp = _impl_.stat_oneof_.whilecycle_; |
10328 | 0 | _impl_.stat_oneof_.whilecycle_ = nullptr; |
10329 | 0 | return temp; |
10330 | 0 | } else { |
10331 | 0 | return nullptr; |
10332 | 0 | } |
10333 | 0 | } |
10334 | 0 | inline void Statement::unsafe_arena_set_allocated_whilecycle(::lua_grammar::WhileCycle* whilecycle) { |
10335 | 0 | clear_stat_oneof(); |
10336 | 0 | if (whilecycle) { |
10337 | 0 | set_has_whilecycle(); |
10338 | 0 | _impl_.stat_oneof_.whilecycle_ = whilecycle; |
10339 | 0 | } |
10340 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.whilecycle) |
10341 | 0 | } |
10342 | 0 | inline ::lua_grammar::WhileCycle* Statement::_internal_mutable_whilecycle() { |
10343 | 0 | if (!_internal_has_whilecycle()) { |
10344 | 0 | clear_stat_oneof(); |
10345 | 0 | set_has_whilecycle(); |
10346 | 0 | _impl_.stat_oneof_.whilecycle_ = CreateMaybeMessage< ::lua_grammar::WhileCycle >(GetArenaForAllocation()); |
10347 | 0 | } |
10348 | 0 | return _impl_.stat_oneof_.whilecycle_; |
10349 | 0 | } |
10350 | 0 | inline ::lua_grammar::WhileCycle* Statement::mutable_whilecycle() { |
10351 | 0 | ::lua_grammar::WhileCycle* _msg = _internal_mutable_whilecycle(); |
10352 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.whilecycle) |
10353 | 0 | return _msg; |
10354 | 0 | } |
10355 | | |
10356 | | // .lua_grammar.RepeatCycle repeatcycle = 5; |
10357 | 12.5k | inline bool Statement::_internal_has_repeatcycle() const { |
10358 | 12.5k | return stat_oneof_case() == kRepeatcycle; |
10359 | 12.5k | } |
10360 | 0 | inline bool Statement::has_repeatcycle() const { |
10361 | 0 | return _internal_has_repeatcycle(); |
10362 | 0 | } |
10363 | 0 | inline void Statement::set_has_repeatcycle() { |
10364 | 0 | _impl_._oneof_case_[0] = kRepeatcycle; |
10365 | 0 | } |
10366 | 0 | inline void Statement::clear_repeatcycle() { |
10367 | 0 | if (_internal_has_repeatcycle()) { |
10368 | 0 | if (GetArenaForAllocation() == nullptr) { |
10369 | 0 | delete _impl_.stat_oneof_.repeatcycle_; |
10370 | 0 | } |
10371 | 0 | clear_has_stat_oneof(); |
10372 | 0 | } |
10373 | 0 | } |
10374 | 0 | inline ::lua_grammar::RepeatCycle* Statement::release_repeatcycle() { |
10375 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.repeatcycle) |
10376 | 0 | if (_internal_has_repeatcycle()) { |
10377 | 0 | clear_has_stat_oneof(); |
10378 | 0 | ::lua_grammar::RepeatCycle* temp = _impl_.stat_oneof_.repeatcycle_; |
10379 | 0 | if (GetArenaForAllocation() != nullptr) { |
10380 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10381 | 0 | } |
10382 | 0 | _impl_.stat_oneof_.repeatcycle_ = nullptr; |
10383 | 0 | return temp; |
10384 | 0 | } else { |
10385 | 0 | return nullptr; |
10386 | 0 | } |
10387 | 0 | } |
10388 | 6.27k | inline const ::lua_grammar::RepeatCycle& Statement::_internal_repeatcycle() const { |
10389 | 6.27k | return _internal_has_repeatcycle() |
10390 | 6.27k | ? *_impl_.stat_oneof_.repeatcycle_ |
10391 | 6.27k | : reinterpret_cast< ::lua_grammar::RepeatCycle&>(::lua_grammar::_RepeatCycle_default_instance_); |
10392 | 6.27k | } |
10393 | 6.27k | inline const ::lua_grammar::RepeatCycle& Statement::repeatcycle() const { |
10394 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.repeatcycle) |
10395 | 6.27k | return _internal_repeatcycle(); |
10396 | 6.27k | } |
10397 | 0 | inline ::lua_grammar::RepeatCycle* Statement::unsafe_arena_release_repeatcycle() { |
10398 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.repeatcycle) |
10399 | 0 | if (_internal_has_repeatcycle()) { |
10400 | 0 | clear_has_stat_oneof(); |
10401 | 0 | ::lua_grammar::RepeatCycle* temp = _impl_.stat_oneof_.repeatcycle_; |
10402 | 0 | _impl_.stat_oneof_.repeatcycle_ = nullptr; |
10403 | 0 | return temp; |
10404 | 0 | } else { |
10405 | 0 | return nullptr; |
10406 | 0 | } |
10407 | 0 | } |
10408 | 0 | inline void Statement::unsafe_arena_set_allocated_repeatcycle(::lua_grammar::RepeatCycle* repeatcycle) { |
10409 | 0 | clear_stat_oneof(); |
10410 | 0 | if (repeatcycle) { |
10411 | 0 | set_has_repeatcycle(); |
10412 | 0 | _impl_.stat_oneof_.repeatcycle_ = repeatcycle; |
10413 | 0 | } |
10414 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.repeatcycle) |
10415 | 0 | } |
10416 | 0 | inline ::lua_grammar::RepeatCycle* Statement::_internal_mutable_repeatcycle() { |
10417 | 0 | if (!_internal_has_repeatcycle()) { |
10418 | 0 | clear_stat_oneof(); |
10419 | 0 | set_has_repeatcycle(); |
10420 | 0 | _impl_.stat_oneof_.repeatcycle_ = CreateMaybeMessage< ::lua_grammar::RepeatCycle >(GetArenaForAllocation()); |
10421 | 0 | } |
10422 | 0 | return _impl_.stat_oneof_.repeatcycle_; |
10423 | 0 | } |
10424 | 0 | inline ::lua_grammar::RepeatCycle* Statement::mutable_repeatcycle() { |
10425 | 0 | ::lua_grammar::RepeatCycle* _msg = _internal_mutable_repeatcycle(); |
10426 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.repeatcycle) |
10427 | 0 | return _msg; |
10428 | 0 | } |
10429 | | |
10430 | | // .lua_grammar.IfStatement ifstat = 6; |
10431 | 6.11k | inline bool Statement::_internal_has_ifstat() const { |
10432 | 6.11k | return stat_oneof_case() == kIfstat; |
10433 | 6.11k | } |
10434 | 0 | inline bool Statement::has_ifstat() const { |
10435 | 0 | return _internal_has_ifstat(); |
10436 | 0 | } |
10437 | 0 | inline void Statement::set_has_ifstat() { |
10438 | 0 | _impl_._oneof_case_[0] = kIfstat; |
10439 | 0 | } |
10440 | 0 | inline void Statement::clear_ifstat() { |
10441 | 0 | if (_internal_has_ifstat()) { |
10442 | 0 | if (GetArenaForAllocation() == nullptr) { |
10443 | 0 | delete _impl_.stat_oneof_.ifstat_; |
10444 | 0 | } |
10445 | 0 | clear_has_stat_oneof(); |
10446 | 0 | } |
10447 | 0 | } |
10448 | 0 | inline ::lua_grammar::IfStatement* Statement::release_ifstat() { |
10449 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.ifstat) |
10450 | 0 | if (_internal_has_ifstat()) { |
10451 | 0 | clear_has_stat_oneof(); |
10452 | 0 | ::lua_grammar::IfStatement* temp = _impl_.stat_oneof_.ifstat_; |
10453 | 0 | if (GetArenaForAllocation() != nullptr) { |
10454 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10455 | 0 | } |
10456 | 0 | _impl_.stat_oneof_.ifstat_ = nullptr; |
10457 | 0 | return temp; |
10458 | 0 | } else { |
10459 | 0 | return nullptr; |
10460 | 0 | } |
10461 | 0 | } |
10462 | 3.05k | inline const ::lua_grammar::IfStatement& Statement::_internal_ifstat() const { |
10463 | 3.05k | return _internal_has_ifstat() |
10464 | 3.05k | ? *_impl_.stat_oneof_.ifstat_ |
10465 | 3.05k | : reinterpret_cast< ::lua_grammar::IfStatement&>(::lua_grammar::_IfStatement_default_instance_); |
10466 | 3.05k | } |
10467 | 3.05k | inline const ::lua_grammar::IfStatement& Statement::ifstat() const { |
10468 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.ifstat) |
10469 | 3.05k | return _internal_ifstat(); |
10470 | 3.05k | } |
10471 | 0 | inline ::lua_grammar::IfStatement* Statement::unsafe_arena_release_ifstat() { |
10472 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.ifstat) |
10473 | 0 | if (_internal_has_ifstat()) { |
10474 | 0 | clear_has_stat_oneof(); |
10475 | 0 | ::lua_grammar::IfStatement* temp = _impl_.stat_oneof_.ifstat_; |
10476 | 0 | _impl_.stat_oneof_.ifstat_ = nullptr; |
10477 | 0 | return temp; |
10478 | 0 | } else { |
10479 | 0 | return nullptr; |
10480 | 0 | } |
10481 | 0 | } |
10482 | 0 | inline void Statement::unsafe_arena_set_allocated_ifstat(::lua_grammar::IfStatement* ifstat) { |
10483 | 0 | clear_stat_oneof(); |
10484 | 0 | if (ifstat) { |
10485 | 0 | set_has_ifstat(); |
10486 | 0 | _impl_.stat_oneof_.ifstat_ = ifstat; |
10487 | 0 | } |
10488 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.ifstat) |
10489 | 0 | } |
10490 | 0 | inline ::lua_grammar::IfStatement* Statement::_internal_mutable_ifstat() { |
10491 | 0 | if (!_internal_has_ifstat()) { |
10492 | 0 | clear_stat_oneof(); |
10493 | 0 | set_has_ifstat(); |
10494 | 0 | _impl_.stat_oneof_.ifstat_ = CreateMaybeMessage< ::lua_grammar::IfStatement >(GetArenaForAllocation()); |
10495 | 0 | } |
10496 | 0 | return _impl_.stat_oneof_.ifstat_; |
10497 | 0 | } |
10498 | 0 | inline ::lua_grammar::IfStatement* Statement::mutable_ifstat() { |
10499 | 0 | ::lua_grammar::IfStatement* _msg = _internal_mutable_ifstat(); |
10500 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.ifstat) |
10501 | 0 | return _msg; |
10502 | 0 | } |
10503 | | |
10504 | | // .lua_grammar.ForCycleName forcyclename = 7; |
10505 | 2.62k | inline bool Statement::_internal_has_forcyclename() const { |
10506 | 2.62k | return stat_oneof_case() == kForcyclename; |
10507 | 2.62k | } |
10508 | 0 | inline bool Statement::has_forcyclename() const { |
10509 | 0 | return _internal_has_forcyclename(); |
10510 | 0 | } |
10511 | 0 | inline void Statement::set_has_forcyclename() { |
10512 | 0 | _impl_._oneof_case_[0] = kForcyclename; |
10513 | 0 | } |
10514 | 0 | inline void Statement::clear_forcyclename() { |
10515 | 0 | if (_internal_has_forcyclename()) { |
10516 | 0 | if (GetArenaForAllocation() == nullptr) { |
10517 | 0 | delete _impl_.stat_oneof_.forcyclename_; |
10518 | 0 | } |
10519 | 0 | clear_has_stat_oneof(); |
10520 | 0 | } |
10521 | 0 | } |
10522 | 0 | inline ::lua_grammar::ForCycleName* Statement::release_forcyclename() { |
10523 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.forcyclename) |
10524 | 0 | if (_internal_has_forcyclename()) { |
10525 | 0 | clear_has_stat_oneof(); |
10526 | 0 | ::lua_grammar::ForCycleName* temp = _impl_.stat_oneof_.forcyclename_; |
10527 | 0 | if (GetArenaForAllocation() != nullptr) { |
10528 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10529 | 0 | } |
10530 | 0 | _impl_.stat_oneof_.forcyclename_ = nullptr; |
10531 | 0 | return temp; |
10532 | 0 | } else { |
10533 | 0 | return nullptr; |
10534 | 0 | } |
10535 | 0 | } |
10536 | 1.31k | inline const ::lua_grammar::ForCycleName& Statement::_internal_forcyclename() const { |
10537 | 1.31k | return _internal_has_forcyclename() |
10538 | 1.31k | ? *_impl_.stat_oneof_.forcyclename_ |
10539 | 1.31k | : reinterpret_cast< ::lua_grammar::ForCycleName&>(::lua_grammar::_ForCycleName_default_instance_); |
10540 | 1.31k | } |
10541 | 1.31k | inline const ::lua_grammar::ForCycleName& Statement::forcyclename() const { |
10542 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.forcyclename) |
10543 | 1.31k | return _internal_forcyclename(); |
10544 | 1.31k | } |
10545 | 0 | inline ::lua_grammar::ForCycleName* Statement::unsafe_arena_release_forcyclename() { |
10546 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.forcyclename) |
10547 | 0 | if (_internal_has_forcyclename()) { |
10548 | 0 | clear_has_stat_oneof(); |
10549 | 0 | ::lua_grammar::ForCycleName* temp = _impl_.stat_oneof_.forcyclename_; |
10550 | 0 | _impl_.stat_oneof_.forcyclename_ = nullptr; |
10551 | 0 | return temp; |
10552 | 0 | } else { |
10553 | 0 | return nullptr; |
10554 | 0 | } |
10555 | 0 | } |
10556 | 0 | inline void Statement::unsafe_arena_set_allocated_forcyclename(::lua_grammar::ForCycleName* forcyclename) { |
10557 | 0 | clear_stat_oneof(); |
10558 | 0 | if (forcyclename) { |
10559 | 0 | set_has_forcyclename(); |
10560 | 0 | _impl_.stat_oneof_.forcyclename_ = forcyclename; |
10561 | 0 | } |
10562 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.forcyclename) |
10563 | 0 | } |
10564 | 0 | inline ::lua_grammar::ForCycleName* Statement::_internal_mutable_forcyclename() { |
10565 | 0 | if (!_internal_has_forcyclename()) { |
10566 | 0 | clear_stat_oneof(); |
10567 | 0 | set_has_forcyclename(); |
10568 | 0 | _impl_.stat_oneof_.forcyclename_ = CreateMaybeMessage< ::lua_grammar::ForCycleName >(GetArenaForAllocation()); |
10569 | 0 | } |
10570 | 0 | return _impl_.stat_oneof_.forcyclename_; |
10571 | 0 | } |
10572 | 0 | inline ::lua_grammar::ForCycleName* Statement::mutable_forcyclename() { |
10573 | 0 | ::lua_grammar::ForCycleName* _msg = _internal_mutable_forcyclename(); |
10574 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.forcyclename) |
10575 | 0 | return _msg; |
10576 | 0 | } |
10577 | | |
10578 | | // .lua_grammar.ForCycleList forcyclelist = 8; |
10579 | 49.8k | inline bool Statement::_internal_has_forcyclelist() const { |
10580 | 49.8k | return stat_oneof_case() == kForcyclelist; |
10581 | 49.8k | } |
10582 | 0 | inline bool Statement::has_forcyclelist() const { |
10583 | 0 | return _internal_has_forcyclelist(); |
10584 | 0 | } |
10585 | 0 | inline void Statement::set_has_forcyclelist() { |
10586 | 0 | _impl_._oneof_case_[0] = kForcyclelist; |
10587 | 0 | } |
10588 | 0 | inline void Statement::clear_forcyclelist() { |
10589 | 0 | if (_internal_has_forcyclelist()) { |
10590 | 0 | if (GetArenaForAllocation() == nullptr) { |
10591 | 0 | delete _impl_.stat_oneof_.forcyclelist_; |
10592 | 0 | } |
10593 | 0 | clear_has_stat_oneof(); |
10594 | 0 | } |
10595 | 0 | } |
10596 | 0 | inline ::lua_grammar::ForCycleList* Statement::release_forcyclelist() { |
10597 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.forcyclelist) |
10598 | 0 | if (_internal_has_forcyclelist()) { |
10599 | 0 | clear_has_stat_oneof(); |
10600 | 0 | ::lua_grammar::ForCycleList* temp = _impl_.stat_oneof_.forcyclelist_; |
10601 | 0 | if (GetArenaForAllocation() != nullptr) { |
10602 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10603 | 0 | } |
10604 | 0 | _impl_.stat_oneof_.forcyclelist_ = nullptr; |
10605 | 0 | return temp; |
10606 | 0 | } else { |
10607 | 0 | return nullptr; |
10608 | 0 | } |
10609 | 0 | } |
10610 | 24.9k | inline const ::lua_grammar::ForCycleList& Statement::_internal_forcyclelist() const { |
10611 | 24.9k | return _internal_has_forcyclelist() |
10612 | 24.9k | ? *_impl_.stat_oneof_.forcyclelist_ |
10613 | 24.9k | : reinterpret_cast< ::lua_grammar::ForCycleList&>(::lua_grammar::_ForCycleList_default_instance_); |
10614 | 24.9k | } |
10615 | 24.9k | inline const ::lua_grammar::ForCycleList& Statement::forcyclelist() const { |
10616 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.forcyclelist) |
10617 | 24.9k | return _internal_forcyclelist(); |
10618 | 24.9k | } |
10619 | 0 | inline ::lua_grammar::ForCycleList* Statement::unsafe_arena_release_forcyclelist() { |
10620 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.forcyclelist) |
10621 | 0 | if (_internal_has_forcyclelist()) { |
10622 | 0 | clear_has_stat_oneof(); |
10623 | 0 | ::lua_grammar::ForCycleList* temp = _impl_.stat_oneof_.forcyclelist_; |
10624 | 0 | _impl_.stat_oneof_.forcyclelist_ = nullptr; |
10625 | 0 | return temp; |
10626 | 0 | } else { |
10627 | 0 | return nullptr; |
10628 | 0 | } |
10629 | 0 | } |
10630 | 0 | inline void Statement::unsafe_arena_set_allocated_forcyclelist(::lua_grammar::ForCycleList* forcyclelist) { |
10631 | 0 | clear_stat_oneof(); |
10632 | 0 | if (forcyclelist) { |
10633 | 0 | set_has_forcyclelist(); |
10634 | 0 | _impl_.stat_oneof_.forcyclelist_ = forcyclelist; |
10635 | 0 | } |
10636 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.forcyclelist) |
10637 | 0 | } |
10638 | 0 | inline ::lua_grammar::ForCycleList* Statement::_internal_mutable_forcyclelist() { |
10639 | 0 | if (!_internal_has_forcyclelist()) { |
10640 | 0 | clear_stat_oneof(); |
10641 | 0 | set_has_forcyclelist(); |
10642 | 0 | _impl_.stat_oneof_.forcyclelist_ = CreateMaybeMessage< ::lua_grammar::ForCycleList >(GetArenaForAllocation()); |
10643 | 0 | } |
10644 | 0 | return _impl_.stat_oneof_.forcyclelist_; |
10645 | 0 | } |
10646 | 0 | inline ::lua_grammar::ForCycleList* Statement::mutable_forcyclelist() { |
10647 | 0 | ::lua_grammar::ForCycleList* _msg = _internal_mutable_forcyclelist(); |
10648 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.forcyclelist) |
10649 | 0 | return _msg; |
10650 | 0 | } |
10651 | | |
10652 | | // .lua_grammar.Function func = 9; |
10653 | 4.42k | inline bool Statement::_internal_has_func() const { |
10654 | 4.42k | return stat_oneof_case() == kFunc; |
10655 | 4.42k | } |
10656 | 0 | inline bool Statement::has_func() const { |
10657 | 0 | return _internal_has_func(); |
10658 | 0 | } |
10659 | 0 | inline void Statement::set_has_func() { |
10660 | 0 | _impl_._oneof_case_[0] = kFunc; |
10661 | 0 | } |
10662 | 0 | inline void Statement::clear_func() { |
10663 | 0 | if (_internal_has_func()) { |
10664 | 0 | if (GetArenaForAllocation() == nullptr) { |
10665 | 0 | delete _impl_.stat_oneof_.func_; |
10666 | 0 | } |
10667 | 0 | clear_has_stat_oneof(); |
10668 | 0 | } |
10669 | 0 | } |
10670 | 0 | inline ::lua_grammar::Function* Statement::release_func() { |
10671 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.func) |
10672 | 0 | if (_internal_has_func()) { |
10673 | 0 | clear_has_stat_oneof(); |
10674 | 0 | ::lua_grammar::Function* temp = _impl_.stat_oneof_.func_; |
10675 | 0 | if (GetArenaForAllocation() != nullptr) { |
10676 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10677 | 0 | } |
10678 | 0 | _impl_.stat_oneof_.func_ = nullptr; |
10679 | 0 | return temp; |
10680 | 0 | } else { |
10681 | 0 | return nullptr; |
10682 | 0 | } |
10683 | 0 | } |
10684 | 2.21k | inline const ::lua_grammar::Function& Statement::_internal_func() const { |
10685 | 2.21k | return _internal_has_func() |
10686 | 2.21k | ? *_impl_.stat_oneof_.func_ |
10687 | 2.21k | : reinterpret_cast< ::lua_grammar::Function&>(::lua_grammar::_Function_default_instance_); |
10688 | 2.21k | } |
10689 | 2.21k | inline const ::lua_grammar::Function& Statement::func() const { |
10690 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.func) |
10691 | 2.21k | return _internal_func(); |
10692 | 2.21k | } |
10693 | 0 | inline ::lua_grammar::Function* Statement::unsafe_arena_release_func() { |
10694 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.func) |
10695 | 0 | if (_internal_has_func()) { |
10696 | 0 | clear_has_stat_oneof(); |
10697 | 0 | ::lua_grammar::Function* temp = _impl_.stat_oneof_.func_; |
10698 | 0 | _impl_.stat_oneof_.func_ = nullptr; |
10699 | 0 | return temp; |
10700 | 0 | } else { |
10701 | 0 | return nullptr; |
10702 | 0 | } |
10703 | 0 | } |
10704 | 0 | inline void Statement::unsafe_arena_set_allocated_func(::lua_grammar::Function* func) { |
10705 | 0 | clear_stat_oneof(); |
10706 | 0 | if (func) { |
10707 | 0 | set_has_func(); |
10708 | 0 | _impl_.stat_oneof_.func_ = func; |
10709 | 0 | } |
10710 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.func) |
10711 | 0 | } |
10712 | 0 | inline ::lua_grammar::Function* Statement::_internal_mutable_func() { |
10713 | 0 | if (!_internal_has_func()) { |
10714 | 0 | clear_stat_oneof(); |
10715 | 0 | set_has_func(); |
10716 | 0 | _impl_.stat_oneof_.func_ = CreateMaybeMessage< ::lua_grammar::Function >(GetArenaForAllocation()); |
10717 | 0 | } |
10718 | 0 | return _impl_.stat_oneof_.func_; |
10719 | 0 | } |
10720 | 0 | inline ::lua_grammar::Function* Statement::mutable_func() { |
10721 | 0 | ::lua_grammar::Function* _msg = _internal_mutable_func(); |
10722 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.func) |
10723 | 0 | return _msg; |
10724 | 0 | } |
10725 | | |
10726 | | // .lua_grammar.LocalFunc localfunc = 10; |
10727 | 3.95k | inline bool Statement::_internal_has_localfunc() const { |
10728 | 3.95k | return stat_oneof_case() == kLocalfunc; |
10729 | 3.95k | } |
10730 | 0 | inline bool Statement::has_localfunc() const { |
10731 | 0 | return _internal_has_localfunc(); |
10732 | 0 | } |
10733 | 0 | inline void Statement::set_has_localfunc() { |
10734 | 0 | _impl_._oneof_case_[0] = kLocalfunc; |
10735 | 0 | } |
10736 | 0 | inline void Statement::clear_localfunc() { |
10737 | 0 | if (_internal_has_localfunc()) { |
10738 | 0 | if (GetArenaForAllocation() == nullptr) { |
10739 | 0 | delete _impl_.stat_oneof_.localfunc_; |
10740 | 0 | } |
10741 | 0 | clear_has_stat_oneof(); |
10742 | 0 | } |
10743 | 0 | } |
10744 | 0 | inline ::lua_grammar::LocalFunc* Statement::release_localfunc() { |
10745 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.localfunc) |
10746 | 0 | if (_internal_has_localfunc()) { |
10747 | 0 | clear_has_stat_oneof(); |
10748 | 0 | ::lua_grammar::LocalFunc* temp = _impl_.stat_oneof_.localfunc_; |
10749 | 0 | if (GetArenaForAllocation() != nullptr) { |
10750 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10751 | 0 | } |
10752 | 0 | _impl_.stat_oneof_.localfunc_ = nullptr; |
10753 | 0 | return temp; |
10754 | 0 | } else { |
10755 | 0 | return nullptr; |
10756 | 0 | } |
10757 | 0 | } |
10758 | 1.97k | inline const ::lua_grammar::LocalFunc& Statement::_internal_localfunc() const { |
10759 | 1.97k | return _internal_has_localfunc() |
10760 | 1.97k | ? *_impl_.stat_oneof_.localfunc_ |
10761 | 1.97k | : reinterpret_cast< ::lua_grammar::LocalFunc&>(::lua_grammar::_LocalFunc_default_instance_); |
10762 | 1.97k | } |
10763 | 1.97k | inline const ::lua_grammar::LocalFunc& Statement::localfunc() const { |
10764 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.localfunc) |
10765 | 1.97k | return _internal_localfunc(); |
10766 | 1.97k | } |
10767 | 0 | inline ::lua_grammar::LocalFunc* Statement::unsafe_arena_release_localfunc() { |
10768 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.localfunc) |
10769 | 0 | if (_internal_has_localfunc()) { |
10770 | 0 | clear_has_stat_oneof(); |
10771 | 0 | ::lua_grammar::LocalFunc* temp = _impl_.stat_oneof_.localfunc_; |
10772 | 0 | _impl_.stat_oneof_.localfunc_ = nullptr; |
10773 | 0 | return temp; |
10774 | 0 | } else { |
10775 | 0 | return nullptr; |
10776 | 0 | } |
10777 | 0 | } |
10778 | 0 | inline void Statement::unsafe_arena_set_allocated_localfunc(::lua_grammar::LocalFunc* localfunc) { |
10779 | 0 | clear_stat_oneof(); |
10780 | 0 | if (localfunc) { |
10781 | 0 | set_has_localfunc(); |
10782 | 0 | _impl_.stat_oneof_.localfunc_ = localfunc; |
10783 | 0 | } |
10784 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.localfunc) |
10785 | 0 | } |
10786 | 0 | inline ::lua_grammar::LocalFunc* Statement::_internal_mutable_localfunc() { |
10787 | 0 | if (!_internal_has_localfunc()) { |
10788 | 0 | clear_stat_oneof(); |
10789 | 0 | set_has_localfunc(); |
10790 | 0 | _impl_.stat_oneof_.localfunc_ = CreateMaybeMessage< ::lua_grammar::LocalFunc >(GetArenaForAllocation()); |
10791 | 0 | } |
10792 | 0 | return _impl_.stat_oneof_.localfunc_; |
10793 | 0 | } |
10794 | 0 | inline ::lua_grammar::LocalFunc* Statement::mutable_localfunc() { |
10795 | 0 | ::lua_grammar::LocalFunc* _msg = _internal_mutable_localfunc(); |
10796 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.localfunc) |
10797 | 0 | return _msg; |
10798 | 0 | } |
10799 | | |
10800 | | // .lua_grammar.LocalNames localnames = 11; |
10801 | 3.86k | inline bool Statement::_internal_has_localnames() const { |
10802 | 3.86k | return stat_oneof_case() == kLocalnames; |
10803 | 3.86k | } |
10804 | 0 | inline bool Statement::has_localnames() const { |
10805 | 0 | return _internal_has_localnames(); |
10806 | 0 | } |
10807 | 0 | inline void Statement::set_has_localnames() { |
10808 | 0 | _impl_._oneof_case_[0] = kLocalnames; |
10809 | 0 | } |
10810 | 0 | inline void Statement::clear_localnames() { |
10811 | 0 | if (_internal_has_localnames()) { |
10812 | 0 | if (GetArenaForAllocation() == nullptr) { |
10813 | 0 | delete _impl_.stat_oneof_.localnames_; |
10814 | 0 | } |
10815 | 0 | clear_has_stat_oneof(); |
10816 | 0 | } |
10817 | 0 | } |
10818 | 0 | inline ::lua_grammar::LocalNames* Statement::release_localnames() { |
10819 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Statement.localnames) |
10820 | 0 | if (_internal_has_localnames()) { |
10821 | 0 | clear_has_stat_oneof(); |
10822 | 0 | ::lua_grammar::LocalNames* temp = _impl_.stat_oneof_.localnames_; |
10823 | 0 | if (GetArenaForAllocation() != nullptr) { |
10824 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10825 | 0 | } |
10826 | 0 | _impl_.stat_oneof_.localnames_ = nullptr; |
10827 | 0 | return temp; |
10828 | 0 | } else { |
10829 | 0 | return nullptr; |
10830 | 0 | } |
10831 | 0 | } |
10832 | 1.93k | inline const ::lua_grammar::LocalNames& Statement::_internal_localnames() const { |
10833 | 1.93k | return _internal_has_localnames() |
10834 | 1.93k | ? *_impl_.stat_oneof_.localnames_ |
10835 | 1.93k | : reinterpret_cast< ::lua_grammar::LocalNames&>(::lua_grammar::_LocalNames_default_instance_); |
10836 | 1.93k | } |
10837 | 1.93k | inline const ::lua_grammar::LocalNames& Statement::localnames() const { |
10838 | | // @@protoc_insertion_point(field_get:lua_grammar.Statement.localnames) |
10839 | 1.93k | return _internal_localnames(); |
10840 | 1.93k | } |
10841 | 0 | inline ::lua_grammar::LocalNames* Statement::unsafe_arena_release_localnames() { |
10842 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Statement.localnames) |
10843 | 0 | if (_internal_has_localnames()) { |
10844 | 0 | clear_has_stat_oneof(); |
10845 | 0 | ::lua_grammar::LocalNames* temp = _impl_.stat_oneof_.localnames_; |
10846 | 0 | _impl_.stat_oneof_.localnames_ = nullptr; |
10847 | 0 | return temp; |
10848 | 0 | } else { |
10849 | 0 | return nullptr; |
10850 | 0 | } |
10851 | 0 | } |
10852 | 0 | inline void Statement::unsafe_arena_set_allocated_localnames(::lua_grammar::LocalNames* localnames) { |
10853 | 0 | clear_stat_oneof(); |
10854 | 0 | if (localnames) { |
10855 | 0 | set_has_localnames(); |
10856 | 0 | _impl_.stat_oneof_.localnames_ = localnames; |
10857 | 0 | } |
10858 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Statement.localnames) |
10859 | 0 | } |
10860 | 0 | inline ::lua_grammar::LocalNames* Statement::_internal_mutable_localnames() { |
10861 | 0 | if (!_internal_has_localnames()) { |
10862 | 0 | clear_stat_oneof(); |
10863 | 0 | set_has_localnames(); |
10864 | 0 | _impl_.stat_oneof_.localnames_ = CreateMaybeMessage< ::lua_grammar::LocalNames >(GetArenaForAllocation()); |
10865 | 0 | } |
10866 | 0 | return _impl_.stat_oneof_.localnames_; |
10867 | 0 | } |
10868 | 0 | inline ::lua_grammar::LocalNames* Statement::mutable_localnames() { |
10869 | 0 | ::lua_grammar::LocalNames* _msg = _internal_mutable_localnames(); |
10870 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Statement.localnames) |
10871 | 0 | return _msg; |
10872 | 0 | } |
10873 | | |
10874 | | // optional bool semicolon = 12; |
10875 | 66.5k | inline bool Statement::_internal_has_semicolon() const { |
10876 | 66.5k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
10877 | 66.5k | return value; |
10878 | 66.5k | } |
10879 | 66.5k | inline bool Statement::has_semicolon() const { |
10880 | 66.5k | return _internal_has_semicolon(); |
10881 | 66.5k | } |
10882 | 0 | inline void Statement::clear_semicolon() { |
10883 | 0 | _impl_.semicolon_ = false; |
10884 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10885 | 0 | } |
10886 | 0 | inline bool Statement::_internal_semicolon() const { |
10887 | 0 | return _impl_.semicolon_; |
10888 | 0 | } |
10889 | 0 | inline bool Statement::semicolon() const { |
10890 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.Statement.semicolon) |
10891 | 0 | return _internal_semicolon(); |
10892 | 0 | } |
10893 | 0 | inline void Statement::_internal_set_semicolon(bool value) { |
10894 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
10895 | 0 | _impl_.semicolon_ = value; |
10896 | 0 | } |
10897 | 0 | inline void Statement::set_semicolon(bool value) { |
10898 | 0 | _internal_set_semicolon(value); |
10899 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.Statement.semicolon) |
10900 | 0 | } |
10901 | | |
10902 | 69.1k | inline bool Statement::has_stat_oneof() const { |
10903 | 69.1k | return stat_oneof_case() != STAT_ONEOF_NOT_SET; |
10904 | 69.1k | } |
10905 | 69.1k | inline void Statement::clear_has_stat_oneof() { |
10906 | 69.1k | _impl_._oneof_case_[0] = STAT_ONEOF_NOT_SET; |
10907 | 69.1k | } |
10908 | 380k | inline Statement::StatOneofCase Statement::stat_oneof_case() const { |
10909 | 380k | return Statement::StatOneofCase(_impl_._oneof_case_[0]); |
10910 | 380k | } |
10911 | | // ------------------------------------------------------------------- |
10912 | | |
10913 | | // AssignmentList_VariableList |
10914 | | |
10915 | | // required .lua_grammar.Variable var = 1; |
10916 | 3.87k | inline bool AssignmentList_VariableList::_internal_has_var() const { |
10917 | 3.87k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
10918 | 3.87k | PROTOBUF_ASSUME(!value || _impl_.var_ != nullptr); |
10919 | 3.87k | return value; |
10920 | 3.87k | } |
10921 | 0 | inline bool AssignmentList_VariableList::has_var() const { |
10922 | 0 | return _internal_has_var(); |
10923 | 0 | } |
10924 | 0 | inline void AssignmentList_VariableList::clear_var() { |
10925 | 0 | if (_impl_.var_ != nullptr) _impl_.var_->Clear(); |
10926 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10927 | 0 | } |
10928 | 15.4k | inline const ::lua_grammar::Variable& AssignmentList_VariableList::_internal_var() const { |
10929 | 15.4k | const ::lua_grammar::Variable* p = _impl_.var_; |
10930 | 15.4k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Variable&>( |
10931 | 11.7k | ::lua_grammar::_Variable_default_instance_); |
10932 | 15.4k | } |
10933 | 15.4k | inline const ::lua_grammar::Variable& AssignmentList_VariableList::var() const { |
10934 | | // @@protoc_insertion_point(field_get:lua_grammar.AssignmentList.VariableList.var) |
10935 | 15.4k | return _internal_var(); |
10936 | 15.4k | } |
10937 | | inline void AssignmentList_VariableList::unsafe_arena_set_allocated_var( |
10938 | 0 | ::lua_grammar::Variable* var) { |
10939 | 0 | if (GetArenaForAllocation() == nullptr) { |
10940 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.var_); |
10941 | 0 | } |
10942 | 0 | _impl_.var_ = var; |
10943 | 0 | if (var) { |
10944 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
10945 | 0 | } else { |
10946 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10947 | 0 | } |
10948 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.AssignmentList.VariableList.var) |
10949 | 0 | } |
10950 | 0 | inline ::lua_grammar::Variable* AssignmentList_VariableList::release_var() { |
10951 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10952 | 0 | ::lua_grammar::Variable* temp = _impl_.var_; |
10953 | 0 | _impl_.var_ = nullptr; |
10954 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
10955 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
10956 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10957 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
10958 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
10959 | 0 | if (GetArenaForAllocation() != nullptr) { |
10960 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
10961 | 0 | } |
10962 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
10963 | 0 | return temp; |
10964 | 0 | } |
10965 | 0 | inline ::lua_grammar::Variable* AssignmentList_VariableList::unsafe_arena_release_var() { |
10966 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.AssignmentList.VariableList.var) |
10967 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
10968 | 0 | ::lua_grammar::Variable* temp = _impl_.var_; |
10969 | 0 | _impl_.var_ = nullptr; |
10970 | 0 | return temp; |
10971 | 0 | } |
10972 | 0 | inline ::lua_grammar::Variable* AssignmentList_VariableList::_internal_mutable_var() { |
10973 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
10974 | 0 | if (_impl_.var_ == nullptr) { |
10975 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Variable>(GetArenaForAllocation()); |
10976 | 0 | _impl_.var_ = p; |
10977 | 0 | } |
10978 | 0 | return _impl_.var_; |
10979 | 0 | } |
10980 | 0 | inline ::lua_grammar::Variable* AssignmentList_VariableList::mutable_var() { |
10981 | 0 | ::lua_grammar::Variable* _msg = _internal_mutable_var(); |
10982 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.AssignmentList.VariableList.var) |
10983 | 0 | return _msg; |
10984 | 0 | } |
10985 | 0 | inline void AssignmentList_VariableList::set_allocated_var(::lua_grammar::Variable* var) { |
10986 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
10987 | 0 | if (message_arena == nullptr) { |
10988 | 0 | delete _impl_.var_; |
10989 | 0 | } |
10990 | 0 | if (var) { |
10991 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
10992 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(var); |
10993 | 0 | if (message_arena != submessage_arena) { |
10994 | 0 | var = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
10995 | 0 | message_arena, var, submessage_arena); |
10996 | 0 | } |
10997 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
10998 | 0 | } else { |
10999 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11000 | 0 | } |
11001 | 0 | _impl_.var_ = var; |
11002 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.AssignmentList.VariableList.var) |
11003 | 0 | } |
11004 | | |
11005 | | // repeated .lua_grammar.Variable vars = 2; |
11006 | 24.3k | inline int AssignmentList_VariableList::_internal_vars_size() const { |
11007 | 24.3k | return _impl_.vars_.size(); |
11008 | 24.3k | } |
11009 | 24.3k | inline int AssignmentList_VariableList::vars_size() const { |
11010 | 24.3k | return _internal_vars_size(); |
11011 | 24.3k | } |
11012 | 0 | inline void AssignmentList_VariableList::clear_vars() { |
11013 | 0 | _impl_.vars_.Clear(); |
11014 | 0 | } |
11015 | 0 | inline ::lua_grammar::Variable* AssignmentList_VariableList::mutable_vars(int index) { |
11016 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.AssignmentList.VariableList.vars) |
11017 | 0 | return _impl_.vars_.Mutable(index); |
11018 | 0 | } |
11019 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Variable >* |
11020 | 0 | AssignmentList_VariableList::mutable_vars() { |
11021 | 0 | // @@protoc_insertion_point(field_mutable_list:lua_grammar.AssignmentList.VariableList.vars) |
11022 | 0 | return &_impl_.vars_; |
11023 | 0 | } |
11024 | 8.83k | inline const ::lua_grammar::Variable& AssignmentList_VariableList::_internal_vars(int index) const { |
11025 | 8.83k | return _impl_.vars_.Get(index); |
11026 | 8.83k | } |
11027 | 8.83k | inline const ::lua_grammar::Variable& AssignmentList_VariableList::vars(int index) const { |
11028 | | // @@protoc_insertion_point(field_get:lua_grammar.AssignmentList.VariableList.vars) |
11029 | 8.83k | return _internal_vars(index); |
11030 | 8.83k | } |
11031 | 0 | inline ::lua_grammar::Variable* AssignmentList_VariableList::_internal_add_vars() { |
11032 | 0 | return _impl_.vars_.Add(); |
11033 | 0 | } |
11034 | 0 | inline ::lua_grammar::Variable* AssignmentList_VariableList::add_vars() { |
11035 | 0 | ::lua_grammar::Variable* _add = _internal_add_vars(); |
11036 | 0 | // @@protoc_insertion_point(field_add:lua_grammar.AssignmentList.VariableList.vars) |
11037 | 0 | return _add; |
11038 | 0 | } |
11039 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Variable >& |
11040 | 0 | AssignmentList_VariableList::vars() const { |
11041 | 0 | // @@protoc_insertion_point(field_list:lua_grammar.AssignmentList.VariableList.vars) |
11042 | 0 | return _impl_.vars_; |
11043 | 0 | } |
11044 | | |
11045 | | // ------------------------------------------------------------------- |
11046 | | |
11047 | | // AssignmentList |
11048 | | |
11049 | | // required .lua_grammar.AssignmentList.VariableList varlist = 1; |
11050 | 3.79k | inline bool AssignmentList::_internal_has_varlist() const { |
11051 | 3.79k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
11052 | 3.79k | PROTOBUF_ASSUME(!value || _impl_.varlist_ != nullptr); |
11053 | 3.79k | return value; |
11054 | 3.79k | } |
11055 | 0 | inline bool AssignmentList::has_varlist() const { |
11056 | 0 | return _internal_has_varlist(); |
11057 | 0 | } |
11058 | 0 | inline void AssignmentList::clear_varlist() { |
11059 | 0 | if (_impl_.varlist_ != nullptr) _impl_.varlist_->Clear(); |
11060 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11061 | 0 | } |
11062 | 15.4k | inline const ::lua_grammar::AssignmentList_VariableList& AssignmentList::_internal_varlist() const { |
11063 | 15.4k | const ::lua_grammar::AssignmentList_VariableList* p = _impl_.varlist_; |
11064 | 15.4k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::AssignmentList_VariableList&>( |
11065 | 11.7k | ::lua_grammar::_AssignmentList_VariableList_default_instance_); |
11066 | 15.4k | } |
11067 | 15.4k | inline const ::lua_grammar::AssignmentList_VariableList& AssignmentList::varlist() const { |
11068 | | // @@protoc_insertion_point(field_get:lua_grammar.AssignmentList.varlist) |
11069 | 15.4k | return _internal_varlist(); |
11070 | 15.4k | } |
11071 | | inline void AssignmentList::unsafe_arena_set_allocated_varlist( |
11072 | 0 | ::lua_grammar::AssignmentList_VariableList* varlist) { |
11073 | 0 | if (GetArenaForAllocation() == nullptr) { |
11074 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.varlist_); |
11075 | 0 | } |
11076 | 0 | _impl_.varlist_ = varlist; |
11077 | 0 | if (varlist) { |
11078 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11079 | 0 | } else { |
11080 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11081 | 0 | } |
11082 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.AssignmentList.varlist) |
11083 | 0 | } |
11084 | 0 | inline ::lua_grammar::AssignmentList_VariableList* AssignmentList::release_varlist() { |
11085 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11086 | 0 | ::lua_grammar::AssignmentList_VariableList* temp = _impl_.varlist_; |
11087 | 0 | _impl_.varlist_ = nullptr; |
11088 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
11089 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
11090 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11091 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
11092 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
11093 | 0 | if (GetArenaForAllocation() != nullptr) { |
11094 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11095 | 0 | } |
11096 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
11097 | 0 | return temp; |
11098 | 0 | } |
11099 | 0 | inline ::lua_grammar::AssignmentList_VariableList* AssignmentList::unsafe_arena_release_varlist() { |
11100 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.AssignmentList.varlist) |
11101 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11102 | 0 | ::lua_grammar::AssignmentList_VariableList* temp = _impl_.varlist_; |
11103 | 0 | _impl_.varlist_ = nullptr; |
11104 | 0 | return temp; |
11105 | 0 | } |
11106 | 0 | inline ::lua_grammar::AssignmentList_VariableList* AssignmentList::_internal_mutable_varlist() { |
11107 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11108 | 0 | if (_impl_.varlist_ == nullptr) { |
11109 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::AssignmentList_VariableList>(GetArenaForAllocation()); |
11110 | 0 | _impl_.varlist_ = p; |
11111 | 0 | } |
11112 | 0 | return _impl_.varlist_; |
11113 | 0 | } |
11114 | 0 | inline ::lua_grammar::AssignmentList_VariableList* AssignmentList::mutable_varlist() { |
11115 | 0 | ::lua_grammar::AssignmentList_VariableList* _msg = _internal_mutable_varlist(); |
11116 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.AssignmentList.varlist) |
11117 | 0 | return _msg; |
11118 | 0 | } |
11119 | 0 | inline void AssignmentList::set_allocated_varlist(::lua_grammar::AssignmentList_VariableList* varlist) { |
11120 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11121 | 0 | if (message_arena == nullptr) { |
11122 | 0 | delete _impl_.varlist_; |
11123 | 0 | } |
11124 | 0 | if (varlist) { |
11125 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11126 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(varlist); |
11127 | 0 | if (message_arena != submessage_arena) { |
11128 | 0 | varlist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11129 | 0 | message_arena, varlist, submessage_arena); |
11130 | 0 | } |
11131 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11132 | 0 | } else { |
11133 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11134 | 0 | } |
11135 | 0 | _impl_.varlist_ = varlist; |
11136 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.AssignmentList.varlist) |
11137 | 0 | } |
11138 | | |
11139 | | // required .lua_grammar.ExpressionList explist = 2; |
11140 | 3.79k | inline bool AssignmentList::_internal_has_explist() const { |
11141 | 3.79k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
11142 | 3.79k | PROTOBUF_ASSUME(!value || _impl_.explist_ != nullptr); |
11143 | 3.79k | return value; |
11144 | 3.79k | } |
11145 | 0 | inline bool AssignmentList::has_explist() const { |
11146 | 0 | return _internal_has_explist(); |
11147 | 0 | } |
11148 | 0 | inline void AssignmentList::clear_explist() { |
11149 | 0 | if (_impl_.explist_ != nullptr) _impl_.explist_->Clear(); |
11150 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11151 | 0 | } |
11152 | 15.4k | inline const ::lua_grammar::ExpressionList& AssignmentList::_internal_explist() const { |
11153 | 15.4k | const ::lua_grammar::ExpressionList* p = _impl_.explist_; |
11154 | 15.4k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::ExpressionList&>( |
11155 | 11.7k | ::lua_grammar::_ExpressionList_default_instance_); |
11156 | 15.4k | } |
11157 | 15.4k | inline const ::lua_grammar::ExpressionList& AssignmentList::explist() const { |
11158 | | // @@protoc_insertion_point(field_get:lua_grammar.AssignmentList.explist) |
11159 | 15.4k | return _internal_explist(); |
11160 | 15.4k | } |
11161 | | inline void AssignmentList::unsafe_arena_set_allocated_explist( |
11162 | 0 | ::lua_grammar::ExpressionList* explist) { |
11163 | 0 | if (GetArenaForAllocation() == nullptr) { |
11164 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.explist_); |
11165 | 0 | } |
11166 | 0 | _impl_.explist_ = explist; |
11167 | 0 | if (explist) { |
11168 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11169 | 0 | } else { |
11170 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11171 | 0 | } |
11172 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.AssignmentList.explist) |
11173 | 0 | } |
11174 | 0 | inline ::lua_grammar::ExpressionList* AssignmentList::release_explist() { |
11175 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11176 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
11177 | 0 | _impl_.explist_ = nullptr; |
11178 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
11179 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
11180 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11181 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
11182 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
11183 | 0 | if (GetArenaForAllocation() != nullptr) { |
11184 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11185 | 0 | } |
11186 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
11187 | 0 | return temp; |
11188 | 0 | } |
11189 | 0 | inline ::lua_grammar::ExpressionList* AssignmentList::unsafe_arena_release_explist() { |
11190 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.AssignmentList.explist) |
11191 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11192 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
11193 | 0 | _impl_.explist_ = nullptr; |
11194 | 0 | return temp; |
11195 | 0 | } |
11196 | 0 | inline ::lua_grammar::ExpressionList* AssignmentList::_internal_mutable_explist() { |
11197 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11198 | 0 | if (_impl_.explist_ == nullptr) { |
11199 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::ExpressionList>(GetArenaForAllocation()); |
11200 | 0 | _impl_.explist_ = p; |
11201 | 0 | } |
11202 | 0 | return _impl_.explist_; |
11203 | 0 | } |
11204 | 0 | inline ::lua_grammar::ExpressionList* AssignmentList::mutable_explist() { |
11205 | 0 | ::lua_grammar::ExpressionList* _msg = _internal_mutable_explist(); |
11206 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.AssignmentList.explist) |
11207 | 0 | return _msg; |
11208 | 0 | } |
11209 | 0 | inline void AssignmentList::set_allocated_explist(::lua_grammar::ExpressionList* explist) { |
11210 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11211 | 0 | if (message_arena == nullptr) { |
11212 | 0 | delete _impl_.explist_; |
11213 | 0 | } |
11214 | 0 | if (explist) { |
11215 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11216 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(explist); |
11217 | 0 | if (message_arena != submessage_arena) { |
11218 | 0 | explist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11219 | 0 | message_arena, explist, submessage_arena); |
11220 | 0 | } |
11221 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11222 | 0 | } else { |
11223 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11224 | 0 | } |
11225 | 0 | _impl_.explist_ = explist; |
11226 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.AssignmentList.explist) |
11227 | 0 | } |
11228 | | |
11229 | | // ------------------------------------------------------------------- |
11230 | | |
11231 | | // FunctionCall_Args |
11232 | | |
11233 | | // .lua_grammar.OptionalExpressionList explist = 1; |
11234 | 5.72k | inline bool FunctionCall_Args::_internal_has_explist() const { |
11235 | 5.72k | return args_oneof_case() == kExplist; |
11236 | 5.72k | } |
11237 | 0 | inline bool FunctionCall_Args::has_explist() const { |
11238 | 0 | return _internal_has_explist(); |
11239 | 0 | } |
11240 | 0 | inline void FunctionCall_Args::set_has_explist() { |
11241 | 0 | _impl_._oneof_case_[0] = kExplist; |
11242 | 0 | } |
11243 | 0 | inline void FunctionCall_Args::clear_explist() { |
11244 | 0 | if (_internal_has_explist()) { |
11245 | 0 | if (GetArenaForAllocation() == nullptr) { |
11246 | 0 | delete _impl_.args_oneof_.explist_; |
11247 | 0 | } |
11248 | 0 | clear_has_args_oneof(); |
11249 | 0 | } |
11250 | 0 | } |
11251 | 0 | inline ::lua_grammar::OptionalExpressionList* FunctionCall_Args::release_explist() { |
11252 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.Args.explist) |
11253 | 0 | if (_internal_has_explist()) { |
11254 | 0 | clear_has_args_oneof(); |
11255 | 0 | ::lua_grammar::OptionalExpressionList* temp = _impl_.args_oneof_.explist_; |
11256 | 0 | if (GetArenaForAllocation() != nullptr) { |
11257 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11258 | 0 | } |
11259 | 0 | _impl_.args_oneof_.explist_ = nullptr; |
11260 | 0 | return temp; |
11261 | 0 | } else { |
11262 | 0 | return nullptr; |
11263 | 0 | } |
11264 | 0 | } |
11265 | 2.85k | inline const ::lua_grammar::OptionalExpressionList& FunctionCall_Args::_internal_explist() const { |
11266 | 2.85k | return _internal_has_explist() |
11267 | 2.85k | ? *_impl_.args_oneof_.explist_ |
11268 | 2.85k | : reinterpret_cast< ::lua_grammar::OptionalExpressionList&>(::lua_grammar::_OptionalExpressionList_default_instance_); |
11269 | 2.85k | } |
11270 | 2.85k | inline const ::lua_grammar::OptionalExpressionList& FunctionCall_Args::explist() const { |
11271 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.Args.explist) |
11272 | 2.85k | return _internal_explist(); |
11273 | 2.85k | } |
11274 | 0 | inline ::lua_grammar::OptionalExpressionList* FunctionCall_Args::unsafe_arena_release_explist() { |
11275 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.FunctionCall.Args.explist) |
11276 | 0 | if (_internal_has_explist()) { |
11277 | 0 | clear_has_args_oneof(); |
11278 | 0 | ::lua_grammar::OptionalExpressionList* temp = _impl_.args_oneof_.explist_; |
11279 | 0 | _impl_.args_oneof_.explist_ = nullptr; |
11280 | 0 | return temp; |
11281 | 0 | } else { |
11282 | 0 | return nullptr; |
11283 | 0 | } |
11284 | 0 | } |
11285 | 0 | inline void FunctionCall_Args::unsafe_arena_set_allocated_explist(::lua_grammar::OptionalExpressionList* explist) { |
11286 | 0 | clear_args_oneof(); |
11287 | 0 | if (explist) { |
11288 | 0 | set_has_explist(); |
11289 | 0 | _impl_.args_oneof_.explist_ = explist; |
11290 | 0 | } |
11291 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.Args.explist) |
11292 | 0 | } |
11293 | 0 | inline ::lua_grammar::OptionalExpressionList* FunctionCall_Args::_internal_mutable_explist() { |
11294 | 0 | if (!_internal_has_explist()) { |
11295 | 0 | clear_args_oneof(); |
11296 | 0 | set_has_explist(); |
11297 | 0 | _impl_.args_oneof_.explist_ = CreateMaybeMessage< ::lua_grammar::OptionalExpressionList >(GetArenaForAllocation()); |
11298 | 0 | } |
11299 | 0 | return _impl_.args_oneof_.explist_; |
11300 | 0 | } |
11301 | 0 | inline ::lua_grammar::OptionalExpressionList* FunctionCall_Args::mutable_explist() { |
11302 | 0 | ::lua_grammar::OptionalExpressionList* _msg = _internal_mutable_explist(); |
11303 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.Args.explist) |
11304 | 0 | return _msg; |
11305 | 0 | } |
11306 | | |
11307 | | // .lua_grammar.TableConstructor tableconstructor = 2; |
11308 | 8.69k | inline bool FunctionCall_Args::_internal_has_tableconstructor() const { |
11309 | 8.69k | return args_oneof_case() == kTableconstructor; |
11310 | 8.69k | } |
11311 | 0 | inline bool FunctionCall_Args::has_tableconstructor() const { |
11312 | 0 | return _internal_has_tableconstructor(); |
11313 | 0 | } |
11314 | 0 | inline void FunctionCall_Args::set_has_tableconstructor() { |
11315 | 0 | _impl_._oneof_case_[0] = kTableconstructor; |
11316 | 0 | } |
11317 | 0 | inline void FunctionCall_Args::clear_tableconstructor() { |
11318 | 0 | if (_internal_has_tableconstructor()) { |
11319 | 0 | if (GetArenaForAllocation() == nullptr) { |
11320 | 0 | delete _impl_.args_oneof_.tableconstructor_; |
11321 | 0 | } |
11322 | 0 | clear_has_args_oneof(); |
11323 | 0 | } |
11324 | 0 | } |
11325 | 0 | inline ::lua_grammar::TableConstructor* FunctionCall_Args::release_tableconstructor() { |
11326 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.Args.tableconstructor) |
11327 | 0 | if (_internal_has_tableconstructor()) { |
11328 | 0 | clear_has_args_oneof(); |
11329 | 0 | ::lua_grammar::TableConstructor* temp = _impl_.args_oneof_.tableconstructor_; |
11330 | 0 | if (GetArenaForAllocation() != nullptr) { |
11331 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11332 | 0 | } |
11333 | 0 | _impl_.args_oneof_.tableconstructor_ = nullptr; |
11334 | 0 | return temp; |
11335 | 0 | } else { |
11336 | 0 | return nullptr; |
11337 | 0 | } |
11338 | 0 | } |
11339 | 8.41k | inline const ::lua_grammar::TableConstructor& FunctionCall_Args::_internal_tableconstructor() const { |
11340 | 8.41k | return _internal_has_tableconstructor() |
11341 | 8.41k | ? *_impl_.args_oneof_.tableconstructor_ |
11342 | 8.41k | : reinterpret_cast< ::lua_grammar::TableConstructor&>(::lua_grammar::_TableConstructor_default_instance_); |
11343 | 8.41k | } |
11344 | 8.41k | inline const ::lua_grammar::TableConstructor& FunctionCall_Args::tableconstructor() const { |
11345 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.Args.tableconstructor) |
11346 | 8.41k | return _internal_tableconstructor(); |
11347 | 8.41k | } |
11348 | 0 | inline ::lua_grammar::TableConstructor* FunctionCall_Args::unsafe_arena_release_tableconstructor() { |
11349 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.FunctionCall.Args.tableconstructor) |
11350 | 0 | if (_internal_has_tableconstructor()) { |
11351 | 0 | clear_has_args_oneof(); |
11352 | 0 | ::lua_grammar::TableConstructor* temp = _impl_.args_oneof_.tableconstructor_; |
11353 | 0 | _impl_.args_oneof_.tableconstructor_ = nullptr; |
11354 | 0 | return temp; |
11355 | 0 | } else { |
11356 | 0 | return nullptr; |
11357 | 0 | } |
11358 | 0 | } |
11359 | 0 | inline void FunctionCall_Args::unsafe_arena_set_allocated_tableconstructor(::lua_grammar::TableConstructor* tableconstructor) { |
11360 | 0 | clear_args_oneof(); |
11361 | 0 | if (tableconstructor) { |
11362 | 0 | set_has_tableconstructor(); |
11363 | 0 | _impl_.args_oneof_.tableconstructor_ = tableconstructor; |
11364 | 0 | } |
11365 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.Args.tableconstructor) |
11366 | 0 | } |
11367 | 0 | inline ::lua_grammar::TableConstructor* FunctionCall_Args::_internal_mutable_tableconstructor() { |
11368 | 0 | if (!_internal_has_tableconstructor()) { |
11369 | 0 | clear_args_oneof(); |
11370 | 0 | set_has_tableconstructor(); |
11371 | 0 | _impl_.args_oneof_.tableconstructor_ = CreateMaybeMessage< ::lua_grammar::TableConstructor >(GetArenaForAllocation()); |
11372 | 0 | } |
11373 | 0 | return _impl_.args_oneof_.tableconstructor_; |
11374 | 0 | } |
11375 | 0 | inline ::lua_grammar::TableConstructor* FunctionCall_Args::mutable_tableconstructor() { |
11376 | 0 | ::lua_grammar::TableConstructor* _msg = _internal_mutable_tableconstructor(); |
11377 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.Args.tableconstructor) |
11378 | 0 | return _msg; |
11379 | 0 | } |
11380 | | |
11381 | | // string str = 3; |
11382 | 132 | inline bool FunctionCall_Args::_internal_has_str() const { |
11383 | 132 | return args_oneof_case() == kStr; |
11384 | 132 | } |
11385 | 0 | inline bool FunctionCall_Args::has_str() const { |
11386 | 0 | return _internal_has_str(); |
11387 | 0 | } |
11388 | 0 | inline void FunctionCall_Args::set_has_str() { |
11389 | 0 | _impl_._oneof_case_[0] = kStr; |
11390 | 0 | } |
11391 | 0 | inline void FunctionCall_Args::clear_str() { |
11392 | 0 | if (_internal_has_str()) { |
11393 | 0 | _impl_.args_oneof_.str_.Destroy(); |
11394 | 0 | clear_has_args_oneof(); |
11395 | 0 | } |
11396 | 0 | } |
11397 | 132 | inline const std::string& FunctionCall_Args::str() const { |
11398 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.Args.str) |
11399 | 132 | return _internal_str(); |
11400 | 132 | } |
11401 | | template <typename ArgT0, typename... ArgT> |
11402 | | inline void FunctionCall_Args::set_str(ArgT0&& arg0, ArgT... args) { |
11403 | | if (!_internal_has_str()) { |
11404 | | clear_args_oneof(); |
11405 | | set_has_str(); |
11406 | | _impl_.args_oneof_.str_.InitDefault(); |
11407 | | } |
11408 | | _impl_.args_oneof_.str_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
11409 | | // @@protoc_insertion_point(field_set:lua_grammar.FunctionCall.Args.str) |
11410 | | } |
11411 | 0 | inline std::string* FunctionCall_Args::mutable_str() { |
11412 | 0 | std::string* _s = _internal_mutable_str(); |
11413 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.Args.str) |
11414 | 0 | return _s; |
11415 | 0 | } |
11416 | 132 | inline const std::string& FunctionCall_Args::_internal_str() const { |
11417 | 132 | if (_internal_has_str()) { |
11418 | 132 | return _impl_.args_oneof_.str_.Get(); |
11419 | 132 | } |
11420 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
11421 | 132 | } |
11422 | 0 | inline void FunctionCall_Args::_internal_set_str(const std::string& value) { |
11423 | 0 | if (!_internal_has_str()) { |
11424 | 0 | clear_args_oneof(); |
11425 | 0 | set_has_str(); |
11426 | 0 | _impl_.args_oneof_.str_.InitDefault(); |
11427 | 0 | } |
11428 | 0 | _impl_.args_oneof_.str_.Set(value, GetArenaForAllocation()); |
11429 | 0 | } |
11430 | 0 | inline std::string* FunctionCall_Args::_internal_mutable_str() { |
11431 | 0 | if (!_internal_has_str()) { |
11432 | 0 | clear_args_oneof(); |
11433 | 0 | set_has_str(); |
11434 | 0 | _impl_.args_oneof_.str_.InitDefault(); |
11435 | 0 | } |
11436 | 0 | return _impl_.args_oneof_.str_.Mutable( GetArenaForAllocation()); |
11437 | 0 | } |
11438 | 0 | inline std::string* FunctionCall_Args::release_str() { |
11439 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.Args.str) |
11440 | 0 | if (_internal_has_str()) { |
11441 | 0 | clear_has_args_oneof(); |
11442 | 0 | return _impl_.args_oneof_.str_.Release(); |
11443 | 0 | } else { |
11444 | 0 | return nullptr; |
11445 | 0 | } |
11446 | 0 | } |
11447 | 0 | inline void FunctionCall_Args::set_allocated_str(std::string* str) { |
11448 | 0 | if (has_args_oneof()) { |
11449 | 0 | clear_args_oneof(); |
11450 | 0 | } |
11451 | 0 | if (str != nullptr) { |
11452 | 0 | set_has_str(); |
11453 | 0 | _impl_.args_oneof_.str_.InitAllocated(str, GetArenaForAllocation()); |
11454 | 0 | } |
11455 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.Args.str) |
11456 | 0 | } |
11457 | | |
11458 | 6.30k | inline bool FunctionCall_Args::has_args_oneof() const { |
11459 | 6.30k | return args_oneof_case() != ARGS_ONEOF_NOT_SET; |
11460 | 6.30k | } |
11461 | 6.30k | inline void FunctionCall_Args::clear_has_args_oneof() { |
11462 | 6.30k | _impl_._oneof_case_[0] = ARGS_ONEOF_NOT_SET; |
11463 | 6.30k | } |
11464 | 41.9k | inline FunctionCall_Args::ArgsOneofCase FunctionCall_Args::args_oneof_case() const { |
11465 | 41.9k | return FunctionCall_Args::ArgsOneofCase(_impl_._oneof_case_[0]); |
11466 | 41.9k | } |
11467 | | // ------------------------------------------------------------------- |
11468 | | |
11469 | | // FunctionCall_PrefixArgs |
11470 | | |
11471 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
11472 | 3.66k | inline bool FunctionCall_PrefixArgs::_internal_has_prefixexp() const { |
11473 | 3.66k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
11474 | 3.66k | PROTOBUF_ASSUME(!value || _impl_.prefixexp_ != nullptr); |
11475 | 3.66k | return value; |
11476 | 3.66k | } |
11477 | 0 | inline bool FunctionCall_PrefixArgs::has_prefixexp() const { |
11478 | 0 | return _internal_has_prefixexp(); |
11479 | 0 | } |
11480 | 0 | inline void FunctionCall_PrefixArgs::clear_prefixexp() { |
11481 | 0 | if (_impl_.prefixexp_ != nullptr) _impl_.prefixexp_->Clear(); |
11482 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11483 | 0 | } |
11484 | 3.62k | inline const ::lua_grammar::PrefixExpression& FunctionCall_PrefixArgs::_internal_prefixexp() const { |
11485 | 3.62k | const ::lua_grammar::PrefixExpression* p = _impl_.prefixexp_; |
11486 | 3.62k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::PrefixExpression&>( |
11487 | 0 | ::lua_grammar::_PrefixExpression_default_instance_); |
11488 | 3.62k | } |
11489 | 3.62k | inline const ::lua_grammar::PrefixExpression& FunctionCall_PrefixArgs::prefixexp() const { |
11490 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.PrefixArgs.prefixexp) |
11491 | 3.62k | return _internal_prefixexp(); |
11492 | 3.62k | } |
11493 | | inline void FunctionCall_PrefixArgs::unsafe_arena_set_allocated_prefixexp( |
11494 | 0 | ::lua_grammar::PrefixExpression* prefixexp) { |
11495 | 0 | if (GetArenaForAllocation() == nullptr) { |
11496 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prefixexp_); |
11497 | 0 | } |
11498 | 0 | _impl_.prefixexp_ = prefixexp; |
11499 | 0 | if (prefixexp) { |
11500 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11501 | 0 | } else { |
11502 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11503 | 0 | } |
11504 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.PrefixArgs.prefixexp) |
11505 | 0 | } |
11506 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixArgs::release_prefixexp() { |
11507 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11508 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
11509 | 0 | _impl_.prefixexp_ = nullptr; |
11510 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
11511 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
11512 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11513 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
11514 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
11515 | 0 | if (GetArenaForAllocation() != nullptr) { |
11516 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11517 | 0 | } |
11518 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
11519 | 0 | return temp; |
11520 | 0 | } |
11521 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixArgs::unsafe_arena_release_prefixexp() { |
11522 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.PrefixArgs.prefixexp) |
11523 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11524 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
11525 | 0 | _impl_.prefixexp_ = nullptr; |
11526 | 0 | return temp; |
11527 | 0 | } |
11528 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixArgs::_internal_mutable_prefixexp() { |
11529 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11530 | 0 | if (_impl_.prefixexp_ == nullptr) { |
11531 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::PrefixExpression>(GetArenaForAllocation()); |
11532 | 0 | _impl_.prefixexp_ = p; |
11533 | 0 | } |
11534 | 0 | return _impl_.prefixexp_; |
11535 | 0 | } |
11536 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixArgs::mutable_prefixexp() { |
11537 | 0 | ::lua_grammar::PrefixExpression* _msg = _internal_mutable_prefixexp(); |
11538 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.PrefixArgs.prefixexp) |
11539 | 0 | return _msg; |
11540 | 0 | } |
11541 | 0 | inline void FunctionCall_PrefixArgs::set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp) { |
11542 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11543 | 0 | if (message_arena == nullptr) { |
11544 | 0 | delete _impl_.prefixexp_; |
11545 | 0 | } |
11546 | 0 | if (prefixexp) { |
11547 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11548 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prefixexp); |
11549 | 0 | if (message_arena != submessage_arena) { |
11550 | 0 | prefixexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11551 | 0 | message_arena, prefixexp, submessage_arena); |
11552 | 0 | } |
11553 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11554 | 0 | } else { |
11555 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11556 | 0 | } |
11557 | 0 | _impl_.prefixexp_ = prefixexp; |
11558 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.PrefixArgs.prefixexp) |
11559 | 0 | } |
11560 | | |
11561 | | // required .lua_grammar.FunctionCall.Args args = 2; |
11562 | 3.66k | inline bool FunctionCall_PrefixArgs::_internal_has_args() const { |
11563 | 3.66k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
11564 | 3.66k | PROTOBUF_ASSUME(!value || _impl_.args_ != nullptr); |
11565 | 3.66k | return value; |
11566 | 3.66k | } |
11567 | 0 | inline bool FunctionCall_PrefixArgs::has_args() const { |
11568 | 0 | return _internal_has_args(); |
11569 | 0 | } |
11570 | 0 | inline void FunctionCall_PrefixArgs::clear_args() { |
11571 | 0 | if (_impl_.args_ != nullptr) _impl_.args_->Clear(); |
11572 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11573 | 0 | } |
11574 | 3.62k | inline const ::lua_grammar::FunctionCall_Args& FunctionCall_PrefixArgs::_internal_args() const { |
11575 | 3.62k | const ::lua_grammar::FunctionCall_Args* p = _impl_.args_; |
11576 | 3.62k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FunctionCall_Args&>( |
11577 | 0 | ::lua_grammar::_FunctionCall_Args_default_instance_); |
11578 | 3.62k | } |
11579 | 3.62k | inline const ::lua_grammar::FunctionCall_Args& FunctionCall_PrefixArgs::args() const { |
11580 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.PrefixArgs.args) |
11581 | 3.62k | return _internal_args(); |
11582 | 3.62k | } |
11583 | | inline void FunctionCall_PrefixArgs::unsafe_arena_set_allocated_args( |
11584 | 0 | ::lua_grammar::FunctionCall_Args* args) { |
11585 | 0 | if (GetArenaForAllocation() == nullptr) { |
11586 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.args_); |
11587 | 0 | } |
11588 | 0 | _impl_.args_ = args; |
11589 | 0 | if (args) { |
11590 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11591 | 0 | } else { |
11592 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11593 | 0 | } |
11594 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.PrefixArgs.args) |
11595 | 0 | } |
11596 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixArgs::release_args() { |
11597 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11598 | 0 | ::lua_grammar::FunctionCall_Args* temp = _impl_.args_; |
11599 | 0 | _impl_.args_ = nullptr; |
11600 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
11601 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
11602 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11603 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
11604 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
11605 | 0 | if (GetArenaForAllocation() != nullptr) { |
11606 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11607 | 0 | } |
11608 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
11609 | 0 | return temp; |
11610 | 0 | } |
11611 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixArgs::unsafe_arena_release_args() { |
11612 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.PrefixArgs.args) |
11613 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11614 | 0 | ::lua_grammar::FunctionCall_Args* temp = _impl_.args_; |
11615 | 0 | _impl_.args_ = nullptr; |
11616 | 0 | return temp; |
11617 | 0 | } |
11618 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixArgs::_internal_mutable_args() { |
11619 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11620 | 0 | if (_impl_.args_ == nullptr) { |
11621 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FunctionCall_Args>(GetArenaForAllocation()); |
11622 | 0 | _impl_.args_ = p; |
11623 | 0 | } |
11624 | 0 | return _impl_.args_; |
11625 | 0 | } |
11626 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixArgs::mutable_args() { |
11627 | 0 | ::lua_grammar::FunctionCall_Args* _msg = _internal_mutable_args(); |
11628 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.PrefixArgs.args) |
11629 | 0 | return _msg; |
11630 | 0 | } |
11631 | 0 | inline void FunctionCall_PrefixArgs::set_allocated_args(::lua_grammar::FunctionCall_Args* args) { |
11632 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11633 | 0 | if (message_arena == nullptr) { |
11634 | 0 | delete _impl_.args_; |
11635 | 0 | } |
11636 | 0 | if (args) { |
11637 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11638 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(args); |
11639 | 0 | if (message_arena != submessage_arena) { |
11640 | 0 | args = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11641 | 0 | message_arena, args, submessage_arena); |
11642 | 0 | } |
11643 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11644 | 0 | } else { |
11645 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11646 | 0 | } |
11647 | 0 | _impl_.args_ = args; |
11648 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.PrefixArgs.args) |
11649 | 0 | } |
11650 | | |
11651 | | // ------------------------------------------------------------------- |
11652 | | |
11653 | | // FunctionCall_PrefixNamedArgs |
11654 | | |
11655 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
11656 | 1.78k | inline bool FunctionCall_PrefixNamedArgs::_internal_has_prefixexp() const { |
11657 | 1.78k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
11658 | 1.78k | PROTOBUF_ASSUME(!value || _impl_.prefixexp_ != nullptr); |
11659 | 1.78k | return value; |
11660 | 1.78k | } |
11661 | 0 | inline bool FunctionCall_PrefixNamedArgs::has_prefixexp() const { |
11662 | 0 | return _internal_has_prefixexp(); |
11663 | 0 | } |
11664 | 0 | inline void FunctionCall_PrefixNamedArgs::clear_prefixexp() { |
11665 | 0 | if (_impl_.prefixexp_ != nullptr) _impl_.prefixexp_->Clear(); |
11666 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11667 | 0 | } |
11668 | 7.76k | inline const ::lua_grammar::PrefixExpression& FunctionCall_PrefixNamedArgs::_internal_prefixexp() const { |
11669 | 7.76k | const ::lua_grammar::PrefixExpression* p = _impl_.prefixexp_; |
11670 | 7.76k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::PrefixExpression&>( |
11671 | 6.00k | ::lua_grammar::_PrefixExpression_default_instance_); |
11672 | 7.76k | } |
11673 | 7.76k | inline const ::lua_grammar::PrefixExpression& FunctionCall_PrefixNamedArgs::prefixexp() const { |
11674 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.PrefixNamedArgs.prefixexp) |
11675 | 7.76k | return _internal_prefixexp(); |
11676 | 7.76k | } |
11677 | | inline void FunctionCall_PrefixNamedArgs::unsafe_arena_set_allocated_prefixexp( |
11678 | 0 | ::lua_grammar::PrefixExpression* prefixexp) { |
11679 | 0 | if (GetArenaForAllocation() == nullptr) { |
11680 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prefixexp_); |
11681 | 0 | } |
11682 | 0 | _impl_.prefixexp_ = prefixexp; |
11683 | 0 | if (prefixexp) { |
11684 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11685 | 0 | } else { |
11686 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11687 | 0 | } |
11688 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.PrefixNamedArgs.prefixexp) |
11689 | 0 | } |
11690 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixNamedArgs::release_prefixexp() { |
11691 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11692 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
11693 | 0 | _impl_.prefixexp_ = nullptr; |
11694 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
11695 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
11696 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11697 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
11698 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
11699 | 0 | if (GetArenaForAllocation() != nullptr) { |
11700 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11701 | 0 | } |
11702 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
11703 | 0 | return temp; |
11704 | 0 | } |
11705 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixNamedArgs::unsafe_arena_release_prefixexp() { |
11706 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.PrefixNamedArgs.prefixexp) |
11707 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11708 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
11709 | 0 | _impl_.prefixexp_ = nullptr; |
11710 | 0 | return temp; |
11711 | 0 | } |
11712 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixNamedArgs::_internal_mutable_prefixexp() { |
11713 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11714 | 0 | if (_impl_.prefixexp_ == nullptr) { |
11715 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::PrefixExpression>(GetArenaForAllocation()); |
11716 | 0 | _impl_.prefixexp_ = p; |
11717 | 0 | } |
11718 | 0 | return _impl_.prefixexp_; |
11719 | 0 | } |
11720 | 0 | inline ::lua_grammar::PrefixExpression* FunctionCall_PrefixNamedArgs::mutable_prefixexp() { |
11721 | 0 | ::lua_grammar::PrefixExpression* _msg = _internal_mutable_prefixexp(); |
11722 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.PrefixNamedArgs.prefixexp) |
11723 | 0 | return _msg; |
11724 | 0 | } |
11725 | 0 | inline void FunctionCall_PrefixNamedArgs::set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp) { |
11726 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11727 | 0 | if (message_arena == nullptr) { |
11728 | 0 | delete _impl_.prefixexp_; |
11729 | 0 | } |
11730 | 0 | if (prefixexp) { |
11731 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11732 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prefixexp); |
11733 | 0 | if (message_arena != submessage_arena) { |
11734 | 0 | prefixexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11735 | 0 | message_arena, prefixexp, submessage_arena); |
11736 | 0 | } |
11737 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
11738 | 0 | } else { |
11739 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
11740 | 0 | } |
11741 | 0 | _impl_.prefixexp_ = prefixexp; |
11742 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.PrefixNamedArgs.prefixexp) |
11743 | 0 | } |
11744 | | |
11745 | | // required .lua_grammar.Name name = 2; |
11746 | 1.78k | inline bool FunctionCall_PrefixNamedArgs::_internal_has_name() const { |
11747 | 1.78k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
11748 | 1.78k | PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); |
11749 | 1.78k | return value; |
11750 | 1.78k | } |
11751 | 0 | inline bool FunctionCall_PrefixNamedArgs::has_name() const { |
11752 | 0 | return _internal_has_name(); |
11753 | 0 | } |
11754 | 0 | inline void FunctionCall_PrefixNamedArgs::clear_name() { |
11755 | 0 | if (_impl_.name_ != nullptr) _impl_.name_->Clear(); |
11756 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11757 | 0 | } |
11758 | 7.76k | inline const ::lua_grammar::Name& FunctionCall_PrefixNamedArgs::_internal_name() const { |
11759 | 7.76k | const ::lua_grammar::Name* p = _impl_.name_; |
11760 | 7.76k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Name&>( |
11761 | 6.00k | ::lua_grammar::_Name_default_instance_); |
11762 | 7.76k | } |
11763 | 7.76k | inline const ::lua_grammar::Name& FunctionCall_PrefixNamedArgs::name() const { |
11764 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.PrefixNamedArgs.name) |
11765 | 7.76k | return _internal_name(); |
11766 | 7.76k | } |
11767 | | inline void FunctionCall_PrefixNamedArgs::unsafe_arena_set_allocated_name( |
11768 | 0 | ::lua_grammar::Name* name) { |
11769 | 0 | if (GetArenaForAllocation() == nullptr) { |
11770 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); |
11771 | 0 | } |
11772 | 0 | _impl_.name_ = name; |
11773 | 0 | if (name) { |
11774 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11775 | 0 | } else { |
11776 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11777 | 0 | } |
11778 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.PrefixNamedArgs.name) |
11779 | 0 | } |
11780 | 0 | inline ::lua_grammar::Name* FunctionCall_PrefixNamedArgs::release_name() { |
11781 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11782 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
11783 | 0 | _impl_.name_ = nullptr; |
11784 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
11785 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
11786 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11787 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
11788 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
11789 | 0 | if (GetArenaForAllocation() != nullptr) { |
11790 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11791 | 0 | } |
11792 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
11793 | 0 | return temp; |
11794 | 0 | } |
11795 | 0 | inline ::lua_grammar::Name* FunctionCall_PrefixNamedArgs::unsafe_arena_release_name() { |
11796 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.PrefixNamedArgs.name) |
11797 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11798 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
11799 | 0 | _impl_.name_ = nullptr; |
11800 | 0 | return temp; |
11801 | 0 | } |
11802 | 0 | inline ::lua_grammar::Name* FunctionCall_PrefixNamedArgs::_internal_mutable_name() { |
11803 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11804 | 0 | if (_impl_.name_ == nullptr) { |
11805 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Name>(GetArenaForAllocation()); |
11806 | 0 | _impl_.name_ = p; |
11807 | 0 | } |
11808 | 0 | return _impl_.name_; |
11809 | 0 | } |
11810 | 0 | inline ::lua_grammar::Name* FunctionCall_PrefixNamedArgs::mutable_name() { |
11811 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_name(); |
11812 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.PrefixNamedArgs.name) |
11813 | 0 | return _msg; |
11814 | 0 | } |
11815 | 0 | inline void FunctionCall_PrefixNamedArgs::set_allocated_name(::lua_grammar::Name* name) { |
11816 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11817 | 0 | if (message_arena == nullptr) { |
11818 | 0 | delete _impl_.name_; |
11819 | 0 | } |
11820 | 0 | if (name) { |
11821 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11822 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); |
11823 | 0 | if (message_arena != submessage_arena) { |
11824 | 0 | name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11825 | 0 | message_arena, name, submessage_arena); |
11826 | 0 | } |
11827 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
11828 | 0 | } else { |
11829 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
11830 | 0 | } |
11831 | 0 | _impl_.name_ = name; |
11832 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.PrefixNamedArgs.name) |
11833 | 0 | } |
11834 | | |
11835 | | // required .lua_grammar.FunctionCall.Args args = 3; |
11836 | 1.78k | inline bool FunctionCall_PrefixNamedArgs::_internal_has_args() const { |
11837 | 1.78k | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
11838 | 1.78k | PROTOBUF_ASSUME(!value || _impl_.args_ != nullptr); |
11839 | 1.78k | return value; |
11840 | 1.78k | } |
11841 | 0 | inline bool FunctionCall_PrefixNamedArgs::has_args() const { |
11842 | 0 | return _internal_has_args(); |
11843 | 0 | } |
11844 | 0 | inline void FunctionCall_PrefixNamedArgs::clear_args() { |
11845 | 0 | if (_impl_.args_ != nullptr) _impl_.args_->Clear(); |
11846 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
11847 | 0 | } |
11848 | 7.76k | inline const ::lua_grammar::FunctionCall_Args& FunctionCall_PrefixNamedArgs::_internal_args() const { |
11849 | 7.76k | const ::lua_grammar::FunctionCall_Args* p = _impl_.args_; |
11850 | 7.76k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FunctionCall_Args&>( |
11851 | 6.00k | ::lua_grammar::_FunctionCall_Args_default_instance_); |
11852 | 7.76k | } |
11853 | 7.76k | inline const ::lua_grammar::FunctionCall_Args& FunctionCall_PrefixNamedArgs::args() const { |
11854 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.PrefixNamedArgs.args) |
11855 | 7.76k | return _internal_args(); |
11856 | 7.76k | } |
11857 | | inline void FunctionCall_PrefixNamedArgs::unsafe_arena_set_allocated_args( |
11858 | 0 | ::lua_grammar::FunctionCall_Args* args) { |
11859 | 0 | if (GetArenaForAllocation() == nullptr) { |
11860 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.args_); |
11861 | 0 | } |
11862 | 0 | _impl_.args_ = args; |
11863 | 0 | if (args) { |
11864 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
11865 | 0 | } else { |
11866 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
11867 | 0 | } |
11868 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.PrefixNamedArgs.args) |
11869 | 0 | } |
11870 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixNamedArgs::release_args() { |
11871 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
11872 | 0 | ::lua_grammar::FunctionCall_Args* temp = _impl_.args_; |
11873 | 0 | _impl_.args_ = nullptr; |
11874 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
11875 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
11876 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11877 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
11878 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
11879 | 0 | if (GetArenaForAllocation() != nullptr) { |
11880 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11881 | 0 | } |
11882 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
11883 | 0 | return temp; |
11884 | 0 | } |
11885 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixNamedArgs::unsafe_arena_release_args() { |
11886 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.PrefixNamedArgs.args) |
11887 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
11888 | 0 | ::lua_grammar::FunctionCall_Args* temp = _impl_.args_; |
11889 | 0 | _impl_.args_ = nullptr; |
11890 | 0 | return temp; |
11891 | 0 | } |
11892 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixNamedArgs::_internal_mutable_args() { |
11893 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
11894 | 0 | if (_impl_.args_ == nullptr) { |
11895 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FunctionCall_Args>(GetArenaForAllocation()); |
11896 | 0 | _impl_.args_ = p; |
11897 | 0 | } |
11898 | 0 | return _impl_.args_; |
11899 | 0 | } |
11900 | 0 | inline ::lua_grammar::FunctionCall_Args* FunctionCall_PrefixNamedArgs::mutable_args() { |
11901 | 0 | ::lua_grammar::FunctionCall_Args* _msg = _internal_mutable_args(); |
11902 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.PrefixNamedArgs.args) |
11903 | 0 | return _msg; |
11904 | 0 | } |
11905 | 0 | inline void FunctionCall_PrefixNamedArgs::set_allocated_args(::lua_grammar::FunctionCall_Args* args) { |
11906 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
11907 | 0 | if (message_arena == nullptr) { |
11908 | 0 | delete _impl_.args_; |
11909 | 0 | } |
11910 | 0 | if (args) { |
11911 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
11912 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(args); |
11913 | 0 | if (message_arena != submessage_arena) { |
11914 | 0 | args = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
11915 | 0 | message_arena, args, submessage_arena); |
11916 | 0 | } |
11917 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
11918 | 0 | } else { |
11919 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
11920 | 0 | } |
11921 | 0 | _impl_.args_ = args; |
11922 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FunctionCall.PrefixNamedArgs.args) |
11923 | 0 | } |
11924 | | |
11925 | | // ------------------------------------------------------------------- |
11926 | | |
11927 | | // FunctionCall |
11928 | | |
11929 | | // .lua_grammar.FunctionCall.PrefixArgs prefArgs = 1; |
11930 | 7.29k | inline bool FunctionCall::_internal_has_prefargs() const { |
11931 | 7.29k | return call_oneof_case() == kPrefArgs; |
11932 | 7.29k | } |
11933 | 0 | inline bool FunctionCall::has_prefargs() const { |
11934 | 0 | return _internal_has_prefargs(); |
11935 | 0 | } |
11936 | 0 | inline void FunctionCall::set_has_prefargs() { |
11937 | 0 | _impl_._oneof_case_[0] = kPrefArgs; |
11938 | 0 | } |
11939 | 0 | inline void FunctionCall::clear_prefargs() { |
11940 | 0 | if (_internal_has_prefargs()) { |
11941 | 0 | if (GetArenaForAllocation() == nullptr) { |
11942 | 0 | delete _impl_.call_oneof_.prefargs_; |
11943 | 0 | } |
11944 | 0 | clear_has_call_oneof(); |
11945 | 0 | } |
11946 | 0 | } |
11947 | 0 | inline ::lua_grammar::FunctionCall_PrefixArgs* FunctionCall::release_prefargs() { |
11948 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.prefArgs) |
11949 | 0 | if (_internal_has_prefargs()) { |
11950 | 0 | clear_has_call_oneof(); |
11951 | 0 | ::lua_grammar::FunctionCall_PrefixArgs* temp = _impl_.call_oneof_.prefargs_; |
11952 | 0 | if (GetArenaForAllocation() != nullptr) { |
11953 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
11954 | 0 | } |
11955 | 0 | _impl_.call_oneof_.prefargs_ = nullptr; |
11956 | 0 | return temp; |
11957 | 0 | } else { |
11958 | 0 | return nullptr; |
11959 | 0 | } |
11960 | 0 | } |
11961 | 3.62k | inline const ::lua_grammar::FunctionCall_PrefixArgs& FunctionCall::_internal_prefargs() const { |
11962 | 3.62k | return _internal_has_prefargs() |
11963 | 3.62k | ? *_impl_.call_oneof_.prefargs_ |
11964 | 3.62k | : reinterpret_cast< ::lua_grammar::FunctionCall_PrefixArgs&>(::lua_grammar::_FunctionCall_PrefixArgs_default_instance_); |
11965 | 3.62k | } |
11966 | 3.62k | inline const ::lua_grammar::FunctionCall_PrefixArgs& FunctionCall::prefargs() const { |
11967 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.prefArgs) |
11968 | 3.62k | return _internal_prefargs(); |
11969 | 3.62k | } |
11970 | 0 | inline ::lua_grammar::FunctionCall_PrefixArgs* FunctionCall::unsafe_arena_release_prefargs() { |
11971 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.FunctionCall.prefArgs) |
11972 | 0 | if (_internal_has_prefargs()) { |
11973 | 0 | clear_has_call_oneof(); |
11974 | 0 | ::lua_grammar::FunctionCall_PrefixArgs* temp = _impl_.call_oneof_.prefargs_; |
11975 | 0 | _impl_.call_oneof_.prefargs_ = nullptr; |
11976 | 0 | return temp; |
11977 | 0 | } else { |
11978 | 0 | return nullptr; |
11979 | 0 | } |
11980 | 0 | } |
11981 | 0 | inline void FunctionCall::unsafe_arena_set_allocated_prefargs(::lua_grammar::FunctionCall_PrefixArgs* prefargs) { |
11982 | 0 | clear_call_oneof(); |
11983 | 0 | if (prefargs) { |
11984 | 0 | set_has_prefargs(); |
11985 | 0 | _impl_.call_oneof_.prefargs_ = prefargs; |
11986 | 0 | } |
11987 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.prefArgs) |
11988 | 0 | } |
11989 | 0 | inline ::lua_grammar::FunctionCall_PrefixArgs* FunctionCall::_internal_mutable_prefargs() { |
11990 | 0 | if (!_internal_has_prefargs()) { |
11991 | 0 | clear_call_oneof(); |
11992 | 0 | set_has_prefargs(); |
11993 | 0 | _impl_.call_oneof_.prefargs_ = CreateMaybeMessage< ::lua_grammar::FunctionCall_PrefixArgs >(GetArenaForAllocation()); |
11994 | 0 | } |
11995 | 0 | return _impl_.call_oneof_.prefargs_; |
11996 | 0 | } |
11997 | 0 | inline ::lua_grammar::FunctionCall_PrefixArgs* FunctionCall::mutable_prefargs() { |
11998 | 0 | ::lua_grammar::FunctionCall_PrefixArgs* _msg = _internal_mutable_prefargs(); |
11999 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.prefArgs) |
12000 | 0 | return _msg; |
12001 | 0 | } |
12002 | | |
12003 | | // .lua_grammar.FunctionCall.PrefixNamedArgs namedArgs = 2; |
12004 | 9.55k | inline bool FunctionCall::_internal_has_namedargs() const { |
12005 | 9.55k | return call_oneof_case() == kNamedArgs; |
12006 | 9.55k | } |
12007 | 0 | inline bool FunctionCall::has_namedargs() const { |
12008 | 0 | return _internal_has_namedargs(); |
12009 | 0 | } |
12010 | 0 | inline void FunctionCall::set_has_namedargs() { |
12011 | 0 | _impl_._oneof_case_[0] = kNamedArgs; |
12012 | 0 | } |
12013 | 0 | inline void FunctionCall::clear_namedargs() { |
12014 | 0 | if (_internal_has_namedargs()) { |
12015 | 0 | if (GetArenaForAllocation() == nullptr) { |
12016 | 0 | delete _impl_.call_oneof_.namedargs_; |
12017 | 0 | } |
12018 | 0 | clear_has_call_oneof(); |
12019 | 0 | } |
12020 | 0 | } |
12021 | 0 | inline ::lua_grammar::FunctionCall_PrefixNamedArgs* FunctionCall::release_namedargs() { |
12022 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FunctionCall.namedArgs) |
12023 | 0 | if (_internal_has_namedargs()) { |
12024 | 0 | clear_has_call_oneof(); |
12025 | 0 | ::lua_grammar::FunctionCall_PrefixNamedArgs* temp = _impl_.call_oneof_.namedargs_; |
12026 | 0 | if (GetArenaForAllocation() != nullptr) { |
12027 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12028 | 0 | } |
12029 | 0 | _impl_.call_oneof_.namedargs_ = nullptr; |
12030 | 0 | return temp; |
12031 | 0 | } else { |
12032 | 0 | return nullptr; |
12033 | 0 | } |
12034 | 0 | } |
12035 | 7.76k | inline const ::lua_grammar::FunctionCall_PrefixNamedArgs& FunctionCall::_internal_namedargs() const { |
12036 | 7.76k | return _internal_has_namedargs() |
12037 | 7.76k | ? *_impl_.call_oneof_.namedargs_ |
12038 | 7.76k | : reinterpret_cast< ::lua_grammar::FunctionCall_PrefixNamedArgs&>(::lua_grammar::_FunctionCall_PrefixNamedArgs_default_instance_); |
12039 | 7.76k | } |
12040 | 7.76k | inline const ::lua_grammar::FunctionCall_PrefixNamedArgs& FunctionCall::namedargs() const { |
12041 | | // @@protoc_insertion_point(field_get:lua_grammar.FunctionCall.namedArgs) |
12042 | 7.76k | return _internal_namedargs(); |
12043 | 7.76k | } |
12044 | 0 | inline ::lua_grammar::FunctionCall_PrefixNamedArgs* FunctionCall::unsafe_arena_release_namedargs() { |
12045 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.FunctionCall.namedArgs) |
12046 | 0 | if (_internal_has_namedargs()) { |
12047 | 0 | clear_has_call_oneof(); |
12048 | 0 | ::lua_grammar::FunctionCall_PrefixNamedArgs* temp = _impl_.call_oneof_.namedargs_; |
12049 | 0 | _impl_.call_oneof_.namedargs_ = nullptr; |
12050 | 0 | return temp; |
12051 | 0 | } else { |
12052 | 0 | return nullptr; |
12053 | 0 | } |
12054 | 0 | } |
12055 | 0 | inline void FunctionCall::unsafe_arena_set_allocated_namedargs(::lua_grammar::FunctionCall_PrefixNamedArgs* namedargs) { |
12056 | 0 | clear_call_oneof(); |
12057 | 0 | if (namedargs) { |
12058 | 0 | set_has_namedargs(); |
12059 | 0 | _impl_.call_oneof_.namedargs_ = namedargs; |
12060 | 0 | } |
12061 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FunctionCall.namedArgs) |
12062 | 0 | } |
12063 | 0 | inline ::lua_grammar::FunctionCall_PrefixNamedArgs* FunctionCall::_internal_mutable_namedargs() { |
12064 | 0 | if (!_internal_has_namedargs()) { |
12065 | 0 | clear_call_oneof(); |
12066 | 0 | set_has_namedargs(); |
12067 | 0 | _impl_.call_oneof_.namedargs_ = CreateMaybeMessage< ::lua_grammar::FunctionCall_PrefixNamedArgs >(GetArenaForAllocation()); |
12068 | 0 | } |
12069 | 0 | return _impl_.call_oneof_.namedargs_; |
12070 | 0 | } |
12071 | 0 | inline ::lua_grammar::FunctionCall_PrefixNamedArgs* FunctionCall::mutable_namedargs() { |
12072 | 0 | ::lua_grammar::FunctionCall_PrefixNamedArgs* _msg = _internal_mutable_namedargs(); |
12073 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FunctionCall.namedArgs) |
12074 | 0 | return _msg; |
12075 | 0 | } |
12076 | | |
12077 | 12.8k | inline bool FunctionCall::has_call_oneof() const { |
12078 | 12.8k | return call_oneof_case() != CALL_ONEOF_NOT_SET; |
12079 | 12.8k | } |
12080 | 12.8k | inline void FunctionCall::clear_has_call_oneof() { |
12081 | 12.8k | _impl_._oneof_case_[0] = CALL_ONEOF_NOT_SET; |
12082 | 12.8k | } |
12083 | 59.0k | inline FunctionCall::CallOneofCase FunctionCall::call_oneof_case() const { |
12084 | 59.0k | return FunctionCall::CallOneofCase(_impl_._oneof_case_[0]); |
12085 | 59.0k | } |
12086 | | // ------------------------------------------------------------------- |
12087 | | |
12088 | | // DoBlock |
12089 | | |
12090 | | // required .lua_grammar.Block block = 1; |
12091 | 30.6k | inline bool DoBlock::_internal_has_block() const { |
12092 | 30.6k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
12093 | 30.6k | PROTOBUF_ASSUME(!value || _impl_.block_ != nullptr); |
12094 | 30.6k | return value; |
12095 | 30.6k | } |
12096 | 0 | inline bool DoBlock::has_block() const { |
12097 | 0 | return _internal_has_block(); |
12098 | 0 | } |
12099 | 0 | inline void DoBlock::clear_block() { |
12100 | 0 | if (_impl_.block_ != nullptr) _impl_.block_->Clear(); |
12101 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12102 | 0 | } |
12103 | 30.5k | inline const ::lua_grammar::Block& DoBlock::_internal_block() const { |
12104 | 30.5k | const ::lua_grammar::Block* p = _impl_.block_; |
12105 | 30.5k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Block&>( |
12106 | 0 | ::lua_grammar::_Block_default_instance_); |
12107 | 30.5k | } |
12108 | 30.5k | inline const ::lua_grammar::Block& DoBlock::block() const { |
12109 | | // @@protoc_insertion_point(field_get:lua_grammar.DoBlock.block) |
12110 | 30.5k | return _internal_block(); |
12111 | 30.5k | } |
12112 | | inline void DoBlock::unsafe_arena_set_allocated_block( |
12113 | 0 | ::lua_grammar::Block* block) { |
12114 | 0 | if (GetArenaForAllocation() == nullptr) { |
12115 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.block_); |
12116 | 0 | } |
12117 | 0 | _impl_.block_ = block; |
12118 | 0 | if (block) { |
12119 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12120 | 0 | } else { |
12121 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12122 | 0 | } |
12123 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.DoBlock.block) |
12124 | 0 | } |
12125 | 0 | inline ::lua_grammar::Block* DoBlock::release_block() { |
12126 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12127 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
12128 | 0 | _impl_.block_ = nullptr; |
12129 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12130 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12131 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12132 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12133 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12134 | 0 | if (GetArenaForAllocation() != nullptr) { |
12135 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12136 | 0 | } |
12137 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12138 | 0 | return temp; |
12139 | 0 | } |
12140 | 0 | inline ::lua_grammar::Block* DoBlock::unsafe_arena_release_block() { |
12141 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.DoBlock.block) |
12142 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12143 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
12144 | 0 | _impl_.block_ = nullptr; |
12145 | 0 | return temp; |
12146 | 0 | } |
12147 | 0 | inline ::lua_grammar::Block* DoBlock::_internal_mutable_block() { |
12148 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12149 | 0 | if (_impl_.block_ == nullptr) { |
12150 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Block>(GetArenaForAllocation()); |
12151 | 0 | _impl_.block_ = p; |
12152 | 0 | } |
12153 | 0 | return _impl_.block_; |
12154 | 0 | } |
12155 | 0 | inline ::lua_grammar::Block* DoBlock::mutable_block() { |
12156 | 0 | ::lua_grammar::Block* _msg = _internal_mutable_block(); |
12157 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.DoBlock.block) |
12158 | 0 | return _msg; |
12159 | 0 | } |
12160 | 0 | inline void DoBlock::set_allocated_block(::lua_grammar::Block* block) { |
12161 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12162 | 0 | if (message_arena == nullptr) { |
12163 | 0 | delete _impl_.block_; |
12164 | 0 | } |
12165 | 0 | if (block) { |
12166 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12167 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(block); |
12168 | 0 | if (message_arena != submessage_arena) { |
12169 | 0 | block = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12170 | 0 | message_arena, block, submessage_arena); |
12171 | 0 | } |
12172 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12173 | 0 | } else { |
12174 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12175 | 0 | } |
12176 | 0 | _impl_.block_ = block; |
12177 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.DoBlock.block) |
12178 | 0 | } |
12179 | | |
12180 | | // ------------------------------------------------------------------- |
12181 | | |
12182 | | // WhileCycle |
12183 | | |
12184 | | // required .lua_grammar.Expression condition = 1; |
12185 | 3.07k | inline bool WhileCycle::_internal_has_condition() const { |
12186 | 3.07k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
12187 | 3.07k | PROTOBUF_ASSUME(!value || _impl_.condition_ != nullptr); |
12188 | 3.07k | return value; |
12189 | 3.07k | } |
12190 | 0 | inline bool WhileCycle::has_condition() const { |
12191 | 0 | return _internal_has_condition(); |
12192 | 0 | } |
12193 | 0 | inline void WhileCycle::clear_condition() { |
12194 | 0 | if (_impl_.condition_ != nullptr) _impl_.condition_->Clear(); |
12195 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12196 | 0 | } |
12197 | 3.07k | inline const ::lua_grammar::Expression& WhileCycle::_internal_condition() const { |
12198 | 3.07k | const ::lua_grammar::Expression* p = _impl_.condition_; |
12199 | 3.07k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
12200 | 0 | ::lua_grammar::_Expression_default_instance_); |
12201 | 3.07k | } |
12202 | 3.07k | inline const ::lua_grammar::Expression& WhileCycle::condition() const { |
12203 | | // @@protoc_insertion_point(field_get:lua_grammar.WhileCycle.condition) |
12204 | 3.07k | return _internal_condition(); |
12205 | 3.07k | } |
12206 | | inline void WhileCycle::unsafe_arena_set_allocated_condition( |
12207 | 0 | ::lua_grammar::Expression* condition) { |
12208 | 0 | if (GetArenaForAllocation() == nullptr) { |
12209 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.condition_); |
12210 | 0 | } |
12211 | 0 | _impl_.condition_ = condition; |
12212 | 0 | if (condition) { |
12213 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12214 | 0 | } else { |
12215 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12216 | 0 | } |
12217 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.WhileCycle.condition) |
12218 | 0 | } |
12219 | 0 | inline ::lua_grammar::Expression* WhileCycle::release_condition() { |
12220 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12221 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12222 | 0 | _impl_.condition_ = nullptr; |
12223 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12224 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12225 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12226 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12227 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12228 | 0 | if (GetArenaForAllocation() != nullptr) { |
12229 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12230 | 0 | } |
12231 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12232 | 0 | return temp; |
12233 | 0 | } |
12234 | 0 | inline ::lua_grammar::Expression* WhileCycle::unsafe_arena_release_condition() { |
12235 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.WhileCycle.condition) |
12236 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12237 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12238 | 0 | _impl_.condition_ = nullptr; |
12239 | 0 | return temp; |
12240 | 0 | } |
12241 | 0 | inline ::lua_grammar::Expression* WhileCycle::_internal_mutable_condition() { |
12242 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12243 | 0 | if (_impl_.condition_ == nullptr) { |
12244 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
12245 | 0 | _impl_.condition_ = p; |
12246 | 0 | } |
12247 | 0 | return _impl_.condition_; |
12248 | 0 | } |
12249 | 0 | inline ::lua_grammar::Expression* WhileCycle::mutable_condition() { |
12250 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_condition(); |
12251 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.WhileCycle.condition) |
12252 | 0 | return _msg; |
12253 | 0 | } |
12254 | 0 | inline void WhileCycle::set_allocated_condition(::lua_grammar::Expression* condition) { |
12255 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12256 | 0 | if (message_arena == nullptr) { |
12257 | 0 | delete _impl_.condition_; |
12258 | 0 | } |
12259 | 0 | if (condition) { |
12260 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12261 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(condition); |
12262 | 0 | if (message_arena != submessage_arena) { |
12263 | 0 | condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12264 | 0 | message_arena, condition, submessage_arena); |
12265 | 0 | } |
12266 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12267 | 0 | } else { |
12268 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12269 | 0 | } |
12270 | 0 | _impl_.condition_ = condition; |
12271 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.WhileCycle.condition) |
12272 | 0 | } |
12273 | | |
12274 | | // required .lua_grammar.DoBlock doblock = 2; |
12275 | 3.07k | inline bool WhileCycle::_internal_has_doblock() const { |
12276 | 3.07k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
12277 | 3.07k | PROTOBUF_ASSUME(!value || _impl_.doblock_ != nullptr); |
12278 | 3.07k | return value; |
12279 | 3.07k | } |
12280 | 0 | inline bool WhileCycle::has_doblock() const { |
12281 | 0 | return _internal_has_doblock(); |
12282 | 0 | } |
12283 | 0 | inline void WhileCycle::clear_doblock() { |
12284 | 0 | if (_impl_.doblock_ != nullptr) _impl_.doblock_->Clear(); |
12285 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12286 | 0 | } |
12287 | 3.07k | inline const ::lua_grammar::DoBlock& WhileCycle::_internal_doblock() const { |
12288 | 3.07k | const ::lua_grammar::DoBlock* p = _impl_.doblock_; |
12289 | 3.07k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::DoBlock&>( |
12290 | 0 | ::lua_grammar::_DoBlock_default_instance_); |
12291 | 3.07k | } |
12292 | 3.07k | inline const ::lua_grammar::DoBlock& WhileCycle::doblock() const { |
12293 | | // @@protoc_insertion_point(field_get:lua_grammar.WhileCycle.doblock) |
12294 | 3.07k | return _internal_doblock(); |
12295 | 3.07k | } |
12296 | | inline void WhileCycle::unsafe_arena_set_allocated_doblock( |
12297 | 0 | ::lua_grammar::DoBlock* doblock) { |
12298 | 0 | if (GetArenaForAllocation() == nullptr) { |
12299 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.doblock_); |
12300 | 0 | } |
12301 | 0 | _impl_.doblock_ = doblock; |
12302 | 0 | if (doblock) { |
12303 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12304 | 0 | } else { |
12305 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12306 | 0 | } |
12307 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.WhileCycle.doblock) |
12308 | 0 | } |
12309 | 0 | inline ::lua_grammar::DoBlock* WhileCycle::release_doblock() { |
12310 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12311 | 0 | ::lua_grammar::DoBlock* temp = _impl_.doblock_; |
12312 | 0 | _impl_.doblock_ = nullptr; |
12313 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12314 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12315 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12316 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12317 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12318 | 0 | if (GetArenaForAllocation() != nullptr) { |
12319 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12320 | 0 | } |
12321 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12322 | 0 | return temp; |
12323 | 0 | } |
12324 | 0 | inline ::lua_grammar::DoBlock* WhileCycle::unsafe_arena_release_doblock() { |
12325 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.WhileCycle.doblock) |
12326 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12327 | 0 | ::lua_grammar::DoBlock* temp = _impl_.doblock_; |
12328 | 0 | _impl_.doblock_ = nullptr; |
12329 | 0 | return temp; |
12330 | 0 | } |
12331 | 0 | inline ::lua_grammar::DoBlock* WhileCycle::_internal_mutable_doblock() { |
12332 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12333 | 0 | if (_impl_.doblock_ == nullptr) { |
12334 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::DoBlock>(GetArenaForAllocation()); |
12335 | 0 | _impl_.doblock_ = p; |
12336 | 0 | } |
12337 | 0 | return _impl_.doblock_; |
12338 | 0 | } |
12339 | 0 | inline ::lua_grammar::DoBlock* WhileCycle::mutable_doblock() { |
12340 | 0 | ::lua_grammar::DoBlock* _msg = _internal_mutable_doblock(); |
12341 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.WhileCycle.doblock) |
12342 | 0 | return _msg; |
12343 | 0 | } |
12344 | 0 | inline void WhileCycle::set_allocated_doblock(::lua_grammar::DoBlock* doblock) { |
12345 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12346 | 0 | if (message_arena == nullptr) { |
12347 | 0 | delete _impl_.doblock_; |
12348 | 0 | } |
12349 | 0 | if (doblock) { |
12350 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12351 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(doblock); |
12352 | 0 | if (message_arena != submessage_arena) { |
12353 | 0 | doblock = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12354 | 0 | message_arena, doblock, submessage_arena); |
12355 | 0 | } |
12356 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12357 | 0 | } else { |
12358 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12359 | 0 | } |
12360 | 0 | _impl_.doblock_ = doblock; |
12361 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.WhileCycle.doblock) |
12362 | 0 | } |
12363 | | |
12364 | | // ------------------------------------------------------------------- |
12365 | | |
12366 | | // RepeatCycle |
12367 | | |
12368 | | // required .lua_grammar.Block block = 1; |
12369 | 6.27k | inline bool RepeatCycle::_internal_has_block() const { |
12370 | 6.27k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
12371 | 6.27k | PROTOBUF_ASSUME(!value || _impl_.block_ != nullptr); |
12372 | 6.27k | return value; |
12373 | 6.27k | } |
12374 | 0 | inline bool RepeatCycle::has_block() const { |
12375 | 0 | return _internal_has_block(); |
12376 | 0 | } |
12377 | 0 | inline void RepeatCycle::clear_block() { |
12378 | 0 | if (_impl_.block_ != nullptr) _impl_.block_->Clear(); |
12379 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12380 | 0 | } |
12381 | 6.27k | inline const ::lua_grammar::Block& RepeatCycle::_internal_block() const { |
12382 | 6.27k | const ::lua_grammar::Block* p = _impl_.block_; |
12383 | 6.27k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Block&>( |
12384 | 0 | ::lua_grammar::_Block_default_instance_); |
12385 | 6.27k | } |
12386 | 6.27k | inline const ::lua_grammar::Block& RepeatCycle::block() const { |
12387 | | // @@protoc_insertion_point(field_get:lua_grammar.RepeatCycle.block) |
12388 | 6.27k | return _internal_block(); |
12389 | 6.27k | } |
12390 | | inline void RepeatCycle::unsafe_arena_set_allocated_block( |
12391 | 0 | ::lua_grammar::Block* block) { |
12392 | 0 | if (GetArenaForAllocation() == nullptr) { |
12393 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.block_); |
12394 | 0 | } |
12395 | 0 | _impl_.block_ = block; |
12396 | 0 | if (block) { |
12397 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12398 | 0 | } else { |
12399 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12400 | 0 | } |
12401 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.RepeatCycle.block) |
12402 | 0 | } |
12403 | 0 | inline ::lua_grammar::Block* RepeatCycle::release_block() { |
12404 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12405 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
12406 | 0 | _impl_.block_ = nullptr; |
12407 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12408 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12409 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12410 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12411 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12412 | 0 | if (GetArenaForAllocation() != nullptr) { |
12413 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12414 | 0 | } |
12415 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12416 | 0 | return temp; |
12417 | 0 | } |
12418 | 0 | inline ::lua_grammar::Block* RepeatCycle::unsafe_arena_release_block() { |
12419 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.RepeatCycle.block) |
12420 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12421 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
12422 | 0 | _impl_.block_ = nullptr; |
12423 | 0 | return temp; |
12424 | 0 | } |
12425 | 0 | inline ::lua_grammar::Block* RepeatCycle::_internal_mutable_block() { |
12426 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12427 | 0 | if (_impl_.block_ == nullptr) { |
12428 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Block>(GetArenaForAllocation()); |
12429 | 0 | _impl_.block_ = p; |
12430 | 0 | } |
12431 | 0 | return _impl_.block_; |
12432 | 0 | } |
12433 | 0 | inline ::lua_grammar::Block* RepeatCycle::mutable_block() { |
12434 | 0 | ::lua_grammar::Block* _msg = _internal_mutable_block(); |
12435 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.RepeatCycle.block) |
12436 | 0 | return _msg; |
12437 | 0 | } |
12438 | 0 | inline void RepeatCycle::set_allocated_block(::lua_grammar::Block* block) { |
12439 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12440 | 0 | if (message_arena == nullptr) { |
12441 | 0 | delete _impl_.block_; |
12442 | 0 | } |
12443 | 0 | if (block) { |
12444 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12445 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(block); |
12446 | 0 | if (message_arena != submessage_arena) { |
12447 | 0 | block = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12448 | 0 | message_arena, block, submessage_arena); |
12449 | 0 | } |
12450 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12451 | 0 | } else { |
12452 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12453 | 0 | } |
12454 | 0 | _impl_.block_ = block; |
12455 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.RepeatCycle.block) |
12456 | 0 | } |
12457 | | |
12458 | | // required .lua_grammar.Expression condition = 2; |
12459 | 6.27k | inline bool RepeatCycle::_internal_has_condition() const { |
12460 | 6.27k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
12461 | 6.27k | PROTOBUF_ASSUME(!value || _impl_.condition_ != nullptr); |
12462 | 6.27k | return value; |
12463 | 6.27k | } |
12464 | 0 | inline bool RepeatCycle::has_condition() const { |
12465 | 0 | return _internal_has_condition(); |
12466 | 0 | } |
12467 | 0 | inline void RepeatCycle::clear_condition() { |
12468 | 0 | if (_impl_.condition_ != nullptr) _impl_.condition_->Clear(); |
12469 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12470 | 0 | } |
12471 | 6.27k | inline const ::lua_grammar::Expression& RepeatCycle::_internal_condition() const { |
12472 | 6.27k | const ::lua_grammar::Expression* p = _impl_.condition_; |
12473 | 6.27k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
12474 | 0 | ::lua_grammar::_Expression_default_instance_); |
12475 | 6.27k | } |
12476 | 6.27k | inline const ::lua_grammar::Expression& RepeatCycle::condition() const { |
12477 | | // @@protoc_insertion_point(field_get:lua_grammar.RepeatCycle.condition) |
12478 | 6.27k | return _internal_condition(); |
12479 | 6.27k | } |
12480 | | inline void RepeatCycle::unsafe_arena_set_allocated_condition( |
12481 | 0 | ::lua_grammar::Expression* condition) { |
12482 | 0 | if (GetArenaForAllocation() == nullptr) { |
12483 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.condition_); |
12484 | 0 | } |
12485 | 0 | _impl_.condition_ = condition; |
12486 | 0 | if (condition) { |
12487 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12488 | 0 | } else { |
12489 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12490 | 0 | } |
12491 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.RepeatCycle.condition) |
12492 | 0 | } |
12493 | 0 | inline ::lua_grammar::Expression* RepeatCycle::release_condition() { |
12494 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12495 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12496 | 0 | _impl_.condition_ = nullptr; |
12497 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12498 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12499 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12500 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12501 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12502 | 0 | if (GetArenaForAllocation() != nullptr) { |
12503 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12504 | 0 | } |
12505 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12506 | 0 | return temp; |
12507 | 0 | } |
12508 | 0 | inline ::lua_grammar::Expression* RepeatCycle::unsafe_arena_release_condition() { |
12509 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.RepeatCycle.condition) |
12510 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12511 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12512 | 0 | _impl_.condition_ = nullptr; |
12513 | 0 | return temp; |
12514 | 0 | } |
12515 | 0 | inline ::lua_grammar::Expression* RepeatCycle::_internal_mutable_condition() { |
12516 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12517 | 0 | if (_impl_.condition_ == nullptr) { |
12518 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
12519 | 0 | _impl_.condition_ = p; |
12520 | 0 | } |
12521 | 0 | return _impl_.condition_; |
12522 | 0 | } |
12523 | 0 | inline ::lua_grammar::Expression* RepeatCycle::mutable_condition() { |
12524 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_condition(); |
12525 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.RepeatCycle.condition) |
12526 | 0 | return _msg; |
12527 | 0 | } |
12528 | 0 | inline void RepeatCycle::set_allocated_condition(::lua_grammar::Expression* condition) { |
12529 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12530 | 0 | if (message_arena == nullptr) { |
12531 | 0 | delete _impl_.condition_; |
12532 | 0 | } |
12533 | 0 | if (condition) { |
12534 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12535 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(condition); |
12536 | 0 | if (message_arena != submessage_arena) { |
12537 | 0 | condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12538 | 0 | message_arena, condition, submessage_arena); |
12539 | 0 | } |
12540 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12541 | 0 | } else { |
12542 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12543 | 0 | } |
12544 | 0 | _impl_.condition_ = condition; |
12545 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.RepeatCycle.condition) |
12546 | 0 | } |
12547 | | |
12548 | | // ------------------------------------------------------------------- |
12549 | | |
12550 | | // IfStatement_ElseIfBlock |
12551 | | |
12552 | | // required .lua_grammar.Expression condition = 1; |
12553 | 1.48k | inline bool IfStatement_ElseIfBlock::_internal_has_condition() const { |
12554 | 1.48k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
12555 | 1.48k | PROTOBUF_ASSUME(!value || _impl_.condition_ != nullptr); |
12556 | 1.48k | return value; |
12557 | 1.48k | } |
12558 | 0 | inline bool IfStatement_ElseIfBlock::has_condition() const { |
12559 | 0 | return _internal_has_condition(); |
12560 | 0 | } |
12561 | 0 | inline void IfStatement_ElseIfBlock::clear_condition() { |
12562 | 0 | if (_impl_.condition_ != nullptr) _impl_.condition_->Clear(); |
12563 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12564 | 0 | } |
12565 | 1.48k | inline const ::lua_grammar::Expression& IfStatement_ElseIfBlock::_internal_condition() const { |
12566 | 1.48k | const ::lua_grammar::Expression* p = _impl_.condition_; |
12567 | 1.48k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
12568 | 0 | ::lua_grammar::_Expression_default_instance_); |
12569 | 1.48k | } |
12570 | 1.48k | inline const ::lua_grammar::Expression& IfStatement_ElseIfBlock::condition() const { |
12571 | | // @@protoc_insertion_point(field_get:lua_grammar.IfStatement.ElseIfBlock.condition) |
12572 | 1.48k | return _internal_condition(); |
12573 | 1.48k | } |
12574 | | inline void IfStatement_ElseIfBlock::unsafe_arena_set_allocated_condition( |
12575 | 0 | ::lua_grammar::Expression* condition) { |
12576 | 0 | if (GetArenaForAllocation() == nullptr) { |
12577 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.condition_); |
12578 | 0 | } |
12579 | 0 | _impl_.condition_ = condition; |
12580 | 0 | if (condition) { |
12581 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12582 | 0 | } else { |
12583 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12584 | 0 | } |
12585 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.IfStatement.ElseIfBlock.condition) |
12586 | 0 | } |
12587 | 0 | inline ::lua_grammar::Expression* IfStatement_ElseIfBlock::release_condition() { |
12588 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12589 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12590 | 0 | _impl_.condition_ = nullptr; |
12591 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12592 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12593 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12594 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12595 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12596 | 0 | if (GetArenaForAllocation() != nullptr) { |
12597 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12598 | 0 | } |
12599 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12600 | 0 | return temp; |
12601 | 0 | } |
12602 | 0 | inline ::lua_grammar::Expression* IfStatement_ElseIfBlock::unsafe_arena_release_condition() { |
12603 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.IfStatement.ElseIfBlock.condition) |
12604 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12605 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12606 | 0 | _impl_.condition_ = nullptr; |
12607 | 0 | return temp; |
12608 | 0 | } |
12609 | 0 | inline ::lua_grammar::Expression* IfStatement_ElseIfBlock::_internal_mutable_condition() { |
12610 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12611 | 0 | if (_impl_.condition_ == nullptr) { |
12612 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
12613 | 0 | _impl_.condition_ = p; |
12614 | 0 | } |
12615 | 0 | return _impl_.condition_; |
12616 | 0 | } |
12617 | 0 | inline ::lua_grammar::Expression* IfStatement_ElseIfBlock::mutable_condition() { |
12618 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_condition(); |
12619 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.IfStatement.ElseIfBlock.condition) |
12620 | 0 | return _msg; |
12621 | 0 | } |
12622 | 0 | inline void IfStatement_ElseIfBlock::set_allocated_condition(::lua_grammar::Expression* condition) { |
12623 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12624 | 0 | if (message_arena == nullptr) { |
12625 | 0 | delete _impl_.condition_; |
12626 | 0 | } |
12627 | 0 | if (condition) { |
12628 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12629 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(condition); |
12630 | 0 | if (message_arena != submessage_arena) { |
12631 | 0 | condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12632 | 0 | message_arena, condition, submessage_arena); |
12633 | 0 | } |
12634 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12635 | 0 | } else { |
12636 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12637 | 0 | } |
12638 | 0 | _impl_.condition_ = condition; |
12639 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.IfStatement.ElseIfBlock.condition) |
12640 | 0 | } |
12641 | | |
12642 | | // required .lua_grammar.Block block = 2; |
12643 | 1.48k | inline bool IfStatement_ElseIfBlock::_internal_has_block() const { |
12644 | 1.48k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
12645 | 1.48k | PROTOBUF_ASSUME(!value || _impl_.block_ != nullptr); |
12646 | 1.48k | return value; |
12647 | 1.48k | } |
12648 | 0 | inline bool IfStatement_ElseIfBlock::has_block() const { |
12649 | 0 | return _internal_has_block(); |
12650 | 0 | } |
12651 | 0 | inline void IfStatement_ElseIfBlock::clear_block() { |
12652 | 0 | if (_impl_.block_ != nullptr) _impl_.block_->Clear(); |
12653 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12654 | 0 | } |
12655 | 1.48k | inline const ::lua_grammar::Block& IfStatement_ElseIfBlock::_internal_block() const { |
12656 | 1.48k | const ::lua_grammar::Block* p = _impl_.block_; |
12657 | 1.48k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Block&>( |
12658 | 0 | ::lua_grammar::_Block_default_instance_); |
12659 | 1.48k | } |
12660 | 1.48k | inline const ::lua_grammar::Block& IfStatement_ElseIfBlock::block() const { |
12661 | | // @@protoc_insertion_point(field_get:lua_grammar.IfStatement.ElseIfBlock.block) |
12662 | 1.48k | return _internal_block(); |
12663 | 1.48k | } |
12664 | | inline void IfStatement_ElseIfBlock::unsafe_arena_set_allocated_block( |
12665 | 0 | ::lua_grammar::Block* block) { |
12666 | 0 | if (GetArenaForAllocation() == nullptr) { |
12667 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.block_); |
12668 | 0 | } |
12669 | 0 | _impl_.block_ = block; |
12670 | 0 | if (block) { |
12671 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12672 | 0 | } else { |
12673 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12674 | 0 | } |
12675 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.IfStatement.ElseIfBlock.block) |
12676 | 0 | } |
12677 | 0 | inline ::lua_grammar::Block* IfStatement_ElseIfBlock::release_block() { |
12678 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12679 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
12680 | 0 | _impl_.block_ = nullptr; |
12681 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12682 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12683 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12684 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12685 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12686 | 0 | if (GetArenaForAllocation() != nullptr) { |
12687 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12688 | 0 | } |
12689 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12690 | 0 | return temp; |
12691 | 0 | } |
12692 | 0 | inline ::lua_grammar::Block* IfStatement_ElseIfBlock::unsafe_arena_release_block() { |
12693 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.IfStatement.ElseIfBlock.block) |
12694 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12695 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
12696 | 0 | _impl_.block_ = nullptr; |
12697 | 0 | return temp; |
12698 | 0 | } |
12699 | 0 | inline ::lua_grammar::Block* IfStatement_ElseIfBlock::_internal_mutable_block() { |
12700 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12701 | 0 | if (_impl_.block_ == nullptr) { |
12702 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Block>(GetArenaForAllocation()); |
12703 | 0 | _impl_.block_ = p; |
12704 | 0 | } |
12705 | 0 | return _impl_.block_; |
12706 | 0 | } |
12707 | 0 | inline ::lua_grammar::Block* IfStatement_ElseIfBlock::mutable_block() { |
12708 | 0 | ::lua_grammar::Block* _msg = _internal_mutable_block(); |
12709 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.IfStatement.ElseIfBlock.block) |
12710 | 0 | return _msg; |
12711 | 0 | } |
12712 | 0 | inline void IfStatement_ElseIfBlock::set_allocated_block(::lua_grammar::Block* block) { |
12713 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12714 | 0 | if (message_arena == nullptr) { |
12715 | 0 | delete _impl_.block_; |
12716 | 0 | } |
12717 | 0 | if (block) { |
12718 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12719 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(block); |
12720 | 0 | if (message_arena != submessage_arena) { |
12721 | 0 | block = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12722 | 0 | message_arena, block, submessage_arena); |
12723 | 0 | } |
12724 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12725 | 0 | } else { |
12726 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12727 | 0 | } |
12728 | 0 | _impl_.block_ = block; |
12729 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.IfStatement.ElseIfBlock.block) |
12730 | 0 | } |
12731 | | |
12732 | | // ------------------------------------------------------------------- |
12733 | | |
12734 | | // IfStatement |
12735 | | |
12736 | | // required .lua_grammar.Expression condition = 1; |
12737 | 3.05k | inline bool IfStatement::_internal_has_condition() const { |
12738 | 3.05k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
12739 | 3.05k | PROTOBUF_ASSUME(!value || _impl_.condition_ != nullptr); |
12740 | 3.05k | return value; |
12741 | 3.05k | } |
12742 | 0 | inline bool IfStatement::has_condition() const { |
12743 | 0 | return _internal_has_condition(); |
12744 | 0 | } |
12745 | 0 | inline void IfStatement::clear_condition() { |
12746 | 0 | if (_impl_.condition_ != nullptr) _impl_.condition_->Clear(); |
12747 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12748 | 0 | } |
12749 | 3.05k | inline const ::lua_grammar::Expression& IfStatement::_internal_condition() const { |
12750 | 3.05k | const ::lua_grammar::Expression* p = _impl_.condition_; |
12751 | 3.05k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
12752 | 0 | ::lua_grammar::_Expression_default_instance_); |
12753 | 3.05k | } |
12754 | 3.05k | inline const ::lua_grammar::Expression& IfStatement::condition() const { |
12755 | | // @@protoc_insertion_point(field_get:lua_grammar.IfStatement.condition) |
12756 | 3.05k | return _internal_condition(); |
12757 | 3.05k | } |
12758 | | inline void IfStatement::unsafe_arena_set_allocated_condition( |
12759 | 0 | ::lua_grammar::Expression* condition) { |
12760 | 0 | if (GetArenaForAllocation() == nullptr) { |
12761 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.condition_); |
12762 | 0 | } |
12763 | 0 | _impl_.condition_ = condition; |
12764 | 0 | if (condition) { |
12765 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12766 | 0 | } else { |
12767 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12768 | 0 | } |
12769 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.IfStatement.condition) |
12770 | 0 | } |
12771 | 0 | inline ::lua_grammar::Expression* IfStatement::release_condition() { |
12772 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12773 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12774 | 0 | _impl_.condition_ = nullptr; |
12775 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12776 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12777 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12778 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12779 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12780 | 0 | if (GetArenaForAllocation() != nullptr) { |
12781 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12782 | 0 | } |
12783 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12784 | 0 | return temp; |
12785 | 0 | } |
12786 | 0 | inline ::lua_grammar::Expression* IfStatement::unsafe_arena_release_condition() { |
12787 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.IfStatement.condition) |
12788 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12789 | 0 | ::lua_grammar::Expression* temp = _impl_.condition_; |
12790 | 0 | _impl_.condition_ = nullptr; |
12791 | 0 | return temp; |
12792 | 0 | } |
12793 | 0 | inline ::lua_grammar::Expression* IfStatement::_internal_mutable_condition() { |
12794 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12795 | 0 | if (_impl_.condition_ == nullptr) { |
12796 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
12797 | 0 | _impl_.condition_ = p; |
12798 | 0 | } |
12799 | 0 | return _impl_.condition_; |
12800 | 0 | } |
12801 | 0 | inline ::lua_grammar::Expression* IfStatement::mutable_condition() { |
12802 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_condition(); |
12803 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.IfStatement.condition) |
12804 | 0 | return _msg; |
12805 | 0 | } |
12806 | 0 | inline void IfStatement::set_allocated_condition(::lua_grammar::Expression* condition) { |
12807 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12808 | 0 | if (message_arena == nullptr) { |
12809 | 0 | delete _impl_.condition_; |
12810 | 0 | } |
12811 | 0 | if (condition) { |
12812 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12813 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(condition); |
12814 | 0 | if (message_arena != submessage_arena) { |
12815 | 0 | condition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12816 | 0 | message_arena, condition, submessage_arena); |
12817 | 0 | } |
12818 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
12819 | 0 | } else { |
12820 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
12821 | 0 | } |
12822 | 0 | _impl_.condition_ = condition; |
12823 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.IfStatement.condition) |
12824 | 0 | } |
12825 | | |
12826 | | // required .lua_grammar.Block first = 2; |
12827 | 3.05k | inline bool IfStatement::_internal_has_first() const { |
12828 | 3.05k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
12829 | 3.05k | PROTOBUF_ASSUME(!value || _impl_.first_ != nullptr); |
12830 | 3.05k | return value; |
12831 | 3.05k | } |
12832 | 0 | inline bool IfStatement::has_first() const { |
12833 | 0 | return _internal_has_first(); |
12834 | 0 | } |
12835 | 0 | inline void IfStatement::clear_first() { |
12836 | 0 | if (_impl_.first_ != nullptr) _impl_.first_->Clear(); |
12837 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12838 | 0 | } |
12839 | 3.05k | inline const ::lua_grammar::Block& IfStatement::_internal_first() const { |
12840 | 3.05k | const ::lua_grammar::Block* p = _impl_.first_; |
12841 | 3.05k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Block&>( |
12842 | 0 | ::lua_grammar::_Block_default_instance_); |
12843 | 3.05k | } |
12844 | 3.05k | inline const ::lua_grammar::Block& IfStatement::first() const { |
12845 | | // @@protoc_insertion_point(field_get:lua_grammar.IfStatement.first) |
12846 | 3.05k | return _internal_first(); |
12847 | 3.05k | } |
12848 | | inline void IfStatement::unsafe_arena_set_allocated_first( |
12849 | 0 | ::lua_grammar::Block* first) { |
12850 | 0 | if (GetArenaForAllocation() == nullptr) { |
12851 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.first_); |
12852 | 0 | } |
12853 | 0 | _impl_.first_ = first; |
12854 | 0 | if (first) { |
12855 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12856 | 0 | } else { |
12857 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12858 | 0 | } |
12859 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.IfStatement.first) |
12860 | 0 | } |
12861 | 0 | inline ::lua_grammar::Block* IfStatement::release_first() { |
12862 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12863 | 0 | ::lua_grammar::Block* temp = _impl_.first_; |
12864 | 0 | _impl_.first_ = nullptr; |
12865 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12866 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12867 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12868 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12869 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
12870 | 0 | if (GetArenaForAllocation() != nullptr) { |
12871 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12872 | 0 | } |
12873 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
12874 | 0 | return temp; |
12875 | 0 | } |
12876 | 0 | inline ::lua_grammar::Block* IfStatement::unsafe_arena_release_first() { |
12877 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.IfStatement.first) |
12878 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12879 | 0 | ::lua_grammar::Block* temp = _impl_.first_; |
12880 | 0 | _impl_.first_ = nullptr; |
12881 | 0 | return temp; |
12882 | 0 | } |
12883 | 0 | inline ::lua_grammar::Block* IfStatement::_internal_mutable_first() { |
12884 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12885 | 0 | if (_impl_.first_ == nullptr) { |
12886 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Block>(GetArenaForAllocation()); |
12887 | 0 | _impl_.first_ = p; |
12888 | 0 | } |
12889 | 0 | return _impl_.first_; |
12890 | 0 | } |
12891 | 0 | inline ::lua_grammar::Block* IfStatement::mutable_first() { |
12892 | 0 | ::lua_grammar::Block* _msg = _internal_mutable_first(); |
12893 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.IfStatement.first) |
12894 | 0 | return _msg; |
12895 | 0 | } |
12896 | 0 | inline void IfStatement::set_allocated_first(::lua_grammar::Block* first) { |
12897 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
12898 | 0 | if (message_arena == nullptr) { |
12899 | 0 | delete _impl_.first_; |
12900 | 0 | } |
12901 | 0 | if (first) { |
12902 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
12903 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(first); |
12904 | 0 | if (message_arena != submessage_arena) { |
12905 | 0 | first = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
12906 | 0 | message_arena, first, submessage_arena); |
12907 | 0 | } |
12908 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
12909 | 0 | } else { |
12910 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
12911 | 0 | } |
12912 | 0 | _impl_.first_ = first; |
12913 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.IfStatement.first) |
12914 | 0 | } |
12915 | | |
12916 | | // repeated .lua_grammar.IfStatement.ElseIfBlock clauses = 3; |
12917 | 4.53k | inline int IfStatement::_internal_clauses_size() const { |
12918 | 4.53k | return _impl_.clauses_.size(); |
12919 | 4.53k | } |
12920 | 4.53k | inline int IfStatement::clauses_size() const { |
12921 | 4.53k | return _internal_clauses_size(); |
12922 | 4.53k | } |
12923 | 0 | inline void IfStatement::clear_clauses() { |
12924 | 0 | _impl_.clauses_.Clear(); |
12925 | 0 | } |
12926 | 0 | inline ::lua_grammar::IfStatement_ElseIfBlock* IfStatement::mutable_clauses(int index) { |
12927 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.IfStatement.clauses) |
12928 | 0 | return _impl_.clauses_.Mutable(index); |
12929 | 0 | } |
12930 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::IfStatement_ElseIfBlock >* |
12931 | 0 | IfStatement::mutable_clauses() { |
12932 | 0 | // @@protoc_insertion_point(field_mutable_list:lua_grammar.IfStatement.clauses) |
12933 | 0 | return &_impl_.clauses_; |
12934 | 0 | } |
12935 | 1.48k | inline const ::lua_grammar::IfStatement_ElseIfBlock& IfStatement::_internal_clauses(int index) const { |
12936 | 1.48k | return _impl_.clauses_.Get(index); |
12937 | 1.48k | } |
12938 | 1.48k | inline const ::lua_grammar::IfStatement_ElseIfBlock& IfStatement::clauses(int index) const { |
12939 | | // @@protoc_insertion_point(field_get:lua_grammar.IfStatement.clauses) |
12940 | 1.48k | return _internal_clauses(index); |
12941 | 1.48k | } |
12942 | 0 | inline ::lua_grammar::IfStatement_ElseIfBlock* IfStatement::_internal_add_clauses() { |
12943 | 0 | return _impl_.clauses_.Add(); |
12944 | 0 | } |
12945 | 0 | inline ::lua_grammar::IfStatement_ElseIfBlock* IfStatement::add_clauses() { |
12946 | 0 | ::lua_grammar::IfStatement_ElseIfBlock* _add = _internal_add_clauses(); |
12947 | 0 | // @@protoc_insertion_point(field_add:lua_grammar.IfStatement.clauses) |
12948 | 0 | return _add; |
12949 | 0 | } |
12950 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::IfStatement_ElseIfBlock >& |
12951 | 0 | IfStatement::clauses() const { |
12952 | 0 | // @@protoc_insertion_point(field_list:lua_grammar.IfStatement.clauses) |
12953 | 0 | return _impl_.clauses_; |
12954 | 0 | } |
12955 | | |
12956 | | // optional .lua_grammar.Block last = 4; |
12957 | 6.11k | inline bool IfStatement::_internal_has_last() const { |
12958 | 6.11k | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
12959 | 6.11k | PROTOBUF_ASSUME(!value || _impl_.last_ != nullptr); |
12960 | 6.11k | return value; |
12961 | 6.11k | } |
12962 | 3.05k | inline bool IfStatement::has_last() const { |
12963 | 3.05k | return _internal_has_last(); |
12964 | 3.05k | } |
12965 | 0 | inline void IfStatement::clear_last() { |
12966 | 0 | if (_impl_.last_ != nullptr) _impl_.last_->Clear(); |
12967 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
12968 | 0 | } |
12969 | 1.26k | inline const ::lua_grammar::Block& IfStatement::_internal_last() const { |
12970 | 1.26k | const ::lua_grammar::Block* p = _impl_.last_; |
12971 | 1.26k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Block&>( |
12972 | 0 | ::lua_grammar::_Block_default_instance_); |
12973 | 1.26k | } |
12974 | 1.26k | inline const ::lua_grammar::Block& IfStatement::last() const { |
12975 | | // @@protoc_insertion_point(field_get:lua_grammar.IfStatement.last) |
12976 | 1.26k | return _internal_last(); |
12977 | 1.26k | } |
12978 | | inline void IfStatement::unsafe_arena_set_allocated_last( |
12979 | 0 | ::lua_grammar::Block* last) { |
12980 | 0 | if (GetArenaForAllocation() == nullptr) { |
12981 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.last_); |
12982 | 0 | } |
12983 | 0 | _impl_.last_ = last; |
12984 | 0 | if (last) { |
12985 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
12986 | 0 | } else { |
12987 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
12988 | 0 | } |
12989 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.IfStatement.last) |
12990 | 0 | } |
12991 | 0 | inline ::lua_grammar::Block* IfStatement::release_last() { |
12992 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
12993 | 0 | ::lua_grammar::Block* temp = _impl_.last_; |
12994 | 0 | _impl_.last_ = nullptr; |
12995 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
12996 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
12997 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
12998 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
12999 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13000 | 0 | if (GetArenaForAllocation() != nullptr) { |
13001 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13002 | 0 | } |
13003 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13004 | 0 | return temp; |
13005 | 0 | } |
13006 | 0 | inline ::lua_grammar::Block* IfStatement::unsafe_arena_release_last() { |
13007 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.IfStatement.last) |
13008 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13009 | 0 | ::lua_grammar::Block* temp = _impl_.last_; |
13010 | 0 | _impl_.last_ = nullptr; |
13011 | 0 | return temp; |
13012 | 0 | } |
13013 | 0 | inline ::lua_grammar::Block* IfStatement::_internal_mutable_last() { |
13014 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13015 | 0 | if (_impl_.last_ == nullptr) { |
13016 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Block>(GetArenaForAllocation()); |
13017 | 0 | _impl_.last_ = p; |
13018 | 0 | } |
13019 | 0 | return _impl_.last_; |
13020 | 0 | } |
13021 | 0 | inline ::lua_grammar::Block* IfStatement::mutable_last() { |
13022 | 0 | ::lua_grammar::Block* _msg = _internal_mutable_last(); |
13023 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.IfStatement.last) |
13024 | 0 | return _msg; |
13025 | 0 | } |
13026 | 0 | inline void IfStatement::set_allocated_last(::lua_grammar::Block* last) { |
13027 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13028 | 0 | if (message_arena == nullptr) { |
13029 | 0 | delete _impl_.last_; |
13030 | 0 | } |
13031 | 0 | if (last) { |
13032 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13033 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(last); |
13034 | 0 | if (message_arena != submessage_arena) { |
13035 | 0 | last = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13036 | 0 | message_arena, last, submessage_arena); |
13037 | 0 | } |
13038 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13039 | 0 | } else { |
13040 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13041 | 0 | } |
13042 | 0 | _impl_.last_ = last; |
13043 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.IfStatement.last) |
13044 | 0 | } |
13045 | | |
13046 | | // ------------------------------------------------------------------- |
13047 | | |
13048 | | // ForCycleName |
13049 | | |
13050 | | // required .lua_grammar.Name name = 1; |
13051 | 1.31k | inline bool ForCycleName::_internal_has_name() const { |
13052 | 1.31k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
13053 | 1.31k | PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); |
13054 | 1.31k | return value; |
13055 | 1.31k | } |
13056 | 0 | inline bool ForCycleName::has_name() const { |
13057 | 0 | return _internal_has_name(); |
13058 | 0 | } |
13059 | 0 | inline void ForCycleName::clear_name() { |
13060 | 0 | if (_impl_.name_ != nullptr) _impl_.name_->Clear(); |
13061 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13062 | 0 | } |
13063 | 1.31k | inline const ::lua_grammar::Name& ForCycleName::_internal_name() const { |
13064 | 1.31k | const ::lua_grammar::Name* p = _impl_.name_; |
13065 | 1.31k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Name&>( |
13066 | 0 | ::lua_grammar::_Name_default_instance_); |
13067 | 1.31k | } |
13068 | 1.31k | inline const ::lua_grammar::Name& ForCycleName::name() const { |
13069 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleName.name) |
13070 | 1.31k | return _internal_name(); |
13071 | 1.31k | } |
13072 | | inline void ForCycleName::unsafe_arena_set_allocated_name( |
13073 | 0 | ::lua_grammar::Name* name) { |
13074 | 0 | if (GetArenaForAllocation() == nullptr) { |
13075 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); |
13076 | 0 | } |
13077 | 0 | _impl_.name_ = name; |
13078 | 0 | if (name) { |
13079 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13080 | 0 | } else { |
13081 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13082 | 0 | } |
13083 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleName.name) |
13084 | 0 | } |
13085 | 0 | inline ::lua_grammar::Name* ForCycleName::release_name() { |
13086 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13087 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
13088 | 0 | _impl_.name_ = nullptr; |
13089 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13090 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13091 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13092 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13093 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13094 | 0 | if (GetArenaForAllocation() != nullptr) { |
13095 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13096 | 0 | } |
13097 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13098 | 0 | return temp; |
13099 | 0 | } |
13100 | 0 | inline ::lua_grammar::Name* ForCycleName::unsafe_arena_release_name() { |
13101 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleName.name) |
13102 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13103 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
13104 | 0 | _impl_.name_ = nullptr; |
13105 | 0 | return temp; |
13106 | 0 | } |
13107 | 0 | inline ::lua_grammar::Name* ForCycleName::_internal_mutable_name() { |
13108 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13109 | 0 | if (_impl_.name_ == nullptr) { |
13110 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Name>(GetArenaForAllocation()); |
13111 | 0 | _impl_.name_ = p; |
13112 | 0 | } |
13113 | 0 | return _impl_.name_; |
13114 | 0 | } |
13115 | 0 | inline ::lua_grammar::Name* ForCycleName::mutable_name() { |
13116 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_name(); |
13117 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleName.name) |
13118 | 0 | return _msg; |
13119 | 0 | } |
13120 | 0 | inline void ForCycleName::set_allocated_name(::lua_grammar::Name* name) { |
13121 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13122 | 0 | if (message_arena == nullptr) { |
13123 | 0 | delete _impl_.name_; |
13124 | 0 | } |
13125 | 0 | if (name) { |
13126 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13127 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); |
13128 | 0 | if (message_arena != submessage_arena) { |
13129 | 0 | name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13130 | 0 | message_arena, name, submessage_arena); |
13131 | 0 | } |
13132 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13133 | 0 | } else { |
13134 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13135 | 0 | } |
13136 | 0 | _impl_.name_ = name; |
13137 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleName.name) |
13138 | 0 | } |
13139 | | |
13140 | | // required .lua_grammar.Expression startexp = 2; |
13141 | 1.31k | inline bool ForCycleName::_internal_has_startexp() const { |
13142 | 1.31k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
13143 | 1.31k | PROTOBUF_ASSUME(!value || _impl_.startexp_ != nullptr); |
13144 | 1.31k | return value; |
13145 | 1.31k | } |
13146 | 0 | inline bool ForCycleName::has_startexp() const { |
13147 | 0 | return _internal_has_startexp(); |
13148 | 0 | } |
13149 | 0 | inline void ForCycleName::clear_startexp() { |
13150 | 0 | if (_impl_.startexp_ != nullptr) _impl_.startexp_->Clear(); |
13151 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13152 | 0 | } |
13153 | 1.31k | inline const ::lua_grammar::Expression& ForCycleName::_internal_startexp() const { |
13154 | 1.31k | const ::lua_grammar::Expression* p = _impl_.startexp_; |
13155 | 1.31k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
13156 | 0 | ::lua_grammar::_Expression_default_instance_); |
13157 | 1.31k | } |
13158 | 1.31k | inline const ::lua_grammar::Expression& ForCycleName::startexp() const { |
13159 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleName.startexp) |
13160 | 1.31k | return _internal_startexp(); |
13161 | 1.31k | } |
13162 | | inline void ForCycleName::unsafe_arena_set_allocated_startexp( |
13163 | 0 | ::lua_grammar::Expression* startexp) { |
13164 | 0 | if (GetArenaForAllocation() == nullptr) { |
13165 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.startexp_); |
13166 | 0 | } |
13167 | 0 | _impl_.startexp_ = startexp; |
13168 | 0 | if (startexp) { |
13169 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13170 | 0 | } else { |
13171 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13172 | 0 | } |
13173 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleName.startexp) |
13174 | 0 | } |
13175 | 0 | inline ::lua_grammar::Expression* ForCycleName::release_startexp() { |
13176 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13177 | 0 | ::lua_grammar::Expression* temp = _impl_.startexp_; |
13178 | 0 | _impl_.startexp_ = nullptr; |
13179 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13180 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13181 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13182 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13183 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13184 | 0 | if (GetArenaForAllocation() != nullptr) { |
13185 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13186 | 0 | } |
13187 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13188 | 0 | return temp; |
13189 | 0 | } |
13190 | 0 | inline ::lua_grammar::Expression* ForCycleName::unsafe_arena_release_startexp() { |
13191 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleName.startexp) |
13192 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13193 | 0 | ::lua_grammar::Expression* temp = _impl_.startexp_; |
13194 | 0 | _impl_.startexp_ = nullptr; |
13195 | 0 | return temp; |
13196 | 0 | } |
13197 | 0 | inline ::lua_grammar::Expression* ForCycleName::_internal_mutable_startexp() { |
13198 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13199 | 0 | if (_impl_.startexp_ == nullptr) { |
13200 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
13201 | 0 | _impl_.startexp_ = p; |
13202 | 0 | } |
13203 | 0 | return _impl_.startexp_; |
13204 | 0 | } |
13205 | 0 | inline ::lua_grammar::Expression* ForCycleName::mutable_startexp() { |
13206 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_startexp(); |
13207 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleName.startexp) |
13208 | 0 | return _msg; |
13209 | 0 | } |
13210 | 0 | inline void ForCycleName::set_allocated_startexp(::lua_grammar::Expression* startexp) { |
13211 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13212 | 0 | if (message_arena == nullptr) { |
13213 | 0 | delete _impl_.startexp_; |
13214 | 0 | } |
13215 | 0 | if (startexp) { |
13216 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13217 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(startexp); |
13218 | 0 | if (message_arena != submessage_arena) { |
13219 | 0 | startexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13220 | 0 | message_arena, startexp, submessage_arena); |
13221 | 0 | } |
13222 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13223 | 0 | } else { |
13224 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13225 | 0 | } |
13226 | 0 | _impl_.startexp_ = startexp; |
13227 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleName.startexp) |
13228 | 0 | } |
13229 | | |
13230 | | // required .lua_grammar.Expression stopexp = 3; |
13231 | 1.31k | inline bool ForCycleName::_internal_has_stopexp() const { |
13232 | 1.31k | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
13233 | 1.31k | PROTOBUF_ASSUME(!value || _impl_.stopexp_ != nullptr); |
13234 | 1.31k | return value; |
13235 | 1.31k | } |
13236 | 0 | inline bool ForCycleName::has_stopexp() const { |
13237 | 0 | return _internal_has_stopexp(); |
13238 | 0 | } |
13239 | 0 | inline void ForCycleName::clear_stopexp() { |
13240 | 0 | if (_impl_.stopexp_ != nullptr) _impl_.stopexp_->Clear(); |
13241 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13242 | 0 | } |
13243 | 1.31k | inline const ::lua_grammar::Expression& ForCycleName::_internal_stopexp() const { |
13244 | 1.31k | const ::lua_grammar::Expression* p = _impl_.stopexp_; |
13245 | 1.31k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
13246 | 0 | ::lua_grammar::_Expression_default_instance_); |
13247 | 1.31k | } |
13248 | 1.31k | inline const ::lua_grammar::Expression& ForCycleName::stopexp() const { |
13249 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleName.stopexp) |
13250 | 1.31k | return _internal_stopexp(); |
13251 | 1.31k | } |
13252 | | inline void ForCycleName::unsafe_arena_set_allocated_stopexp( |
13253 | 0 | ::lua_grammar::Expression* stopexp) { |
13254 | 0 | if (GetArenaForAllocation() == nullptr) { |
13255 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stopexp_); |
13256 | 0 | } |
13257 | 0 | _impl_.stopexp_ = stopexp; |
13258 | 0 | if (stopexp) { |
13259 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13260 | 0 | } else { |
13261 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13262 | 0 | } |
13263 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleName.stopexp) |
13264 | 0 | } |
13265 | 0 | inline ::lua_grammar::Expression* ForCycleName::release_stopexp() { |
13266 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13267 | 0 | ::lua_grammar::Expression* temp = _impl_.stopexp_; |
13268 | 0 | _impl_.stopexp_ = nullptr; |
13269 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13270 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13271 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13272 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13273 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13274 | 0 | if (GetArenaForAllocation() != nullptr) { |
13275 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13276 | 0 | } |
13277 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13278 | 0 | return temp; |
13279 | 0 | } |
13280 | 0 | inline ::lua_grammar::Expression* ForCycleName::unsafe_arena_release_stopexp() { |
13281 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleName.stopexp) |
13282 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13283 | 0 | ::lua_grammar::Expression* temp = _impl_.stopexp_; |
13284 | 0 | _impl_.stopexp_ = nullptr; |
13285 | 0 | return temp; |
13286 | 0 | } |
13287 | 0 | inline ::lua_grammar::Expression* ForCycleName::_internal_mutable_stopexp() { |
13288 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13289 | 0 | if (_impl_.stopexp_ == nullptr) { |
13290 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
13291 | 0 | _impl_.stopexp_ = p; |
13292 | 0 | } |
13293 | 0 | return _impl_.stopexp_; |
13294 | 0 | } |
13295 | 0 | inline ::lua_grammar::Expression* ForCycleName::mutable_stopexp() { |
13296 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_stopexp(); |
13297 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleName.stopexp) |
13298 | 0 | return _msg; |
13299 | 0 | } |
13300 | 0 | inline void ForCycleName::set_allocated_stopexp(::lua_grammar::Expression* stopexp) { |
13301 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13302 | 0 | if (message_arena == nullptr) { |
13303 | 0 | delete _impl_.stopexp_; |
13304 | 0 | } |
13305 | 0 | if (stopexp) { |
13306 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13307 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stopexp); |
13308 | 0 | if (message_arena != submessage_arena) { |
13309 | 0 | stopexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13310 | 0 | message_arena, stopexp, submessage_arena); |
13311 | 0 | } |
13312 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13313 | 0 | } else { |
13314 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13315 | 0 | } |
13316 | 0 | _impl_.stopexp_ = stopexp; |
13317 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleName.stopexp) |
13318 | 0 | } |
13319 | | |
13320 | | // optional .lua_grammar.Expression stepexp = 4; |
13321 | 2.62k | inline bool ForCycleName::_internal_has_stepexp() const { |
13322 | 2.62k | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
13323 | 2.62k | PROTOBUF_ASSUME(!value || _impl_.stepexp_ != nullptr); |
13324 | 2.62k | return value; |
13325 | 2.62k | } |
13326 | 1.31k | inline bool ForCycleName::has_stepexp() const { |
13327 | 1.31k | return _internal_has_stepexp(); |
13328 | 1.31k | } |
13329 | 0 | inline void ForCycleName::clear_stepexp() { |
13330 | 0 | if (_impl_.stepexp_ != nullptr) _impl_.stepexp_->Clear(); |
13331 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
13332 | 0 | } |
13333 | 680 | inline const ::lua_grammar::Expression& ForCycleName::_internal_stepexp() const { |
13334 | 680 | const ::lua_grammar::Expression* p = _impl_.stepexp_; |
13335 | 680 | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
13336 | 0 | ::lua_grammar::_Expression_default_instance_); |
13337 | 680 | } |
13338 | 680 | inline const ::lua_grammar::Expression& ForCycleName::stepexp() const { |
13339 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleName.stepexp) |
13340 | 680 | return _internal_stepexp(); |
13341 | 680 | } |
13342 | | inline void ForCycleName::unsafe_arena_set_allocated_stepexp( |
13343 | 0 | ::lua_grammar::Expression* stepexp) { |
13344 | 0 | if (GetArenaForAllocation() == nullptr) { |
13345 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.stepexp_); |
13346 | 0 | } |
13347 | 0 | _impl_.stepexp_ = stepexp; |
13348 | 0 | if (stepexp) { |
13349 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
13350 | 0 | } else { |
13351 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
13352 | 0 | } |
13353 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleName.stepexp) |
13354 | 0 | } |
13355 | 0 | inline ::lua_grammar::Expression* ForCycleName::release_stepexp() { |
13356 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
13357 | 0 | ::lua_grammar::Expression* temp = _impl_.stepexp_; |
13358 | 0 | _impl_.stepexp_ = nullptr; |
13359 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13360 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13361 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13362 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13363 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13364 | 0 | if (GetArenaForAllocation() != nullptr) { |
13365 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13366 | 0 | } |
13367 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13368 | 0 | return temp; |
13369 | 0 | } |
13370 | 0 | inline ::lua_grammar::Expression* ForCycleName::unsafe_arena_release_stepexp() { |
13371 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleName.stepexp) |
13372 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
13373 | 0 | ::lua_grammar::Expression* temp = _impl_.stepexp_; |
13374 | 0 | _impl_.stepexp_ = nullptr; |
13375 | 0 | return temp; |
13376 | 0 | } |
13377 | 0 | inline ::lua_grammar::Expression* ForCycleName::_internal_mutable_stepexp() { |
13378 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
13379 | 0 | if (_impl_.stepexp_ == nullptr) { |
13380 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
13381 | 0 | _impl_.stepexp_ = p; |
13382 | 0 | } |
13383 | 0 | return _impl_.stepexp_; |
13384 | 0 | } |
13385 | 0 | inline ::lua_grammar::Expression* ForCycleName::mutable_stepexp() { |
13386 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_stepexp(); |
13387 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleName.stepexp) |
13388 | 0 | return _msg; |
13389 | 0 | } |
13390 | 0 | inline void ForCycleName::set_allocated_stepexp(::lua_grammar::Expression* stepexp) { |
13391 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13392 | 0 | if (message_arena == nullptr) { |
13393 | 0 | delete _impl_.stepexp_; |
13394 | 0 | } |
13395 | 0 | if (stepexp) { |
13396 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13397 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(stepexp); |
13398 | 0 | if (message_arena != submessage_arena) { |
13399 | 0 | stepexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13400 | 0 | message_arena, stepexp, submessage_arena); |
13401 | 0 | } |
13402 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
13403 | 0 | } else { |
13404 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
13405 | 0 | } |
13406 | 0 | _impl_.stepexp_ = stepexp; |
13407 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleName.stepexp) |
13408 | 0 | } |
13409 | | |
13410 | | // required .lua_grammar.DoBlock doblock = 5; |
13411 | 1.31k | inline bool ForCycleName::_internal_has_doblock() const { |
13412 | 1.31k | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
13413 | 1.31k | PROTOBUF_ASSUME(!value || _impl_.doblock_ != nullptr); |
13414 | 1.31k | return value; |
13415 | 1.31k | } |
13416 | 0 | inline bool ForCycleName::has_doblock() const { |
13417 | 0 | return _internal_has_doblock(); |
13418 | 0 | } |
13419 | 0 | inline void ForCycleName::clear_doblock() { |
13420 | 0 | if (_impl_.doblock_ != nullptr) _impl_.doblock_->Clear(); |
13421 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
13422 | 0 | } |
13423 | 1.31k | inline const ::lua_grammar::DoBlock& ForCycleName::_internal_doblock() const { |
13424 | 1.31k | const ::lua_grammar::DoBlock* p = _impl_.doblock_; |
13425 | 1.31k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::DoBlock&>( |
13426 | 0 | ::lua_grammar::_DoBlock_default_instance_); |
13427 | 1.31k | } |
13428 | 1.31k | inline const ::lua_grammar::DoBlock& ForCycleName::doblock() const { |
13429 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleName.doblock) |
13430 | 1.31k | return _internal_doblock(); |
13431 | 1.31k | } |
13432 | | inline void ForCycleName::unsafe_arena_set_allocated_doblock( |
13433 | 0 | ::lua_grammar::DoBlock* doblock) { |
13434 | 0 | if (GetArenaForAllocation() == nullptr) { |
13435 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.doblock_); |
13436 | 0 | } |
13437 | 0 | _impl_.doblock_ = doblock; |
13438 | 0 | if (doblock) { |
13439 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
13440 | 0 | } else { |
13441 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
13442 | 0 | } |
13443 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleName.doblock) |
13444 | 0 | } |
13445 | 0 | inline ::lua_grammar::DoBlock* ForCycleName::release_doblock() { |
13446 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
13447 | 0 | ::lua_grammar::DoBlock* temp = _impl_.doblock_; |
13448 | 0 | _impl_.doblock_ = nullptr; |
13449 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13450 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13451 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13452 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13453 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13454 | 0 | if (GetArenaForAllocation() != nullptr) { |
13455 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13456 | 0 | } |
13457 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13458 | 0 | return temp; |
13459 | 0 | } |
13460 | 0 | inline ::lua_grammar::DoBlock* ForCycleName::unsafe_arena_release_doblock() { |
13461 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleName.doblock) |
13462 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
13463 | 0 | ::lua_grammar::DoBlock* temp = _impl_.doblock_; |
13464 | 0 | _impl_.doblock_ = nullptr; |
13465 | 0 | return temp; |
13466 | 0 | } |
13467 | 0 | inline ::lua_grammar::DoBlock* ForCycleName::_internal_mutable_doblock() { |
13468 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
13469 | 0 | if (_impl_.doblock_ == nullptr) { |
13470 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::DoBlock>(GetArenaForAllocation()); |
13471 | 0 | _impl_.doblock_ = p; |
13472 | 0 | } |
13473 | 0 | return _impl_.doblock_; |
13474 | 0 | } |
13475 | 0 | inline ::lua_grammar::DoBlock* ForCycleName::mutable_doblock() { |
13476 | 0 | ::lua_grammar::DoBlock* _msg = _internal_mutable_doblock(); |
13477 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleName.doblock) |
13478 | 0 | return _msg; |
13479 | 0 | } |
13480 | 0 | inline void ForCycleName::set_allocated_doblock(::lua_grammar::DoBlock* doblock) { |
13481 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13482 | 0 | if (message_arena == nullptr) { |
13483 | 0 | delete _impl_.doblock_; |
13484 | 0 | } |
13485 | 0 | if (doblock) { |
13486 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13487 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(doblock); |
13488 | 0 | if (message_arena != submessage_arena) { |
13489 | 0 | doblock = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13490 | 0 | message_arena, doblock, submessage_arena); |
13491 | 0 | } |
13492 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
13493 | 0 | } else { |
13494 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
13495 | 0 | } |
13496 | 0 | _impl_.doblock_ = doblock; |
13497 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleName.doblock) |
13498 | 0 | } |
13499 | | |
13500 | | // ------------------------------------------------------------------- |
13501 | | |
13502 | | // ForCycleList |
13503 | | |
13504 | | // required .lua_grammar.NameList names = 1; |
13505 | 24.9k | inline bool ForCycleList::_internal_has_names() const { |
13506 | 24.9k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
13507 | 24.9k | PROTOBUF_ASSUME(!value || _impl_.names_ != nullptr); |
13508 | 24.9k | return value; |
13509 | 24.9k | } |
13510 | 0 | inline bool ForCycleList::has_names() const { |
13511 | 0 | return _internal_has_names(); |
13512 | 0 | } |
13513 | 0 | inline void ForCycleList::clear_names() { |
13514 | 0 | if (_impl_.names_ != nullptr) _impl_.names_->Clear(); |
13515 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13516 | 0 | } |
13517 | 24.9k | inline const ::lua_grammar::NameList& ForCycleList::_internal_names() const { |
13518 | 24.9k | const ::lua_grammar::NameList* p = _impl_.names_; |
13519 | 24.9k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::NameList&>( |
13520 | 0 | ::lua_grammar::_NameList_default_instance_); |
13521 | 24.9k | } |
13522 | 24.9k | inline const ::lua_grammar::NameList& ForCycleList::names() const { |
13523 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleList.names) |
13524 | 24.9k | return _internal_names(); |
13525 | 24.9k | } |
13526 | | inline void ForCycleList::unsafe_arena_set_allocated_names( |
13527 | 0 | ::lua_grammar::NameList* names) { |
13528 | 0 | if (GetArenaForAllocation() == nullptr) { |
13529 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.names_); |
13530 | 0 | } |
13531 | 0 | _impl_.names_ = names; |
13532 | 0 | if (names) { |
13533 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13534 | 0 | } else { |
13535 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13536 | 0 | } |
13537 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleList.names) |
13538 | 0 | } |
13539 | 0 | inline ::lua_grammar::NameList* ForCycleList::release_names() { |
13540 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13541 | 0 | ::lua_grammar::NameList* temp = _impl_.names_; |
13542 | 0 | _impl_.names_ = nullptr; |
13543 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13544 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13545 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13546 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13547 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13548 | 0 | if (GetArenaForAllocation() != nullptr) { |
13549 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13550 | 0 | } |
13551 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13552 | 0 | return temp; |
13553 | 0 | } |
13554 | 0 | inline ::lua_grammar::NameList* ForCycleList::unsafe_arena_release_names() { |
13555 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleList.names) |
13556 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13557 | 0 | ::lua_grammar::NameList* temp = _impl_.names_; |
13558 | 0 | _impl_.names_ = nullptr; |
13559 | 0 | return temp; |
13560 | 0 | } |
13561 | 0 | inline ::lua_grammar::NameList* ForCycleList::_internal_mutable_names() { |
13562 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13563 | 0 | if (_impl_.names_ == nullptr) { |
13564 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::NameList>(GetArenaForAllocation()); |
13565 | 0 | _impl_.names_ = p; |
13566 | 0 | } |
13567 | 0 | return _impl_.names_; |
13568 | 0 | } |
13569 | 0 | inline ::lua_grammar::NameList* ForCycleList::mutable_names() { |
13570 | 0 | ::lua_grammar::NameList* _msg = _internal_mutable_names(); |
13571 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleList.names) |
13572 | 0 | return _msg; |
13573 | 0 | } |
13574 | 0 | inline void ForCycleList::set_allocated_names(::lua_grammar::NameList* names) { |
13575 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13576 | 0 | if (message_arena == nullptr) { |
13577 | 0 | delete _impl_.names_; |
13578 | 0 | } |
13579 | 0 | if (names) { |
13580 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13581 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(names); |
13582 | 0 | if (message_arena != submessage_arena) { |
13583 | 0 | names = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13584 | 0 | message_arena, names, submessage_arena); |
13585 | 0 | } |
13586 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13587 | 0 | } else { |
13588 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13589 | 0 | } |
13590 | 0 | _impl_.names_ = names; |
13591 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleList.names) |
13592 | 0 | } |
13593 | | |
13594 | | // required .lua_grammar.ExpressionList expressions = 2; |
13595 | 24.9k | inline bool ForCycleList::_internal_has_expressions() const { |
13596 | 24.9k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
13597 | 24.9k | PROTOBUF_ASSUME(!value || _impl_.expressions_ != nullptr); |
13598 | 24.9k | return value; |
13599 | 24.9k | } |
13600 | 0 | inline bool ForCycleList::has_expressions() const { |
13601 | 0 | return _internal_has_expressions(); |
13602 | 0 | } |
13603 | 0 | inline void ForCycleList::clear_expressions() { |
13604 | 0 | if (_impl_.expressions_ != nullptr) _impl_.expressions_->Clear(); |
13605 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13606 | 0 | } |
13607 | 24.9k | inline const ::lua_grammar::ExpressionList& ForCycleList::_internal_expressions() const { |
13608 | 24.9k | const ::lua_grammar::ExpressionList* p = _impl_.expressions_; |
13609 | 24.9k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::ExpressionList&>( |
13610 | 0 | ::lua_grammar::_ExpressionList_default_instance_); |
13611 | 24.9k | } |
13612 | 24.9k | inline const ::lua_grammar::ExpressionList& ForCycleList::expressions() const { |
13613 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleList.expressions) |
13614 | 24.9k | return _internal_expressions(); |
13615 | 24.9k | } |
13616 | | inline void ForCycleList::unsafe_arena_set_allocated_expressions( |
13617 | 0 | ::lua_grammar::ExpressionList* expressions) { |
13618 | 0 | if (GetArenaForAllocation() == nullptr) { |
13619 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expressions_); |
13620 | 0 | } |
13621 | 0 | _impl_.expressions_ = expressions; |
13622 | 0 | if (expressions) { |
13623 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13624 | 0 | } else { |
13625 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13626 | 0 | } |
13627 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleList.expressions) |
13628 | 0 | } |
13629 | 0 | inline ::lua_grammar::ExpressionList* ForCycleList::release_expressions() { |
13630 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13631 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.expressions_; |
13632 | 0 | _impl_.expressions_ = nullptr; |
13633 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13634 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13635 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13636 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13637 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13638 | 0 | if (GetArenaForAllocation() != nullptr) { |
13639 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13640 | 0 | } |
13641 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13642 | 0 | return temp; |
13643 | 0 | } |
13644 | 0 | inline ::lua_grammar::ExpressionList* ForCycleList::unsafe_arena_release_expressions() { |
13645 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleList.expressions) |
13646 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13647 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.expressions_; |
13648 | 0 | _impl_.expressions_ = nullptr; |
13649 | 0 | return temp; |
13650 | 0 | } |
13651 | 0 | inline ::lua_grammar::ExpressionList* ForCycleList::_internal_mutable_expressions() { |
13652 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13653 | 0 | if (_impl_.expressions_ == nullptr) { |
13654 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::ExpressionList>(GetArenaForAllocation()); |
13655 | 0 | _impl_.expressions_ = p; |
13656 | 0 | } |
13657 | 0 | return _impl_.expressions_; |
13658 | 0 | } |
13659 | 0 | inline ::lua_grammar::ExpressionList* ForCycleList::mutable_expressions() { |
13660 | 0 | ::lua_grammar::ExpressionList* _msg = _internal_mutable_expressions(); |
13661 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleList.expressions) |
13662 | 0 | return _msg; |
13663 | 0 | } |
13664 | 0 | inline void ForCycleList::set_allocated_expressions(::lua_grammar::ExpressionList* expressions) { |
13665 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13666 | 0 | if (message_arena == nullptr) { |
13667 | 0 | delete _impl_.expressions_; |
13668 | 0 | } |
13669 | 0 | if (expressions) { |
13670 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13671 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(expressions); |
13672 | 0 | if (message_arena != submessage_arena) { |
13673 | 0 | expressions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13674 | 0 | message_arena, expressions, submessage_arena); |
13675 | 0 | } |
13676 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13677 | 0 | } else { |
13678 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13679 | 0 | } |
13680 | 0 | _impl_.expressions_ = expressions; |
13681 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleList.expressions) |
13682 | 0 | } |
13683 | | |
13684 | | // required .lua_grammar.DoBlock doblock = 3; |
13685 | 24.9k | inline bool ForCycleList::_internal_has_doblock() const { |
13686 | 24.9k | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
13687 | 24.9k | PROTOBUF_ASSUME(!value || _impl_.doblock_ != nullptr); |
13688 | 24.9k | return value; |
13689 | 24.9k | } |
13690 | 0 | inline bool ForCycleList::has_doblock() const { |
13691 | 0 | return _internal_has_doblock(); |
13692 | 0 | } |
13693 | 0 | inline void ForCycleList::clear_doblock() { |
13694 | 0 | if (_impl_.doblock_ != nullptr) _impl_.doblock_->Clear(); |
13695 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13696 | 0 | } |
13697 | 24.9k | inline const ::lua_grammar::DoBlock& ForCycleList::_internal_doblock() const { |
13698 | 24.9k | const ::lua_grammar::DoBlock* p = _impl_.doblock_; |
13699 | 24.9k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::DoBlock&>( |
13700 | 0 | ::lua_grammar::_DoBlock_default_instance_); |
13701 | 24.9k | } |
13702 | 24.9k | inline const ::lua_grammar::DoBlock& ForCycleList::doblock() const { |
13703 | | // @@protoc_insertion_point(field_get:lua_grammar.ForCycleList.doblock) |
13704 | 24.9k | return _internal_doblock(); |
13705 | 24.9k | } |
13706 | | inline void ForCycleList::unsafe_arena_set_allocated_doblock( |
13707 | 0 | ::lua_grammar::DoBlock* doblock) { |
13708 | 0 | if (GetArenaForAllocation() == nullptr) { |
13709 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.doblock_); |
13710 | 0 | } |
13711 | 0 | _impl_.doblock_ = doblock; |
13712 | 0 | if (doblock) { |
13713 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13714 | 0 | } else { |
13715 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13716 | 0 | } |
13717 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ForCycleList.doblock) |
13718 | 0 | } |
13719 | 0 | inline ::lua_grammar::DoBlock* ForCycleList::release_doblock() { |
13720 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13721 | 0 | ::lua_grammar::DoBlock* temp = _impl_.doblock_; |
13722 | 0 | _impl_.doblock_ = nullptr; |
13723 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13724 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13725 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13726 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13727 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13728 | 0 | if (GetArenaForAllocation() != nullptr) { |
13729 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13730 | 0 | } |
13731 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13732 | 0 | return temp; |
13733 | 0 | } |
13734 | 0 | inline ::lua_grammar::DoBlock* ForCycleList::unsafe_arena_release_doblock() { |
13735 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ForCycleList.doblock) |
13736 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13737 | 0 | ::lua_grammar::DoBlock* temp = _impl_.doblock_; |
13738 | 0 | _impl_.doblock_ = nullptr; |
13739 | 0 | return temp; |
13740 | 0 | } |
13741 | 0 | inline ::lua_grammar::DoBlock* ForCycleList::_internal_mutable_doblock() { |
13742 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13743 | 0 | if (_impl_.doblock_ == nullptr) { |
13744 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::DoBlock>(GetArenaForAllocation()); |
13745 | 0 | _impl_.doblock_ = p; |
13746 | 0 | } |
13747 | 0 | return _impl_.doblock_; |
13748 | 0 | } |
13749 | 0 | inline ::lua_grammar::DoBlock* ForCycleList::mutable_doblock() { |
13750 | 0 | ::lua_grammar::DoBlock* _msg = _internal_mutable_doblock(); |
13751 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ForCycleList.doblock) |
13752 | 0 | return _msg; |
13753 | 0 | } |
13754 | 0 | inline void ForCycleList::set_allocated_doblock(::lua_grammar::DoBlock* doblock) { |
13755 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13756 | 0 | if (message_arena == nullptr) { |
13757 | 0 | delete _impl_.doblock_; |
13758 | 0 | } |
13759 | 0 | if (doblock) { |
13760 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13761 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(doblock); |
13762 | 0 | if (message_arena != submessage_arena) { |
13763 | 0 | doblock = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13764 | 0 | message_arena, doblock, submessage_arena); |
13765 | 0 | } |
13766 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
13767 | 0 | } else { |
13768 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
13769 | 0 | } |
13770 | 0 | _impl_.doblock_ = doblock; |
13771 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ForCycleList.doblock) |
13772 | 0 | } |
13773 | | |
13774 | | // ------------------------------------------------------------------- |
13775 | | |
13776 | | // Function_FuncName |
13777 | | |
13778 | | // required .lua_grammar.Name firstname = 1; |
13779 | 2.21k | inline bool Function_FuncName::_internal_has_firstname() const { |
13780 | 2.21k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
13781 | 2.21k | PROTOBUF_ASSUME(!value || _impl_.firstname_ != nullptr); |
13782 | 2.21k | return value; |
13783 | 2.21k | } |
13784 | 0 | inline bool Function_FuncName::has_firstname() const { |
13785 | 0 | return _internal_has_firstname(); |
13786 | 0 | } |
13787 | 0 | inline void Function_FuncName::clear_firstname() { |
13788 | 0 | if (_impl_.firstname_ != nullptr) _impl_.firstname_->Clear(); |
13789 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13790 | 0 | } |
13791 | 2.21k | inline const ::lua_grammar::Name& Function_FuncName::_internal_firstname() const { |
13792 | 2.21k | const ::lua_grammar::Name* p = _impl_.firstname_; |
13793 | 2.21k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Name&>( |
13794 | 0 | ::lua_grammar::_Name_default_instance_); |
13795 | 2.21k | } |
13796 | 2.21k | inline const ::lua_grammar::Name& Function_FuncName::firstname() const { |
13797 | | // @@protoc_insertion_point(field_get:lua_grammar.Function.FuncName.firstname) |
13798 | 2.21k | return _internal_firstname(); |
13799 | 2.21k | } |
13800 | | inline void Function_FuncName::unsafe_arena_set_allocated_firstname( |
13801 | 0 | ::lua_grammar::Name* firstname) { |
13802 | 0 | if (GetArenaForAllocation() == nullptr) { |
13803 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.firstname_); |
13804 | 0 | } |
13805 | 0 | _impl_.firstname_ = firstname; |
13806 | 0 | if (firstname) { |
13807 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13808 | 0 | } else { |
13809 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13810 | 0 | } |
13811 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Function.FuncName.firstname) |
13812 | 0 | } |
13813 | 0 | inline ::lua_grammar::Name* Function_FuncName::release_firstname() { |
13814 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13815 | 0 | ::lua_grammar::Name* temp = _impl_.firstname_; |
13816 | 0 | _impl_.firstname_ = nullptr; |
13817 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13818 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13819 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13820 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13821 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13822 | 0 | if (GetArenaForAllocation() != nullptr) { |
13823 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13824 | 0 | } |
13825 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13826 | 0 | return temp; |
13827 | 0 | } |
13828 | 0 | inline ::lua_grammar::Name* Function_FuncName::unsafe_arena_release_firstname() { |
13829 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Function.FuncName.firstname) |
13830 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13831 | 0 | ::lua_grammar::Name* temp = _impl_.firstname_; |
13832 | 0 | _impl_.firstname_ = nullptr; |
13833 | 0 | return temp; |
13834 | 0 | } |
13835 | 0 | inline ::lua_grammar::Name* Function_FuncName::_internal_mutable_firstname() { |
13836 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13837 | 0 | if (_impl_.firstname_ == nullptr) { |
13838 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Name>(GetArenaForAllocation()); |
13839 | 0 | _impl_.firstname_ = p; |
13840 | 0 | } |
13841 | 0 | return _impl_.firstname_; |
13842 | 0 | } |
13843 | 0 | inline ::lua_grammar::Name* Function_FuncName::mutable_firstname() { |
13844 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_firstname(); |
13845 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Function.FuncName.firstname) |
13846 | 0 | return _msg; |
13847 | 0 | } |
13848 | 0 | inline void Function_FuncName::set_allocated_firstname(::lua_grammar::Name* firstname) { |
13849 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13850 | 0 | if (message_arena == nullptr) { |
13851 | 0 | delete _impl_.firstname_; |
13852 | 0 | } |
13853 | 0 | if (firstname) { |
13854 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13855 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(firstname); |
13856 | 0 | if (message_arena != submessage_arena) { |
13857 | 0 | firstname = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13858 | 0 | message_arena, firstname, submessage_arena); |
13859 | 0 | } |
13860 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
13861 | 0 | } else { |
13862 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
13863 | 0 | } |
13864 | 0 | _impl_.firstname_ = firstname; |
13865 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Function.FuncName.firstname) |
13866 | 0 | } |
13867 | | |
13868 | | // repeated .lua_grammar.Name names = 2; |
13869 | 2.86k | inline int Function_FuncName::_internal_names_size() const { |
13870 | 2.86k | return _impl_.names_.size(); |
13871 | 2.86k | } |
13872 | 2.86k | inline int Function_FuncName::names_size() const { |
13873 | 2.86k | return _internal_names_size(); |
13874 | 2.86k | } |
13875 | 0 | inline void Function_FuncName::clear_names() { |
13876 | 0 | _impl_.names_.Clear(); |
13877 | 0 | } |
13878 | 0 | inline ::lua_grammar::Name* Function_FuncName::mutable_names(int index) { |
13879 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Function.FuncName.names) |
13880 | 0 | return _impl_.names_.Mutable(index); |
13881 | 0 | } |
13882 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >* |
13883 | 0 | Function_FuncName::mutable_names() { |
13884 | 0 | // @@protoc_insertion_point(field_mutable_list:lua_grammar.Function.FuncName.names) |
13885 | 0 | return &_impl_.names_; |
13886 | 0 | } |
13887 | 650 | inline const ::lua_grammar::Name& Function_FuncName::_internal_names(int index) const { |
13888 | 650 | return _impl_.names_.Get(index); |
13889 | 650 | } |
13890 | 650 | inline const ::lua_grammar::Name& Function_FuncName::names(int index) const { |
13891 | | // @@protoc_insertion_point(field_get:lua_grammar.Function.FuncName.names) |
13892 | 650 | return _internal_names(index); |
13893 | 650 | } |
13894 | 0 | inline ::lua_grammar::Name* Function_FuncName::_internal_add_names() { |
13895 | 0 | return _impl_.names_.Add(); |
13896 | 0 | } |
13897 | 0 | inline ::lua_grammar::Name* Function_FuncName::add_names() { |
13898 | 0 | ::lua_grammar::Name* _add = _internal_add_names(); |
13899 | 0 | // @@protoc_insertion_point(field_add:lua_grammar.Function.FuncName.names) |
13900 | 0 | return _add; |
13901 | 0 | } |
13902 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >& |
13903 | 0 | Function_FuncName::names() const { |
13904 | 0 | // @@protoc_insertion_point(field_list:lua_grammar.Function.FuncName.names) |
13905 | 0 | return _impl_.names_; |
13906 | 0 | } |
13907 | | |
13908 | | // optional .lua_grammar.Name lastname = 3; |
13909 | 4.42k | inline bool Function_FuncName::_internal_has_lastname() const { |
13910 | 4.42k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
13911 | 4.42k | PROTOBUF_ASSUME(!value || _impl_.lastname_ != nullptr); |
13912 | 4.42k | return value; |
13913 | 4.42k | } |
13914 | 2.21k | inline bool Function_FuncName::has_lastname() const { |
13915 | 2.21k | return _internal_has_lastname(); |
13916 | 2.21k | } |
13917 | 0 | inline void Function_FuncName::clear_lastname() { |
13918 | 0 | if (_impl_.lastname_ != nullptr) _impl_.lastname_->Clear(); |
13919 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13920 | 0 | } |
13921 | 115 | inline const ::lua_grammar::Name& Function_FuncName::_internal_lastname() const { |
13922 | 115 | const ::lua_grammar::Name* p = _impl_.lastname_; |
13923 | 115 | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Name&>( |
13924 | 0 | ::lua_grammar::_Name_default_instance_); |
13925 | 115 | } |
13926 | 115 | inline const ::lua_grammar::Name& Function_FuncName::lastname() const { |
13927 | | // @@protoc_insertion_point(field_get:lua_grammar.Function.FuncName.lastname) |
13928 | 115 | return _internal_lastname(); |
13929 | 115 | } |
13930 | | inline void Function_FuncName::unsafe_arena_set_allocated_lastname( |
13931 | 0 | ::lua_grammar::Name* lastname) { |
13932 | 0 | if (GetArenaForAllocation() == nullptr) { |
13933 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.lastname_); |
13934 | 0 | } |
13935 | 0 | _impl_.lastname_ = lastname; |
13936 | 0 | if (lastname) { |
13937 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13938 | 0 | } else { |
13939 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13940 | 0 | } |
13941 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Function.FuncName.lastname) |
13942 | 0 | } |
13943 | 0 | inline ::lua_grammar::Name* Function_FuncName::release_lastname() { |
13944 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13945 | 0 | ::lua_grammar::Name* temp = _impl_.lastname_; |
13946 | 0 | _impl_.lastname_ = nullptr; |
13947 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
13948 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
13949 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13950 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
13951 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
13952 | 0 | if (GetArenaForAllocation() != nullptr) { |
13953 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
13954 | 0 | } |
13955 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
13956 | 0 | return temp; |
13957 | 0 | } |
13958 | 0 | inline ::lua_grammar::Name* Function_FuncName::unsafe_arena_release_lastname() { |
13959 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Function.FuncName.lastname) |
13960 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13961 | 0 | ::lua_grammar::Name* temp = _impl_.lastname_; |
13962 | 0 | _impl_.lastname_ = nullptr; |
13963 | 0 | return temp; |
13964 | 0 | } |
13965 | 0 | inline ::lua_grammar::Name* Function_FuncName::_internal_mutable_lastname() { |
13966 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13967 | 0 | if (_impl_.lastname_ == nullptr) { |
13968 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Name>(GetArenaForAllocation()); |
13969 | 0 | _impl_.lastname_ = p; |
13970 | 0 | } |
13971 | 0 | return _impl_.lastname_; |
13972 | 0 | } |
13973 | 0 | inline ::lua_grammar::Name* Function_FuncName::mutable_lastname() { |
13974 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_lastname(); |
13975 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Function.FuncName.lastname) |
13976 | 0 | return _msg; |
13977 | 0 | } |
13978 | 0 | inline void Function_FuncName::set_allocated_lastname(::lua_grammar::Name* lastname) { |
13979 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
13980 | 0 | if (message_arena == nullptr) { |
13981 | 0 | delete _impl_.lastname_; |
13982 | 0 | } |
13983 | 0 | if (lastname) { |
13984 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
13985 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(lastname); |
13986 | 0 | if (message_arena != submessage_arena) { |
13987 | 0 | lastname = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
13988 | 0 | message_arena, lastname, submessage_arena); |
13989 | 0 | } |
13990 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
13991 | 0 | } else { |
13992 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
13993 | 0 | } |
13994 | 0 | _impl_.lastname_ = lastname; |
13995 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Function.FuncName.lastname) |
13996 | 0 | } |
13997 | | |
13998 | | // ------------------------------------------------------------------- |
13999 | | |
14000 | | // Function |
14001 | | |
14002 | | // required .lua_grammar.Function.FuncName name = 1; |
14003 | 2.21k | inline bool Function::_internal_has_name() const { |
14004 | 2.21k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
14005 | 2.21k | PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); |
14006 | 2.21k | return value; |
14007 | 2.21k | } |
14008 | 0 | inline bool Function::has_name() const { |
14009 | 0 | return _internal_has_name(); |
14010 | 0 | } |
14011 | 0 | inline void Function::clear_name() { |
14012 | 0 | if (_impl_.name_ != nullptr) _impl_.name_->Clear(); |
14013 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14014 | 0 | } |
14015 | 2.21k | inline const ::lua_grammar::Function_FuncName& Function::_internal_name() const { |
14016 | 2.21k | const ::lua_grammar::Function_FuncName* p = _impl_.name_; |
14017 | 2.21k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Function_FuncName&>( |
14018 | 0 | ::lua_grammar::_Function_FuncName_default_instance_); |
14019 | 2.21k | } |
14020 | 2.21k | inline const ::lua_grammar::Function_FuncName& Function::name() const { |
14021 | | // @@protoc_insertion_point(field_get:lua_grammar.Function.name) |
14022 | 2.21k | return _internal_name(); |
14023 | 2.21k | } |
14024 | | inline void Function::unsafe_arena_set_allocated_name( |
14025 | 0 | ::lua_grammar::Function_FuncName* name) { |
14026 | 0 | if (GetArenaForAllocation() == nullptr) { |
14027 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); |
14028 | 0 | } |
14029 | 0 | _impl_.name_ = name; |
14030 | 0 | if (name) { |
14031 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14032 | 0 | } else { |
14033 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14034 | 0 | } |
14035 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Function.name) |
14036 | 0 | } |
14037 | 0 | inline ::lua_grammar::Function_FuncName* Function::release_name() { |
14038 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14039 | 0 | ::lua_grammar::Function_FuncName* temp = _impl_.name_; |
14040 | 0 | _impl_.name_ = nullptr; |
14041 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14042 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14043 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14044 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14045 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14046 | 0 | if (GetArenaForAllocation() != nullptr) { |
14047 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14048 | 0 | } |
14049 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14050 | 0 | return temp; |
14051 | 0 | } |
14052 | 0 | inline ::lua_grammar::Function_FuncName* Function::unsafe_arena_release_name() { |
14053 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Function.name) |
14054 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14055 | 0 | ::lua_grammar::Function_FuncName* temp = _impl_.name_; |
14056 | 0 | _impl_.name_ = nullptr; |
14057 | 0 | return temp; |
14058 | 0 | } |
14059 | 0 | inline ::lua_grammar::Function_FuncName* Function::_internal_mutable_name() { |
14060 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14061 | 0 | if (_impl_.name_ == nullptr) { |
14062 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Function_FuncName>(GetArenaForAllocation()); |
14063 | 0 | _impl_.name_ = p; |
14064 | 0 | } |
14065 | 0 | return _impl_.name_; |
14066 | 0 | } |
14067 | 0 | inline ::lua_grammar::Function_FuncName* Function::mutable_name() { |
14068 | 0 | ::lua_grammar::Function_FuncName* _msg = _internal_mutable_name(); |
14069 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Function.name) |
14070 | 0 | return _msg; |
14071 | 0 | } |
14072 | 0 | inline void Function::set_allocated_name(::lua_grammar::Function_FuncName* name) { |
14073 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14074 | 0 | if (message_arena == nullptr) { |
14075 | 0 | delete _impl_.name_; |
14076 | 0 | } |
14077 | 0 | if (name) { |
14078 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14079 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); |
14080 | 0 | if (message_arena != submessage_arena) { |
14081 | 0 | name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14082 | 0 | message_arena, name, submessage_arena); |
14083 | 0 | } |
14084 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14085 | 0 | } else { |
14086 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14087 | 0 | } |
14088 | 0 | _impl_.name_ = name; |
14089 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Function.name) |
14090 | 0 | } |
14091 | | |
14092 | | // required .lua_grammar.FuncBody body = 2; |
14093 | 2.21k | inline bool Function::_internal_has_body() const { |
14094 | 2.21k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
14095 | 2.21k | PROTOBUF_ASSUME(!value || _impl_.body_ != nullptr); |
14096 | 2.21k | return value; |
14097 | 2.21k | } |
14098 | 0 | inline bool Function::has_body() const { |
14099 | 0 | return _internal_has_body(); |
14100 | 0 | } |
14101 | 0 | inline void Function::clear_body() { |
14102 | 0 | if (_impl_.body_ != nullptr) _impl_.body_->Clear(); |
14103 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14104 | 0 | } |
14105 | 2.21k | inline const ::lua_grammar::FuncBody& Function::_internal_body() const { |
14106 | 2.21k | const ::lua_grammar::FuncBody* p = _impl_.body_; |
14107 | 2.21k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FuncBody&>( |
14108 | 0 | ::lua_grammar::_FuncBody_default_instance_); |
14109 | 2.21k | } |
14110 | 2.21k | inline const ::lua_grammar::FuncBody& Function::body() const { |
14111 | | // @@protoc_insertion_point(field_get:lua_grammar.Function.body) |
14112 | 2.21k | return _internal_body(); |
14113 | 2.21k | } |
14114 | | inline void Function::unsafe_arena_set_allocated_body( |
14115 | 0 | ::lua_grammar::FuncBody* body) { |
14116 | 0 | if (GetArenaForAllocation() == nullptr) { |
14117 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.body_); |
14118 | 0 | } |
14119 | 0 | _impl_.body_ = body; |
14120 | 0 | if (body) { |
14121 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14122 | 0 | } else { |
14123 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14124 | 0 | } |
14125 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Function.body) |
14126 | 0 | } |
14127 | 0 | inline ::lua_grammar::FuncBody* Function::release_body() { |
14128 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14129 | 0 | ::lua_grammar::FuncBody* temp = _impl_.body_; |
14130 | 0 | _impl_.body_ = nullptr; |
14131 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14132 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14133 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14134 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14135 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14136 | 0 | if (GetArenaForAllocation() != nullptr) { |
14137 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14138 | 0 | } |
14139 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14140 | 0 | return temp; |
14141 | 0 | } |
14142 | 0 | inline ::lua_grammar::FuncBody* Function::unsafe_arena_release_body() { |
14143 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Function.body) |
14144 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14145 | 0 | ::lua_grammar::FuncBody* temp = _impl_.body_; |
14146 | 0 | _impl_.body_ = nullptr; |
14147 | 0 | return temp; |
14148 | 0 | } |
14149 | 0 | inline ::lua_grammar::FuncBody* Function::_internal_mutable_body() { |
14150 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14151 | 0 | if (_impl_.body_ == nullptr) { |
14152 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FuncBody>(GetArenaForAllocation()); |
14153 | 0 | _impl_.body_ = p; |
14154 | 0 | } |
14155 | 0 | return _impl_.body_; |
14156 | 0 | } |
14157 | 0 | inline ::lua_grammar::FuncBody* Function::mutable_body() { |
14158 | 0 | ::lua_grammar::FuncBody* _msg = _internal_mutable_body(); |
14159 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Function.body) |
14160 | 0 | return _msg; |
14161 | 0 | } |
14162 | 0 | inline void Function::set_allocated_body(::lua_grammar::FuncBody* body) { |
14163 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14164 | 0 | if (message_arena == nullptr) { |
14165 | 0 | delete _impl_.body_; |
14166 | 0 | } |
14167 | 0 | if (body) { |
14168 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14169 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(body); |
14170 | 0 | if (message_arena != submessage_arena) { |
14171 | 0 | body = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14172 | 0 | message_arena, body, submessage_arena); |
14173 | 0 | } |
14174 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14175 | 0 | } else { |
14176 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14177 | 0 | } |
14178 | 0 | _impl_.body_ = body; |
14179 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Function.body) |
14180 | 0 | } |
14181 | | |
14182 | | // ------------------------------------------------------------------- |
14183 | | |
14184 | | // FuncBody_NameListWithEllipsis |
14185 | | |
14186 | | // required .lua_grammar.NameList namelist = 1; |
14187 | 505 | inline bool FuncBody_NameListWithEllipsis::_internal_has_namelist() const { |
14188 | 505 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
14189 | 505 | PROTOBUF_ASSUME(!value || _impl_.namelist_ != nullptr); |
14190 | 505 | return value; |
14191 | 505 | } |
14192 | 0 | inline bool FuncBody_NameListWithEllipsis::has_namelist() const { |
14193 | 0 | return _internal_has_namelist(); |
14194 | 0 | } |
14195 | 0 | inline void FuncBody_NameListWithEllipsis::clear_namelist() { |
14196 | 0 | if (_impl_.namelist_ != nullptr) _impl_.namelist_->Clear(); |
14197 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14198 | 0 | } |
14199 | 2.23k | inline const ::lua_grammar::NameList& FuncBody_NameListWithEllipsis::_internal_namelist() const { |
14200 | 2.23k | const ::lua_grammar::NameList* p = _impl_.namelist_; |
14201 | 2.23k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::NameList&>( |
14202 | 1.76k | ::lua_grammar::_NameList_default_instance_); |
14203 | 2.23k | } |
14204 | 2.23k | inline const ::lua_grammar::NameList& FuncBody_NameListWithEllipsis::namelist() const { |
14205 | | // @@protoc_insertion_point(field_get:lua_grammar.FuncBody.NameListWithEllipsis.namelist) |
14206 | 2.23k | return _internal_namelist(); |
14207 | 2.23k | } |
14208 | | inline void FuncBody_NameListWithEllipsis::unsafe_arena_set_allocated_namelist( |
14209 | 0 | ::lua_grammar::NameList* namelist) { |
14210 | 0 | if (GetArenaForAllocation() == nullptr) { |
14211 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.namelist_); |
14212 | 0 | } |
14213 | 0 | _impl_.namelist_ = namelist; |
14214 | 0 | if (namelist) { |
14215 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14216 | 0 | } else { |
14217 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14218 | 0 | } |
14219 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FuncBody.NameListWithEllipsis.namelist) |
14220 | 0 | } |
14221 | 0 | inline ::lua_grammar::NameList* FuncBody_NameListWithEllipsis::release_namelist() { |
14222 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14223 | 0 | ::lua_grammar::NameList* temp = _impl_.namelist_; |
14224 | 0 | _impl_.namelist_ = nullptr; |
14225 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14226 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14227 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14228 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14229 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14230 | 0 | if (GetArenaForAllocation() != nullptr) { |
14231 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14232 | 0 | } |
14233 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14234 | 0 | return temp; |
14235 | 0 | } |
14236 | 0 | inline ::lua_grammar::NameList* FuncBody_NameListWithEllipsis::unsafe_arena_release_namelist() { |
14237 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FuncBody.NameListWithEllipsis.namelist) |
14238 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14239 | 0 | ::lua_grammar::NameList* temp = _impl_.namelist_; |
14240 | 0 | _impl_.namelist_ = nullptr; |
14241 | 0 | return temp; |
14242 | 0 | } |
14243 | 0 | inline ::lua_grammar::NameList* FuncBody_NameListWithEllipsis::_internal_mutable_namelist() { |
14244 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14245 | 0 | if (_impl_.namelist_ == nullptr) { |
14246 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::NameList>(GetArenaForAllocation()); |
14247 | 0 | _impl_.namelist_ = p; |
14248 | 0 | } |
14249 | 0 | return _impl_.namelist_; |
14250 | 0 | } |
14251 | 0 | inline ::lua_grammar::NameList* FuncBody_NameListWithEllipsis::mutable_namelist() { |
14252 | 0 | ::lua_grammar::NameList* _msg = _internal_mutable_namelist(); |
14253 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FuncBody.NameListWithEllipsis.namelist) |
14254 | 0 | return _msg; |
14255 | 0 | } |
14256 | 0 | inline void FuncBody_NameListWithEllipsis::set_allocated_namelist(::lua_grammar::NameList* namelist) { |
14257 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14258 | 0 | if (message_arena == nullptr) { |
14259 | 0 | delete _impl_.namelist_; |
14260 | 0 | } |
14261 | 0 | if (namelist) { |
14262 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14263 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(namelist); |
14264 | 0 | if (message_arena != submessage_arena) { |
14265 | 0 | namelist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14266 | 0 | message_arena, namelist, submessage_arena); |
14267 | 0 | } |
14268 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14269 | 0 | } else { |
14270 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14271 | 0 | } |
14272 | 0 | _impl_.namelist_ = namelist; |
14273 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FuncBody.NameListWithEllipsis.namelist) |
14274 | 0 | } |
14275 | | |
14276 | | // optional string ellipsis = 2; |
14277 | 2.23k | inline bool FuncBody_NameListWithEllipsis::_internal_has_ellipsis() const { |
14278 | 2.23k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
14279 | 2.23k | return value; |
14280 | 2.23k | } |
14281 | 2.23k | inline bool FuncBody_NameListWithEllipsis::has_ellipsis() const { |
14282 | 2.23k | return _internal_has_ellipsis(); |
14283 | 2.23k | } |
14284 | 0 | inline void FuncBody_NameListWithEllipsis::clear_ellipsis() { |
14285 | 0 | _impl_.ellipsis_.ClearToEmpty(); |
14286 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14287 | 0 | } |
14288 | 0 | inline const std::string& FuncBody_NameListWithEllipsis::ellipsis() const { |
14289 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.FuncBody.NameListWithEllipsis.ellipsis) |
14290 | 0 | return _internal_ellipsis(); |
14291 | 0 | } |
14292 | | template <typename ArgT0, typename... ArgT> |
14293 | | inline PROTOBUF_ALWAYS_INLINE |
14294 | | void FuncBody_NameListWithEllipsis::set_ellipsis(ArgT0&& arg0, ArgT... args) { |
14295 | | _impl_._has_bits_[0] |= 0x00000001u; |
14296 | | _impl_.ellipsis_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
14297 | | // @@protoc_insertion_point(field_set:lua_grammar.FuncBody.NameListWithEllipsis.ellipsis) |
14298 | | } |
14299 | 0 | inline std::string* FuncBody_NameListWithEllipsis::mutable_ellipsis() { |
14300 | 0 | std::string* _s = _internal_mutable_ellipsis(); |
14301 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FuncBody.NameListWithEllipsis.ellipsis) |
14302 | 0 | return _s; |
14303 | 0 | } |
14304 | 0 | inline const std::string& FuncBody_NameListWithEllipsis::_internal_ellipsis() const { |
14305 | 0 | return _impl_.ellipsis_.Get(); |
14306 | 0 | } |
14307 | 0 | inline void FuncBody_NameListWithEllipsis::_internal_set_ellipsis(const std::string& value) { |
14308 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14309 | 0 | _impl_.ellipsis_.Set(value, GetArenaForAllocation()); |
14310 | 0 | } |
14311 | 0 | inline std::string* FuncBody_NameListWithEllipsis::_internal_mutable_ellipsis() { |
14312 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14313 | 0 | return _impl_.ellipsis_.Mutable(GetArenaForAllocation()); |
14314 | 0 | } |
14315 | 0 | inline std::string* FuncBody_NameListWithEllipsis::release_ellipsis() { |
14316 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FuncBody.NameListWithEllipsis.ellipsis) |
14317 | 0 | if (!_internal_has_ellipsis()) { |
14318 | 0 | return nullptr; |
14319 | 0 | } |
14320 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14321 | 0 | auto* p = _impl_.ellipsis_.Release(); |
14322 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
14323 | 0 | if (_impl_.ellipsis_.IsDefault()) { |
14324 | 0 | _impl_.ellipsis_.Set("", GetArenaForAllocation()); |
14325 | 0 | } |
14326 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
14327 | 0 | return p; |
14328 | 0 | } |
14329 | 0 | inline void FuncBody_NameListWithEllipsis::set_allocated_ellipsis(std::string* ellipsis) { |
14330 | 0 | if (ellipsis != nullptr) { |
14331 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14332 | 0 | } else { |
14333 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14334 | 0 | } |
14335 | 0 | _impl_.ellipsis_.SetAllocated(ellipsis, GetArenaForAllocation()); |
14336 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
14337 | 0 | if (_impl_.ellipsis_.IsDefault()) { |
14338 | 0 | _impl_.ellipsis_.Set("", GetArenaForAllocation()); |
14339 | 0 | } |
14340 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
14341 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FuncBody.NameListWithEllipsis.ellipsis) |
14342 | 0 | } |
14343 | | |
14344 | | // ------------------------------------------------------------------- |
14345 | | |
14346 | | // FuncBody_ParList |
14347 | | |
14348 | | // .lua_grammar.FuncBody.NameListWithEllipsis namelist = 1; |
14349 | 2.74k | inline bool FuncBody_ParList::_internal_has_namelist() const { |
14350 | 2.74k | return parlist_oneof_case() == kNamelist; |
14351 | 2.74k | } |
14352 | 0 | inline bool FuncBody_ParList::has_namelist() const { |
14353 | 0 | return _internal_has_namelist(); |
14354 | 0 | } |
14355 | 0 | inline void FuncBody_ParList::set_has_namelist() { |
14356 | 0 | _impl_._oneof_case_[0] = kNamelist; |
14357 | 0 | } |
14358 | 0 | inline void FuncBody_ParList::clear_namelist() { |
14359 | 0 | if (_internal_has_namelist()) { |
14360 | 0 | if (GetArenaForAllocation() == nullptr) { |
14361 | 0 | delete _impl_.parlist_oneof_.namelist_; |
14362 | 0 | } |
14363 | 0 | clear_has_parlist_oneof(); |
14364 | 0 | } |
14365 | 0 | } |
14366 | 0 | inline ::lua_grammar::FuncBody_NameListWithEllipsis* FuncBody_ParList::release_namelist() { |
14367 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FuncBody.ParList.namelist) |
14368 | 0 | if (_internal_has_namelist()) { |
14369 | 0 | clear_has_parlist_oneof(); |
14370 | 0 | ::lua_grammar::FuncBody_NameListWithEllipsis* temp = _impl_.parlist_oneof_.namelist_; |
14371 | 0 | if (GetArenaForAllocation() != nullptr) { |
14372 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14373 | 0 | } |
14374 | 0 | _impl_.parlist_oneof_.namelist_ = nullptr; |
14375 | 0 | return temp; |
14376 | 0 | } else { |
14377 | 0 | return nullptr; |
14378 | 0 | } |
14379 | 0 | } |
14380 | 2.23k | inline const ::lua_grammar::FuncBody_NameListWithEllipsis& FuncBody_ParList::_internal_namelist() const { |
14381 | 2.23k | return _internal_has_namelist() |
14382 | 2.23k | ? *_impl_.parlist_oneof_.namelist_ |
14383 | 2.23k | : reinterpret_cast< ::lua_grammar::FuncBody_NameListWithEllipsis&>(::lua_grammar::_FuncBody_NameListWithEllipsis_default_instance_); |
14384 | 2.23k | } |
14385 | 2.23k | inline const ::lua_grammar::FuncBody_NameListWithEllipsis& FuncBody_ParList::namelist() const { |
14386 | | // @@protoc_insertion_point(field_get:lua_grammar.FuncBody.ParList.namelist) |
14387 | 2.23k | return _internal_namelist(); |
14388 | 2.23k | } |
14389 | 0 | inline ::lua_grammar::FuncBody_NameListWithEllipsis* FuncBody_ParList::unsafe_arena_release_namelist() { |
14390 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.FuncBody.ParList.namelist) |
14391 | 0 | if (_internal_has_namelist()) { |
14392 | 0 | clear_has_parlist_oneof(); |
14393 | 0 | ::lua_grammar::FuncBody_NameListWithEllipsis* temp = _impl_.parlist_oneof_.namelist_; |
14394 | 0 | _impl_.parlist_oneof_.namelist_ = nullptr; |
14395 | 0 | return temp; |
14396 | 0 | } else { |
14397 | 0 | return nullptr; |
14398 | 0 | } |
14399 | 0 | } |
14400 | 0 | inline void FuncBody_ParList::unsafe_arena_set_allocated_namelist(::lua_grammar::FuncBody_NameListWithEllipsis* namelist) { |
14401 | 0 | clear_parlist_oneof(); |
14402 | 0 | if (namelist) { |
14403 | 0 | set_has_namelist(); |
14404 | 0 | _impl_.parlist_oneof_.namelist_ = namelist; |
14405 | 0 | } |
14406 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FuncBody.ParList.namelist) |
14407 | 0 | } |
14408 | 0 | inline ::lua_grammar::FuncBody_NameListWithEllipsis* FuncBody_ParList::_internal_mutable_namelist() { |
14409 | 0 | if (!_internal_has_namelist()) { |
14410 | 0 | clear_parlist_oneof(); |
14411 | 0 | set_has_namelist(); |
14412 | 0 | _impl_.parlist_oneof_.namelist_ = CreateMaybeMessage< ::lua_grammar::FuncBody_NameListWithEllipsis >(GetArenaForAllocation()); |
14413 | 0 | } |
14414 | 0 | return _impl_.parlist_oneof_.namelist_; |
14415 | 0 | } |
14416 | 0 | inline ::lua_grammar::FuncBody_NameListWithEllipsis* FuncBody_ParList::mutable_namelist() { |
14417 | 0 | ::lua_grammar::FuncBody_NameListWithEllipsis* _msg = _internal_mutable_namelist(); |
14418 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FuncBody.ParList.namelist) |
14419 | 0 | return _msg; |
14420 | 0 | } |
14421 | | |
14422 | | // string ellipsis = 2; |
14423 | 0 | inline bool FuncBody_ParList::_internal_has_ellipsis() const { |
14424 | 0 | return parlist_oneof_case() == kEllipsis; |
14425 | 0 | } |
14426 | 0 | inline bool FuncBody_ParList::has_ellipsis() const { |
14427 | 0 | return _internal_has_ellipsis(); |
14428 | 0 | } |
14429 | 0 | inline void FuncBody_ParList::set_has_ellipsis() { |
14430 | 0 | _impl_._oneof_case_[0] = kEllipsis; |
14431 | 0 | } |
14432 | 0 | inline void FuncBody_ParList::clear_ellipsis() { |
14433 | 0 | if (_internal_has_ellipsis()) { |
14434 | 0 | _impl_.parlist_oneof_.ellipsis_.Destroy(); |
14435 | 0 | clear_has_parlist_oneof(); |
14436 | 0 | } |
14437 | 0 | } |
14438 | 0 | inline const std::string& FuncBody_ParList::ellipsis() const { |
14439 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.FuncBody.ParList.ellipsis) |
14440 | 0 | return _internal_ellipsis(); |
14441 | 0 | } |
14442 | | template <typename ArgT0, typename... ArgT> |
14443 | | inline void FuncBody_ParList::set_ellipsis(ArgT0&& arg0, ArgT... args) { |
14444 | | if (!_internal_has_ellipsis()) { |
14445 | | clear_parlist_oneof(); |
14446 | | set_has_ellipsis(); |
14447 | | _impl_.parlist_oneof_.ellipsis_.InitDefault(); |
14448 | | } |
14449 | | _impl_.parlist_oneof_.ellipsis_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
14450 | | // @@protoc_insertion_point(field_set:lua_grammar.FuncBody.ParList.ellipsis) |
14451 | | } |
14452 | 0 | inline std::string* FuncBody_ParList::mutable_ellipsis() { |
14453 | 0 | std::string* _s = _internal_mutable_ellipsis(); |
14454 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FuncBody.ParList.ellipsis) |
14455 | 0 | return _s; |
14456 | 0 | } |
14457 | 0 | inline const std::string& FuncBody_ParList::_internal_ellipsis() const { |
14458 | 0 | if (_internal_has_ellipsis()) { |
14459 | 0 | return _impl_.parlist_oneof_.ellipsis_.Get(); |
14460 | 0 | } |
14461 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
14462 | 0 | } |
14463 | 0 | inline void FuncBody_ParList::_internal_set_ellipsis(const std::string& value) { |
14464 | 0 | if (!_internal_has_ellipsis()) { |
14465 | 0 | clear_parlist_oneof(); |
14466 | 0 | set_has_ellipsis(); |
14467 | 0 | _impl_.parlist_oneof_.ellipsis_.InitDefault(); |
14468 | 0 | } |
14469 | 0 | _impl_.parlist_oneof_.ellipsis_.Set(value, GetArenaForAllocation()); |
14470 | 0 | } |
14471 | 0 | inline std::string* FuncBody_ParList::_internal_mutable_ellipsis() { |
14472 | 0 | if (!_internal_has_ellipsis()) { |
14473 | 0 | clear_parlist_oneof(); |
14474 | 0 | set_has_ellipsis(); |
14475 | 0 | _impl_.parlist_oneof_.ellipsis_.InitDefault(); |
14476 | 0 | } |
14477 | 0 | return _impl_.parlist_oneof_.ellipsis_.Mutable( GetArenaForAllocation()); |
14478 | 0 | } |
14479 | 0 | inline std::string* FuncBody_ParList::release_ellipsis() { |
14480 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FuncBody.ParList.ellipsis) |
14481 | 0 | if (_internal_has_ellipsis()) { |
14482 | 0 | clear_has_parlist_oneof(); |
14483 | 0 | return _impl_.parlist_oneof_.ellipsis_.Release(); |
14484 | 0 | } else { |
14485 | 0 | return nullptr; |
14486 | 0 | } |
14487 | 0 | } |
14488 | 0 | inline void FuncBody_ParList::set_allocated_ellipsis(std::string* ellipsis) { |
14489 | 0 | if (has_parlist_oneof()) { |
14490 | 0 | clear_parlist_oneof(); |
14491 | 0 | } |
14492 | 0 | if (ellipsis != nullptr) { |
14493 | 0 | set_has_ellipsis(); |
14494 | 0 | _impl_.parlist_oneof_.ellipsis_.InitAllocated(ellipsis, GetArenaForAllocation()); |
14495 | 0 | } |
14496 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FuncBody.ParList.ellipsis) |
14497 | 0 | } |
14498 | | |
14499 | 3.71k | inline bool FuncBody_ParList::has_parlist_oneof() const { |
14500 | 3.71k | return parlist_oneof_case() != PARLIST_ONEOF_NOT_SET; |
14501 | 3.71k | } |
14502 | 3.71k | inline void FuncBody_ParList::clear_has_parlist_oneof() { |
14503 | 3.71k | _impl_._oneof_case_[0] = PARLIST_ONEOF_NOT_SET; |
14504 | 3.71k | } |
14505 | 15.4k | inline FuncBody_ParList::ParlistOneofCase FuncBody_ParList::parlist_oneof_case() const { |
14506 | 15.4k | return FuncBody_ParList::ParlistOneofCase(_impl_._oneof_case_[0]); |
14507 | 15.4k | } |
14508 | | // ------------------------------------------------------------------- |
14509 | | |
14510 | | // FuncBody |
14511 | | |
14512 | | // optional .lua_grammar.FuncBody.ParList parlist = 1; |
14513 | 33.9k | inline bool FuncBody::_internal_has_parlist() const { |
14514 | 33.9k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
14515 | 33.9k | PROTOBUF_ASSUME(!value || _impl_.parlist_ != nullptr); |
14516 | 33.9k | return value; |
14517 | 33.9k | } |
14518 | 16.7k | inline bool FuncBody::has_parlist() const { |
14519 | 16.7k | return _internal_has_parlist(); |
14520 | 16.7k | } |
14521 | 0 | inline void FuncBody::clear_parlist() { |
14522 | 0 | if (_impl_.parlist_ != nullptr) _impl_.parlist_->Clear(); |
14523 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14524 | 0 | } |
14525 | 3.54k | inline const ::lua_grammar::FuncBody_ParList& FuncBody::_internal_parlist() const { |
14526 | 3.54k | const ::lua_grammar::FuncBody_ParList* p = _impl_.parlist_; |
14527 | 3.54k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FuncBody_ParList&>( |
14528 | 0 | ::lua_grammar::_FuncBody_ParList_default_instance_); |
14529 | 3.54k | } |
14530 | 3.54k | inline const ::lua_grammar::FuncBody_ParList& FuncBody::parlist() const { |
14531 | | // @@protoc_insertion_point(field_get:lua_grammar.FuncBody.parlist) |
14532 | 3.54k | return _internal_parlist(); |
14533 | 3.54k | } |
14534 | | inline void FuncBody::unsafe_arena_set_allocated_parlist( |
14535 | 0 | ::lua_grammar::FuncBody_ParList* parlist) { |
14536 | 0 | if (GetArenaForAllocation() == nullptr) { |
14537 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.parlist_); |
14538 | 0 | } |
14539 | 0 | _impl_.parlist_ = parlist; |
14540 | 0 | if (parlist) { |
14541 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14542 | 0 | } else { |
14543 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14544 | 0 | } |
14545 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FuncBody.parlist) |
14546 | 0 | } |
14547 | 0 | inline ::lua_grammar::FuncBody_ParList* FuncBody::release_parlist() { |
14548 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14549 | 0 | ::lua_grammar::FuncBody_ParList* temp = _impl_.parlist_; |
14550 | 0 | _impl_.parlist_ = nullptr; |
14551 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14552 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14553 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14554 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14555 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14556 | 0 | if (GetArenaForAllocation() != nullptr) { |
14557 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14558 | 0 | } |
14559 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14560 | 0 | return temp; |
14561 | 0 | } |
14562 | 0 | inline ::lua_grammar::FuncBody_ParList* FuncBody::unsafe_arena_release_parlist() { |
14563 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FuncBody.parlist) |
14564 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14565 | 0 | ::lua_grammar::FuncBody_ParList* temp = _impl_.parlist_; |
14566 | 0 | _impl_.parlist_ = nullptr; |
14567 | 0 | return temp; |
14568 | 0 | } |
14569 | 0 | inline ::lua_grammar::FuncBody_ParList* FuncBody::_internal_mutable_parlist() { |
14570 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14571 | 0 | if (_impl_.parlist_ == nullptr) { |
14572 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FuncBody_ParList>(GetArenaForAllocation()); |
14573 | 0 | _impl_.parlist_ = p; |
14574 | 0 | } |
14575 | 0 | return _impl_.parlist_; |
14576 | 0 | } |
14577 | 0 | inline ::lua_grammar::FuncBody_ParList* FuncBody::mutable_parlist() { |
14578 | 0 | ::lua_grammar::FuncBody_ParList* _msg = _internal_mutable_parlist(); |
14579 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FuncBody.parlist) |
14580 | 0 | return _msg; |
14581 | 0 | } |
14582 | 0 | inline void FuncBody::set_allocated_parlist(::lua_grammar::FuncBody_ParList* parlist) { |
14583 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14584 | 0 | if (message_arena == nullptr) { |
14585 | 0 | delete _impl_.parlist_; |
14586 | 0 | } |
14587 | 0 | if (parlist) { |
14588 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14589 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(parlist); |
14590 | 0 | if (message_arena != submessage_arena) { |
14591 | 0 | parlist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14592 | 0 | message_arena, parlist, submessage_arena); |
14593 | 0 | } |
14594 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14595 | 0 | } else { |
14596 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14597 | 0 | } |
14598 | 0 | _impl_.parlist_ = parlist; |
14599 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FuncBody.parlist) |
14600 | 0 | } |
14601 | | |
14602 | | // required .lua_grammar.Block block = 2; |
14603 | 17.2k | inline bool FuncBody::_internal_has_block() const { |
14604 | 17.2k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
14605 | 17.2k | PROTOBUF_ASSUME(!value || _impl_.block_ != nullptr); |
14606 | 17.2k | return value; |
14607 | 17.2k | } |
14608 | 0 | inline bool FuncBody::has_block() const { |
14609 | 0 | return _internal_has_block(); |
14610 | 0 | } |
14611 | 0 | inline void FuncBody::clear_block() { |
14612 | 0 | if (_impl_.block_ != nullptr) _impl_.block_->Clear(); |
14613 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14614 | 0 | } |
14615 | 16.7k | inline const ::lua_grammar::Block& FuncBody::_internal_block() const { |
14616 | 16.7k | const ::lua_grammar::Block* p = _impl_.block_; |
14617 | 16.7k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Block&>( |
14618 | 0 | ::lua_grammar::_Block_default_instance_); |
14619 | 16.7k | } |
14620 | 16.7k | inline const ::lua_grammar::Block& FuncBody::block() const { |
14621 | | // @@protoc_insertion_point(field_get:lua_grammar.FuncBody.block) |
14622 | 16.7k | return _internal_block(); |
14623 | 16.7k | } |
14624 | | inline void FuncBody::unsafe_arena_set_allocated_block( |
14625 | 0 | ::lua_grammar::Block* block) { |
14626 | 0 | if (GetArenaForAllocation() == nullptr) { |
14627 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.block_); |
14628 | 0 | } |
14629 | 0 | _impl_.block_ = block; |
14630 | 0 | if (block) { |
14631 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14632 | 0 | } else { |
14633 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14634 | 0 | } |
14635 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FuncBody.block) |
14636 | 0 | } |
14637 | 0 | inline ::lua_grammar::Block* FuncBody::release_block() { |
14638 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14639 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
14640 | 0 | _impl_.block_ = nullptr; |
14641 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14642 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14643 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14644 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14645 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14646 | 0 | if (GetArenaForAllocation() != nullptr) { |
14647 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14648 | 0 | } |
14649 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14650 | 0 | return temp; |
14651 | 0 | } |
14652 | 0 | inline ::lua_grammar::Block* FuncBody::unsafe_arena_release_block() { |
14653 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FuncBody.block) |
14654 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14655 | 0 | ::lua_grammar::Block* temp = _impl_.block_; |
14656 | 0 | _impl_.block_ = nullptr; |
14657 | 0 | return temp; |
14658 | 0 | } |
14659 | 0 | inline ::lua_grammar::Block* FuncBody::_internal_mutable_block() { |
14660 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14661 | 0 | if (_impl_.block_ == nullptr) { |
14662 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Block>(GetArenaForAllocation()); |
14663 | 0 | _impl_.block_ = p; |
14664 | 0 | } |
14665 | 0 | return _impl_.block_; |
14666 | 0 | } |
14667 | 0 | inline ::lua_grammar::Block* FuncBody::mutable_block() { |
14668 | 0 | ::lua_grammar::Block* _msg = _internal_mutable_block(); |
14669 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FuncBody.block) |
14670 | 0 | return _msg; |
14671 | 0 | } |
14672 | 0 | inline void FuncBody::set_allocated_block(::lua_grammar::Block* block) { |
14673 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14674 | 0 | if (message_arena == nullptr) { |
14675 | 0 | delete _impl_.block_; |
14676 | 0 | } |
14677 | 0 | if (block) { |
14678 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14679 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(block); |
14680 | 0 | if (message_arena != submessage_arena) { |
14681 | 0 | block = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14682 | 0 | message_arena, block, submessage_arena); |
14683 | 0 | } |
14684 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14685 | 0 | } else { |
14686 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14687 | 0 | } |
14688 | 0 | _impl_.block_ = block; |
14689 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FuncBody.block) |
14690 | 0 | } |
14691 | | |
14692 | | // ------------------------------------------------------------------- |
14693 | | |
14694 | | // NameList |
14695 | | |
14696 | | // required .lua_grammar.Name firstname = 1; |
14697 | 27.4k | inline bool NameList::_internal_has_firstname() const { |
14698 | 27.4k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
14699 | 27.4k | PROTOBUF_ASSUME(!value || _impl_.firstname_ != nullptr); |
14700 | 27.4k | return value; |
14701 | 27.4k | } |
14702 | 0 | inline bool NameList::has_firstname() const { |
14703 | 0 | return _internal_has_firstname(); |
14704 | 0 | } |
14705 | 0 | inline void NameList::clear_firstname() { |
14706 | 0 | if (_impl_.firstname_ != nullptr) _impl_.firstname_->Clear(); |
14707 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14708 | 0 | } |
14709 | 29.1k | inline const ::lua_grammar::Name& NameList::_internal_firstname() const { |
14710 | 29.1k | const ::lua_grammar::Name* p = _impl_.firstname_; |
14711 | 29.1k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Name&>( |
14712 | 1.76k | ::lua_grammar::_Name_default_instance_); |
14713 | 29.1k | } |
14714 | 29.1k | inline const ::lua_grammar::Name& NameList::firstname() const { |
14715 | | // @@protoc_insertion_point(field_get:lua_grammar.NameList.firstname) |
14716 | 29.1k | return _internal_firstname(); |
14717 | 29.1k | } |
14718 | | inline void NameList::unsafe_arena_set_allocated_firstname( |
14719 | 0 | ::lua_grammar::Name* firstname) { |
14720 | 0 | if (GetArenaForAllocation() == nullptr) { |
14721 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.firstname_); |
14722 | 0 | } |
14723 | 0 | _impl_.firstname_ = firstname; |
14724 | 0 | if (firstname) { |
14725 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14726 | 0 | } else { |
14727 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14728 | 0 | } |
14729 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.NameList.firstname) |
14730 | 0 | } |
14731 | 0 | inline ::lua_grammar::Name* NameList::release_firstname() { |
14732 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14733 | 0 | ::lua_grammar::Name* temp = _impl_.firstname_; |
14734 | 0 | _impl_.firstname_ = nullptr; |
14735 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14736 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14737 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14738 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14739 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14740 | 0 | if (GetArenaForAllocation() != nullptr) { |
14741 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14742 | 0 | } |
14743 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14744 | 0 | return temp; |
14745 | 0 | } |
14746 | 0 | inline ::lua_grammar::Name* NameList::unsafe_arena_release_firstname() { |
14747 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.NameList.firstname) |
14748 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14749 | 0 | ::lua_grammar::Name* temp = _impl_.firstname_; |
14750 | 0 | _impl_.firstname_ = nullptr; |
14751 | 0 | return temp; |
14752 | 0 | } |
14753 | 0 | inline ::lua_grammar::Name* NameList::_internal_mutable_firstname() { |
14754 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14755 | 0 | if (_impl_.firstname_ == nullptr) { |
14756 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Name>(GetArenaForAllocation()); |
14757 | 0 | _impl_.firstname_ = p; |
14758 | 0 | } |
14759 | 0 | return _impl_.firstname_; |
14760 | 0 | } |
14761 | 0 | inline ::lua_grammar::Name* NameList::mutable_firstname() { |
14762 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_firstname(); |
14763 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.NameList.firstname) |
14764 | 0 | return _msg; |
14765 | 0 | } |
14766 | 0 | inline void NameList::set_allocated_firstname(::lua_grammar::Name* firstname) { |
14767 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14768 | 0 | if (message_arena == nullptr) { |
14769 | 0 | delete _impl_.firstname_; |
14770 | 0 | } |
14771 | 0 | if (firstname) { |
14772 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14773 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(firstname); |
14774 | 0 | if (message_arena != submessage_arena) { |
14775 | 0 | firstname = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14776 | 0 | message_arena, firstname, submessage_arena); |
14777 | 0 | } |
14778 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14779 | 0 | } else { |
14780 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14781 | 0 | } |
14782 | 0 | _impl_.firstname_ = firstname; |
14783 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.NameList.firstname) |
14784 | 0 | } |
14785 | | |
14786 | | // repeated .lua_grammar.Name names = 2; |
14787 | 37.8k | inline int NameList::_internal_names_size() const { |
14788 | 37.8k | return _impl_.names_.size(); |
14789 | 37.8k | } |
14790 | 37.8k | inline int NameList::names_size() const { |
14791 | 37.8k | return _internal_names_size(); |
14792 | 37.8k | } |
14793 | 0 | inline void NameList::clear_names() { |
14794 | 0 | _impl_.names_.Clear(); |
14795 | 0 | } |
14796 | 0 | inline ::lua_grammar::Name* NameList::mutable_names(int index) { |
14797 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.NameList.names) |
14798 | 0 | return _impl_.names_.Mutable(index); |
14799 | 0 | } |
14800 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >* |
14801 | 0 | NameList::mutable_names() { |
14802 | 0 | // @@protoc_insertion_point(field_mutable_list:lua_grammar.NameList.names) |
14803 | 0 | return &_impl_.names_; |
14804 | 0 | } |
14805 | 8.69k | inline const ::lua_grammar::Name& NameList::_internal_names(int index) const { |
14806 | 8.69k | return _impl_.names_.Get(index); |
14807 | 8.69k | } |
14808 | 8.69k | inline const ::lua_grammar::Name& NameList::names(int index) const { |
14809 | | // @@protoc_insertion_point(field_get:lua_grammar.NameList.names) |
14810 | 8.69k | return _internal_names(index); |
14811 | 8.69k | } |
14812 | 0 | inline ::lua_grammar::Name* NameList::_internal_add_names() { |
14813 | 0 | return _impl_.names_.Add(); |
14814 | 0 | } |
14815 | 0 | inline ::lua_grammar::Name* NameList::add_names() { |
14816 | 0 | ::lua_grammar::Name* _add = _internal_add_names(); |
14817 | 0 | // @@protoc_insertion_point(field_add:lua_grammar.NameList.names) |
14818 | 0 | return _add; |
14819 | 0 | } |
14820 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Name >& |
14821 | 0 | NameList::names() const { |
14822 | 0 | // @@protoc_insertion_point(field_list:lua_grammar.NameList.names) |
14823 | 0 | return _impl_.names_; |
14824 | 0 | } |
14825 | | |
14826 | | // ------------------------------------------------------------------- |
14827 | | |
14828 | | // LocalFunc |
14829 | | |
14830 | | // required .lua_grammar.Name name = 1; |
14831 | 1.97k | inline bool LocalFunc::_internal_has_name() const { |
14832 | 1.97k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
14833 | 1.97k | PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); |
14834 | 1.97k | return value; |
14835 | 1.97k | } |
14836 | 0 | inline bool LocalFunc::has_name() const { |
14837 | 0 | return _internal_has_name(); |
14838 | 0 | } |
14839 | 0 | inline void LocalFunc::clear_name() { |
14840 | 0 | if (_impl_.name_ != nullptr) _impl_.name_->Clear(); |
14841 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14842 | 0 | } |
14843 | 1.97k | inline const ::lua_grammar::Name& LocalFunc::_internal_name() const { |
14844 | 1.97k | const ::lua_grammar::Name* p = _impl_.name_; |
14845 | 1.97k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Name&>( |
14846 | 0 | ::lua_grammar::_Name_default_instance_); |
14847 | 1.97k | } |
14848 | 1.97k | inline const ::lua_grammar::Name& LocalFunc::name() const { |
14849 | | // @@protoc_insertion_point(field_get:lua_grammar.LocalFunc.name) |
14850 | 1.97k | return _internal_name(); |
14851 | 1.97k | } |
14852 | | inline void LocalFunc::unsafe_arena_set_allocated_name( |
14853 | 0 | ::lua_grammar::Name* name) { |
14854 | 0 | if (GetArenaForAllocation() == nullptr) { |
14855 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); |
14856 | 0 | } |
14857 | 0 | _impl_.name_ = name; |
14858 | 0 | if (name) { |
14859 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14860 | 0 | } else { |
14861 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14862 | 0 | } |
14863 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.LocalFunc.name) |
14864 | 0 | } |
14865 | 0 | inline ::lua_grammar::Name* LocalFunc::release_name() { |
14866 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14867 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
14868 | 0 | _impl_.name_ = nullptr; |
14869 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14870 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14871 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14872 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14873 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14874 | 0 | if (GetArenaForAllocation() != nullptr) { |
14875 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14876 | 0 | } |
14877 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14878 | 0 | return temp; |
14879 | 0 | } |
14880 | 0 | inline ::lua_grammar::Name* LocalFunc::unsafe_arena_release_name() { |
14881 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.LocalFunc.name) |
14882 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14883 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
14884 | 0 | _impl_.name_ = nullptr; |
14885 | 0 | return temp; |
14886 | 0 | } |
14887 | 0 | inline ::lua_grammar::Name* LocalFunc::_internal_mutable_name() { |
14888 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14889 | 0 | if (_impl_.name_ == nullptr) { |
14890 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Name>(GetArenaForAllocation()); |
14891 | 0 | _impl_.name_ = p; |
14892 | 0 | } |
14893 | 0 | return _impl_.name_; |
14894 | 0 | } |
14895 | 0 | inline ::lua_grammar::Name* LocalFunc::mutable_name() { |
14896 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_name(); |
14897 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.LocalFunc.name) |
14898 | 0 | return _msg; |
14899 | 0 | } |
14900 | 0 | inline void LocalFunc::set_allocated_name(::lua_grammar::Name* name) { |
14901 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14902 | 0 | if (message_arena == nullptr) { |
14903 | 0 | delete _impl_.name_; |
14904 | 0 | } |
14905 | 0 | if (name) { |
14906 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14907 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); |
14908 | 0 | if (message_arena != submessage_arena) { |
14909 | 0 | name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
14910 | 0 | message_arena, name, submessage_arena); |
14911 | 0 | } |
14912 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
14913 | 0 | } else { |
14914 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
14915 | 0 | } |
14916 | 0 | _impl_.name_ = name; |
14917 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.LocalFunc.name) |
14918 | 0 | } |
14919 | | |
14920 | | // required .lua_grammar.FuncBody funcbody = 2; |
14921 | 1.97k | inline bool LocalFunc::_internal_has_funcbody() const { |
14922 | 1.97k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
14923 | 1.97k | PROTOBUF_ASSUME(!value || _impl_.funcbody_ != nullptr); |
14924 | 1.97k | return value; |
14925 | 1.97k | } |
14926 | 0 | inline bool LocalFunc::has_funcbody() const { |
14927 | 0 | return _internal_has_funcbody(); |
14928 | 0 | } |
14929 | 0 | inline void LocalFunc::clear_funcbody() { |
14930 | 0 | if (_impl_.funcbody_ != nullptr) _impl_.funcbody_->Clear(); |
14931 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14932 | 0 | } |
14933 | 1.97k | inline const ::lua_grammar::FuncBody& LocalFunc::_internal_funcbody() const { |
14934 | 1.97k | const ::lua_grammar::FuncBody* p = _impl_.funcbody_; |
14935 | 1.97k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FuncBody&>( |
14936 | 0 | ::lua_grammar::_FuncBody_default_instance_); |
14937 | 1.97k | } |
14938 | 1.97k | inline const ::lua_grammar::FuncBody& LocalFunc::funcbody() const { |
14939 | | // @@protoc_insertion_point(field_get:lua_grammar.LocalFunc.funcbody) |
14940 | 1.97k | return _internal_funcbody(); |
14941 | 1.97k | } |
14942 | | inline void LocalFunc::unsafe_arena_set_allocated_funcbody( |
14943 | 0 | ::lua_grammar::FuncBody* funcbody) { |
14944 | 0 | if (GetArenaForAllocation() == nullptr) { |
14945 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.funcbody_); |
14946 | 0 | } |
14947 | 0 | _impl_.funcbody_ = funcbody; |
14948 | 0 | if (funcbody) { |
14949 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14950 | 0 | } else { |
14951 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14952 | 0 | } |
14953 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.LocalFunc.funcbody) |
14954 | 0 | } |
14955 | 0 | inline ::lua_grammar::FuncBody* LocalFunc::release_funcbody() { |
14956 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14957 | 0 | ::lua_grammar::FuncBody* temp = _impl_.funcbody_; |
14958 | 0 | _impl_.funcbody_ = nullptr; |
14959 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
14960 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
14961 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14962 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
14963 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
14964 | 0 | if (GetArenaForAllocation() != nullptr) { |
14965 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
14966 | 0 | } |
14967 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
14968 | 0 | return temp; |
14969 | 0 | } |
14970 | 0 | inline ::lua_grammar::FuncBody* LocalFunc::unsafe_arena_release_funcbody() { |
14971 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.LocalFunc.funcbody) |
14972 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
14973 | 0 | ::lua_grammar::FuncBody* temp = _impl_.funcbody_; |
14974 | 0 | _impl_.funcbody_ = nullptr; |
14975 | 0 | return temp; |
14976 | 0 | } |
14977 | 0 | inline ::lua_grammar::FuncBody* LocalFunc::_internal_mutable_funcbody() { |
14978 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
14979 | 0 | if (_impl_.funcbody_ == nullptr) { |
14980 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FuncBody>(GetArenaForAllocation()); |
14981 | 0 | _impl_.funcbody_ = p; |
14982 | 0 | } |
14983 | 0 | return _impl_.funcbody_; |
14984 | 0 | } |
14985 | 0 | inline ::lua_grammar::FuncBody* LocalFunc::mutable_funcbody() { |
14986 | 0 | ::lua_grammar::FuncBody* _msg = _internal_mutable_funcbody(); |
14987 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.LocalFunc.funcbody) |
14988 | 0 | return _msg; |
14989 | 0 | } |
14990 | 0 | inline void LocalFunc::set_allocated_funcbody(::lua_grammar::FuncBody* funcbody) { |
14991 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
14992 | 0 | if (message_arena == nullptr) { |
14993 | 0 | delete _impl_.funcbody_; |
14994 | 0 | } |
14995 | 0 | if (funcbody) { |
14996 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
14997 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(funcbody); |
14998 | 0 | if (message_arena != submessage_arena) { |
14999 | 0 | funcbody = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15000 | 0 | message_arena, funcbody, submessage_arena); |
15001 | 0 | } |
15002 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15003 | 0 | } else { |
15004 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15005 | 0 | } |
15006 | 0 | _impl_.funcbody_ = funcbody; |
15007 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.LocalFunc.funcbody) |
15008 | 0 | } |
15009 | | |
15010 | | // ------------------------------------------------------------------- |
15011 | | |
15012 | | // LocalNames |
15013 | | |
15014 | | // required .lua_grammar.NameList namelist = 1; |
15015 | 1.93k | inline bool LocalNames::_internal_has_namelist() const { |
15016 | 1.93k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
15017 | 1.93k | PROTOBUF_ASSUME(!value || _impl_.namelist_ != nullptr); |
15018 | 1.93k | return value; |
15019 | 1.93k | } |
15020 | 0 | inline bool LocalNames::has_namelist() const { |
15021 | 0 | return _internal_has_namelist(); |
15022 | 0 | } |
15023 | 0 | inline void LocalNames::clear_namelist() { |
15024 | 0 | if (_impl_.namelist_ != nullptr) _impl_.namelist_->Clear(); |
15025 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15026 | 0 | } |
15027 | 1.93k | inline const ::lua_grammar::NameList& LocalNames::_internal_namelist() const { |
15028 | 1.93k | const ::lua_grammar::NameList* p = _impl_.namelist_; |
15029 | 1.93k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::NameList&>( |
15030 | 0 | ::lua_grammar::_NameList_default_instance_); |
15031 | 1.93k | } |
15032 | 1.93k | inline const ::lua_grammar::NameList& LocalNames::namelist() const { |
15033 | | // @@protoc_insertion_point(field_get:lua_grammar.LocalNames.namelist) |
15034 | 1.93k | return _internal_namelist(); |
15035 | 1.93k | } |
15036 | | inline void LocalNames::unsafe_arena_set_allocated_namelist( |
15037 | 0 | ::lua_grammar::NameList* namelist) { |
15038 | 0 | if (GetArenaForAllocation() == nullptr) { |
15039 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.namelist_); |
15040 | 0 | } |
15041 | 0 | _impl_.namelist_ = namelist; |
15042 | 0 | if (namelist) { |
15043 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15044 | 0 | } else { |
15045 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15046 | 0 | } |
15047 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.LocalNames.namelist) |
15048 | 0 | } |
15049 | 0 | inline ::lua_grammar::NameList* LocalNames::release_namelist() { |
15050 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15051 | 0 | ::lua_grammar::NameList* temp = _impl_.namelist_; |
15052 | 0 | _impl_.namelist_ = nullptr; |
15053 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15054 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15055 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15056 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15057 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15058 | 0 | if (GetArenaForAllocation() != nullptr) { |
15059 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15060 | 0 | } |
15061 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15062 | 0 | return temp; |
15063 | 0 | } |
15064 | 0 | inline ::lua_grammar::NameList* LocalNames::unsafe_arena_release_namelist() { |
15065 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.LocalNames.namelist) |
15066 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15067 | 0 | ::lua_grammar::NameList* temp = _impl_.namelist_; |
15068 | 0 | _impl_.namelist_ = nullptr; |
15069 | 0 | return temp; |
15070 | 0 | } |
15071 | 0 | inline ::lua_grammar::NameList* LocalNames::_internal_mutable_namelist() { |
15072 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15073 | 0 | if (_impl_.namelist_ == nullptr) { |
15074 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::NameList>(GetArenaForAllocation()); |
15075 | 0 | _impl_.namelist_ = p; |
15076 | 0 | } |
15077 | 0 | return _impl_.namelist_; |
15078 | 0 | } |
15079 | 0 | inline ::lua_grammar::NameList* LocalNames::mutable_namelist() { |
15080 | 0 | ::lua_grammar::NameList* _msg = _internal_mutable_namelist(); |
15081 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.LocalNames.namelist) |
15082 | 0 | return _msg; |
15083 | 0 | } |
15084 | 0 | inline void LocalNames::set_allocated_namelist(::lua_grammar::NameList* namelist) { |
15085 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15086 | 0 | if (message_arena == nullptr) { |
15087 | 0 | delete _impl_.namelist_; |
15088 | 0 | } |
15089 | 0 | if (namelist) { |
15090 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15091 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(namelist); |
15092 | 0 | if (message_arena != submessage_arena) { |
15093 | 0 | namelist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15094 | 0 | message_arena, namelist, submessage_arena); |
15095 | 0 | } |
15096 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15097 | 0 | } else { |
15098 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15099 | 0 | } |
15100 | 0 | _impl_.namelist_ = namelist; |
15101 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.LocalNames.namelist) |
15102 | 0 | } |
15103 | | |
15104 | | // optional .lua_grammar.ExpressionList explist = 2; |
15105 | 3.86k | inline bool LocalNames::_internal_has_explist() const { |
15106 | 3.86k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
15107 | 3.86k | PROTOBUF_ASSUME(!value || _impl_.explist_ != nullptr); |
15108 | 3.86k | return value; |
15109 | 3.86k | } |
15110 | 1.93k | inline bool LocalNames::has_explist() const { |
15111 | 1.93k | return _internal_has_explist(); |
15112 | 1.93k | } |
15113 | 0 | inline void LocalNames::clear_explist() { |
15114 | 0 | if (_impl_.explist_ != nullptr) _impl_.explist_->Clear(); |
15115 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15116 | 0 | } |
15117 | 733 | inline const ::lua_grammar::ExpressionList& LocalNames::_internal_explist() const { |
15118 | 733 | const ::lua_grammar::ExpressionList* p = _impl_.explist_; |
15119 | 733 | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::ExpressionList&>( |
15120 | 0 | ::lua_grammar::_ExpressionList_default_instance_); |
15121 | 733 | } |
15122 | 733 | inline const ::lua_grammar::ExpressionList& LocalNames::explist() const { |
15123 | | // @@protoc_insertion_point(field_get:lua_grammar.LocalNames.explist) |
15124 | 733 | return _internal_explist(); |
15125 | 733 | } |
15126 | | inline void LocalNames::unsafe_arena_set_allocated_explist( |
15127 | 0 | ::lua_grammar::ExpressionList* explist) { |
15128 | 0 | if (GetArenaForAllocation() == nullptr) { |
15129 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.explist_); |
15130 | 0 | } |
15131 | 0 | _impl_.explist_ = explist; |
15132 | 0 | if (explist) { |
15133 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15134 | 0 | } else { |
15135 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15136 | 0 | } |
15137 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.LocalNames.explist) |
15138 | 0 | } |
15139 | 0 | inline ::lua_grammar::ExpressionList* LocalNames::release_explist() { |
15140 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15141 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
15142 | 0 | _impl_.explist_ = nullptr; |
15143 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15144 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15145 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15146 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15147 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15148 | 0 | if (GetArenaForAllocation() != nullptr) { |
15149 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15150 | 0 | } |
15151 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15152 | 0 | return temp; |
15153 | 0 | } |
15154 | 0 | inline ::lua_grammar::ExpressionList* LocalNames::unsafe_arena_release_explist() { |
15155 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.LocalNames.explist) |
15156 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15157 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
15158 | 0 | _impl_.explist_ = nullptr; |
15159 | 0 | return temp; |
15160 | 0 | } |
15161 | 0 | inline ::lua_grammar::ExpressionList* LocalNames::_internal_mutable_explist() { |
15162 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15163 | 0 | if (_impl_.explist_ == nullptr) { |
15164 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::ExpressionList>(GetArenaForAllocation()); |
15165 | 0 | _impl_.explist_ = p; |
15166 | 0 | } |
15167 | 0 | return _impl_.explist_; |
15168 | 0 | } |
15169 | 0 | inline ::lua_grammar::ExpressionList* LocalNames::mutable_explist() { |
15170 | 0 | ::lua_grammar::ExpressionList* _msg = _internal_mutable_explist(); |
15171 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.LocalNames.explist) |
15172 | 0 | return _msg; |
15173 | 0 | } |
15174 | 0 | inline void LocalNames::set_allocated_explist(::lua_grammar::ExpressionList* explist) { |
15175 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15176 | 0 | if (message_arena == nullptr) { |
15177 | 0 | delete _impl_.explist_; |
15178 | 0 | } |
15179 | 0 | if (explist) { |
15180 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15181 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(explist); |
15182 | 0 | if (message_arena != submessage_arena) { |
15183 | 0 | explist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15184 | 0 | message_arena, explist, submessage_arena); |
15185 | 0 | } |
15186 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15187 | 0 | } else { |
15188 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15189 | 0 | } |
15190 | 0 | _impl_.explist_ = explist; |
15191 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.LocalNames.explist) |
15192 | 0 | } |
15193 | | |
15194 | | // ------------------------------------------------------------------- |
15195 | | |
15196 | | // LastStatement_ReturnOptionalExpressionList |
15197 | | |
15198 | | // optional .lua_grammar.ExpressionList explist = 1; |
15199 | 7.62k | inline bool LastStatement_ReturnOptionalExpressionList::_internal_has_explist() const { |
15200 | 7.62k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
15201 | 7.62k | PROTOBUF_ASSUME(!value || _impl_.explist_ != nullptr); |
15202 | 7.62k | return value; |
15203 | 7.62k | } |
15204 | 4.11k | inline bool LastStatement_ReturnOptionalExpressionList::has_explist() const { |
15205 | 4.11k | return _internal_has_explist(); |
15206 | 4.11k | } |
15207 | 0 | inline void LastStatement_ReturnOptionalExpressionList::clear_explist() { |
15208 | 0 | if (_impl_.explist_ != nullptr) _impl_.explist_->Clear(); |
15209 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15210 | 0 | } |
15211 | 2.55k | inline const ::lua_grammar::ExpressionList& LastStatement_ReturnOptionalExpressionList::_internal_explist() const { |
15212 | 2.55k | const ::lua_grammar::ExpressionList* p = _impl_.explist_; |
15213 | 2.55k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::ExpressionList&>( |
15214 | 0 | ::lua_grammar::_ExpressionList_default_instance_); |
15215 | 2.55k | } |
15216 | 2.55k | inline const ::lua_grammar::ExpressionList& LastStatement_ReturnOptionalExpressionList::explist() const { |
15217 | | // @@protoc_insertion_point(field_get:lua_grammar.LastStatement.ReturnOptionalExpressionList.explist) |
15218 | 2.55k | return _internal_explist(); |
15219 | 2.55k | } |
15220 | | inline void LastStatement_ReturnOptionalExpressionList::unsafe_arena_set_allocated_explist( |
15221 | 0 | ::lua_grammar::ExpressionList* explist) { |
15222 | 0 | if (GetArenaForAllocation() == nullptr) { |
15223 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.explist_); |
15224 | 0 | } |
15225 | 0 | _impl_.explist_ = explist; |
15226 | 0 | if (explist) { |
15227 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15228 | 0 | } else { |
15229 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15230 | 0 | } |
15231 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.LastStatement.ReturnOptionalExpressionList.explist) |
15232 | 0 | } |
15233 | 0 | inline ::lua_grammar::ExpressionList* LastStatement_ReturnOptionalExpressionList::release_explist() { |
15234 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15235 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
15236 | 0 | _impl_.explist_ = nullptr; |
15237 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15238 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15239 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15240 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15241 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15242 | 0 | if (GetArenaForAllocation() != nullptr) { |
15243 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15244 | 0 | } |
15245 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15246 | 0 | return temp; |
15247 | 0 | } |
15248 | 0 | inline ::lua_grammar::ExpressionList* LastStatement_ReturnOptionalExpressionList::unsafe_arena_release_explist() { |
15249 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.LastStatement.ReturnOptionalExpressionList.explist) |
15250 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15251 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
15252 | 0 | _impl_.explist_ = nullptr; |
15253 | 0 | return temp; |
15254 | 0 | } |
15255 | 0 | inline ::lua_grammar::ExpressionList* LastStatement_ReturnOptionalExpressionList::_internal_mutable_explist() { |
15256 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15257 | 0 | if (_impl_.explist_ == nullptr) { |
15258 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::ExpressionList>(GetArenaForAllocation()); |
15259 | 0 | _impl_.explist_ = p; |
15260 | 0 | } |
15261 | 0 | return _impl_.explist_; |
15262 | 0 | } |
15263 | 0 | inline ::lua_grammar::ExpressionList* LastStatement_ReturnOptionalExpressionList::mutable_explist() { |
15264 | 0 | ::lua_grammar::ExpressionList* _msg = _internal_mutable_explist(); |
15265 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.LastStatement.ReturnOptionalExpressionList.explist) |
15266 | 0 | return _msg; |
15267 | 0 | } |
15268 | 0 | inline void LastStatement_ReturnOptionalExpressionList::set_allocated_explist(::lua_grammar::ExpressionList* explist) { |
15269 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15270 | 0 | if (message_arena == nullptr) { |
15271 | 0 | delete _impl_.explist_; |
15272 | 0 | } |
15273 | 0 | if (explist) { |
15274 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15275 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(explist); |
15276 | 0 | if (message_arena != submessage_arena) { |
15277 | 0 | explist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15278 | 0 | message_arena, explist, submessage_arena); |
15279 | 0 | } |
15280 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15281 | 0 | } else { |
15282 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15283 | 0 | } |
15284 | 0 | _impl_.explist_ = explist; |
15285 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.LastStatement.ReturnOptionalExpressionList.explist) |
15286 | 0 | } |
15287 | | |
15288 | | // ------------------------------------------------------------------- |
15289 | | |
15290 | | // LastStatement |
15291 | | |
15292 | | // .lua_grammar.LastStatement.ReturnOptionalExpressionList explist = 1; |
15293 | 9.23k | inline bool LastStatement::_internal_has_explist() const { |
15294 | 9.23k | return last_oneof_case() == kExplist; |
15295 | 9.23k | } |
15296 | 0 | inline bool LastStatement::has_explist() const { |
15297 | 0 | return _internal_has_explist(); |
15298 | 0 | } |
15299 | 0 | inline void LastStatement::set_has_explist() { |
15300 | 0 | _impl_._oneof_case_[0] = kExplist; |
15301 | 0 | } |
15302 | 0 | inline void LastStatement::clear_explist() { |
15303 | 0 | if (_internal_has_explist()) { |
15304 | 0 | if (GetArenaForAllocation() == nullptr) { |
15305 | 0 | delete _impl_.last_oneof_.explist_; |
15306 | 0 | } |
15307 | 0 | clear_has_last_oneof(); |
15308 | 0 | } |
15309 | 0 | } |
15310 | 0 | inline ::lua_grammar::LastStatement_ReturnOptionalExpressionList* LastStatement::release_explist() { |
15311 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.LastStatement.explist) |
15312 | 0 | if (_internal_has_explist()) { |
15313 | 0 | clear_has_last_oneof(); |
15314 | 0 | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* temp = _impl_.last_oneof_.explist_; |
15315 | 0 | if (GetArenaForAllocation() != nullptr) { |
15316 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15317 | 0 | } |
15318 | 0 | _impl_.last_oneof_.explist_ = nullptr; |
15319 | 0 | return temp; |
15320 | 0 | } else { |
15321 | 0 | return nullptr; |
15322 | 0 | } |
15323 | 0 | } |
15324 | 5.73k | inline const ::lua_grammar::LastStatement_ReturnOptionalExpressionList& LastStatement::_internal_explist() const { |
15325 | 5.73k | return _internal_has_explist() |
15326 | 5.73k | ? *_impl_.last_oneof_.explist_ |
15327 | 5.73k | : reinterpret_cast< ::lua_grammar::LastStatement_ReturnOptionalExpressionList&>(::lua_grammar::_LastStatement_ReturnOptionalExpressionList_default_instance_); |
15328 | 5.73k | } |
15329 | 5.73k | inline const ::lua_grammar::LastStatement_ReturnOptionalExpressionList& LastStatement::explist() const { |
15330 | | // @@protoc_insertion_point(field_get:lua_grammar.LastStatement.explist) |
15331 | 5.73k | return _internal_explist(); |
15332 | 5.73k | } |
15333 | 0 | inline ::lua_grammar::LastStatement_ReturnOptionalExpressionList* LastStatement::unsafe_arena_release_explist() { |
15334 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.LastStatement.explist) |
15335 | 0 | if (_internal_has_explist()) { |
15336 | 0 | clear_has_last_oneof(); |
15337 | 0 | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* temp = _impl_.last_oneof_.explist_; |
15338 | 0 | _impl_.last_oneof_.explist_ = nullptr; |
15339 | 0 | return temp; |
15340 | 0 | } else { |
15341 | 0 | return nullptr; |
15342 | 0 | } |
15343 | 0 | } |
15344 | 0 | inline void LastStatement::unsafe_arena_set_allocated_explist(::lua_grammar::LastStatement_ReturnOptionalExpressionList* explist) { |
15345 | 0 | clear_last_oneof(); |
15346 | 0 | if (explist) { |
15347 | 0 | set_has_explist(); |
15348 | 0 | _impl_.last_oneof_.explist_ = explist; |
15349 | 0 | } |
15350 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.LastStatement.explist) |
15351 | 0 | } |
15352 | 0 | inline ::lua_grammar::LastStatement_ReturnOptionalExpressionList* LastStatement::_internal_mutable_explist() { |
15353 | 0 | if (!_internal_has_explist()) { |
15354 | 0 | clear_last_oneof(); |
15355 | 0 | set_has_explist(); |
15356 | 0 | _impl_.last_oneof_.explist_ = CreateMaybeMessage< ::lua_grammar::LastStatement_ReturnOptionalExpressionList >(GetArenaForAllocation()); |
15357 | 0 | } |
15358 | 0 | return _impl_.last_oneof_.explist_; |
15359 | 0 | } |
15360 | 0 | inline ::lua_grammar::LastStatement_ReturnOptionalExpressionList* LastStatement::mutable_explist() { |
15361 | 0 | ::lua_grammar::LastStatement_ReturnOptionalExpressionList* _msg = _internal_mutable_explist(); |
15362 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.LastStatement.explist) |
15363 | 0 | return _msg; |
15364 | 0 | } |
15365 | | |
15366 | | // uint32 break = 2; |
15367 | 0 | inline bool LastStatement::_internal_has_break_() const { |
15368 | 0 | return last_oneof_case() == kBreak; |
15369 | 0 | } |
15370 | 0 | inline bool LastStatement::has_break_() const { |
15371 | 0 | return _internal_has_break_(); |
15372 | 0 | } |
15373 | 0 | inline void LastStatement::set_has_break_() { |
15374 | 0 | _impl_._oneof_case_[0] = kBreak; |
15375 | 0 | } |
15376 | 0 | inline void LastStatement::clear_break_() { |
15377 | 0 | if (_internal_has_break_()) { |
15378 | 0 | _impl_.last_oneof_.break__ = 0u; |
15379 | 0 | clear_has_last_oneof(); |
15380 | 0 | } |
15381 | 0 | } |
15382 | 0 | inline uint32_t LastStatement::_internal_break_() const { |
15383 | 0 | if (_internal_has_break_()) { |
15384 | 0 | return _impl_.last_oneof_.break__; |
15385 | 0 | } |
15386 | 0 | return 0u; |
15387 | 0 | } |
15388 | 0 | inline void LastStatement::_internal_set_break_(uint32_t value) { |
15389 | 0 | if (!_internal_has_break_()) { |
15390 | 0 | clear_last_oneof(); |
15391 | 0 | set_has_break_(); |
15392 | 0 | } |
15393 | 0 | _impl_.last_oneof_.break__ = value; |
15394 | 0 | } |
15395 | 0 | inline uint32_t LastStatement::break_() const { |
15396 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.LastStatement.break) |
15397 | 0 | return _internal_break_(); |
15398 | 0 | } |
15399 | 0 | inline void LastStatement::set_break_(uint32_t value) { |
15400 | 0 | _internal_set_break_(value); |
15401 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.LastStatement.break) |
15402 | 0 | } |
15403 | | |
15404 | | // optional bool semicolon = 3; |
15405 | 4.75k | inline bool LastStatement::_internal_has_semicolon() const { |
15406 | 4.75k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
15407 | 4.75k | return value; |
15408 | 4.75k | } |
15409 | 4.75k | inline bool LastStatement::has_semicolon() const { |
15410 | 4.75k | return _internal_has_semicolon(); |
15411 | 4.75k | } |
15412 | 0 | inline void LastStatement::clear_semicolon() { |
15413 | 0 | _impl_.semicolon_ = false; |
15414 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15415 | 0 | } |
15416 | 0 | inline bool LastStatement::_internal_semicolon() const { |
15417 | 0 | return _impl_.semicolon_; |
15418 | 0 | } |
15419 | 0 | inline bool LastStatement::semicolon() const { |
15420 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.LastStatement.semicolon) |
15421 | 0 | return _internal_semicolon(); |
15422 | 0 | } |
15423 | 0 | inline void LastStatement::_internal_set_semicolon(bool value) { |
15424 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15425 | 0 | _impl_.semicolon_ = value; |
15426 | 0 | } |
15427 | 0 | inline void LastStatement::set_semicolon(bool value) { |
15428 | 0 | _internal_set_semicolon(value); |
15429 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.LastStatement.semicolon) |
15430 | 0 | } |
15431 | | |
15432 | 7.34k | inline bool LastStatement::has_last_oneof() const { |
15433 | 7.34k | return last_oneof_case() != LAST_ONEOF_NOT_SET; |
15434 | 7.34k | } |
15435 | 7.34k | inline void LastStatement::clear_has_last_oneof() { |
15436 | 7.34k | _impl_._oneof_case_[0] = LAST_ONEOF_NOT_SET; |
15437 | 7.34k | } |
15438 | 35.6k | inline LastStatement::LastOneofCase LastStatement::last_oneof_case() const { |
15439 | 35.6k | return LastStatement::LastOneofCase(_impl_._oneof_case_[0]); |
15440 | 35.6k | } |
15441 | | // ------------------------------------------------------------------- |
15442 | | |
15443 | | // ExpressionList |
15444 | | |
15445 | | // repeated .lua_grammar.Expression expressions = 1; |
15446 | 69.7k | inline int ExpressionList::_internal_expressions_size() const { |
15447 | 69.7k | return _impl_.expressions_.size(); |
15448 | 69.7k | } |
15449 | 69.7k | inline int ExpressionList::expressions_size() const { |
15450 | 69.7k | return _internal_expressions_size(); |
15451 | 69.7k | } |
15452 | 0 | inline void ExpressionList::clear_expressions() { |
15453 | 0 | _impl_.expressions_.Clear(); |
15454 | 0 | } |
15455 | 0 | inline ::lua_grammar::Expression* ExpressionList::mutable_expressions(int index) { |
15456 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ExpressionList.expressions) |
15457 | 0 | return _impl_.expressions_.Mutable(index); |
15458 | 0 | } |
15459 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Expression >* |
15460 | 0 | ExpressionList::mutable_expressions() { |
15461 | 0 | // @@protoc_insertion_point(field_mutable_list:lua_grammar.ExpressionList.expressions) |
15462 | 0 | return &_impl_.expressions_; |
15463 | 0 | } |
15464 | 23.4k | inline const ::lua_grammar::Expression& ExpressionList::_internal_expressions(int index) const { |
15465 | 23.4k | return _impl_.expressions_.Get(index); |
15466 | 23.4k | } |
15467 | 23.4k | inline const ::lua_grammar::Expression& ExpressionList::expressions(int index) const { |
15468 | | // @@protoc_insertion_point(field_get:lua_grammar.ExpressionList.expressions) |
15469 | 23.4k | return _internal_expressions(index); |
15470 | 23.4k | } |
15471 | 0 | inline ::lua_grammar::Expression* ExpressionList::_internal_add_expressions() { |
15472 | 0 | return _impl_.expressions_.Add(); |
15473 | 0 | } |
15474 | 0 | inline ::lua_grammar::Expression* ExpressionList::add_expressions() { |
15475 | 0 | ::lua_grammar::Expression* _add = _internal_add_expressions(); |
15476 | 0 | // @@protoc_insertion_point(field_add:lua_grammar.ExpressionList.expressions) |
15477 | 0 | return _add; |
15478 | 0 | } |
15479 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::Expression >& |
15480 | 0 | ExpressionList::expressions() const { |
15481 | 0 | // @@protoc_insertion_point(field_list:lua_grammar.ExpressionList.expressions) |
15482 | 0 | return _impl_.expressions_; |
15483 | 0 | } |
15484 | | |
15485 | | // required .lua_grammar.Expression explast = 2; |
15486 | 35.7k | inline bool ExpressionList::_internal_has_explast() const { |
15487 | 35.7k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
15488 | 35.7k | PROTOBUF_ASSUME(!value || _impl_.explast_ != nullptr); |
15489 | 35.7k | return value; |
15490 | 35.7k | } |
15491 | 0 | inline bool ExpressionList::has_explast() const { |
15492 | 0 | return _internal_has_explast(); |
15493 | 0 | } |
15494 | 0 | inline void ExpressionList::clear_explast() { |
15495 | 0 | if (_impl_.explast_ != nullptr) _impl_.explast_->Clear(); |
15496 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15497 | 0 | } |
15498 | 46.3k | inline const ::lua_grammar::Expression& ExpressionList::_internal_explast() const { |
15499 | 46.3k | const ::lua_grammar::Expression* p = _impl_.explast_; |
15500 | 46.3k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
15501 | 11.7k | ::lua_grammar::_Expression_default_instance_); |
15502 | 46.3k | } |
15503 | 46.3k | inline const ::lua_grammar::Expression& ExpressionList::explast() const { |
15504 | | // @@protoc_insertion_point(field_get:lua_grammar.ExpressionList.explast) |
15505 | 46.3k | return _internal_explast(); |
15506 | 46.3k | } |
15507 | | inline void ExpressionList::unsafe_arena_set_allocated_explast( |
15508 | 0 | ::lua_grammar::Expression* explast) { |
15509 | 0 | if (GetArenaForAllocation() == nullptr) { |
15510 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.explast_); |
15511 | 0 | } |
15512 | 0 | _impl_.explast_ = explast; |
15513 | 0 | if (explast) { |
15514 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15515 | 0 | } else { |
15516 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15517 | 0 | } |
15518 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.ExpressionList.explast) |
15519 | 0 | } |
15520 | 0 | inline ::lua_grammar::Expression* ExpressionList::release_explast() { |
15521 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15522 | 0 | ::lua_grammar::Expression* temp = _impl_.explast_; |
15523 | 0 | _impl_.explast_ = nullptr; |
15524 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15525 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15526 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15527 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15528 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15529 | 0 | if (GetArenaForAllocation() != nullptr) { |
15530 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15531 | 0 | } |
15532 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15533 | 0 | return temp; |
15534 | 0 | } |
15535 | 0 | inline ::lua_grammar::Expression* ExpressionList::unsafe_arena_release_explast() { |
15536 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.ExpressionList.explast) |
15537 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15538 | 0 | ::lua_grammar::Expression* temp = _impl_.explast_; |
15539 | 0 | _impl_.explast_ = nullptr; |
15540 | 0 | return temp; |
15541 | 0 | } |
15542 | 0 | inline ::lua_grammar::Expression* ExpressionList::_internal_mutable_explast() { |
15543 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15544 | 0 | if (_impl_.explast_ == nullptr) { |
15545 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
15546 | 0 | _impl_.explast_ = p; |
15547 | 0 | } |
15548 | 0 | return _impl_.explast_; |
15549 | 0 | } |
15550 | 0 | inline ::lua_grammar::Expression* ExpressionList::mutable_explast() { |
15551 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_explast(); |
15552 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.ExpressionList.explast) |
15553 | 0 | return _msg; |
15554 | 0 | } |
15555 | 0 | inline void ExpressionList::set_allocated_explast(::lua_grammar::Expression* explast) { |
15556 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15557 | 0 | if (message_arena == nullptr) { |
15558 | 0 | delete _impl_.explast_; |
15559 | 0 | } |
15560 | 0 | if (explast) { |
15561 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15562 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(explast); |
15563 | 0 | if (message_arena != submessage_arena) { |
15564 | 0 | explast = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15565 | 0 | message_arena, explast, submessage_arena); |
15566 | 0 | } |
15567 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15568 | 0 | } else { |
15569 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15570 | 0 | } |
15571 | 0 | _impl_.explast_ = explast; |
15572 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.ExpressionList.explast) |
15573 | 0 | } |
15574 | | |
15575 | | // ------------------------------------------------------------------- |
15576 | | |
15577 | | // OptionalExpressionList |
15578 | | |
15579 | | // optional .lua_grammar.ExpressionList explist = 1; |
15580 | 5.72k | inline bool OptionalExpressionList::_internal_has_explist() const { |
15581 | 5.72k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
15582 | 5.72k | PROTOBUF_ASSUME(!value || _impl_.explist_ != nullptr); |
15583 | 5.72k | return value; |
15584 | 5.72k | } |
15585 | 2.85k | inline bool OptionalExpressionList::has_explist() const { |
15586 | 2.85k | return _internal_has_explist(); |
15587 | 2.85k | } |
15588 | 0 | inline void OptionalExpressionList::clear_explist() { |
15589 | 0 | if (_impl_.explist_ != nullptr) _impl_.explist_->Clear(); |
15590 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15591 | 0 | } |
15592 | 2.60k | inline const ::lua_grammar::ExpressionList& OptionalExpressionList::_internal_explist() const { |
15593 | 2.60k | const ::lua_grammar::ExpressionList* p = _impl_.explist_; |
15594 | 2.60k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::ExpressionList&>( |
15595 | 0 | ::lua_grammar::_ExpressionList_default_instance_); |
15596 | 2.60k | } |
15597 | 2.60k | inline const ::lua_grammar::ExpressionList& OptionalExpressionList::explist() const { |
15598 | | // @@protoc_insertion_point(field_get:lua_grammar.OptionalExpressionList.explist) |
15599 | 2.60k | return _internal_explist(); |
15600 | 2.60k | } |
15601 | | inline void OptionalExpressionList::unsafe_arena_set_allocated_explist( |
15602 | 0 | ::lua_grammar::ExpressionList* explist) { |
15603 | 0 | if (GetArenaForAllocation() == nullptr) { |
15604 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.explist_); |
15605 | 0 | } |
15606 | 0 | _impl_.explist_ = explist; |
15607 | 0 | if (explist) { |
15608 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15609 | 0 | } else { |
15610 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15611 | 0 | } |
15612 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.OptionalExpressionList.explist) |
15613 | 0 | } |
15614 | 0 | inline ::lua_grammar::ExpressionList* OptionalExpressionList::release_explist() { |
15615 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15616 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
15617 | 0 | _impl_.explist_ = nullptr; |
15618 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15619 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15620 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15621 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15622 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15623 | 0 | if (GetArenaForAllocation() != nullptr) { |
15624 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15625 | 0 | } |
15626 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15627 | 0 | return temp; |
15628 | 0 | } |
15629 | 0 | inline ::lua_grammar::ExpressionList* OptionalExpressionList::unsafe_arena_release_explist() { |
15630 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.OptionalExpressionList.explist) |
15631 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15632 | 0 | ::lua_grammar::ExpressionList* temp = _impl_.explist_; |
15633 | 0 | _impl_.explist_ = nullptr; |
15634 | 0 | return temp; |
15635 | 0 | } |
15636 | 0 | inline ::lua_grammar::ExpressionList* OptionalExpressionList::_internal_mutable_explist() { |
15637 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15638 | 0 | if (_impl_.explist_ == nullptr) { |
15639 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::ExpressionList>(GetArenaForAllocation()); |
15640 | 0 | _impl_.explist_ = p; |
15641 | 0 | } |
15642 | 0 | return _impl_.explist_; |
15643 | 0 | } |
15644 | 0 | inline ::lua_grammar::ExpressionList* OptionalExpressionList::mutable_explist() { |
15645 | 0 | ::lua_grammar::ExpressionList* _msg = _internal_mutable_explist(); |
15646 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.OptionalExpressionList.explist) |
15647 | 0 | return _msg; |
15648 | 0 | } |
15649 | 0 | inline void OptionalExpressionList::set_allocated_explist(::lua_grammar::ExpressionList* explist) { |
15650 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15651 | 0 | if (message_arena == nullptr) { |
15652 | 0 | delete _impl_.explist_; |
15653 | 0 | } |
15654 | 0 | if (explist) { |
15655 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15656 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(explist); |
15657 | 0 | if (message_arena != submessage_arena) { |
15658 | 0 | explist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15659 | 0 | message_arena, explist, submessage_arena); |
15660 | 0 | } |
15661 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15662 | 0 | } else { |
15663 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15664 | 0 | } |
15665 | 0 | _impl_.explist_ = explist; |
15666 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.OptionalExpressionList.explist) |
15667 | 0 | } |
15668 | | |
15669 | | // ------------------------------------------------------------------- |
15670 | | |
15671 | | // Variable_IndexWithExpression |
15672 | | |
15673 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
15674 | 4.14k | inline bool Variable_IndexWithExpression::_internal_has_prefixexp() const { |
15675 | 4.14k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
15676 | 4.14k | PROTOBUF_ASSUME(!value || _impl_.prefixexp_ != nullptr); |
15677 | 4.14k | return value; |
15678 | 4.14k | } |
15679 | 0 | inline bool Variable_IndexWithExpression::has_prefixexp() const { |
15680 | 0 | return _internal_has_prefixexp(); |
15681 | 0 | } |
15682 | 0 | inline void Variable_IndexWithExpression::clear_prefixexp() { |
15683 | 0 | if (_impl_.prefixexp_ != nullptr) _impl_.prefixexp_->Clear(); |
15684 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15685 | 0 | } |
15686 | 4.09k | inline const ::lua_grammar::PrefixExpression& Variable_IndexWithExpression::_internal_prefixexp() const { |
15687 | 4.09k | const ::lua_grammar::PrefixExpression* p = _impl_.prefixexp_; |
15688 | 4.09k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::PrefixExpression&>( |
15689 | 0 | ::lua_grammar::_PrefixExpression_default_instance_); |
15690 | 4.09k | } |
15691 | 4.09k | inline const ::lua_grammar::PrefixExpression& Variable_IndexWithExpression::prefixexp() const { |
15692 | | // @@protoc_insertion_point(field_get:lua_grammar.Variable.IndexWithExpression.prefixexp) |
15693 | 4.09k | return _internal_prefixexp(); |
15694 | 4.09k | } |
15695 | | inline void Variable_IndexWithExpression::unsafe_arena_set_allocated_prefixexp( |
15696 | 0 | ::lua_grammar::PrefixExpression* prefixexp) { |
15697 | 0 | if (GetArenaForAllocation() == nullptr) { |
15698 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prefixexp_); |
15699 | 0 | } |
15700 | 0 | _impl_.prefixexp_ = prefixexp; |
15701 | 0 | if (prefixexp) { |
15702 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15703 | 0 | } else { |
15704 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15705 | 0 | } |
15706 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Variable.IndexWithExpression.prefixexp) |
15707 | 0 | } |
15708 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithExpression::release_prefixexp() { |
15709 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15710 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
15711 | 0 | _impl_.prefixexp_ = nullptr; |
15712 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15713 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15714 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15715 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15716 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15717 | 0 | if (GetArenaForAllocation() != nullptr) { |
15718 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15719 | 0 | } |
15720 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15721 | 0 | return temp; |
15722 | 0 | } |
15723 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithExpression::unsafe_arena_release_prefixexp() { |
15724 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Variable.IndexWithExpression.prefixexp) |
15725 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15726 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
15727 | 0 | _impl_.prefixexp_ = nullptr; |
15728 | 0 | return temp; |
15729 | 0 | } |
15730 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithExpression::_internal_mutable_prefixexp() { |
15731 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15732 | 0 | if (_impl_.prefixexp_ == nullptr) { |
15733 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::PrefixExpression>(GetArenaForAllocation()); |
15734 | 0 | _impl_.prefixexp_ = p; |
15735 | 0 | } |
15736 | 0 | return _impl_.prefixexp_; |
15737 | 0 | } |
15738 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithExpression::mutable_prefixexp() { |
15739 | 0 | ::lua_grammar::PrefixExpression* _msg = _internal_mutable_prefixexp(); |
15740 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Variable.IndexWithExpression.prefixexp) |
15741 | 0 | return _msg; |
15742 | 0 | } |
15743 | 0 | inline void Variable_IndexWithExpression::set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp) { |
15744 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15745 | 0 | if (message_arena == nullptr) { |
15746 | 0 | delete _impl_.prefixexp_; |
15747 | 0 | } |
15748 | 0 | if (prefixexp) { |
15749 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15750 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prefixexp); |
15751 | 0 | if (message_arena != submessage_arena) { |
15752 | 0 | prefixexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15753 | 0 | message_arena, prefixexp, submessage_arena); |
15754 | 0 | } |
15755 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15756 | 0 | } else { |
15757 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15758 | 0 | } |
15759 | 0 | _impl_.prefixexp_ = prefixexp; |
15760 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Variable.IndexWithExpression.prefixexp) |
15761 | 0 | } |
15762 | | |
15763 | | // required .lua_grammar.Expression exp = 2; |
15764 | 4.14k | inline bool Variable_IndexWithExpression::_internal_has_exp() const { |
15765 | 4.14k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
15766 | 4.14k | PROTOBUF_ASSUME(!value || _impl_.exp_ != nullptr); |
15767 | 4.14k | return value; |
15768 | 4.14k | } |
15769 | 0 | inline bool Variable_IndexWithExpression::has_exp() const { |
15770 | 0 | return _internal_has_exp(); |
15771 | 0 | } |
15772 | 0 | inline void Variable_IndexWithExpression::clear_exp() { |
15773 | 0 | if (_impl_.exp_ != nullptr) _impl_.exp_->Clear(); |
15774 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15775 | 0 | } |
15776 | 4.09k | inline const ::lua_grammar::Expression& Variable_IndexWithExpression::_internal_exp() const { |
15777 | 4.09k | const ::lua_grammar::Expression* p = _impl_.exp_; |
15778 | 4.09k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
15779 | 0 | ::lua_grammar::_Expression_default_instance_); |
15780 | 4.09k | } |
15781 | 4.09k | inline const ::lua_grammar::Expression& Variable_IndexWithExpression::exp() const { |
15782 | | // @@protoc_insertion_point(field_get:lua_grammar.Variable.IndexWithExpression.exp) |
15783 | 4.09k | return _internal_exp(); |
15784 | 4.09k | } |
15785 | | inline void Variable_IndexWithExpression::unsafe_arena_set_allocated_exp( |
15786 | 0 | ::lua_grammar::Expression* exp) { |
15787 | 0 | if (GetArenaForAllocation() == nullptr) { |
15788 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.exp_); |
15789 | 0 | } |
15790 | 0 | _impl_.exp_ = exp; |
15791 | 0 | if (exp) { |
15792 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15793 | 0 | } else { |
15794 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15795 | 0 | } |
15796 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Variable.IndexWithExpression.exp) |
15797 | 0 | } |
15798 | 0 | inline ::lua_grammar::Expression* Variable_IndexWithExpression::release_exp() { |
15799 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15800 | 0 | ::lua_grammar::Expression* temp = _impl_.exp_; |
15801 | 0 | _impl_.exp_ = nullptr; |
15802 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15803 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15804 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15805 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15806 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15807 | 0 | if (GetArenaForAllocation() != nullptr) { |
15808 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15809 | 0 | } |
15810 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15811 | 0 | return temp; |
15812 | 0 | } |
15813 | 0 | inline ::lua_grammar::Expression* Variable_IndexWithExpression::unsafe_arena_release_exp() { |
15814 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Variable.IndexWithExpression.exp) |
15815 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15816 | 0 | ::lua_grammar::Expression* temp = _impl_.exp_; |
15817 | 0 | _impl_.exp_ = nullptr; |
15818 | 0 | return temp; |
15819 | 0 | } |
15820 | 0 | inline ::lua_grammar::Expression* Variable_IndexWithExpression::_internal_mutable_exp() { |
15821 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15822 | 0 | if (_impl_.exp_ == nullptr) { |
15823 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
15824 | 0 | _impl_.exp_ = p; |
15825 | 0 | } |
15826 | 0 | return _impl_.exp_; |
15827 | 0 | } |
15828 | 0 | inline ::lua_grammar::Expression* Variable_IndexWithExpression::mutable_exp() { |
15829 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_exp(); |
15830 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Variable.IndexWithExpression.exp) |
15831 | 0 | return _msg; |
15832 | 0 | } |
15833 | 0 | inline void Variable_IndexWithExpression::set_allocated_exp(::lua_grammar::Expression* exp) { |
15834 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15835 | 0 | if (message_arena == nullptr) { |
15836 | 0 | delete _impl_.exp_; |
15837 | 0 | } |
15838 | 0 | if (exp) { |
15839 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15840 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(exp); |
15841 | 0 | if (message_arena != submessage_arena) { |
15842 | 0 | exp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15843 | 0 | message_arena, exp, submessage_arena); |
15844 | 0 | } |
15845 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15846 | 0 | } else { |
15847 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15848 | 0 | } |
15849 | 0 | _impl_.exp_ = exp; |
15850 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Variable.IndexWithExpression.exp) |
15851 | 0 | } |
15852 | | |
15853 | | // ------------------------------------------------------------------- |
15854 | | |
15855 | | // Variable_IndexWithName |
15856 | | |
15857 | | // required .lua_grammar.PrefixExpression prefixexp = 1; |
15858 | 3.91k | inline bool Variable_IndexWithName::_internal_has_prefixexp() const { |
15859 | 3.91k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
15860 | 3.91k | PROTOBUF_ASSUME(!value || _impl_.prefixexp_ != nullptr); |
15861 | 3.91k | return value; |
15862 | 3.91k | } |
15863 | 0 | inline bool Variable_IndexWithName::has_prefixexp() const { |
15864 | 0 | return _internal_has_prefixexp(); |
15865 | 0 | } |
15866 | 0 | inline void Variable_IndexWithName::clear_prefixexp() { |
15867 | 0 | if (_impl_.prefixexp_ != nullptr) _impl_.prefixexp_->Clear(); |
15868 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15869 | 0 | } |
15870 | 3.89k | inline const ::lua_grammar::PrefixExpression& Variable_IndexWithName::_internal_prefixexp() const { |
15871 | 3.89k | const ::lua_grammar::PrefixExpression* p = _impl_.prefixexp_; |
15872 | 3.89k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::PrefixExpression&>( |
15873 | 0 | ::lua_grammar::_PrefixExpression_default_instance_); |
15874 | 3.89k | } |
15875 | 3.89k | inline const ::lua_grammar::PrefixExpression& Variable_IndexWithName::prefixexp() const { |
15876 | | // @@protoc_insertion_point(field_get:lua_grammar.Variable.IndexWithName.prefixexp) |
15877 | 3.89k | return _internal_prefixexp(); |
15878 | 3.89k | } |
15879 | | inline void Variable_IndexWithName::unsafe_arena_set_allocated_prefixexp( |
15880 | 0 | ::lua_grammar::PrefixExpression* prefixexp) { |
15881 | 0 | if (GetArenaForAllocation() == nullptr) { |
15882 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.prefixexp_); |
15883 | 0 | } |
15884 | 0 | _impl_.prefixexp_ = prefixexp; |
15885 | 0 | if (prefixexp) { |
15886 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15887 | 0 | } else { |
15888 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15889 | 0 | } |
15890 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Variable.IndexWithName.prefixexp) |
15891 | 0 | } |
15892 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithName::release_prefixexp() { |
15893 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15894 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
15895 | 0 | _impl_.prefixexp_ = nullptr; |
15896 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
15897 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
15898 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15899 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
15900 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
15901 | 0 | if (GetArenaForAllocation() != nullptr) { |
15902 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
15903 | 0 | } |
15904 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
15905 | 0 | return temp; |
15906 | 0 | } |
15907 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithName::unsafe_arena_release_prefixexp() { |
15908 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Variable.IndexWithName.prefixexp) |
15909 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15910 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.prefixexp_; |
15911 | 0 | _impl_.prefixexp_ = nullptr; |
15912 | 0 | return temp; |
15913 | 0 | } |
15914 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithName::_internal_mutable_prefixexp() { |
15915 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15916 | 0 | if (_impl_.prefixexp_ == nullptr) { |
15917 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::PrefixExpression>(GetArenaForAllocation()); |
15918 | 0 | _impl_.prefixexp_ = p; |
15919 | 0 | } |
15920 | 0 | return _impl_.prefixexp_; |
15921 | 0 | } |
15922 | 0 | inline ::lua_grammar::PrefixExpression* Variable_IndexWithName::mutable_prefixexp() { |
15923 | 0 | ::lua_grammar::PrefixExpression* _msg = _internal_mutable_prefixexp(); |
15924 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Variable.IndexWithName.prefixexp) |
15925 | 0 | return _msg; |
15926 | 0 | } |
15927 | 0 | inline void Variable_IndexWithName::set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp) { |
15928 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
15929 | 0 | if (message_arena == nullptr) { |
15930 | 0 | delete _impl_.prefixexp_; |
15931 | 0 | } |
15932 | 0 | if (prefixexp) { |
15933 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
15934 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prefixexp); |
15935 | 0 | if (message_arena != submessage_arena) { |
15936 | 0 | prefixexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
15937 | 0 | message_arena, prefixexp, submessage_arena); |
15938 | 0 | } |
15939 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
15940 | 0 | } else { |
15941 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
15942 | 0 | } |
15943 | 0 | _impl_.prefixexp_ = prefixexp; |
15944 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Variable.IndexWithName.prefixexp) |
15945 | 0 | } |
15946 | | |
15947 | | // required string Name = 2; |
15948 | 0 | inline bool Variable_IndexWithName::_internal_has_name() const { |
15949 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
15950 | 0 | return value; |
15951 | 0 | } |
15952 | 0 | inline bool Variable_IndexWithName::has_name() const { |
15953 | 0 | return _internal_has_name(); |
15954 | 0 | } |
15955 | 0 | inline void Variable_IndexWithName::clear_name() { |
15956 | 0 | _impl_.name_.ClearToEmpty(); |
15957 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15958 | 0 | } |
15959 | 3.89k | inline const std::string& Variable_IndexWithName::name() const { |
15960 | | // @@protoc_insertion_point(field_get:lua_grammar.Variable.IndexWithName.Name) |
15961 | 3.89k | return _internal_name(); |
15962 | 3.89k | } |
15963 | | template <typename ArgT0, typename... ArgT> |
15964 | | inline PROTOBUF_ALWAYS_INLINE |
15965 | | void Variable_IndexWithName::set_name(ArgT0&& arg0, ArgT... args) { |
15966 | | _impl_._has_bits_[0] |= 0x00000001u; |
15967 | | _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
15968 | | // @@protoc_insertion_point(field_set:lua_grammar.Variable.IndexWithName.Name) |
15969 | | } |
15970 | 0 | inline std::string* Variable_IndexWithName::mutable_name() { |
15971 | 0 | std::string* _s = _internal_mutable_name(); |
15972 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Variable.IndexWithName.Name) |
15973 | 0 | return _s; |
15974 | 0 | } |
15975 | 3.89k | inline const std::string& Variable_IndexWithName::_internal_name() const { |
15976 | 3.89k | return _impl_.name_.Get(); |
15977 | 3.89k | } |
15978 | 0 | inline void Variable_IndexWithName::_internal_set_name(const std::string& value) { |
15979 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15980 | 0 | _impl_.name_.Set(value, GetArenaForAllocation()); |
15981 | 0 | } |
15982 | 0 | inline std::string* Variable_IndexWithName::_internal_mutable_name() { |
15983 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
15984 | 0 | return _impl_.name_.Mutable(GetArenaForAllocation()); |
15985 | 0 | } |
15986 | 0 | inline std::string* Variable_IndexWithName::release_name() { |
15987 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Variable.IndexWithName.Name) |
15988 | 0 | if (!_internal_has_name()) { |
15989 | 0 | return nullptr; |
15990 | 0 | } |
15991 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
15992 | 0 | auto* p = _impl_.name_.Release(); |
15993 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
15994 | 0 | if (_impl_.name_.IsDefault()) { |
15995 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
15996 | 0 | } |
15997 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
15998 | 0 | return p; |
15999 | 0 | } |
16000 | 0 | inline void Variable_IndexWithName::set_allocated_name(std::string* name) { |
16001 | 0 | if (name != nullptr) { |
16002 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16003 | 0 | } else { |
16004 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16005 | 0 | } |
16006 | 0 | _impl_.name_.SetAllocated(name, GetArenaForAllocation()); |
16007 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
16008 | 0 | if (_impl_.name_.IsDefault()) { |
16009 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
16010 | 0 | } |
16011 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
16012 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Variable.IndexWithName.Name) |
16013 | 0 | } |
16014 | | |
16015 | | // ------------------------------------------------------------------- |
16016 | | |
16017 | | // Variable |
16018 | | |
16019 | | // .lua_grammar.Name name = 1; |
16020 | 41.1k | inline bool Variable::_internal_has_name() const { |
16021 | 41.1k | return var_oneof_case() == kName; |
16022 | 41.1k | } |
16023 | 0 | inline bool Variable::has_name() const { |
16024 | 0 | return _internal_has_name(); |
16025 | 0 | } |
16026 | 0 | inline void Variable::set_has_name() { |
16027 | 0 | _impl_._oneof_case_[0] = kName; |
16028 | 0 | } |
16029 | 0 | inline void Variable::clear_name() { |
16030 | 0 | if (_internal_has_name()) { |
16031 | 0 | if (GetArenaForAllocation() == nullptr) { |
16032 | 0 | delete _impl_.var_oneof_.name_; |
16033 | 0 | } |
16034 | 0 | clear_has_var_oneof(); |
16035 | 0 | } |
16036 | 0 | } |
16037 | 0 | inline ::lua_grammar::Name* Variable::release_name() { |
16038 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Variable.name) |
16039 | 0 | if (_internal_has_name()) { |
16040 | 0 | clear_has_var_oneof(); |
16041 | 0 | ::lua_grammar::Name* temp = _impl_.var_oneof_.name_; |
16042 | 0 | if (GetArenaForAllocation() != nullptr) { |
16043 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16044 | 0 | } |
16045 | 0 | _impl_.var_oneof_.name_ = nullptr; |
16046 | 0 | return temp; |
16047 | 0 | } else { |
16048 | 0 | return nullptr; |
16049 | 0 | } |
16050 | 0 | } |
16051 | 40.0k | inline const ::lua_grammar::Name& Variable::_internal_name() const { |
16052 | 40.0k | return _internal_has_name() |
16053 | 40.0k | ? *_impl_.var_oneof_.name_ |
16054 | 40.0k | : reinterpret_cast< ::lua_grammar::Name&>(::lua_grammar::_Name_default_instance_); |
16055 | 40.0k | } |
16056 | 40.0k | inline const ::lua_grammar::Name& Variable::name() const { |
16057 | | // @@protoc_insertion_point(field_get:lua_grammar.Variable.name) |
16058 | 40.0k | return _internal_name(); |
16059 | 40.0k | } |
16060 | 0 | inline ::lua_grammar::Name* Variable::unsafe_arena_release_name() { |
16061 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Variable.name) |
16062 | 0 | if (_internal_has_name()) { |
16063 | 0 | clear_has_var_oneof(); |
16064 | 0 | ::lua_grammar::Name* temp = _impl_.var_oneof_.name_; |
16065 | 0 | _impl_.var_oneof_.name_ = nullptr; |
16066 | 0 | return temp; |
16067 | 0 | } else { |
16068 | 0 | return nullptr; |
16069 | 0 | } |
16070 | 0 | } |
16071 | 0 | inline void Variable::unsafe_arena_set_allocated_name(::lua_grammar::Name* name) { |
16072 | 0 | clear_var_oneof(); |
16073 | 0 | if (name) { |
16074 | 0 | set_has_name(); |
16075 | 0 | _impl_.var_oneof_.name_ = name; |
16076 | 0 | } |
16077 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Variable.name) |
16078 | 0 | } |
16079 | 0 | inline ::lua_grammar::Name* Variable::_internal_mutable_name() { |
16080 | 0 | if (!_internal_has_name()) { |
16081 | 0 | clear_var_oneof(); |
16082 | 0 | set_has_name(); |
16083 | 0 | _impl_.var_oneof_.name_ = CreateMaybeMessage< ::lua_grammar::Name >(GetArenaForAllocation()); |
16084 | 0 | } |
16085 | 0 | return _impl_.var_oneof_.name_; |
16086 | 0 | } |
16087 | 0 | inline ::lua_grammar::Name* Variable::mutable_name() { |
16088 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_name(); |
16089 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Variable.name) |
16090 | 0 | return _msg; |
16091 | 0 | } |
16092 | | |
16093 | | // .lua_grammar.Variable.IndexWithExpression indexexpr = 2; |
16094 | 8.23k | inline bool Variable::_internal_has_indexexpr() const { |
16095 | 8.23k | return var_oneof_case() == kIndexexpr; |
16096 | 8.23k | } |
16097 | 0 | inline bool Variable::has_indexexpr() const { |
16098 | 0 | return _internal_has_indexexpr(); |
16099 | 0 | } |
16100 | 0 | inline void Variable::set_has_indexexpr() { |
16101 | 0 | _impl_._oneof_case_[0] = kIndexexpr; |
16102 | 0 | } |
16103 | 0 | inline void Variable::clear_indexexpr() { |
16104 | 0 | if (_internal_has_indexexpr()) { |
16105 | 0 | if (GetArenaForAllocation() == nullptr) { |
16106 | 0 | delete _impl_.var_oneof_.indexexpr_; |
16107 | 0 | } |
16108 | 0 | clear_has_var_oneof(); |
16109 | 0 | } |
16110 | 0 | } |
16111 | 0 | inline ::lua_grammar::Variable_IndexWithExpression* Variable::release_indexexpr() { |
16112 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Variable.indexexpr) |
16113 | 0 | if (_internal_has_indexexpr()) { |
16114 | 0 | clear_has_var_oneof(); |
16115 | 0 | ::lua_grammar::Variable_IndexWithExpression* temp = _impl_.var_oneof_.indexexpr_; |
16116 | 0 | if (GetArenaForAllocation() != nullptr) { |
16117 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16118 | 0 | } |
16119 | 0 | _impl_.var_oneof_.indexexpr_ = nullptr; |
16120 | 0 | return temp; |
16121 | 0 | } else { |
16122 | 0 | return nullptr; |
16123 | 0 | } |
16124 | 0 | } |
16125 | 4.09k | inline const ::lua_grammar::Variable_IndexWithExpression& Variable::_internal_indexexpr() const { |
16126 | 4.09k | return _internal_has_indexexpr() |
16127 | 4.09k | ? *_impl_.var_oneof_.indexexpr_ |
16128 | 4.09k | : reinterpret_cast< ::lua_grammar::Variable_IndexWithExpression&>(::lua_grammar::_Variable_IndexWithExpression_default_instance_); |
16129 | 4.09k | } |
16130 | 4.09k | inline const ::lua_grammar::Variable_IndexWithExpression& Variable::indexexpr() const { |
16131 | | // @@protoc_insertion_point(field_get:lua_grammar.Variable.indexexpr) |
16132 | 4.09k | return _internal_indexexpr(); |
16133 | 4.09k | } |
16134 | 0 | inline ::lua_grammar::Variable_IndexWithExpression* Variable::unsafe_arena_release_indexexpr() { |
16135 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Variable.indexexpr) |
16136 | 0 | if (_internal_has_indexexpr()) { |
16137 | 0 | clear_has_var_oneof(); |
16138 | 0 | ::lua_grammar::Variable_IndexWithExpression* temp = _impl_.var_oneof_.indexexpr_; |
16139 | 0 | _impl_.var_oneof_.indexexpr_ = nullptr; |
16140 | 0 | return temp; |
16141 | 0 | } else { |
16142 | 0 | return nullptr; |
16143 | 0 | } |
16144 | 0 | } |
16145 | 0 | inline void Variable::unsafe_arena_set_allocated_indexexpr(::lua_grammar::Variable_IndexWithExpression* indexexpr) { |
16146 | 0 | clear_var_oneof(); |
16147 | 0 | if (indexexpr) { |
16148 | 0 | set_has_indexexpr(); |
16149 | 0 | _impl_.var_oneof_.indexexpr_ = indexexpr; |
16150 | 0 | } |
16151 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Variable.indexexpr) |
16152 | 0 | } |
16153 | 0 | inline ::lua_grammar::Variable_IndexWithExpression* Variable::_internal_mutable_indexexpr() { |
16154 | 0 | if (!_internal_has_indexexpr()) { |
16155 | 0 | clear_var_oneof(); |
16156 | 0 | set_has_indexexpr(); |
16157 | 0 | _impl_.var_oneof_.indexexpr_ = CreateMaybeMessage< ::lua_grammar::Variable_IndexWithExpression >(GetArenaForAllocation()); |
16158 | 0 | } |
16159 | 0 | return _impl_.var_oneof_.indexexpr_; |
16160 | 0 | } |
16161 | 0 | inline ::lua_grammar::Variable_IndexWithExpression* Variable::mutable_indexexpr() { |
16162 | 0 | ::lua_grammar::Variable_IndexWithExpression* _msg = _internal_mutable_indexexpr(); |
16163 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Variable.indexexpr) |
16164 | 0 | return _msg; |
16165 | 0 | } |
16166 | | |
16167 | | // .lua_grammar.Variable.IndexWithName indexname = 3; |
16168 | 7.80k | inline bool Variable::_internal_has_indexname() const { |
16169 | 7.80k | return var_oneof_case() == kIndexname; |
16170 | 7.80k | } |
16171 | 0 | inline bool Variable::has_indexname() const { |
16172 | 0 | return _internal_has_indexname(); |
16173 | 0 | } |
16174 | 0 | inline void Variable::set_has_indexname() { |
16175 | 0 | _impl_._oneof_case_[0] = kIndexname; |
16176 | 0 | } |
16177 | 0 | inline void Variable::clear_indexname() { |
16178 | 0 | if (_internal_has_indexname()) { |
16179 | 0 | if (GetArenaForAllocation() == nullptr) { |
16180 | 0 | delete _impl_.var_oneof_.indexname_; |
16181 | 0 | } |
16182 | 0 | clear_has_var_oneof(); |
16183 | 0 | } |
16184 | 0 | } |
16185 | 0 | inline ::lua_grammar::Variable_IndexWithName* Variable::release_indexname() { |
16186 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Variable.indexname) |
16187 | 0 | if (_internal_has_indexname()) { |
16188 | 0 | clear_has_var_oneof(); |
16189 | 0 | ::lua_grammar::Variable_IndexWithName* temp = _impl_.var_oneof_.indexname_; |
16190 | 0 | if (GetArenaForAllocation() != nullptr) { |
16191 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16192 | 0 | } |
16193 | 0 | _impl_.var_oneof_.indexname_ = nullptr; |
16194 | 0 | return temp; |
16195 | 0 | } else { |
16196 | 0 | return nullptr; |
16197 | 0 | } |
16198 | 0 | } |
16199 | 3.89k | inline const ::lua_grammar::Variable_IndexWithName& Variable::_internal_indexname() const { |
16200 | 3.89k | return _internal_has_indexname() |
16201 | 3.89k | ? *_impl_.var_oneof_.indexname_ |
16202 | 3.89k | : reinterpret_cast< ::lua_grammar::Variable_IndexWithName&>(::lua_grammar::_Variable_IndexWithName_default_instance_); |
16203 | 3.89k | } |
16204 | 3.89k | inline const ::lua_grammar::Variable_IndexWithName& Variable::indexname() const { |
16205 | | // @@protoc_insertion_point(field_get:lua_grammar.Variable.indexname) |
16206 | 3.89k | return _internal_indexname(); |
16207 | 3.89k | } |
16208 | 0 | inline ::lua_grammar::Variable_IndexWithName* Variable::unsafe_arena_release_indexname() { |
16209 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Variable.indexname) |
16210 | 0 | if (_internal_has_indexname()) { |
16211 | 0 | clear_has_var_oneof(); |
16212 | 0 | ::lua_grammar::Variable_IndexWithName* temp = _impl_.var_oneof_.indexname_; |
16213 | 0 | _impl_.var_oneof_.indexname_ = nullptr; |
16214 | 0 | return temp; |
16215 | 0 | } else { |
16216 | 0 | return nullptr; |
16217 | 0 | } |
16218 | 0 | } |
16219 | 0 | inline void Variable::unsafe_arena_set_allocated_indexname(::lua_grammar::Variable_IndexWithName* indexname) { |
16220 | 0 | clear_var_oneof(); |
16221 | 0 | if (indexname) { |
16222 | 0 | set_has_indexname(); |
16223 | 0 | _impl_.var_oneof_.indexname_ = indexname; |
16224 | 0 | } |
16225 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Variable.indexname) |
16226 | 0 | } |
16227 | 0 | inline ::lua_grammar::Variable_IndexWithName* Variable::_internal_mutable_indexname() { |
16228 | 0 | if (!_internal_has_indexname()) { |
16229 | 0 | clear_var_oneof(); |
16230 | 0 | set_has_indexname(); |
16231 | 0 | _impl_.var_oneof_.indexname_ = CreateMaybeMessage< ::lua_grammar::Variable_IndexWithName >(GetArenaForAllocation()); |
16232 | 0 | } |
16233 | 0 | return _impl_.var_oneof_.indexname_; |
16234 | 0 | } |
16235 | 0 | inline ::lua_grammar::Variable_IndexWithName* Variable::mutable_indexname() { |
16236 | 0 | ::lua_grammar::Variable_IndexWithName* _msg = _internal_mutable_indexname(); |
16237 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Variable.indexname) |
16238 | 0 | return _msg; |
16239 | 0 | } |
16240 | | |
16241 | 19.1k | inline bool Variable::has_var_oneof() const { |
16242 | 19.1k | return var_oneof_case() != VAR_ONEOF_NOT_SET; |
16243 | 19.1k | } |
16244 | 19.1k | inline void Variable::clear_has_var_oneof() { |
16245 | 19.1k | _impl_._oneof_case_[0] = VAR_ONEOF_NOT_SET; |
16246 | 19.1k | } |
16247 | 153k | inline Variable::VarOneofCase Variable::var_oneof_case() const { |
16248 | 153k | return Variable::VarOneofCase(_impl_._oneof_case_[0]); |
16249 | 153k | } |
16250 | | // ------------------------------------------------------------------- |
16251 | | |
16252 | | // PrefixExpression |
16253 | | |
16254 | | // .lua_grammar.Variable var = 1; |
16255 | 27.7k | inline bool PrefixExpression::_internal_has_var() const { |
16256 | 27.7k | return prefix_oneof_case() == kVar; |
16257 | 27.7k | } |
16258 | 0 | inline bool PrefixExpression::has_var() const { |
16259 | 0 | return _internal_has_var(); |
16260 | 0 | } |
16261 | 0 | inline void PrefixExpression::set_has_var() { |
16262 | 0 | _impl_._oneof_case_[0] = kVar; |
16263 | 0 | } |
16264 | 0 | inline void PrefixExpression::clear_var() { |
16265 | 0 | if (_internal_has_var()) { |
16266 | 0 | if (GetArenaForAllocation() == nullptr) { |
16267 | 0 | delete _impl_.prefix_oneof_.var_; |
16268 | 0 | } |
16269 | 0 | clear_has_prefix_oneof(); |
16270 | 0 | } |
16271 | 0 | } |
16272 | 0 | inline ::lua_grammar::Variable* PrefixExpression::release_var() { |
16273 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.PrefixExpression.var) |
16274 | 0 | if (_internal_has_var()) { |
16275 | 0 | clear_has_prefix_oneof(); |
16276 | 0 | ::lua_grammar::Variable* temp = _impl_.prefix_oneof_.var_; |
16277 | 0 | if (GetArenaForAllocation() != nullptr) { |
16278 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16279 | 0 | } |
16280 | 0 | _impl_.prefix_oneof_.var_ = nullptr; |
16281 | 0 | return temp; |
16282 | 0 | } else { |
16283 | 0 | return nullptr; |
16284 | 0 | } |
16285 | 0 | } |
16286 | 23.6k | inline const ::lua_grammar::Variable& PrefixExpression::_internal_var() const { |
16287 | 23.6k | return _internal_has_var() |
16288 | 23.6k | ? *_impl_.prefix_oneof_.var_ |
16289 | 23.6k | : reinterpret_cast< ::lua_grammar::Variable&>(::lua_grammar::_Variable_default_instance_); |
16290 | 23.6k | } |
16291 | 23.6k | inline const ::lua_grammar::Variable& PrefixExpression::var() const { |
16292 | | // @@protoc_insertion_point(field_get:lua_grammar.PrefixExpression.var) |
16293 | 23.6k | return _internal_var(); |
16294 | 23.6k | } |
16295 | 0 | inline ::lua_grammar::Variable* PrefixExpression::unsafe_arena_release_var() { |
16296 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.PrefixExpression.var) |
16297 | 0 | if (_internal_has_var()) { |
16298 | 0 | clear_has_prefix_oneof(); |
16299 | 0 | ::lua_grammar::Variable* temp = _impl_.prefix_oneof_.var_; |
16300 | 0 | _impl_.prefix_oneof_.var_ = nullptr; |
16301 | 0 | return temp; |
16302 | 0 | } else { |
16303 | 0 | return nullptr; |
16304 | 0 | } |
16305 | 0 | } |
16306 | 0 | inline void PrefixExpression::unsafe_arena_set_allocated_var(::lua_grammar::Variable* var) { |
16307 | 0 | clear_prefix_oneof(); |
16308 | 0 | if (var) { |
16309 | 0 | set_has_var(); |
16310 | 0 | _impl_.prefix_oneof_.var_ = var; |
16311 | 0 | } |
16312 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.PrefixExpression.var) |
16313 | 0 | } |
16314 | 0 | inline ::lua_grammar::Variable* PrefixExpression::_internal_mutable_var() { |
16315 | 0 | if (!_internal_has_var()) { |
16316 | 0 | clear_prefix_oneof(); |
16317 | 0 | set_has_var(); |
16318 | 0 | _impl_.prefix_oneof_.var_ = CreateMaybeMessage< ::lua_grammar::Variable >(GetArenaForAllocation()); |
16319 | 0 | } |
16320 | 0 | return _impl_.prefix_oneof_.var_; |
16321 | 0 | } |
16322 | 0 | inline ::lua_grammar::Variable* PrefixExpression::mutable_var() { |
16323 | 0 | ::lua_grammar::Variable* _msg = _internal_mutable_var(); |
16324 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.PrefixExpression.var) |
16325 | 0 | return _msg; |
16326 | 0 | } |
16327 | | |
16328 | | // .lua_grammar.FunctionCall functioncall = 2; |
16329 | 12.8k | inline bool PrefixExpression::_internal_has_functioncall() const { |
16330 | 12.8k | return prefix_oneof_case() == kFunctioncall; |
16331 | 12.8k | } |
16332 | 0 | inline bool PrefixExpression::has_functioncall() const { |
16333 | 0 | return _internal_has_functioncall(); |
16334 | 0 | } |
16335 | 0 | inline void PrefixExpression::set_has_functioncall() { |
16336 | 0 | _impl_._oneof_case_[0] = kFunctioncall; |
16337 | 0 | } |
16338 | 0 | inline void PrefixExpression::clear_functioncall() { |
16339 | 0 | if (_internal_has_functioncall()) { |
16340 | 0 | if (GetArenaForAllocation() == nullptr) { |
16341 | 0 | delete _impl_.prefix_oneof_.functioncall_; |
16342 | 0 | } |
16343 | 0 | clear_has_prefix_oneof(); |
16344 | 0 | } |
16345 | 0 | } |
16346 | 0 | inline ::lua_grammar::FunctionCall* PrefixExpression::release_functioncall() { |
16347 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.PrefixExpression.functioncall) |
16348 | 0 | if (_internal_has_functioncall()) { |
16349 | 0 | clear_has_prefix_oneof(); |
16350 | 0 | ::lua_grammar::FunctionCall* temp = _impl_.prefix_oneof_.functioncall_; |
16351 | 0 | if (GetArenaForAllocation() != nullptr) { |
16352 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16353 | 0 | } |
16354 | 0 | _impl_.prefix_oneof_.functioncall_ = nullptr; |
16355 | 0 | return temp; |
16356 | 0 | } else { |
16357 | 0 | return nullptr; |
16358 | 0 | } |
16359 | 0 | } |
16360 | 6.36k | inline const ::lua_grammar::FunctionCall& PrefixExpression::_internal_functioncall() const { |
16361 | 6.36k | return _internal_has_functioncall() |
16362 | 6.36k | ? *_impl_.prefix_oneof_.functioncall_ |
16363 | 6.36k | : reinterpret_cast< ::lua_grammar::FunctionCall&>(::lua_grammar::_FunctionCall_default_instance_); |
16364 | 6.36k | } |
16365 | 6.36k | inline const ::lua_grammar::FunctionCall& PrefixExpression::functioncall() const { |
16366 | | // @@protoc_insertion_point(field_get:lua_grammar.PrefixExpression.functioncall) |
16367 | 6.36k | return _internal_functioncall(); |
16368 | 6.36k | } |
16369 | 0 | inline ::lua_grammar::FunctionCall* PrefixExpression::unsafe_arena_release_functioncall() { |
16370 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.PrefixExpression.functioncall) |
16371 | 0 | if (_internal_has_functioncall()) { |
16372 | 0 | clear_has_prefix_oneof(); |
16373 | 0 | ::lua_grammar::FunctionCall* temp = _impl_.prefix_oneof_.functioncall_; |
16374 | 0 | _impl_.prefix_oneof_.functioncall_ = nullptr; |
16375 | 0 | return temp; |
16376 | 0 | } else { |
16377 | 0 | return nullptr; |
16378 | 0 | } |
16379 | 0 | } |
16380 | 0 | inline void PrefixExpression::unsafe_arena_set_allocated_functioncall(::lua_grammar::FunctionCall* functioncall) { |
16381 | 0 | clear_prefix_oneof(); |
16382 | 0 | if (functioncall) { |
16383 | 0 | set_has_functioncall(); |
16384 | 0 | _impl_.prefix_oneof_.functioncall_ = functioncall; |
16385 | 0 | } |
16386 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.PrefixExpression.functioncall) |
16387 | 0 | } |
16388 | 0 | inline ::lua_grammar::FunctionCall* PrefixExpression::_internal_mutable_functioncall() { |
16389 | 0 | if (!_internal_has_functioncall()) { |
16390 | 0 | clear_prefix_oneof(); |
16391 | 0 | set_has_functioncall(); |
16392 | 0 | _impl_.prefix_oneof_.functioncall_ = CreateMaybeMessage< ::lua_grammar::FunctionCall >(GetArenaForAllocation()); |
16393 | 0 | } |
16394 | 0 | return _impl_.prefix_oneof_.functioncall_; |
16395 | 0 | } |
16396 | 0 | inline ::lua_grammar::FunctionCall* PrefixExpression::mutable_functioncall() { |
16397 | 0 | ::lua_grammar::FunctionCall* _msg = _internal_mutable_functioncall(); |
16398 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.PrefixExpression.functioncall) |
16399 | 0 | return _msg; |
16400 | 0 | } |
16401 | | |
16402 | | // .lua_grammar.Expression exp = 3; |
16403 | 8.36k | inline bool PrefixExpression::_internal_has_exp() const { |
16404 | 8.36k | return prefix_oneof_case() == kExp; |
16405 | 8.36k | } |
16406 | 0 | inline bool PrefixExpression::has_exp() const { |
16407 | 0 | return _internal_has_exp(); |
16408 | 0 | } |
16409 | 0 | inline void PrefixExpression::set_has_exp() { |
16410 | 0 | _impl_._oneof_case_[0] = kExp; |
16411 | 0 | } |
16412 | 0 | inline void PrefixExpression::clear_exp() { |
16413 | 0 | if (_internal_has_exp()) { |
16414 | 0 | if (GetArenaForAllocation() == nullptr) { |
16415 | 0 | delete _impl_.prefix_oneof_.exp_; |
16416 | 0 | } |
16417 | 0 | clear_has_prefix_oneof(); |
16418 | 0 | } |
16419 | 0 | } |
16420 | 0 | inline ::lua_grammar::Expression* PrefixExpression::release_exp() { |
16421 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.PrefixExpression.exp) |
16422 | 0 | if (_internal_has_exp()) { |
16423 | 0 | clear_has_prefix_oneof(); |
16424 | 0 | ::lua_grammar::Expression* temp = _impl_.prefix_oneof_.exp_; |
16425 | 0 | if (GetArenaForAllocation() != nullptr) { |
16426 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16427 | 0 | } |
16428 | 0 | _impl_.prefix_oneof_.exp_ = nullptr; |
16429 | 0 | return temp; |
16430 | 0 | } else { |
16431 | 0 | return nullptr; |
16432 | 0 | } |
16433 | 0 | } |
16434 | 4.16k | inline const ::lua_grammar::Expression& PrefixExpression::_internal_exp() const { |
16435 | 4.16k | return _internal_has_exp() |
16436 | 4.16k | ? *_impl_.prefix_oneof_.exp_ |
16437 | 4.16k | : reinterpret_cast< ::lua_grammar::Expression&>(::lua_grammar::_Expression_default_instance_); |
16438 | 4.16k | } |
16439 | 4.16k | inline const ::lua_grammar::Expression& PrefixExpression::exp() const { |
16440 | | // @@protoc_insertion_point(field_get:lua_grammar.PrefixExpression.exp) |
16441 | 4.16k | return _internal_exp(); |
16442 | 4.16k | } |
16443 | 0 | inline ::lua_grammar::Expression* PrefixExpression::unsafe_arena_release_exp() { |
16444 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.PrefixExpression.exp) |
16445 | 0 | if (_internal_has_exp()) { |
16446 | 0 | clear_has_prefix_oneof(); |
16447 | 0 | ::lua_grammar::Expression* temp = _impl_.prefix_oneof_.exp_; |
16448 | 0 | _impl_.prefix_oneof_.exp_ = nullptr; |
16449 | 0 | return temp; |
16450 | 0 | } else { |
16451 | 0 | return nullptr; |
16452 | 0 | } |
16453 | 0 | } |
16454 | 0 | inline void PrefixExpression::unsafe_arena_set_allocated_exp(::lua_grammar::Expression* exp) { |
16455 | 0 | clear_prefix_oneof(); |
16456 | 0 | if (exp) { |
16457 | 0 | set_has_exp(); |
16458 | 0 | _impl_.prefix_oneof_.exp_ = exp; |
16459 | 0 | } |
16460 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.PrefixExpression.exp) |
16461 | 0 | } |
16462 | 0 | inline ::lua_grammar::Expression* PrefixExpression::_internal_mutable_exp() { |
16463 | 0 | if (!_internal_has_exp()) { |
16464 | 0 | clear_prefix_oneof(); |
16465 | 0 | set_has_exp(); |
16466 | 0 | _impl_.prefix_oneof_.exp_ = CreateMaybeMessage< ::lua_grammar::Expression >(GetArenaForAllocation()); |
16467 | 0 | } |
16468 | 0 | return _impl_.prefix_oneof_.exp_; |
16469 | 0 | } |
16470 | 0 | inline ::lua_grammar::Expression* PrefixExpression::mutable_exp() { |
16471 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_exp(); |
16472 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.PrefixExpression.exp) |
16473 | 0 | return _msg; |
16474 | 0 | } |
16475 | | |
16476 | 30.7k | inline bool PrefixExpression::has_prefix_oneof() const { |
16477 | 30.7k | return prefix_oneof_case() != PREFIX_ONEOF_NOT_SET; |
16478 | 30.7k | } |
16479 | 30.7k | inline void PrefixExpression::clear_has_prefix_oneof() { |
16480 | 30.7k | _impl_._oneof_case_[0] = PREFIX_ONEOF_NOT_SET; |
16481 | 30.7k | } |
16482 | 158k | inline PrefixExpression::PrefixOneofCase PrefixExpression::prefix_oneof_case() const { |
16483 | 158k | return PrefixExpression::PrefixOneofCase(_impl_._oneof_case_[0]); |
16484 | 158k | } |
16485 | | // ------------------------------------------------------------------- |
16486 | | |
16487 | | // Expression_AnonFunc |
16488 | | |
16489 | | // required .lua_grammar.FuncBody body = 1; |
16490 | 13.0k | inline bool Expression_AnonFunc::_internal_has_body() const { |
16491 | 13.0k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
16492 | 13.0k | PROTOBUF_ASSUME(!value || _impl_.body_ != nullptr); |
16493 | 13.0k | return value; |
16494 | 13.0k | } |
16495 | 0 | inline bool Expression_AnonFunc::has_body() const { |
16496 | 0 | return _internal_has_body(); |
16497 | 0 | } |
16498 | 0 | inline void Expression_AnonFunc::clear_body() { |
16499 | 0 | if (_impl_.body_ != nullptr) _impl_.body_->Clear(); |
16500 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16501 | 0 | } |
16502 | 12.5k | inline const ::lua_grammar::FuncBody& Expression_AnonFunc::_internal_body() const { |
16503 | 12.5k | const ::lua_grammar::FuncBody* p = _impl_.body_; |
16504 | 12.5k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FuncBody&>( |
16505 | 0 | ::lua_grammar::_FuncBody_default_instance_); |
16506 | 12.5k | } |
16507 | 12.5k | inline const ::lua_grammar::FuncBody& Expression_AnonFunc::body() const { |
16508 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.AnonFunc.body) |
16509 | 12.5k | return _internal_body(); |
16510 | 12.5k | } |
16511 | | inline void Expression_AnonFunc::unsafe_arena_set_allocated_body( |
16512 | 0 | ::lua_grammar::FuncBody* body) { |
16513 | 0 | if (GetArenaForAllocation() == nullptr) { |
16514 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.body_); |
16515 | 0 | } |
16516 | 0 | _impl_.body_ = body; |
16517 | 0 | if (body) { |
16518 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16519 | 0 | } else { |
16520 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16521 | 0 | } |
16522 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.AnonFunc.body) |
16523 | 0 | } |
16524 | 0 | inline ::lua_grammar::FuncBody* Expression_AnonFunc::release_body() { |
16525 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16526 | 0 | ::lua_grammar::FuncBody* temp = _impl_.body_; |
16527 | 0 | _impl_.body_ = nullptr; |
16528 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
16529 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
16530 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16531 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
16532 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
16533 | 0 | if (GetArenaForAllocation() != nullptr) { |
16534 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16535 | 0 | } |
16536 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
16537 | 0 | return temp; |
16538 | 0 | } |
16539 | 0 | inline ::lua_grammar::FuncBody* Expression_AnonFunc::unsafe_arena_release_body() { |
16540 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.AnonFunc.body) |
16541 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16542 | 0 | ::lua_grammar::FuncBody* temp = _impl_.body_; |
16543 | 0 | _impl_.body_ = nullptr; |
16544 | 0 | return temp; |
16545 | 0 | } |
16546 | 0 | inline ::lua_grammar::FuncBody* Expression_AnonFunc::_internal_mutable_body() { |
16547 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16548 | 0 | if (_impl_.body_ == nullptr) { |
16549 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FuncBody>(GetArenaForAllocation()); |
16550 | 0 | _impl_.body_ = p; |
16551 | 0 | } |
16552 | 0 | return _impl_.body_; |
16553 | 0 | } |
16554 | 0 | inline ::lua_grammar::FuncBody* Expression_AnonFunc::mutable_body() { |
16555 | 0 | ::lua_grammar::FuncBody* _msg = _internal_mutable_body(); |
16556 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.AnonFunc.body) |
16557 | 0 | return _msg; |
16558 | 0 | } |
16559 | 0 | inline void Expression_AnonFunc::set_allocated_body(::lua_grammar::FuncBody* body) { |
16560 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
16561 | 0 | if (message_arena == nullptr) { |
16562 | 0 | delete _impl_.body_; |
16563 | 0 | } |
16564 | 0 | if (body) { |
16565 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
16566 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(body); |
16567 | 0 | if (message_arena != submessage_arena) { |
16568 | 0 | body = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
16569 | 0 | message_arena, body, submessage_arena); |
16570 | 0 | } |
16571 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16572 | 0 | } else { |
16573 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16574 | 0 | } |
16575 | 0 | _impl_.body_ = body; |
16576 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.AnonFunc.body) |
16577 | 0 | } |
16578 | | |
16579 | | // ------------------------------------------------------------------- |
16580 | | |
16581 | | // Expression_ExpBinaryOpExp |
16582 | | |
16583 | | // required .lua_grammar.Expression leftexp = 1; |
16584 | 18.1k | inline bool Expression_ExpBinaryOpExp::_internal_has_leftexp() const { |
16585 | 18.1k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
16586 | 18.1k | PROTOBUF_ASSUME(!value || _impl_.leftexp_ != nullptr); |
16587 | 18.1k | return value; |
16588 | 18.1k | } |
16589 | 0 | inline bool Expression_ExpBinaryOpExp::has_leftexp() const { |
16590 | 0 | return _internal_has_leftexp(); |
16591 | 0 | } |
16592 | 0 | inline void Expression_ExpBinaryOpExp::clear_leftexp() { |
16593 | 0 | if (_impl_.leftexp_ != nullptr) _impl_.leftexp_->Clear(); |
16594 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16595 | 0 | } |
16596 | 16.8k | inline const ::lua_grammar::Expression& Expression_ExpBinaryOpExp::_internal_leftexp() const { |
16597 | 16.8k | const ::lua_grammar::Expression* p = _impl_.leftexp_; |
16598 | 16.8k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
16599 | 0 | ::lua_grammar::_Expression_default_instance_); |
16600 | 16.8k | } |
16601 | 16.8k | inline const ::lua_grammar::Expression& Expression_ExpBinaryOpExp::leftexp() const { |
16602 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.ExpBinaryOpExp.leftexp) |
16603 | 16.8k | return _internal_leftexp(); |
16604 | 16.8k | } |
16605 | | inline void Expression_ExpBinaryOpExp::unsafe_arena_set_allocated_leftexp( |
16606 | 0 | ::lua_grammar::Expression* leftexp) { |
16607 | 0 | if (GetArenaForAllocation() == nullptr) { |
16608 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.leftexp_); |
16609 | 0 | } |
16610 | 0 | _impl_.leftexp_ = leftexp; |
16611 | 0 | if (leftexp) { |
16612 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16613 | 0 | } else { |
16614 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16615 | 0 | } |
16616 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.ExpBinaryOpExp.leftexp) |
16617 | 0 | } |
16618 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::release_leftexp() { |
16619 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16620 | 0 | ::lua_grammar::Expression* temp = _impl_.leftexp_; |
16621 | 0 | _impl_.leftexp_ = nullptr; |
16622 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
16623 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
16624 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16625 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
16626 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
16627 | 0 | if (GetArenaForAllocation() != nullptr) { |
16628 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16629 | 0 | } |
16630 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
16631 | 0 | return temp; |
16632 | 0 | } |
16633 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::unsafe_arena_release_leftexp() { |
16634 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.ExpBinaryOpExp.leftexp) |
16635 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16636 | 0 | ::lua_grammar::Expression* temp = _impl_.leftexp_; |
16637 | 0 | _impl_.leftexp_ = nullptr; |
16638 | 0 | return temp; |
16639 | 0 | } |
16640 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::_internal_mutable_leftexp() { |
16641 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16642 | 0 | if (_impl_.leftexp_ == nullptr) { |
16643 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
16644 | 0 | _impl_.leftexp_ = p; |
16645 | 0 | } |
16646 | 0 | return _impl_.leftexp_; |
16647 | 0 | } |
16648 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::mutable_leftexp() { |
16649 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_leftexp(); |
16650 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.ExpBinaryOpExp.leftexp) |
16651 | 0 | return _msg; |
16652 | 0 | } |
16653 | 0 | inline void Expression_ExpBinaryOpExp::set_allocated_leftexp(::lua_grammar::Expression* leftexp) { |
16654 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
16655 | 0 | if (message_arena == nullptr) { |
16656 | 0 | delete _impl_.leftexp_; |
16657 | 0 | } |
16658 | 0 | if (leftexp) { |
16659 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
16660 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(leftexp); |
16661 | 0 | if (message_arena != submessage_arena) { |
16662 | 0 | leftexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
16663 | 0 | message_arena, leftexp, submessage_arena); |
16664 | 0 | } |
16665 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16666 | 0 | } else { |
16667 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16668 | 0 | } |
16669 | 0 | _impl_.leftexp_ = leftexp; |
16670 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.ExpBinaryOpExp.leftexp) |
16671 | 0 | } |
16672 | | |
16673 | | // required .lua_grammar.BinaryOperator binop = 2; |
16674 | 0 | inline bool Expression_ExpBinaryOpExp::_internal_has_binop() const { |
16675 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
16676 | 0 | PROTOBUF_ASSUME(!value || _impl_.binop_ != nullptr); |
16677 | 0 | return value; |
16678 | 0 | } |
16679 | 0 | inline bool Expression_ExpBinaryOpExp::has_binop() const { |
16680 | 0 | return _internal_has_binop(); |
16681 | 0 | } |
16682 | 0 | inline void Expression_ExpBinaryOpExp::clear_binop() { |
16683 | 0 | if (_impl_.binop_ != nullptr) _impl_.binop_->Clear(); |
16684 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16685 | 0 | } |
16686 | 16.8k | inline const ::lua_grammar::BinaryOperator& Expression_ExpBinaryOpExp::_internal_binop() const { |
16687 | 16.8k | const ::lua_grammar::BinaryOperator* p = _impl_.binop_; |
16688 | 16.8k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::BinaryOperator&>( |
16689 | 0 | ::lua_grammar::_BinaryOperator_default_instance_); |
16690 | 16.8k | } |
16691 | 16.8k | inline const ::lua_grammar::BinaryOperator& Expression_ExpBinaryOpExp::binop() const { |
16692 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.ExpBinaryOpExp.binop) |
16693 | 16.8k | return _internal_binop(); |
16694 | 16.8k | } |
16695 | | inline void Expression_ExpBinaryOpExp::unsafe_arena_set_allocated_binop( |
16696 | 0 | ::lua_grammar::BinaryOperator* binop) { |
16697 | 0 | if (GetArenaForAllocation() == nullptr) { |
16698 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.binop_); |
16699 | 0 | } |
16700 | 0 | _impl_.binop_ = binop; |
16701 | 0 | if (binop) { |
16702 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
16703 | 0 | } else { |
16704 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16705 | 0 | } |
16706 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.ExpBinaryOpExp.binop) |
16707 | 0 | } |
16708 | 0 | inline ::lua_grammar::BinaryOperator* Expression_ExpBinaryOpExp::release_binop() { |
16709 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16710 | 0 | ::lua_grammar::BinaryOperator* temp = _impl_.binop_; |
16711 | 0 | _impl_.binop_ = nullptr; |
16712 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
16713 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
16714 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16715 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
16716 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
16717 | 0 | if (GetArenaForAllocation() != nullptr) { |
16718 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16719 | 0 | } |
16720 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
16721 | 0 | return temp; |
16722 | 0 | } |
16723 | 0 | inline ::lua_grammar::BinaryOperator* Expression_ExpBinaryOpExp::unsafe_arena_release_binop() { |
16724 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.ExpBinaryOpExp.binop) |
16725 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16726 | 0 | ::lua_grammar::BinaryOperator* temp = _impl_.binop_; |
16727 | 0 | _impl_.binop_ = nullptr; |
16728 | 0 | return temp; |
16729 | 0 | } |
16730 | 0 | inline ::lua_grammar::BinaryOperator* Expression_ExpBinaryOpExp::_internal_mutable_binop() { |
16731 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
16732 | 0 | if (_impl_.binop_ == nullptr) { |
16733 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::BinaryOperator>(GetArenaForAllocation()); |
16734 | 0 | _impl_.binop_ = p; |
16735 | 0 | } |
16736 | 0 | return _impl_.binop_; |
16737 | 0 | } |
16738 | 0 | inline ::lua_grammar::BinaryOperator* Expression_ExpBinaryOpExp::mutable_binop() { |
16739 | 0 | ::lua_grammar::BinaryOperator* _msg = _internal_mutable_binop(); |
16740 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.ExpBinaryOpExp.binop) |
16741 | 0 | return _msg; |
16742 | 0 | } |
16743 | 0 | inline void Expression_ExpBinaryOpExp::set_allocated_binop(::lua_grammar::BinaryOperator* binop) { |
16744 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
16745 | 0 | if (message_arena == nullptr) { |
16746 | 0 | delete _impl_.binop_; |
16747 | 0 | } |
16748 | 0 | if (binop) { |
16749 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
16750 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(binop); |
16751 | 0 | if (message_arena != submessage_arena) { |
16752 | 0 | binop = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
16753 | 0 | message_arena, binop, submessage_arena); |
16754 | 0 | } |
16755 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
16756 | 0 | } else { |
16757 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16758 | 0 | } |
16759 | 0 | _impl_.binop_ = binop; |
16760 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.ExpBinaryOpExp.binop) |
16761 | 0 | } |
16762 | | |
16763 | | // required .lua_grammar.Expression rightexp = 3; |
16764 | 18.1k | inline bool Expression_ExpBinaryOpExp::_internal_has_rightexp() const { |
16765 | 18.1k | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
16766 | 18.1k | PROTOBUF_ASSUME(!value || _impl_.rightexp_ != nullptr); |
16767 | 18.1k | return value; |
16768 | 18.1k | } |
16769 | 0 | inline bool Expression_ExpBinaryOpExp::has_rightexp() const { |
16770 | 0 | return _internal_has_rightexp(); |
16771 | 0 | } |
16772 | 0 | inline void Expression_ExpBinaryOpExp::clear_rightexp() { |
16773 | 0 | if (_impl_.rightexp_ != nullptr) _impl_.rightexp_->Clear(); |
16774 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
16775 | 0 | } |
16776 | 16.8k | inline const ::lua_grammar::Expression& Expression_ExpBinaryOpExp::_internal_rightexp() const { |
16777 | 16.8k | const ::lua_grammar::Expression* p = _impl_.rightexp_; |
16778 | 16.8k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
16779 | 0 | ::lua_grammar::_Expression_default_instance_); |
16780 | 16.8k | } |
16781 | 16.8k | inline const ::lua_grammar::Expression& Expression_ExpBinaryOpExp::rightexp() const { |
16782 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.ExpBinaryOpExp.rightexp) |
16783 | 16.8k | return _internal_rightexp(); |
16784 | 16.8k | } |
16785 | | inline void Expression_ExpBinaryOpExp::unsafe_arena_set_allocated_rightexp( |
16786 | 0 | ::lua_grammar::Expression* rightexp) { |
16787 | 0 | if (GetArenaForAllocation() == nullptr) { |
16788 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.rightexp_); |
16789 | 0 | } |
16790 | 0 | _impl_.rightexp_ = rightexp; |
16791 | 0 | if (rightexp) { |
16792 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
16793 | 0 | } else { |
16794 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
16795 | 0 | } |
16796 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.ExpBinaryOpExp.rightexp) |
16797 | 0 | } |
16798 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::release_rightexp() { |
16799 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
16800 | 0 | ::lua_grammar::Expression* temp = _impl_.rightexp_; |
16801 | 0 | _impl_.rightexp_ = nullptr; |
16802 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
16803 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
16804 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16805 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
16806 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
16807 | 0 | if (GetArenaForAllocation() != nullptr) { |
16808 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16809 | 0 | } |
16810 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
16811 | 0 | return temp; |
16812 | 0 | } |
16813 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::unsafe_arena_release_rightexp() { |
16814 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.ExpBinaryOpExp.rightexp) |
16815 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
16816 | 0 | ::lua_grammar::Expression* temp = _impl_.rightexp_; |
16817 | 0 | _impl_.rightexp_ = nullptr; |
16818 | 0 | return temp; |
16819 | 0 | } |
16820 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::_internal_mutable_rightexp() { |
16821 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
16822 | 0 | if (_impl_.rightexp_ == nullptr) { |
16823 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
16824 | 0 | _impl_.rightexp_ = p; |
16825 | 0 | } |
16826 | 0 | return _impl_.rightexp_; |
16827 | 0 | } |
16828 | 0 | inline ::lua_grammar::Expression* Expression_ExpBinaryOpExp::mutable_rightexp() { |
16829 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_rightexp(); |
16830 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.ExpBinaryOpExp.rightexp) |
16831 | 0 | return _msg; |
16832 | 0 | } |
16833 | 0 | inline void Expression_ExpBinaryOpExp::set_allocated_rightexp(::lua_grammar::Expression* rightexp) { |
16834 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
16835 | 0 | if (message_arena == nullptr) { |
16836 | 0 | delete _impl_.rightexp_; |
16837 | 0 | } |
16838 | 0 | if (rightexp) { |
16839 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
16840 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rightexp); |
16841 | 0 | if (message_arena != submessage_arena) { |
16842 | 0 | rightexp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
16843 | 0 | message_arena, rightexp, submessage_arena); |
16844 | 0 | } |
16845 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
16846 | 0 | } else { |
16847 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
16848 | 0 | } |
16849 | 0 | _impl_.rightexp_ = rightexp; |
16850 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.ExpBinaryOpExp.rightexp) |
16851 | 0 | } |
16852 | | |
16853 | | // ------------------------------------------------------------------- |
16854 | | |
16855 | | // Expression_UnaryOpExp |
16856 | | |
16857 | | // required .lua_grammar.UnaryOperator unop = 1; |
16858 | 0 | inline bool Expression_UnaryOpExp::_internal_has_unop() const { |
16859 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
16860 | 0 | PROTOBUF_ASSUME(!value || _impl_.unop_ != nullptr); |
16861 | 0 | return value; |
16862 | 0 | } |
16863 | 0 | inline bool Expression_UnaryOpExp::has_unop() const { |
16864 | 0 | return _internal_has_unop(); |
16865 | 0 | } |
16866 | 0 | inline void Expression_UnaryOpExp::clear_unop() { |
16867 | 0 | if (_impl_.unop_ != nullptr) _impl_.unop_->Clear(); |
16868 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16869 | 0 | } |
16870 | 4.69k | inline const ::lua_grammar::UnaryOperator& Expression_UnaryOpExp::_internal_unop() const { |
16871 | 4.69k | const ::lua_grammar::UnaryOperator* p = _impl_.unop_; |
16872 | 4.69k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::UnaryOperator&>( |
16873 | 0 | ::lua_grammar::_UnaryOperator_default_instance_); |
16874 | 4.69k | } |
16875 | 4.69k | inline const ::lua_grammar::UnaryOperator& Expression_UnaryOpExp::unop() const { |
16876 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.UnaryOpExp.unop) |
16877 | 4.69k | return _internal_unop(); |
16878 | 4.69k | } |
16879 | | inline void Expression_UnaryOpExp::unsafe_arena_set_allocated_unop( |
16880 | 0 | ::lua_grammar::UnaryOperator* unop) { |
16881 | 0 | if (GetArenaForAllocation() == nullptr) { |
16882 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.unop_); |
16883 | 0 | } |
16884 | 0 | _impl_.unop_ = unop; |
16885 | 0 | if (unop) { |
16886 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16887 | 0 | } else { |
16888 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16889 | 0 | } |
16890 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.UnaryOpExp.unop) |
16891 | 0 | } |
16892 | 0 | inline ::lua_grammar::UnaryOperator* Expression_UnaryOpExp::release_unop() { |
16893 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16894 | 0 | ::lua_grammar::UnaryOperator* temp = _impl_.unop_; |
16895 | 0 | _impl_.unop_ = nullptr; |
16896 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
16897 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
16898 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16899 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
16900 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
16901 | 0 | if (GetArenaForAllocation() != nullptr) { |
16902 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16903 | 0 | } |
16904 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
16905 | 0 | return temp; |
16906 | 0 | } |
16907 | 0 | inline ::lua_grammar::UnaryOperator* Expression_UnaryOpExp::unsafe_arena_release_unop() { |
16908 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.UnaryOpExp.unop) |
16909 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16910 | 0 | ::lua_grammar::UnaryOperator* temp = _impl_.unop_; |
16911 | 0 | _impl_.unop_ = nullptr; |
16912 | 0 | return temp; |
16913 | 0 | } |
16914 | 0 | inline ::lua_grammar::UnaryOperator* Expression_UnaryOpExp::_internal_mutable_unop() { |
16915 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16916 | 0 | if (_impl_.unop_ == nullptr) { |
16917 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::UnaryOperator>(GetArenaForAllocation()); |
16918 | 0 | _impl_.unop_ = p; |
16919 | 0 | } |
16920 | 0 | return _impl_.unop_; |
16921 | 0 | } |
16922 | 0 | inline ::lua_grammar::UnaryOperator* Expression_UnaryOpExp::mutable_unop() { |
16923 | 0 | ::lua_grammar::UnaryOperator* _msg = _internal_mutable_unop(); |
16924 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.UnaryOpExp.unop) |
16925 | 0 | return _msg; |
16926 | 0 | } |
16927 | 0 | inline void Expression_UnaryOpExp::set_allocated_unop(::lua_grammar::UnaryOperator* unop) { |
16928 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
16929 | 0 | if (message_arena == nullptr) { |
16930 | 0 | delete _impl_.unop_; |
16931 | 0 | } |
16932 | 0 | if (unop) { |
16933 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
16934 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unop); |
16935 | 0 | if (message_arena != submessage_arena) { |
16936 | 0 | unop = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
16937 | 0 | message_arena, unop, submessage_arena); |
16938 | 0 | } |
16939 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
16940 | 0 | } else { |
16941 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
16942 | 0 | } |
16943 | 0 | _impl_.unop_ = unop; |
16944 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.UnaryOpExp.unop) |
16945 | 0 | } |
16946 | | |
16947 | | // required .lua_grammar.Expression exp = 2; |
16948 | 4.89k | inline bool Expression_UnaryOpExp::_internal_has_exp() const { |
16949 | 4.89k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
16950 | 4.89k | PROTOBUF_ASSUME(!value || _impl_.exp_ != nullptr); |
16951 | 4.89k | return value; |
16952 | 4.89k | } |
16953 | 0 | inline bool Expression_UnaryOpExp::has_exp() const { |
16954 | 0 | return _internal_has_exp(); |
16955 | 0 | } |
16956 | 0 | inline void Expression_UnaryOpExp::clear_exp() { |
16957 | 0 | if (_impl_.exp_ != nullptr) _impl_.exp_->Clear(); |
16958 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16959 | 0 | } |
16960 | 4.69k | inline const ::lua_grammar::Expression& Expression_UnaryOpExp::_internal_exp() const { |
16961 | 4.69k | const ::lua_grammar::Expression* p = _impl_.exp_; |
16962 | 4.69k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
16963 | 0 | ::lua_grammar::_Expression_default_instance_); |
16964 | 4.69k | } |
16965 | 4.69k | inline const ::lua_grammar::Expression& Expression_UnaryOpExp::exp() const { |
16966 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.UnaryOpExp.exp) |
16967 | 4.69k | return _internal_exp(); |
16968 | 4.69k | } |
16969 | | inline void Expression_UnaryOpExp::unsafe_arena_set_allocated_exp( |
16970 | 0 | ::lua_grammar::Expression* exp) { |
16971 | 0 | if (GetArenaForAllocation() == nullptr) { |
16972 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.exp_); |
16973 | 0 | } |
16974 | 0 | _impl_.exp_ = exp; |
16975 | 0 | if (exp) { |
16976 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
16977 | 0 | } else { |
16978 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16979 | 0 | } |
16980 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.UnaryOpExp.exp) |
16981 | 0 | } |
16982 | 0 | inline ::lua_grammar::Expression* Expression_UnaryOpExp::release_exp() { |
16983 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
16984 | 0 | ::lua_grammar::Expression* temp = _impl_.exp_; |
16985 | 0 | _impl_.exp_ = nullptr; |
16986 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
16987 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
16988 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16989 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
16990 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
16991 | 0 | if (GetArenaForAllocation() != nullptr) { |
16992 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
16993 | 0 | } |
16994 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
16995 | 0 | return temp; |
16996 | 0 | } |
16997 | 0 | inline ::lua_grammar::Expression* Expression_UnaryOpExp::unsafe_arena_release_exp() { |
16998 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.UnaryOpExp.exp) |
16999 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
17000 | 0 | ::lua_grammar::Expression* temp = _impl_.exp_; |
17001 | 0 | _impl_.exp_ = nullptr; |
17002 | 0 | return temp; |
17003 | 0 | } |
17004 | 0 | inline ::lua_grammar::Expression* Expression_UnaryOpExp::_internal_mutable_exp() { |
17005 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
17006 | 0 | if (_impl_.exp_ == nullptr) { |
17007 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
17008 | 0 | _impl_.exp_ = p; |
17009 | 0 | } |
17010 | 0 | return _impl_.exp_; |
17011 | 0 | } |
17012 | 0 | inline ::lua_grammar::Expression* Expression_UnaryOpExp::mutable_exp() { |
17013 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_exp(); |
17014 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.UnaryOpExp.exp) |
17015 | 0 | return _msg; |
17016 | 0 | } |
17017 | 0 | inline void Expression_UnaryOpExp::set_allocated_exp(::lua_grammar::Expression* exp) { |
17018 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
17019 | 0 | if (message_arena == nullptr) { |
17020 | 0 | delete _impl_.exp_; |
17021 | 0 | } |
17022 | 0 | if (exp) { |
17023 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
17024 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(exp); |
17025 | 0 | if (message_arena != submessage_arena) { |
17026 | 0 | exp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
17027 | 0 | message_arena, exp, submessage_arena); |
17028 | 0 | } |
17029 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
17030 | 0 | } else { |
17031 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
17032 | 0 | } |
17033 | 0 | _impl_.exp_ = exp; |
17034 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.UnaryOpExp.exp) |
17035 | 0 | } |
17036 | | |
17037 | | // ------------------------------------------------------------------- |
17038 | | |
17039 | | // Expression |
17040 | | |
17041 | | // uint32 nil = 1; |
17042 | 0 | inline bool Expression::_internal_has_nil() const { |
17043 | 0 | return expr_oneof_case() == kNil; |
17044 | 0 | } |
17045 | 0 | inline bool Expression::has_nil() const { |
17046 | 0 | return _internal_has_nil(); |
17047 | 0 | } |
17048 | 0 | inline void Expression::set_has_nil() { |
17049 | 0 | _impl_._oneof_case_[0] = kNil; |
17050 | 0 | } |
17051 | 0 | inline void Expression::clear_nil() { |
17052 | 0 | if (_internal_has_nil()) { |
17053 | 0 | _impl_.expr_oneof_.nil_ = 0u; |
17054 | 0 | clear_has_expr_oneof(); |
17055 | 0 | } |
17056 | 0 | } |
17057 | 0 | inline uint32_t Expression::_internal_nil() const { |
17058 | 0 | if (_internal_has_nil()) { |
17059 | 0 | return _impl_.expr_oneof_.nil_; |
17060 | 0 | } |
17061 | 0 | return 0u; |
17062 | 0 | } |
17063 | 0 | inline void Expression::_internal_set_nil(uint32_t value) { |
17064 | 0 | if (!_internal_has_nil()) { |
17065 | 0 | clear_expr_oneof(); |
17066 | 0 | set_has_nil(); |
17067 | 0 | } |
17068 | 0 | _impl_.expr_oneof_.nil_ = value; |
17069 | 0 | } |
17070 | 0 | inline uint32_t Expression::nil() const { |
17071 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.Expression.nil) |
17072 | 0 | return _internal_nil(); |
17073 | 0 | } |
17074 | 0 | inline void Expression::set_nil(uint32_t value) { |
17075 | 0 | _internal_set_nil(value); |
17076 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.Expression.nil) |
17077 | 0 | } |
17078 | | |
17079 | | // uint32 false = 2; |
17080 | 0 | inline bool Expression::_internal_has_false_() const { |
17081 | 0 | return expr_oneof_case() == kFalse; |
17082 | 0 | } |
17083 | 0 | inline bool Expression::has_false_() const { |
17084 | 0 | return _internal_has_false_(); |
17085 | 0 | } |
17086 | 0 | inline void Expression::set_has_false_() { |
17087 | 0 | _impl_._oneof_case_[0] = kFalse; |
17088 | 0 | } |
17089 | 0 | inline void Expression::clear_false_() { |
17090 | 0 | if (_internal_has_false_()) { |
17091 | 0 | _impl_.expr_oneof_.false__ = 0u; |
17092 | 0 | clear_has_expr_oneof(); |
17093 | 0 | } |
17094 | 0 | } |
17095 | 0 | inline uint32_t Expression::_internal_false_() const { |
17096 | 0 | if (_internal_has_false_()) { |
17097 | 0 | return _impl_.expr_oneof_.false__; |
17098 | 0 | } |
17099 | 0 | return 0u; |
17100 | 0 | } |
17101 | 0 | inline void Expression::_internal_set_false_(uint32_t value) { |
17102 | 0 | if (!_internal_has_false_()) { |
17103 | 0 | clear_expr_oneof(); |
17104 | 0 | set_has_false_(); |
17105 | 0 | } |
17106 | 0 | _impl_.expr_oneof_.false__ = value; |
17107 | 0 | } |
17108 | 0 | inline uint32_t Expression::false_() const { |
17109 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.Expression.false) |
17110 | 0 | return _internal_false_(); |
17111 | 0 | } |
17112 | 0 | inline void Expression::set_false_(uint32_t value) { |
17113 | 0 | _internal_set_false_(value); |
17114 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.Expression.false) |
17115 | 0 | } |
17116 | | |
17117 | | // uint32 true = 3; |
17118 | 0 | inline bool Expression::_internal_has_true_() const { |
17119 | 0 | return expr_oneof_case() == kTrue; |
17120 | 0 | } |
17121 | 0 | inline bool Expression::has_true_() const { |
17122 | 0 | return _internal_has_true_(); |
17123 | 0 | } |
17124 | 0 | inline void Expression::set_has_true_() { |
17125 | 0 | _impl_._oneof_case_[0] = kTrue; |
17126 | 0 | } |
17127 | 0 | inline void Expression::clear_true_() { |
17128 | 0 | if (_internal_has_true_()) { |
17129 | 0 | _impl_.expr_oneof_.true__ = 0u; |
17130 | 0 | clear_has_expr_oneof(); |
17131 | 0 | } |
17132 | 0 | } |
17133 | 0 | inline uint32_t Expression::_internal_true_() const { |
17134 | 0 | if (_internal_has_true_()) { |
17135 | 0 | return _impl_.expr_oneof_.true__; |
17136 | 0 | } |
17137 | 0 | return 0u; |
17138 | 0 | } |
17139 | 0 | inline void Expression::_internal_set_true_(uint32_t value) { |
17140 | 0 | if (!_internal_has_true_()) { |
17141 | 0 | clear_expr_oneof(); |
17142 | 0 | set_has_true_(); |
17143 | 0 | } |
17144 | 0 | _impl_.expr_oneof_.true__ = value; |
17145 | 0 | } |
17146 | 0 | inline uint32_t Expression::true_() const { |
17147 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.Expression.true) |
17148 | 0 | return _internal_true_(); |
17149 | 0 | } |
17150 | 0 | inline void Expression::set_true_(uint32_t value) { |
17151 | 0 | _internal_set_true_(value); |
17152 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.Expression.true) |
17153 | 0 | } |
17154 | | |
17155 | | // double number = 4; |
17156 | 10.8k | inline bool Expression::_internal_has_number() const { |
17157 | 10.8k | return expr_oneof_case() == kNumber; |
17158 | 10.8k | } |
17159 | 0 | inline bool Expression::has_number() const { |
17160 | 0 | return _internal_has_number(); |
17161 | 0 | } |
17162 | 0 | inline void Expression::set_has_number() { |
17163 | 0 | _impl_._oneof_case_[0] = kNumber; |
17164 | 0 | } |
17165 | 0 | inline void Expression::clear_number() { |
17166 | 0 | if (_internal_has_number()) { |
17167 | 0 | _impl_.expr_oneof_.number_ = 0; |
17168 | 0 | clear_has_expr_oneof(); |
17169 | 0 | } |
17170 | 0 | } |
17171 | 10.8k | inline double Expression::_internal_number() const { |
17172 | 10.8k | if (_internal_has_number()) { |
17173 | 10.8k | return _impl_.expr_oneof_.number_; |
17174 | 10.8k | } |
17175 | 0 | return 0; |
17176 | 10.8k | } |
17177 | 0 | inline void Expression::_internal_set_number(double value) { |
17178 | 0 | if (!_internal_has_number()) { |
17179 | 0 | clear_expr_oneof(); |
17180 | 0 | set_has_number(); |
17181 | 0 | } |
17182 | 0 | _impl_.expr_oneof_.number_ = value; |
17183 | 0 | } |
17184 | 10.8k | inline double Expression::number() const { |
17185 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.number) |
17186 | 10.8k | return _internal_number(); |
17187 | 10.8k | } |
17188 | 0 | inline void Expression::set_number(double value) { |
17189 | 0 | _internal_set_number(value); |
17190 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.Expression.number) |
17191 | 0 | } |
17192 | | |
17193 | | // string str = 5; |
17194 | 68.8k | inline bool Expression::_internal_has_str() const { |
17195 | 68.8k | return expr_oneof_case() == kStr; |
17196 | 68.8k | } |
17197 | 0 | inline bool Expression::has_str() const { |
17198 | 0 | return _internal_has_str(); |
17199 | 0 | } |
17200 | 0 | inline void Expression::set_has_str() { |
17201 | 0 | _impl_._oneof_case_[0] = kStr; |
17202 | 0 | } |
17203 | 0 | inline void Expression::clear_str() { |
17204 | 0 | if (_internal_has_str()) { |
17205 | 0 | _impl_.expr_oneof_.str_.Destroy(); |
17206 | 0 | clear_has_expr_oneof(); |
17207 | 0 | } |
17208 | 0 | } |
17209 | 68.8k | inline const std::string& Expression::str() const { |
17210 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.str) |
17211 | 68.8k | return _internal_str(); |
17212 | 68.8k | } |
17213 | | template <typename ArgT0, typename... ArgT> |
17214 | | inline void Expression::set_str(ArgT0&& arg0, ArgT... args) { |
17215 | | if (!_internal_has_str()) { |
17216 | | clear_expr_oneof(); |
17217 | | set_has_str(); |
17218 | | _impl_.expr_oneof_.str_.InitDefault(); |
17219 | | } |
17220 | | _impl_.expr_oneof_.str_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
17221 | | // @@protoc_insertion_point(field_set:lua_grammar.Expression.str) |
17222 | | } |
17223 | 0 | inline std::string* Expression::mutable_str() { |
17224 | 0 | std::string* _s = _internal_mutable_str(); |
17225 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.str) |
17226 | 0 | return _s; |
17227 | 0 | } |
17228 | 68.8k | inline const std::string& Expression::_internal_str() const { |
17229 | 68.8k | if (_internal_has_str()) { |
17230 | 3.30k | return _impl_.expr_oneof_.str_.Get(); |
17231 | 3.30k | } |
17232 | 65.5k | return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
17233 | 68.8k | } |
17234 | 0 | inline void Expression::_internal_set_str(const std::string& value) { |
17235 | 0 | if (!_internal_has_str()) { |
17236 | 0 | clear_expr_oneof(); |
17237 | 0 | set_has_str(); |
17238 | 0 | _impl_.expr_oneof_.str_.InitDefault(); |
17239 | 0 | } |
17240 | 0 | _impl_.expr_oneof_.str_.Set(value, GetArenaForAllocation()); |
17241 | 0 | } |
17242 | 0 | inline std::string* Expression::_internal_mutable_str() { |
17243 | 0 | if (!_internal_has_str()) { |
17244 | 0 | clear_expr_oneof(); |
17245 | 0 | set_has_str(); |
17246 | 0 | _impl_.expr_oneof_.str_.InitDefault(); |
17247 | 0 | } |
17248 | 0 | return _impl_.expr_oneof_.str_.Mutable( GetArenaForAllocation()); |
17249 | 0 | } |
17250 | 0 | inline std::string* Expression::release_str() { |
17251 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.str) |
17252 | 0 | if (_internal_has_str()) { |
17253 | 0 | clear_has_expr_oneof(); |
17254 | 0 | return _impl_.expr_oneof_.str_.Release(); |
17255 | 0 | } else { |
17256 | 0 | return nullptr; |
17257 | 0 | } |
17258 | 0 | } |
17259 | 0 | inline void Expression::set_allocated_str(std::string* str) { |
17260 | 0 | if (has_expr_oneof()) { |
17261 | 0 | clear_expr_oneof(); |
17262 | 0 | } |
17263 | 0 | if (str != nullptr) { |
17264 | 0 | set_has_str(); |
17265 | 0 | _impl_.expr_oneof_.str_.InitAllocated(str, GetArenaForAllocation()); |
17266 | 0 | } |
17267 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.str) |
17268 | 0 | } |
17269 | | |
17270 | | // string ellipsis = 6; |
17271 | 0 | inline bool Expression::_internal_has_ellipsis() const { |
17272 | 0 | return expr_oneof_case() == kEllipsis; |
17273 | 0 | } |
17274 | 0 | inline bool Expression::has_ellipsis() const { |
17275 | 0 | return _internal_has_ellipsis(); |
17276 | 0 | } |
17277 | 0 | inline void Expression::set_has_ellipsis() { |
17278 | 0 | _impl_._oneof_case_[0] = kEllipsis; |
17279 | 0 | } |
17280 | 0 | inline void Expression::clear_ellipsis() { |
17281 | 0 | if (_internal_has_ellipsis()) { |
17282 | 0 | _impl_.expr_oneof_.ellipsis_.Destroy(); |
17283 | 0 | clear_has_expr_oneof(); |
17284 | 0 | } |
17285 | 0 | } |
17286 | 0 | inline const std::string& Expression::ellipsis() const { |
17287 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.Expression.ellipsis) |
17288 | 0 | return _internal_ellipsis(); |
17289 | 0 | } |
17290 | | template <typename ArgT0, typename... ArgT> |
17291 | | inline void Expression::set_ellipsis(ArgT0&& arg0, ArgT... args) { |
17292 | | if (!_internal_has_ellipsis()) { |
17293 | | clear_expr_oneof(); |
17294 | | set_has_ellipsis(); |
17295 | | _impl_.expr_oneof_.ellipsis_.InitDefault(); |
17296 | | } |
17297 | | _impl_.expr_oneof_.ellipsis_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
17298 | | // @@protoc_insertion_point(field_set:lua_grammar.Expression.ellipsis) |
17299 | | } |
17300 | 0 | inline std::string* Expression::mutable_ellipsis() { |
17301 | 0 | std::string* _s = _internal_mutable_ellipsis(); |
17302 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.ellipsis) |
17303 | 0 | return _s; |
17304 | 0 | } |
17305 | 0 | inline const std::string& Expression::_internal_ellipsis() const { |
17306 | 0 | if (_internal_has_ellipsis()) { |
17307 | 0 | return _impl_.expr_oneof_.ellipsis_.Get(); |
17308 | 0 | } |
17309 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); |
17310 | 0 | } |
17311 | 0 | inline void Expression::_internal_set_ellipsis(const std::string& value) { |
17312 | 0 | if (!_internal_has_ellipsis()) { |
17313 | 0 | clear_expr_oneof(); |
17314 | 0 | set_has_ellipsis(); |
17315 | 0 | _impl_.expr_oneof_.ellipsis_.InitDefault(); |
17316 | 0 | } |
17317 | 0 | _impl_.expr_oneof_.ellipsis_.Set(value, GetArenaForAllocation()); |
17318 | 0 | } |
17319 | 0 | inline std::string* Expression::_internal_mutable_ellipsis() { |
17320 | 0 | if (!_internal_has_ellipsis()) { |
17321 | 0 | clear_expr_oneof(); |
17322 | 0 | set_has_ellipsis(); |
17323 | 0 | _impl_.expr_oneof_.ellipsis_.InitDefault(); |
17324 | 0 | } |
17325 | 0 | return _impl_.expr_oneof_.ellipsis_.Mutable( GetArenaForAllocation()); |
17326 | 0 | } |
17327 | 0 | inline std::string* Expression::release_ellipsis() { |
17328 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.ellipsis) |
17329 | 0 | if (_internal_has_ellipsis()) { |
17330 | 0 | clear_has_expr_oneof(); |
17331 | 0 | return _impl_.expr_oneof_.ellipsis_.Release(); |
17332 | 0 | } else { |
17333 | 0 | return nullptr; |
17334 | 0 | } |
17335 | 0 | } |
17336 | 0 | inline void Expression::set_allocated_ellipsis(std::string* ellipsis) { |
17337 | 0 | if (has_expr_oneof()) { |
17338 | 0 | clear_expr_oneof(); |
17339 | 0 | } |
17340 | 0 | if (ellipsis != nullptr) { |
17341 | 0 | set_has_ellipsis(); |
17342 | 0 | _impl_.expr_oneof_.ellipsis_.InitAllocated(ellipsis, GetArenaForAllocation()); |
17343 | 0 | } |
17344 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Expression.ellipsis) |
17345 | 0 | } |
17346 | | |
17347 | | // .lua_grammar.Expression.AnonFunc function = 7; |
17348 | 25.6k | inline bool Expression::_internal_has_function() const { |
17349 | 25.6k | return expr_oneof_case() == kFunction; |
17350 | 25.6k | } |
17351 | 0 | inline bool Expression::has_function() const { |
17352 | 0 | return _internal_has_function(); |
17353 | 0 | } |
17354 | 0 | inline void Expression::set_has_function() { |
17355 | 0 | _impl_._oneof_case_[0] = kFunction; |
17356 | 0 | } |
17357 | 0 | inline void Expression::clear_function() { |
17358 | 0 | if (_internal_has_function()) { |
17359 | 0 | if (GetArenaForAllocation() == nullptr) { |
17360 | 0 | delete _impl_.expr_oneof_.function_; |
17361 | 0 | } |
17362 | 0 | clear_has_expr_oneof(); |
17363 | 0 | } |
17364 | 0 | } |
17365 | 0 | inline ::lua_grammar::Expression_AnonFunc* Expression::release_function() { |
17366 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.function) |
17367 | 0 | if (_internal_has_function()) { |
17368 | 0 | clear_has_expr_oneof(); |
17369 | 0 | ::lua_grammar::Expression_AnonFunc* temp = _impl_.expr_oneof_.function_; |
17370 | 0 | if (GetArenaForAllocation() != nullptr) { |
17371 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17372 | 0 | } |
17373 | 0 | _impl_.expr_oneof_.function_ = nullptr; |
17374 | 0 | return temp; |
17375 | 0 | } else { |
17376 | 0 | return nullptr; |
17377 | 0 | } |
17378 | 0 | } |
17379 | 12.5k | inline const ::lua_grammar::Expression_AnonFunc& Expression::_internal_function() const { |
17380 | 12.5k | return _internal_has_function() |
17381 | 12.5k | ? *_impl_.expr_oneof_.function_ |
17382 | 12.5k | : reinterpret_cast< ::lua_grammar::Expression_AnonFunc&>(::lua_grammar::_Expression_AnonFunc_default_instance_); |
17383 | 12.5k | } |
17384 | 12.5k | inline const ::lua_grammar::Expression_AnonFunc& Expression::function() const { |
17385 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.function) |
17386 | 12.5k | return _internal_function(); |
17387 | 12.5k | } |
17388 | 0 | inline ::lua_grammar::Expression_AnonFunc* Expression::unsafe_arena_release_function() { |
17389 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Expression.function) |
17390 | 0 | if (_internal_has_function()) { |
17391 | 0 | clear_has_expr_oneof(); |
17392 | 0 | ::lua_grammar::Expression_AnonFunc* temp = _impl_.expr_oneof_.function_; |
17393 | 0 | _impl_.expr_oneof_.function_ = nullptr; |
17394 | 0 | return temp; |
17395 | 0 | } else { |
17396 | 0 | return nullptr; |
17397 | 0 | } |
17398 | 0 | } |
17399 | 0 | inline void Expression::unsafe_arena_set_allocated_function(::lua_grammar::Expression_AnonFunc* function) { |
17400 | 0 | clear_expr_oneof(); |
17401 | 0 | if (function) { |
17402 | 0 | set_has_function(); |
17403 | 0 | _impl_.expr_oneof_.function_ = function; |
17404 | 0 | } |
17405 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.function) |
17406 | 0 | } |
17407 | 0 | inline ::lua_grammar::Expression_AnonFunc* Expression::_internal_mutable_function() { |
17408 | 0 | if (!_internal_has_function()) { |
17409 | 0 | clear_expr_oneof(); |
17410 | 0 | set_has_function(); |
17411 | 0 | _impl_.expr_oneof_.function_ = CreateMaybeMessage< ::lua_grammar::Expression_AnonFunc >(GetArenaForAllocation()); |
17412 | 0 | } |
17413 | 0 | return _impl_.expr_oneof_.function_; |
17414 | 0 | } |
17415 | 0 | inline ::lua_grammar::Expression_AnonFunc* Expression::mutable_function() { |
17416 | 0 | ::lua_grammar::Expression_AnonFunc* _msg = _internal_mutable_function(); |
17417 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.function) |
17418 | 0 | return _msg; |
17419 | 0 | } |
17420 | | |
17421 | | // .lua_grammar.PrefixExpression prefixexp = 8; |
17422 | 29.8k | inline bool Expression::_internal_has_prefixexp() const { |
17423 | 29.8k | return expr_oneof_case() == kPrefixexp; |
17424 | 29.8k | } |
17425 | 0 | inline bool Expression::has_prefixexp() const { |
17426 | 0 | return _internal_has_prefixexp(); |
17427 | 0 | } |
17428 | 0 | inline void Expression::set_has_prefixexp() { |
17429 | 0 | _impl_._oneof_case_[0] = kPrefixexp; |
17430 | 0 | } |
17431 | 0 | inline void Expression::clear_prefixexp() { |
17432 | 0 | if (_internal_has_prefixexp()) { |
17433 | 0 | if (GetArenaForAllocation() == nullptr) { |
17434 | 0 | delete _impl_.expr_oneof_.prefixexp_; |
17435 | 0 | } |
17436 | 0 | clear_has_expr_oneof(); |
17437 | 0 | } |
17438 | 0 | } |
17439 | 0 | inline ::lua_grammar::PrefixExpression* Expression::release_prefixexp() { |
17440 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.prefixexp) |
17441 | 0 | if (_internal_has_prefixexp()) { |
17442 | 0 | clear_has_expr_oneof(); |
17443 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.expr_oneof_.prefixexp_; |
17444 | 0 | if (GetArenaForAllocation() != nullptr) { |
17445 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17446 | 0 | } |
17447 | 0 | _impl_.expr_oneof_.prefixexp_ = nullptr; |
17448 | 0 | return temp; |
17449 | 0 | } else { |
17450 | 0 | return nullptr; |
17451 | 0 | } |
17452 | 0 | } |
17453 | 14.8k | inline const ::lua_grammar::PrefixExpression& Expression::_internal_prefixexp() const { |
17454 | 14.8k | return _internal_has_prefixexp() |
17455 | 14.8k | ? *_impl_.expr_oneof_.prefixexp_ |
17456 | 14.8k | : reinterpret_cast< ::lua_grammar::PrefixExpression&>(::lua_grammar::_PrefixExpression_default_instance_); |
17457 | 14.8k | } |
17458 | 14.8k | inline const ::lua_grammar::PrefixExpression& Expression::prefixexp() const { |
17459 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.prefixexp) |
17460 | 14.8k | return _internal_prefixexp(); |
17461 | 14.8k | } |
17462 | 0 | inline ::lua_grammar::PrefixExpression* Expression::unsafe_arena_release_prefixexp() { |
17463 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Expression.prefixexp) |
17464 | 0 | if (_internal_has_prefixexp()) { |
17465 | 0 | clear_has_expr_oneof(); |
17466 | 0 | ::lua_grammar::PrefixExpression* temp = _impl_.expr_oneof_.prefixexp_; |
17467 | 0 | _impl_.expr_oneof_.prefixexp_ = nullptr; |
17468 | 0 | return temp; |
17469 | 0 | } else { |
17470 | 0 | return nullptr; |
17471 | 0 | } |
17472 | 0 | } |
17473 | 0 | inline void Expression::unsafe_arena_set_allocated_prefixexp(::lua_grammar::PrefixExpression* prefixexp) { |
17474 | 0 | clear_expr_oneof(); |
17475 | 0 | if (prefixexp) { |
17476 | 0 | set_has_prefixexp(); |
17477 | 0 | _impl_.expr_oneof_.prefixexp_ = prefixexp; |
17478 | 0 | } |
17479 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.prefixexp) |
17480 | 0 | } |
17481 | 0 | inline ::lua_grammar::PrefixExpression* Expression::_internal_mutable_prefixexp() { |
17482 | 0 | if (!_internal_has_prefixexp()) { |
17483 | 0 | clear_expr_oneof(); |
17484 | 0 | set_has_prefixexp(); |
17485 | 0 | _impl_.expr_oneof_.prefixexp_ = CreateMaybeMessage< ::lua_grammar::PrefixExpression >(GetArenaForAllocation()); |
17486 | 0 | } |
17487 | 0 | return _impl_.expr_oneof_.prefixexp_; |
17488 | 0 | } |
17489 | 0 | inline ::lua_grammar::PrefixExpression* Expression::mutable_prefixexp() { |
17490 | 0 | ::lua_grammar::PrefixExpression* _msg = _internal_mutable_prefixexp(); |
17491 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.prefixexp) |
17492 | 0 | return _msg; |
17493 | 0 | } |
17494 | | |
17495 | | // .lua_grammar.TableConstructor tableconstructor = 9; |
17496 | 9.77k | inline bool Expression::_internal_has_tableconstructor() const { |
17497 | 9.77k | return expr_oneof_case() == kTableconstructor; |
17498 | 9.77k | } |
17499 | 0 | inline bool Expression::has_tableconstructor() const { |
17500 | 0 | return _internal_has_tableconstructor(); |
17501 | 0 | } |
17502 | 0 | inline void Expression::set_has_tableconstructor() { |
17503 | 0 | _impl_._oneof_case_[0] = kTableconstructor; |
17504 | 0 | } |
17505 | 0 | inline void Expression::clear_tableconstructor() { |
17506 | 0 | if (_internal_has_tableconstructor()) { |
17507 | 0 | if (GetArenaForAllocation() == nullptr) { |
17508 | 0 | delete _impl_.expr_oneof_.tableconstructor_; |
17509 | 0 | } |
17510 | 0 | clear_has_expr_oneof(); |
17511 | 0 | } |
17512 | 0 | } |
17513 | 0 | inline ::lua_grammar::TableConstructor* Expression::release_tableconstructor() { |
17514 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.tableconstructor) |
17515 | 0 | if (_internal_has_tableconstructor()) { |
17516 | 0 | clear_has_expr_oneof(); |
17517 | 0 | ::lua_grammar::TableConstructor* temp = _impl_.expr_oneof_.tableconstructor_; |
17518 | 0 | if (GetArenaForAllocation() != nullptr) { |
17519 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17520 | 0 | } |
17521 | 0 | _impl_.expr_oneof_.tableconstructor_ = nullptr; |
17522 | 0 | return temp; |
17523 | 0 | } else { |
17524 | 0 | return nullptr; |
17525 | 0 | } |
17526 | 0 | } |
17527 | 4.58k | inline const ::lua_grammar::TableConstructor& Expression::_internal_tableconstructor() const { |
17528 | 4.58k | return _internal_has_tableconstructor() |
17529 | 4.58k | ? *_impl_.expr_oneof_.tableconstructor_ |
17530 | 4.58k | : reinterpret_cast< ::lua_grammar::TableConstructor&>(::lua_grammar::_TableConstructor_default_instance_); |
17531 | 4.58k | } |
17532 | 4.58k | inline const ::lua_grammar::TableConstructor& Expression::tableconstructor() const { |
17533 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.tableconstructor) |
17534 | 4.58k | return _internal_tableconstructor(); |
17535 | 4.58k | } |
17536 | 0 | inline ::lua_grammar::TableConstructor* Expression::unsafe_arena_release_tableconstructor() { |
17537 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Expression.tableconstructor) |
17538 | 0 | if (_internal_has_tableconstructor()) { |
17539 | 0 | clear_has_expr_oneof(); |
17540 | 0 | ::lua_grammar::TableConstructor* temp = _impl_.expr_oneof_.tableconstructor_; |
17541 | 0 | _impl_.expr_oneof_.tableconstructor_ = nullptr; |
17542 | 0 | return temp; |
17543 | 0 | } else { |
17544 | 0 | return nullptr; |
17545 | 0 | } |
17546 | 0 | } |
17547 | 0 | inline void Expression::unsafe_arena_set_allocated_tableconstructor(::lua_grammar::TableConstructor* tableconstructor) { |
17548 | 0 | clear_expr_oneof(); |
17549 | 0 | if (tableconstructor) { |
17550 | 0 | set_has_tableconstructor(); |
17551 | 0 | _impl_.expr_oneof_.tableconstructor_ = tableconstructor; |
17552 | 0 | } |
17553 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.tableconstructor) |
17554 | 0 | } |
17555 | 0 | inline ::lua_grammar::TableConstructor* Expression::_internal_mutable_tableconstructor() { |
17556 | 0 | if (!_internal_has_tableconstructor()) { |
17557 | 0 | clear_expr_oneof(); |
17558 | 0 | set_has_tableconstructor(); |
17559 | 0 | _impl_.expr_oneof_.tableconstructor_ = CreateMaybeMessage< ::lua_grammar::TableConstructor >(GetArenaForAllocation()); |
17560 | 0 | } |
17561 | 0 | return _impl_.expr_oneof_.tableconstructor_; |
17562 | 0 | } |
17563 | 0 | inline ::lua_grammar::TableConstructor* Expression::mutable_tableconstructor() { |
17564 | 0 | ::lua_grammar::TableConstructor* _msg = _internal_mutable_tableconstructor(); |
17565 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.tableconstructor) |
17566 | 0 | return _msg; |
17567 | 0 | } |
17568 | | |
17569 | | // .lua_grammar.Expression.ExpBinaryOpExp binary = 10; |
17570 | 34.9k | inline bool Expression::_internal_has_binary() const { |
17571 | 34.9k | return expr_oneof_case() == kBinary; |
17572 | 34.9k | } |
17573 | 0 | inline bool Expression::has_binary() const { |
17574 | 0 | return _internal_has_binary(); |
17575 | 0 | } |
17576 | 0 | inline void Expression::set_has_binary() { |
17577 | 0 | _impl_._oneof_case_[0] = kBinary; |
17578 | 0 | } |
17579 | 0 | inline void Expression::clear_binary() { |
17580 | 0 | if (_internal_has_binary()) { |
17581 | 0 | if (GetArenaForAllocation() == nullptr) { |
17582 | 0 | delete _impl_.expr_oneof_.binary_; |
17583 | 0 | } |
17584 | 0 | clear_has_expr_oneof(); |
17585 | 0 | } |
17586 | 0 | } |
17587 | 0 | inline ::lua_grammar::Expression_ExpBinaryOpExp* Expression::release_binary() { |
17588 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.binary) |
17589 | 0 | if (_internal_has_binary()) { |
17590 | 0 | clear_has_expr_oneof(); |
17591 | 0 | ::lua_grammar::Expression_ExpBinaryOpExp* temp = _impl_.expr_oneof_.binary_; |
17592 | 0 | if (GetArenaForAllocation() != nullptr) { |
17593 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17594 | 0 | } |
17595 | 0 | _impl_.expr_oneof_.binary_ = nullptr; |
17596 | 0 | return temp; |
17597 | 0 | } else { |
17598 | 0 | return nullptr; |
17599 | 0 | } |
17600 | 0 | } |
17601 | 16.8k | inline const ::lua_grammar::Expression_ExpBinaryOpExp& Expression::_internal_binary() const { |
17602 | 16.8k | return _internal_has_binary() |
17603 | 16.8k | ? *_impl_.expr_oneof_.binary_ |
17604 | 16.8k | : reinterpret_cast< ::lua_grammar::Expression_ExpBinaryOpExp&>(::lua_grammar::_Expression_ExpBinaryOpExp_default_instance_); |
17605 | 16.8k | } |
17606 | 16.8k | inline const ::lua_grammar::Expression_ExpBinaryOpExp& Expression::binary() const { |
17607 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.binary) |
17608 | 16.8k | return _internal_binary(); |
17609 | 16.8k | } |
17610 | 0 | inline ::lua_grammar::Expression_ExpBinaryOpExp* Expression::unsafe_arena_release_binary() { |
17611 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Expression.binary) |
17612 | 0 | if (_internal_has_binary()) { |
17613 | 0 | clear_has_expr_oneof(); |
17614 | 0 | ::lua_grammar::Expression_ExpBinaryOpExp* temp = _impl_.expr_oneof_.binary_; |
17615 | 0 | _impl_.expr_oneof_.binary_ = nullptr; |
17616 | 0 | return temp; |
17617 | 0 | } else { |
17618 | 0 | return nullptr; |
17619 | 0 | } |
17620 | 0 | } |
17621 | 0 | inline void Expression::unsafe_arena_set_allocated_binary(::lua_grammar::Expression_ExpBinaryOpExp* binary) { |
17622 | 0 | clear_expr_oneof(); |
17623 | 0 | if (binary) { |
17624 | 0 | set_has_binary(); |
17625 | 0 | _impl_.expr_oneof_.binary_ = binary; |
17626 | 0 | } |
17627 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.binary) |
17628 | 0 | } |
17629 | 0 | inline ::lua_grammar::Expression_ExpBinaryOpExp* Expression::_internal_mutable_binary() { |
17630 | 0 | if (!_internal_has_binary()) { |
17631 | 0 | clear_expr_oneof(); |
17632 | 0 | set_has_binary(); |
17633 | 0 | _impl_.expr_oneof_.binary_ = CreateMaybeMessage< ::lua_grammar::Expression_ExpBinaryOpExp >(GetArenaForAllocation()); |
17634 | 0 | } |
17635 | 0 | return _impl_.expr_oneof_.binary_; |
17636 | 0 | } |
17637 | 0 | inline ::lua_grammar::Expression_ExpBinaryOpExp* Expression::mutable_binary() { |
17638 | 0 | ::lua_grammar::Expression_ExpBinaryOpExp* _msg = _internal_mutable_binary(); |
17639 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.binary) |
17640 | 0 | return _msg; |
17641 | 0 | } |
17642 | | |
17643 | | // .lua_grammar.Expression.UnaryOpExp unary = 11; |
17644 | 9.59k | inline bool Expression::_internal_has_unary() const { |
17645 | 9.59k | return expr_oneof_case() == kUnary; |
17646 | 9.59k | } |
17647 | 0 | inline bool Expression::has_unary() const { |
17648 | 0 | return _internal_has_unary(); |
17649 | 0 | } |
17650 | 0 | inline void Expression::set_has_unary() { |
17651 | 0 | _impl_._oneof_case_[0] = kUnary; |
17652 | 0 | } |
17653 | 0 | inline void Expression::clear_unary() { |
17654 | 0 | if (_internal_has_unary()) { |
17655 | 0 | if (GetArenaForAllocation() == nullptr) { |
17656 | 0 | delete _impl_.expr_oneof_.unary_; |
17657 | 0 | } |
17658 | 0 | clear_has_expr_oneof(); |
17659 | 0 | } |
17660 | 0 | } |
17661 | 0 | inline ::lua_grammar::Expression_UnaryOpExp* Expression::release_unary() { |
17662 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Expression.unary) |
17663 | 0 | if (_internal_has_unary()) { |
17664 | 0 | clear_has_expr_oneof(); |
17665 | 0 | ::lua_grammar::Expression_UnaryOpExp* temp = _impl_.expr_oneof_.unary_; |
17666 | 0 | if (GetArenaForAllocation() != nullptr) { |
17667 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17668 | 0 | } |
17669 | 0 | _impl_.expr_oneof_.unary_ = nullptr; |
17670 | 0 | return temp; |
17671 | 0 | } else { |
17672 | 0 | return nullptr; |
17673 | 0 | } |
17674 | 0 | } |
17675 | 4.69k | inline const ::lua_grammar::Expression_UnaryOpExp& Expression::_internal_unary() const { |
17676 | 4.69k | return _internal_has_unary() |
17677 | 4.69k | ? *_impl_.expr_oneof_.unary_ |
17678 | 4.69k | : reinterpret_cast< ::lua_grammar::Expression_UnaryOpExp&>(::lua_grammar::_Expression_UnaryOpExp_default_instance_); |
17679 | 4.69k | } |
17680 | 4.69k | inline const ::lua_grammar::Expression_UnaryOpExp& Expression::unary() const { |
17681 | | // @@protoc_insertion_point(field_get:lua_grammar.Expression.unary) |
17682 | 4.69k | return _internal_unary(); |
17683 | 4.69k | } |
17684 | 0 | inline ::lua_grammar::Expression_UnaryOpExp* Expression::unsafe_arena_release_unary() { |
17685 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Expression.unary) |
17686 | 0 | if (_internal_has_unary()) { |
17687 | 0 | clear_has_expr_oneof(); |
17688 | 0 | ::lua_grammar::Expression_UnaryOpExp* temp = _impl_.expr_oneof_.unary_; |
17689 | 0 | _impl_.expr_oneof_.unary_ = nullptr; |
17690 | 0 | return temp; |
17691 | 0 | } else { |
17692 | 0 | return nullptr; |
17693 | 0 | } |
17694 | 0 | } |
17695 | 0 | inline void Expression::unsafe_arena_set_allocated_unary(::lua_grammar::Expression_UnaryOpExp* unary) { |
17696 | 0 | clear_expr_oneof(); |
17697 | 0 | if (unary) { |
17698 | 0 | set_has_unary(); |
17699 | 0 | _impl_.expr_oneof_.unary_ = unary; |
17700 | 0 | } |
17701 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Expression.unary) |
17702 | 0 | } |
17703 | 0 | inline ::lua_grammar::Expression_UnaryOpExp* Expression::_internal_mutable_unary() { |
17704 | 0 | if (!_internal_has_unary()) { |
17705 | 0 | clear_expr_oneof(); |
17706 | 0 | set_has_unary(); |
17707 | 0 | _impl_.expr_oneof_.unary_ = CreateMaybeMessage< ::lua_grammar::Expression_UnaryOpExp >(GetArenaForAllocation()); |
17708 | 0 | } |
17709 | 0 | return _impl_.expr_oneof_.unary_; |
17710 | 0 | } |
17711 | 0 | inline ::lua_grammar::Expression_UnaryOpExp* Expression::mutable_unary() { |
17712 | 0 | ::lua_grammar::Expression_UnaryOpExp* _msg = _internal_mutable_unary(); |
17713 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Expression.unary) |
17714 | 0 | return _msg; |
17715 | 0 | } |
17716 | | |
17717 | 139k | inline bool Expression::has_expr_oneof() const { |
17718 | 139k | return expr_oneof_case() != EXPR_ONEOF_NOT_SET; |
17719 | 139k | } |
17720 | 139k | inline void Expression::clear_has_expr_oneof() { |
17721 | 139k | _impl_._oneof_case_[0] = EXPR_ONEOF_NOT_SET; |
17722 | 139k | } |
17723 | 691k | inline Expression::ExprOneofCase Expression::expr_oneof_case() const { |
17724 | 691k | return Expression::ExprOneofCase(_impl_._oneof_case_[0]); |
17725 | 691k | } |
17726 | | // ------------------------------------------------------------------- |
17727 | | |
17728 | | // TableConstructor |
17729 | | |
17730 | | // optional .lua_grammar.FieldList fieldlist = 1; |
17731 | 18.4k | inline bool TableConstructor::_internal_has_fieldlist() const { |
17732 | 18.4k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
17733 | 18.4k | PROTOBUF_ASSUME(!value || _impl_.fieldlist_ != nullptr); |
17734 | 18.4k | return value; |
17735 | 18.4k | } |
17736 | 13.0k | inline bool TableConstructor::has_fieldlist() const { |
17737 | 13.0k | return _internal_has_fieldlist(); |
17738 | 13.0k | } |
17739 | 0 | inline void TableConstructor::clear_fieldlist() { |
17740 | 0 | if (_impl_.fieldlist_ != nullptr) _impl_.fieldlist_->Clear(); |
17741 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17742 | 0 | } |
17743 | 3.66k | inline const ::lua_grammar::FieldList& TableConstructor::_internal_fieldlist() const { |
17744 | 3.66k | const ::lua_grammar::FieldList* p = _impl_.fieldlist_; |
17745 | 3.66k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FieldList&>( |
17746 | 0 | ::lua_grammar::_FieldList_default_instance_); |
17747 | 3.66k | } |
17748 | 3.66k | inline const ::lua_grammar::FieldList& TableConstructor::fieldlist() const { |
17749 | | // @@protoc_insertion_point(field_get:lua_grammar.TableConstructor.fieldlist) |
17750 | 3.66k | return _internal_fieldlist(); |
17751 | 3.66k | } |
17752 | | inline void TableConstructor::unsafe_arena_set_allocated_fieldlist( |
17753 | 0 | ::lua_grammar::FieldList* fieldlist) { |
17754 | 0 | if (GetArenaForAllocation() == nullptr) { |
17755 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.fieldlist_); |
17756 | 0 | } |
17757 | 0 | _impl_.fieldlist_ = fieldlist; |
17758 | 0 | if (fieldlist) { |
17759 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
17760 | 0 | } else { |
17761 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17762 | 0 | } |
17763 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.TableConstructor.fieldlist) |
17764 | 0 | } |
17765 | 0 | inline ::lua_grammar::FieldList* TableConstructor::release_fieldlist() { |
17766 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17767 | 0 | ::lua_grammar::FieldList* temp = _impl_.fieldlist_; |
17768 | 0 | _impl_.fieldlist_ = nullptr; |
17769 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
17770 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
17771 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17772 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
17773 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
17774 | 0 | if (GetArenaForAllocation() != nullptr) { |
17775 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17776 | 0 | } |
17777 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
17778 | 0 | return temp; |
17779 | 0 | } |
17780 | 0 | inline ::lua_grammar::FieldList* TableConstructor::unsafe_arena_release_fieldlist() { |
17781 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.TableConstructor.fieldlist) |
17782 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17783 | 0 | ::lua_grammar::FieldList* temp = _impl_.fieldlist_; |
17784 | 0 | _impl_.fieldlist_ = nullptr; |
17785 | 0 | return temp; |
17786 | 0 | } |
17787 | 0 | inline ::lua_grammar::FieldList* TableConstructor::_internal_mutable_fieldlist() { |
17788 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
17789 | 0 | if (_impl_.fieldlist_ == nullptr) { |
17790 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FieldList>(GetArenaForAllocation()); |
17791 | 0 | _impl_.fieldlist_ = p; |
17792 | 0 | } |
17793 | 0 | return _impl_.fieldlist_; |
17794 | 0 | } |
17795 | 0 | inline ::lua_grammar::FieldList* TableConstructor::mutable_fieldlist() { |
17796 | 0 | ::lua_grammar::FieldList* _msg = _internal_mutable_fieldlist(); |
17797 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.TableConstructor.fieldlist) |
17798 | 0 | return _msg; |
17799 | 0 | } |
17800 | 0 | inline void TableConstructor::set_allocated_fieldlist(::lua_grammar::FieldList* fieldlist) { |
17801 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
17802 | 0 | if (message_arena == nullptr) { |
17803 | 0 | delete _impl_.fieldlist_; |
17804 | 0 | } |
17805 | 0 | if (fieldlist) { |
17806 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
17807 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fieldlist); |
17808 | 0 | if (message_arena != submessage_arena) { |
17809 | 0 | fieldlist = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
17810 | 0 | message_arena, fieldlist, submessage_arena); |
17811 | 0 | } |
17812 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
17813 | 0 | } else { |
17814 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17815 | 0 | } |
17816 | 0 | _impl_.fieldlist_ = fieldlist; |
17817 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.TableConstructor.fieldlist) |
17818 | 0 | } |
17819 | | |
17820 | | // ------------------------------------------------------------------- |
17821 | | |
17822 | | // FieldList_FieldWithFieldSep |
17823 | | |
17824 | | // required .lua_grammar.Field field = 1; |
17825 | 3.79k | inline bool FieldList_FieldWithFieldSep::_internal_has_field() const { |
17826 | 3.79k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
17827 | 3.79k | PROTOBUF_ASSUME(!value || _impl_.field_ != nullptr); |
17828 | 3.79k | return value; |
17829 | 3.79k | } |
17830 | 0 | inline bool FieldList_FieldWithFieldSep::has_field() const { |
17831 | 0 | return _internal_has_field(); |
17832 | 0 | } |
17833 | 0 | inline void FieldList_FieldWithFieldSep::clear_field() { |
17834 | 0 | if (_impl_.field_ != nullptr) _impl_.field_->Clear(); |
17835 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17836 | 0 | } |
17837 | 3.27k | inline const ::lua_grammar::Field& FieldList_FieldWithFieldSep::_internal_field() const { |
17838 | 3.27k | const ::lua_grammar::Field* p = _impl_.field_; |
17839 | 3.27k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Field&>( |
17840 | 0 | ::lua_grammar::_Field_default_instance_); |
17841 | 3.27k | } |
17842 | 3.27k | inline const ::lua_grammar::Field& FieldList_FieldWithFieldSep::field() const { |
17843 | | // @@protoc_insertion_point(field_get:lua_grammar.FieldList.FieldWithFieldSep.field) |
17844 | 3.27k | return _internal_field(); |
17845 | 3.27k | } |
17846 | | inline void FieldList_FieldWithFieldSep::unsafe_arena_set_allocated_field( |
17847 | 0 | ::lua_grammar::Field* field) { |
17848 | 0 | if (GetArenaForAllocation() == nullptr) { |
17849 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.field_); |
17850 | 0 | } |
17851 | 0 | _impl_.field_ = field; |
17852 | 0 | if (field) { |
17853 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
17854 | 0 | } else { |
17855 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17856 | 0 | } |
17857 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FieldList.FieldWithFieldSep.field) |
17858 | 0 | } |
17859 | 0 | inline ::lua_grammar::Field* FieldList_FieldWithFieldSep::release_field() { |
17860 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17861 | 0 | ::lua_grammar::Field* temp = _impl_.field_; |
17862 | 0 | _impl_.field_ = nullptr; |
17863 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
17864 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
17865 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17866 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
17867 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
17868 | 0 | if (GetArenaForAllocation() != nullptr) { |
17869 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17870 | 0 | } |
17871 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
17872 | 0 | return temp; |
17873 | 0 | } |
17874 | 0 | inline ::lua_grammar::Field* FieldList_FieldWithFieldSep::unsafe_arena_release_field() { |
17875 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FieldList.FieldWithFieldSep.field) |
17876 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17877 | 0 | ::lua_grammar::Field* temp = _impl_.field_; |
17878 | 0 | _impl_.field_ = nullptr; |
17879 | 0 | return temp; |
17880 | 0 | } |
17881 | 0 | inline ::lua_grammar::Field* FieldList_FieldWithFieldSep::_internal_mutable_field() { |
17882 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
17883 | 0 | if (_impl_.field_ == nullptr) { |
17884 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Field>(GetArenaForAllocation()); |
17885 | 0 | _impl_.field_ = p; |
17886 | 0 | } |
17887 | 0 | return _impl_.field_; |
17888 | 0 | } |
17889 | 0 | inline ::lua_grammar::Field* FieldList_FieldWithFieldSep::mutable_field() { |
17890 | 0 | ::lua_grammar::Field* _msg = _internal_mutable_field(); |
17891 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FieldList.FieldWithFieldSep.field) |
17892 | 0 | return _msg; |
17893 | 0 | } |
17894 | 0 | inline void FieldList_FieldWithFieldSep::set_allocated_field(::lua_grammar::Field* field) { |
17895 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
17896 | 0 | if (message_arena == nullptr) { |
17897 | 0 | delete _impl_.field_; |
17898 | 0 | } |
17899 | 0 | if (field) { |
17900 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
17901 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(field); |
17902 | 0 | if (message_arena != submessage_arena) { |
17903 | 0 | field = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
17904 | 0 | message_arena, field, submessage_arena); |
17905 | 0 | } |
17906 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
17907 | 0 | } else { |
17908 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
17909 | 0 | } |
17910 | 0 | _impl_.field_ = field; |
17911 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FieldList.FieldWithFieldSep.field) |
17912 | 0 | } |
17913 | | |
17914 | | // required .lua_grammar.FieldSep sep = 2; |
17915 | 0 | inline bool FieldList_FieldWithFieldSep::_internal_has_sep() const { |
17916 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
17917 | 0 | PROTOBUF_ASSUME(!value || _impl_.sep_ != nullptr); |
17918 | 0 | return value; |
17919 | 0 | } |
17920 | 0 | inline bool FieldList_FieldWithFieldSep::has_sep() const { |
17921 | 0 | return _internal_has_sep(); |
17922 | 0 | } |
17923 | 0 | inline void FieldList_FieldWithFieldSep::clear_sep() { |
17924 | 0 | if (_impl_.sep_ != nullptr) _impl_.sep_->Clear(); |
17925 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
17926 | 0 | } |
17927 | 3.27k | inline const ::lua_grammar::FieldSep& FieldList_FieldWithFieldSep::_internal_sep() const { |
17928 | 3.27k | const ::lua_grammar::FieldSep* p = _impl_.sep_; |
17929 | 3.27k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FieldSep&>( |
17930 | 0 | ::lua_grammar::_FieldSep_default_instance_); |
17931 | 3.27k | } |
17932 | 3.27k | inline const ::lua_grammar::FieldSep& FieldList_FieldWithFieldSep::sep() const { |
17933 | | // @@protoc_insertion_point(field_get:lua_grammar.FieldList.FieldWithFieldSep.sep) |
17934 | 3.27k | return _internal_sep(); |
17935 | 3.27k | } |
17936 | | inline void FieldList_FieldWithFieldSep::unsafe_arena_set_allocated_sep( |
17937 | 0 | ::lua_grammar::FieldSep* sep) { |
17938 | 0 | if (GetArenaForAllocation() == nullptr) { |
17939 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sep_); |
17940 | 0 | } |
17941 | 0 | _impl_.sep_ = sep; |
17942 | 0 | if (sep) { |
17943 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
17944 | 0 | } else { |
17945 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
17946 | 0 | } |
17947 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FieldList.FieldWithFieldSep.sep) |
17948 | 0 | } |
17949 | 0 | inline ::lua_grammar::FieldSep* FieldList_FieldWithFieldSep::release_sep() { |
17950 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
17951 | 0 | ::lua_grammar::FieldSep* temp = _impl_.sep_; |
17952 | 0 | _impl_.sep_ = nullptr; |
17953 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
17954 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
17955 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17956 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
17957 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
17958 | 0 | if (GetArenaForAllocation() != nullptr) { |
17959 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
17960 | 0 | } |
17961 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
17962 | 0 | return temp; |
17963 | 0 | } |
17964 | 0 | inline ::lua_grammar::FieldSep* FieldList_FieldWithFieldSep::unsafe_arena_release_sep() { |
17965 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FieldList.FieldWithFieldSep.sep) |
17966 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
17967 | 0 | ::lua_grammar::FieldSep* temp = _impl_.sep_; |
17968 | 0 | _impl_.sep_ = nullptr; |
17969 | 0 | return temp; |
17970 | 0 | } |
17971 | 0 | inline ::lua_grammar::FieldSep* FieldList_FieldWithFieldSep::_internal_mutable_sep() { |
17972 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
17973 | 0 | if (_impl_.sep_ == nullptr) { |
17974 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FieldSep>(GetArenaForAllocation()); |
17975 | 0 | _impl_.sep_ = p; |
17976 | 0 | } |
17977 | 0 | return _impl_.sep_; |
17978 | 0 | } |
17979 | 0 | inline ::lua_grammar::FieldSep* FieldList_FieldWithFieldSep::mutable_sep() { |
17980 | 0 | ::lua_grammar::FieldSep* _msg = _internal_mutable_sep(); |
17981 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FieldList.FieldWithFieldSep.sep) |
17982 | 0 | return _msg; |
17983 | 0 | } |
17984 | 0 | inline void FieldList_FieldWithFieldSep::set_allocated_sep(::lua_grammar::FieldSep* sep) { |
17985 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
17986 | 0 | if (message_arena == nullptr) { |
17987 | 0 | delete _impl_.sep_; |
17988 | 0 | } |
17989 | 0 | if (sep) { |
17990 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
17991 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sep); |
17992 | 0 | if (message_arena != submessage_arena) { |
17993 | 0 | sep = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
17994 | 0 | message_arena, sep, submessage_arena); |
17995 | 0 | } |
17996 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
17997 | 0 | } else { |
17998 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
17999 | 0 | } |
18000 | 0 | _impl_.sep_ = sep; |
18001 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FieldList.FieldWithFieldSep.sep) |
18002 | 0 | } |
18003 | | |
18004 | | // ------------------------------------------------------------------- |
18005 | | |
18006 | | // FieldList |
18007 | | |
18008 | | // required .lua_grammar.Field firstField = 1; |
18009 | 4.14k | inline bool FieldList::_internal_has_firstfield() const { |
18010 | 4.14k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
18011 | 4.14k | PROTOBUF_ASSUME(!value || _impl_.firstfield_ != nullptr); |
18012 | 4.14k | return value; |
18013 | 4.14k | } |
18014 | 0 | inline bool FieldList::has_firstfield() const { |
18015 | 0 | return _internal_has_firstfield(); |
18016 | 0 | } |
18017 | 0 | inline void FieldList::clear_firstfield() { |
18018 | 0 | if (_impl_.firstfield_ != nullptr) _impl_.firstfield_->Clear(); |
18019 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18020 | 0 | } |
18021 | 3.66k | inline const ::lua_grammar::Field& FieldList::_internal_firstfield() const { |
18022 | 3.66k | const ::lua_grammar::Field* p = _impl_.firstfield_; |
18023 | 3.66k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Field&>( |
18024 | 0 | ::lua_grammar::_Field_default_instance_); |
18025 | 3.66k | } |
18026 | 3.66k | inline const ::lua_grammar::Field& FieldList::firstfield() const { |
18027 | | // @@protoc_insertion_point(field_get:lua_grammar.FieldList.firstField) |
18028 | 3.66k | return _internal_firstfield(); |
18029 | 3.66k | } |
18030 | | inline void FieldList::unsafe_arena_set_allocated_firstfield( |
18031 | 0 | ::lua_grammar::Field* firstfield) { |
18032 | 0 | if (GetArenaForAllocation() == nullptr) { |
18033 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.firstfield_); |
18034 | 0 | } |
18035 | 0 | _impl_.firstfield_ = firstfield; |
18036 | 0 | if (firstfield) { |
18037 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18038 | 0 | } else { |
18039 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18040 | 0 | } |
18041 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FieldList.firstField) |
18042 | 0 | } |
18043 | 0 | inline ::lua_grammar::Field* FieldList::release_firstfield() { |
18044 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18045 | 0 | ::lua_grammar::Field* temp = _impl_.firstfield_; |
18046 | 0 | _impl_.firstfield_ = nullptr; |
18047 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
18048 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
18049 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18050 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
18051 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
18052 | 0 | if (GetArenaForAllocation() != nullptr) { |
18053 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18054 | 0 | } |
18055 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
18056 | 0 | return temp; |
18057 | 0 | } |
18058 | 0 | inline ::lua_grammar::Field* FieldList::unsafe_arena_release_firstfield() { |
18059 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FieldList.firstField) |
18060 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18061 | 0 | ::lua_grammar::Field* temp = _impl_.firstfield_; |
18062 | 0 | _impl_.firstfield_ = nullptr; |
18063 | 0 | return temp; |
18064 | 0 | } |
18065 | 0 | inline ::lua_grammar::Field* FieldList::_internal_mutable_firstfield() { |
18066 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18067 | 0 | if (_impl_.firstfield_ == nullptr) { |
18068 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Field>(GetArenaForAllocation()); |
18069 | 0 | _impl_.firstfield_ = p; |
18070 | 0 | } |
18071 | 0 | return _impl_.firstfield_; |
18072 | 0 | } |
18073 | 0 | inline ::lua_grammar::Field* FieldList::mutable_firstfield() { |
18074 | 0 | ::lua_grammar::Field* _msg = _internal_mutable_firstfield(); |
18075 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FieldList.firstField) |
18076 | 0 | return _msg; |
18077 | 0 | } |
18078 | 0 | inline void FieldList::set_allocated_firstfield(::lua_grammar::Field* firstfield) { |
18079 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
18080 | 0 | if (message_arena == nullptr) { |
18081 | 0 | delete _impl_.firstfield_; |
18082 | 0 | } |
18083 | 0 | if (firstfield) { |
18084 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
18085 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(firstfield); |
18086 | 0 | if (message_arena != submessage_arena) { |
18087 | 0 | firstfield = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
18088 | 0 | message_arena, firstfield, submessage_arena); |
18089 | 0 | } |
18090 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18091 | 0 | } else { |
18092 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18093 | 0 | } |
18094 | 0 | _impl_.firstfield_ = firstfield; |
18095 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FieldList.firstField) |
18096 | 0 | } |
18097 | | |
18098 | | // repeated .lua_grammar.FieldList.FieldWithFieldSep fields = 2; |
18099 | 6.94k | inline int FieldList::_internal_fields_size() const { |
18100 | 6.94k | return _impl_.fields_.size(); |
18101 | 6.94k | } |
18102 | 6.94k | inline int FieldList::fields_size() const { |
18103 | 6.94k | return _internal_fields_size(); |
18104 | 6.94k | } |
18105 | 0 | inline void FieldList::clear_fields() { |
18106 | 0 | _impl_.fields_.Clear(); |
18107 | 0 | } |
18108 | 0 | inline ::lua_grammar::FieldList_FieldWithFieldSep* FieldList::mutable_fields(int index) { |
18109 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FieldList.fields) |
18110 | 0 | return _impl_.fields_.Mutable(index); |
18111 | 0 | } |
18112 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::FieldList_FieldWithFieldSep >* |
18113 | 0 | FieldList::mutable_fields() { |
18114 | 0 | // @@protoc_insertion_point(field_mutable_list:lua_grammar.FieldList.fields) |
18115 | 0 | return &_impl_.fields_; |
18116 | 0 | } |
18117 | 3.27k | inline const ::lua_grammar::FieldList_FieldWithFieldSep& FieldList::_internal_fields(int index) const { |
18118 | 3.27k | return _impl_.fields_.Get(index); |
18119 | 3.27k | } |
18120 | 3.27k | inline const ::lua_grammar::FieldList_FieldWithFieldSep& FieldList::fields(int index) const { |
18121 | | // @@protoc_insertion_point(field_get:lua_grammar.FieldList.fields) |
18122 | 3.27k | return _internal_fields(index); |
18123 | 3.27k | } |
18124 | 0 | inline ::lua_grammar::FieldList_FieldWithFieldSep* FieldList::_internal_add_fields() { |
18125 | 0 | return _impl_.fields_.Add(); |
18126 | 0 | } |
18127 | 0 | inline ::lua_grammar::FieldList_FieldWithFieldSep* FieldList::add_fields() { |
18128 | 0 | ::lua_grammar::FieldList_FieldWithFieldSep* _add = _internal_add_fields(); |
18129 | 0 | // @@protoc_insertion_point(field_add:lua_grammar.FieldList.fields) |
18130 | 0 | return _add; |
18131 | 0 | } |
18132 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::lua_grammar::FieldList_FieldWithFieldSep >& |
18133 | 0 | FieldList::fields() const { |
18134 | 0 | // @@protoc_insertion_point(field_list:lua_grammar.FieldList.fields) |
18135 | 0 | return _impl_.fields_; |
18136 | 0 | } |
18137 | | |
18138 | | // optional .lua_grammar.FieldSep lastSep = 3; |
18139 | 3.66k | inline bool FieldList::_internal_has_lastsep() const { |
18140 | 3.66k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
18141 | 3.66k | PROTOBUF_ASSUME(!value || _impl_.lastsep_ != nullptr); |
18142 | 3.66k | return value; |
18143 | 3.66k | } |
18144 | 3.66k | inline bool FieldList::has_lastsep() const { |
18145 | 3.66k | return _internal_has_lastsep(); |
18146 | 3.66k | } |
18147 | 0 | inline void FieldList::clear_lastsep() { |
18148 | 0 | if (_impl_.lastsep_ != nullptr) _impl_.lastsep_->Clear(); |
18149 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18150 | 0 | } |
18151 | 841 | inline const ::lua_grammar::FieldSep& FieldList::_internal_lastsep() const { |
18152 | 841 | const ::lua_grammar::FieldSep* p = _impl_.lastsep_; |
18153 | 841 | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::FieldSep&>( |
18154 | 0 | ::lua_grammar::_FieldSep_default_instance_); |
18155 | 841 | } |
18156 | 841 | inline const ::lua_grammar::FieldSep& FieldList::lastsep() const { |
18157 | | // @@protoc_insertion_point(field_get:lua_grammar.FieldList.lastSep) |
18158 | 841 | return _internal_lastsep(); |
18159 | 841 | } |
18160 | | inline void FieldList::unsafe_arena_set_allocated_lastsep( |
18161 | 0 | ::lua_grammar::FieldSep* lastsep) { |
18162 | 0 | if (GetArenaForAllocation() == nullptr) { |
18163 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.lastsep_); |
18164 | 0 | } |
18165 | 0 | _impl_.lastsep_ = lastsep; |
18166 | 0 | if (lastsep) { |
18167 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18168 | 0 | } else { |
18169 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18170 | 0 | } |
18171 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.FieldList.lastSep) |
18172 | 0 | } |
18173 | 0 | inline ::lua_grammar::FieldSep* FieldList::release_lastsep() { |
18174 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18175 | 0 | ::lua_grammar::FieldSep* temp = _impl_.lastsep_; |
18176 | 0 | _impl_.lastsep_ = nullptr; |
18177 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
18178 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
18179 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18180 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
18181 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
18182 | 0 | if (GetArenaForAllocation() != nullptr) { |
18183 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18184 | 0 | } |
18185 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
18186 | 0 | return temp; |
18187 | 0 | } |
18188 | 0 | inline ::lua_grammar::FieldSep* FieldList::unsafe_arena_release_lastsep() { |
18189 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.FieldList.lastSep) |
18190 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18191 | 0 | ::lua_grammar::FieldSep* temp = _impl_.lastsep_; |
18192 | 0 | _impl_.lastsep_ = nullptr; |
18193 | 0 | return temp; |
18194 | 0 | } |
18195 | 0 | inline ::lua_grammar::FieldSep* FieldList::_internal_mutable_lastsep() { |
18196 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18197 | 0 | if (_impl_.lastsep_ == nullptr) { |
18198 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::FieldSep>(GetArenaForAllocation()); |
18199 | 0 | _impl_.lastsep_ = p; |
18200 | 0 | } |
18201 | 0 | return _impl_.lastsep_; |
18202 | 0 | } |
18203 | 0 | inline ::lua_grammar::FieldSep* FieldList::mutable_lastsep() { |
18204 | 0 | ::lua_grammar::FieldSep* _msg = _internal_mutable_lastsep(); |
18205 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.FieldList.lastSep) |
18206 | 0 | return _msg; |
18207 | 0 | } |
18208 | 0 | inline void FieldList::set_allocated_lastsep(::lua_grammar::FieldSep* lastsep) { |
18209 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
18210 | 0 | if (message_arena == nullptr) { |
18211 | 0 | delete _impl_.lastsep_; |
18212 | 0 | } |
18213 | 0 | if (lastsep) { |
18214 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
18215 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(lastsep); |
18216 | 0 | if (message_arena != submessage_arena) { |
18217 | 0 | lastsep = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
18218 | 0 | message_arena, lastsep, submessage_arena); |
18219 | 0 | } |
18220 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18221 | 0 | } else { |
18222 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18223 | 0 | } |
18224 | 0 | _impl_.lastsep_ = lastsep; |
18225 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.FieldList.lastSep) |
18226 | 0 | } |
18227 | | |
18228 | | // ------------------------------------------------------------------- |
18229 | | |
18230 | | // Field_ExpressionAssignment |
18231 | | |
18232 | | // required .lua_grammar.Expression key = 1; |
18233 | 2.22k | inline bool Field_ExpressionAssignment::_internal_has_key() const { |
18234 | 2.22k | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
18235 | 2.22k | PROTOBUF_ASSUME(!value || _impl_.key_ != nullptr); |
18236 | 2.22k | return value; |
18237 | 2.22k | } |
18238 | 0 | inline bool Field_ExpressionAssignment::has_key() const { |
18239 | 0 | return _internal_has_key(); |
18240 | 0 | } |
18241 | 0 | inline void Field_ExpressionAssignment::clear_key() { |
18242 | 0 | if (_impl_.key_ != nullptr) _impl_.key_->Clear(); |
18243 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18244 | 0 | } |
18245 | 1.72k | inline const ::lua_grammar::Expression& Field_ExpressionAssignment::_internal_key() const { |
18246 | 1.72k | const ::lua_grammar::Expression* p = _impl_.key_; |
18247 | 1.72k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
18248 | 0 | ::lua_grammar::_Expression_default_instance_); |
18249 | 1.72k | } |
18250 | 1.72k | inline const ::lua_grammar::Expression& Field_ExpressionAssignment::key() const { |
18251 | | // @@protoc_insertion_point(field_get:lua_grammar.Field.ExpressionAssignment.key) |
18252 | 1.72k | return _internal_key(); |
18253 | 1.72k | } |
18254 | | inline void Field_ExpressionAssignment::unsafe_arena_set_allocated_key( |
18255 | 0 | ::lua_grammar::Expression* key) { |
18256 | 0 | if (GetArenaForAllocation() == nullptr) { |
18257 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.key_); |
18258 | 0 | } |
18259 | 0 | _impl_.key_ = key; |
18260 | 0 | if (key) { |
18261 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18262 | 0 | } else { |
18263 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18264 | 0 | } |
18265 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Field.ExpressionAssignment.key) |
18266 | 0 | } |
18267 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::release_key() { |
18268 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18269 | 0 | ::lua_grammar::Expression* temp = _impl_.key_; |
18270 | 0 | _impl_.key_ = nullptr; |
18271 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
18272 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
18273 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18274 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
18275 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
18276 | 0 | if (GetArenaForAllocation() != nullptr) { |
18277 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18278 | 0 | } |
18279 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
18280 | 0 | return temp; |
18281 | 0 | } |
18282 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::unsafe_arena_release_key() { |
18283 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Field.ExpressionAssignment.key) |
18284 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18285 | 0 | ::lua_grammar::Expression* temp = _impl_.key_; |
18286 | 0 | _impl_.key_ = nullptr; |
18287 | 0 | return temp; |
18288 | 0 | } |
18289 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::_internal_mutable_key() { |
18290 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18291 | 0 | if (_impl_.key_ == nullptr) { |
18292 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
18293 | 0 | _impl_.key_ = p; |
18294 | 0 | } |
18295 | 0 | return _impl_.key_; |
18296 | 0 | } |
18297 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::mutable_key() { |
18298 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_key(); |
18299 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Field.ExpressionAssignment.key) |
18300 | 0 | return _msg; |
18301 | 0 | } |
18302 | 0 | inline void Field_ExpressionAssignment::set_allocated_key(::lua_grammar::Expression* key) { |
18303 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
18304 | 0 | if (message_arena == nullptr) { |
18305 | 0 | delete _impl_.key_; |
18306 | 0 | } |
18307 | 0 | if (key) { |
18308 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
18309 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(key); |
18310 | 0 | if (message_arena != submessage_arena) { |
18311 | 0 | key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
18312 | 0 | message_arena, key, submessage_arena); |
18313 | 0 | } |
18314 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18315 | 0 | } else { |
18316 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18317 | 0 | } |
18318 | 0 | _impl_.key_ = key; |
18319 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Field.ExpressionAssignment.key) |
18320 | 0 | } |
18321 | | |
18322 | | // required .lua_grammar.Expression value = 2; |
18323 | 2.22k | inline bool Field_ExpressionAssignment::_internal_has_value() const { |
18324 | 2.22k | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
18325 | 2.22k | PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); |
18326 | 2.22k | return value; |
18327 | 2.22k | } |
18328 | 0 | inline bool Field_ExpressionAssignment::has_value() const { |
18329 | 0 | return _internal_has_value(); |
18330 | 0 | } |
18331 | 0 | inline void Field_ExpressionAssignment::clear_value() { |
18332 | 0 | if (_impl_.value_ != nullptr) _impl_.value_->Clear(); |
18333 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18334 | 0 | } |
18335 | 1.72k | inline const ::lua_grammar::Expression& Field_ExpressionAssignment::_internal_value() const { |
18336 | 1.72k | const ::lua_grammar::Expression* p = _impl_.value_; |
18337 | 1.72k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
18338 | 0 | ::lua_grammar::_Expression_default_instance_); |
18339 | 1.72k | } |
18340 | 1.72k | inline const ::lua_grammar::Expression& Field_ExpressionAssignment::value() const { |
18341 | | // @@protoc_insertion_point(field_get:lua_grammar.Field.ExpressionAssignment.value) |
18342 | 1.72k | return _internal_value(); |
18343 | 1.72k | } |
18344 | | inline void Field_ExpressionAssignment::unsafe_arena_set_allocated_value( |
18345 | 0 | ::lua_grammar::Expression* value) { |
18346 | 0 | if (GetArenaForAllocation() == nullptr) { |
18347 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); |
18348 | 0 | } |
18349 | 0 | _impl_.value_ = value; |
18350 | 0 | if (value) { |
18351 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18352 | 0 | } else { |
18353 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18354 | 0 | } |
18355 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Field.ExpressionAssignment.value) |
18356 | 0 | } |
18357 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::release_value() { |
18358 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18359 | 0 | ::lua_grammar::Expression* temp = _impl_.value_; |
18360 | 0 | _impl_.value_ = nullptr; |
18361 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
18362 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
18363 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18364 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
18365 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
18366 | 0 | if (GetArenaForAllocation() != nullptr) { |
18367 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18368 | 0 | } |
18369 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
18370 | 0 | return temp; |
18371 | 0 | } |
18372 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::unsafe_arena_release_value() { |
18373 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Field.ExpressionAssignment.value) |
18374 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18375 | 0 | ::lua_grammar::Expression* temp = _impl_.value_; |
18376 | 0 | _impl_.value_ = nullptr; |
18377 | 0 | return temp; |
18378 | 0 | } |
18379 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::_internal_mutable_value() { |
18380 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18381 | 0 | if (_impl_.value_ == nullptr) { |
18382 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
18383 | 0 | _impl_.value_ = p; |
18384 | 0 | } |
18385 | 0 | return _impl_.value_; |
18386 | 0 | } |
18387 | 0 | inline ::lua_grammar::Expression* Field_ExpressionAssignment::mutable_value() { |
18388 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_value(); |
18389 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Field.ExpressionAssignment.value) |
18390 | 0 | return _msg; |
18391 | 0 | } |
18392 | 0 | inline void Field_ExpressionAssignment::set_allocated_value(::lua_grammar::Expression* value) { |
18393 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
18394 | 0 | if (message_arena == nullptr) { |
18395 | 0 | delete _impl_.value_; |
18396 | 0 | } |
18397 | 0 | if (value) { |
18398 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
18399 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); |
18400 | 0 | if (message_arena != submessage_arena) { |
18401 | 0 | value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
18402 | 0 | message_arena, value, submessage_arena); |
18403 | 0 | } |
18404 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18405 | 0 | } else { |
18406 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18407 | 0 | } |
18408 | 0 | _impl_.value_ = value; |
18409 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Field.ExpressionAssignment.value) |
18410 | 0 | } |
18411 | | |
18412 | | // ------------------------------------------------------------------- |
18413 | | |
18414 | | // Field_NameAssignment |
18415 | | |
18416 | | // required .lua_grammar.Name name = 1; |
18417 | 265 | inline bool Field_NameAssignment::_internal_has_name() const { |
18418 | 265 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
18419 | 265 | PROTOBUF_ASSUME(!value || _impl_.name_ != nullptr); |
18420 | 265 | return value; |
18421 | 265 | } |
18422 | 0 | inline bool Field_NameAssignment::has_name() const { |
18423 | 0 | return _internal_has_name(); |
18424 | 0 | } |
18425 | 0 | inline void Field_NameAssignment::clear_name() { |
18426 | 0 | if (_impl_.name_ != nullptr) _impl_.name_->Clear(); |
18427 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18428 | 0 | } |
18429 | 3.41k | inline const ::lua_grammar::Name& Field_NameAssignment::_internal_name() const { |
18430 | 3.41k | const ::lua_grammar::Name* p = _impl_.name_; |
18431 | 3.41k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Name&>( |
18432 | 3.15k | ::lua_grammar::_Name_default_instance_); |
18433 | 3.41k | } |
18434 | 3.41k | inline const ::lua_grammar::Name& Field_NameAssignment::name() const { |
18435 | | // @@protoc_insertion_point(field_get:lua_grammar.Field.NameAssignment.name) |
18436 | 3.41k | return _internal_name(); |
18437 | 3.41k | } |
18438 | | inline void Field_NameAssignment::unsafe_arena_set_allocated_name( |
18439 | 0 | ::lua_grammar::Name* name) { |
18440 | 0 | if (GetArenaForAllocation() == nullptr) { |
18441 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.name_); |
18442 | 0 | } |
18443 | 0 | _impl_.name_ = name; |
18444 | 0 | if (name) { |
18445 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18446 | 0 | } else { |
18447 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18448 | 0 | } |
18449 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Field.NameAssignment.name) |
18450 | 0 | } |
18451 | 0 | inline ::lua_grammar::Name* Field_NameAssignment::release_name() { |
18452 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18453 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
18454 | 0 | _impl_.name_ = nullptr; |
18455 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
18456 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
18457 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18458 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
18459 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
18460 | 0 | if (GetArenaForAllocation() != nullptr) { |
18461 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18462 | 0 | } |
18463 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
18464 | 0 | return temp; |
18465 | 0 | } |
18466 | 0 | inline ::lua_grammar::Name* Field_NameAssignment::unsafe_arena_release_name() { |
18467 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Field.NameAssignment.name) |
18468 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18469 | 0 | ::lua_grammar::Name* temp = _impl_.name_; |
18470 | 0 | _impl_.name_ = nullptr; |
18471 | 0 | return temp; |
18472 | 0 | } |
18473 | 0 | inline ::lua_grammar::Name* Field_NameAssignment::_internal_mutable_name() { |
18474 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18475 | 0 | if (_impl_.name_ == nullptr) { |
18476 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Name>(GetArenaForAllocation()); |
18477 | 0 | _impl_.name_ = p; |
18478 | 0 | } |
18479 | 0 | return _impl_.name_; |
18480 | 0 | } |
18481 | 0 | inline ::lua_grammar::Name* Field_NameAssignment::mutable_name() { |
18482 | 0 | ::lua_grammar::Name* _msg = _internal_mutable_name(); |
18483 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Field.NameAssignment.name) |
18484 | 0 | return _msg; |
18485 | 0 | } |
18486 | 0 | inline void Field_NameAssignment::set_allocated_name(::lua_grammar::Name* name) { |
18487 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
18488 | 0 | if (message_arena == nullptr) { |
18489 | 0 | delete _impl_.name_; |
18490 | 0 | } |
18491 | 0 | if (name) { |
18492 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
18493 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(name); |
18494 | 0 | if (message_arena != submessage_arena) { |
18495 | 0 | name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
18496 | 0 | message_arena, name, submessage_arena); |
18497 | 0 | } |
18498 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
18499 | 0 | } else { |
18500 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
18501 | 0 | } |
18502 | 0 | _impl_.name_ = name; |
18503 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Field.NameAssignment.name) |
18504 | 0 | } |
18505 | | |
18506 | | // required .lua_grammar.Expression value = 2; |
18507 | 265 | inline bool Field_NameAssignment::_internal_has_value() const { |
18508 | 265 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
18509 | 265 | PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr); |
18510 | 265 | return value; |
18511 | 265 | } |
18512 | 0 | inline bool Field_NameAssignment::has_value() const { |
18513 | 0 | return _internal_has_value(); |
18514 | 0 | } |
18515 | 0 | inline void Field_NameAssignment::clear_value() { |
18516 | 0 | if (_impl_.value_ != nullptr) _impl_.value_->Clear(); |
18517 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18518 | 0 | } |
18519 | 3.41k | inline const ::lua_grammar::Expression& Field_NameAssignment::_internal_value() const { |
18520 | 3.41k | const ::lua_grammar::Expression* p = _impl_.value_; |
18521 | 3.41k | return p != nullptr ? *p : reinterpret_cast<const ::lua_grammar::Expression&>( |
18522 | 3.15k | ::lua_grammar::_Expression_default_instance_); |
18523 | 3.41k | } |
18524 | 3.41k | inline const ::lua_grammar::Expression& Field_NameAssignment::value() const { |
18525 | | // @@protoc_insertion_point(field_get:lua_grammar.Field.NameAssignment.value) |
18526 | 3.41k | return _internal_value(); |
18527 | 3.41k | } |
18528 | | inline void Field_NameAssignment::unsafe_arena_set_allocated_value( |
18529 | 0 | ::lua_grammar::Expression* value) { |
18530 | 0 | if (GetArenaForAllocation() == nullptr) { |
18531 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_); |
18532 | 0 | } |
18533 | 0 | _impl_.value_ = value; |
18534 | 0 | if (value) { |
18535 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18536 | 0 | } else { |
18537 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18538 | 0 | } |
18539 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Field.NameAssignment.value) |
18540 | 0 | } |
18541 | 0 | inline ::lua_grammar::Expression* Field_NameAssignment::release_value() { |
18542 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18543 | 0 | ::lua_grammar::Expression* temp = _impl_.value_; |
18544 | 0 | _impl_.value_ = nullptr; |
18545 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
18546 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
18547 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18548 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
18549 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
18550 | 0 | if (GetArenaForAllocation() != nullptr) { |
18551 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18552 | 0 | } |
18553 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
18554 | 0 | return temp; |
18555 | 0 | } |
18556 | 0 | inline ::lua_grammar::Expression* Field_NameAssignment::unsafe_arena_release_value() { |
18557 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Field.NameAssignment.value) |
18558 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18559 | 0 | ::lua_grammar::Expression* temp = _impl_.value_; |
18560 | 0 | _impl_.value_ = nullptr; |
18561 | 0 | return temp; |
18562 | 0 | } |
18563 | 0 | inline ::lua_grammar::Expression* Field_NameAssignment::_internal_mutable_value() { |
18564 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18565 | 0 | if (_impl_.value_ == nullptr) { |
18566 | 0 | auto* p = CreateMaybeMessage<::lua_grammar::Expression>(GetArenaForAllocation()); |
18567 | 0 | _impl_.value_ = p; |
18568 | 0 | } |
18569 | 0 | return _impl_.value_; |
18570 | 0 | } |
18571 | 0 | inline ::lua_grammar::Expression* Field_NameAssignment::mutable_value() { |
18572 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_value(); |
18573 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Field.NameAssignment.value) |
18574 | 0 | return _msg; |
18575 | 0 | } |
18576 | 0 | inline void Field_NameAssignment::set_allocated_value(::lua_grammar::Expression* value) { |
18577 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
18578 | 0 | if (message_arena == nullptr) { |
18579 | 0 | delete _impl_.value_; |
18580 | 0 | } |
18581 | 0 | if (value) { |
18582 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
18583 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value); |
18584 | 0 | if (message_arena != submessage_arena) { |
18585 | 0 | value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
18586 | 0 | message_arena, value, submessage_arena); |
18587 | 0 | } |
18588 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
18589 | 0 | } else { |
18590 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
18591 | 0 | } |
18592 | 0 | _impl_.value_ = value; |
18593 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Field.NameAssignment.value) |
18594 | 0 | } |
18595 | | |
18596 | | // ------------------------------------------------------------------- |
18597 | | |
18598 | | // Field |
18599 | | |
18600 | | // .lua_grammar.Field.ExpressionAssignment exprassign = 1; |
18601 | 3.94k | inline bool Field::_internal_has_exprassign() const { |
18602 | 3.94k | return field_oneof_case() == kExprassign; |
18603 | 3.94k | } |
18604 | 0 | inline bool Field::has_exprassign() const { |
18605 | 0 | return _internal_has_exprassign(); |
18606 | 0 | } |
18607 | 0 | inline void Field::set_has_exprassign() { |
18608 | 0 | _impl_._oneof_case_[0] = kExprassign; |
18609 | 0 | } |
18610 | 0 | inline void Field::clear_exprassign() { |
18611 | 0 | if (_internal_has_exprassign()) { |
18612 | 0 | if (GetArenaForAllocation() == nullptr) { |
18613 | 0 | delete _impl_.field_oneof_.exprassign_; |
18614 | 0 | } |
18615 | 0 | clear_has_field_oneof(); |
18616 | 0 | } |
18617 | 0 | } |
18618 | 0 | inline ::lua_grammar::Field_ExpressionAssignment* Field::release_exprassign() { |
18619 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Field.exprassign) |
18620 | 0 | if (_internal_has_exprassign()) { |
18621 | 0 | clear_has_field_oneof(); |
18622 | 0 | ::lua_grammar::Field_ExpressionAssignment* temp = _impl_.field_oneof_.exprassign_; |
18623 | 0 | if (GetArenaForAllocation() != nullptr) { |
18624 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18625 | 0 | } |
18626 | 0 | _impl_.field_oneof_.exprassign_ = nullptr; |
18627 | 0 | return temp; |
18628 | 0 | } else { |
18629 | 0 | return nullptr; |
18630 | 0 | } |
18631 | 0 | } |
18632 | 1.72k | inline const ::lua_grammar::Field_ExpressionAssignment& Field::_internal_exprassign() const { |
18633 | 1.72k | return _internal_has_exprassign() |
18634 | 1.72k | ? *_impl_.field_oneof_.exprassign_ |
18635 | 1.72k | : reinterpret_cast< ::lua_grammar::Field_ExpressionAssignment&>(::lua_grammar::_Field_ExpressionAssignment_default_instance_); |
18636 | 1.72k | } |
18637 | 1.72k | inline const ::lua_grammar::Field_ExpressionAssignment& Field::exprassign() const { |
18638 | | // @@protoc_insertion_point(field_get:lua_grammar.Field.exprassign) |
18639 | 1.72k | return _internal_exprassign(); |
18640 | 1.72k | } |
18641 | 0 | inline ::lua_grammar::Field_ExpressionAssignment* Field::unsafe_arena_release_exprassign() { |
18642 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Field.exprassign) |
18643 | 0 | if (_internal_has_exprassign()) { |
18644 | 0 | clear_has_field_oneof(); |
18645 | 0 | ::lua_grammar::Field_ExpressionAssignment* temp = _impl_.field_oneof_.exprassign_; |
18646 | 0 | _impl_.field_oneof_.exprassign_ = nullptr; |
18647 | 0 | return temp; |
18648 | 0 | } else { |
18649 | 0 | return nullptr; |
18650 | 0 | } |
18651 | 0 | } |
18652 | 0 | inline void Field::unsafe_arena_set_allocated_exprassign(::lua_grammar::Field_ExpressionAssignment* exprassign) { |
18653 | 0 | clear_field_oneof(); |
18654 | 0 | if (exprassign) { |
18655 | 0 | set_has_exprassign(); |
18656 | 0 | _impl_.field_oneof_.exprassign_ = exprassign; |
18657 | 0 | } |
18658 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Field.exprassign) |
18659 | 0 | } |
18660 | 0 | inline ::lua_grammar::Field_ExpressionAssignment* Field::_internal_mutable_exprassign() { |
18661 | 0 | if (!_internal_has_exprassign()) { |
18662 | 0 | clear_field_oneof(); |
18663 | 0 | set_has_exprassign(); |
18664 | 0 | _impl_.field_oneof_.exprassign_ = CreateMaybeMessage< ::lua_grammar::Field_ExpressionAssignment >(GetArenaForAllocation()); |
18665 | 0 | } |
18666 | 0 | return _impl_.field_oneof_.exprassign_; |
18667 | 0 | } |
18668 | 0 | inline ::lua_grammar::Field_ExpressionAssignment* Field::mutable_exprassign() { |
18669 | 0 | ::lua_grammar::Field_ExpressionAssignment* _msg = _internal_mutable_exprassign(); |
18670 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Field.exprassign) |
18671 | 0 | return _msg; |
18672 | 0 | } |
18673 | | |
18674 | | // .lua_grammar.Field.NameAssignment namedassign = 2; |
18675 | 3.68k | inline bool Field::_internal_has_namedassign() const { |
18676 | 3.68k | return field_oneof_case() == kNamedassign; |
18677 | 3.68k | } |
18678 | 0 | inline bool Field::has_namedassign() const { |
18679 | 0 | return _internal_has_namedassign(); |
18680 | 0 | } |
18681 | 0 | inline void Field::set_has_namedassign() { |
18682 | 0 | _impl_._oneof_case_[0] = kNamedassign; |
18683 | 0 | } |
18684 | 0 | inline void Field::clear_namedassign() { |
18685 | 0 | if (_internal_has_namedassign()) { |
18686 | 0 | if (GetArenaForAllocation() == nullptr) { |
18687 | 0 | delete _impl_.field_oneof_.namedassign_; |
18688 | 0 | } |
18689 | 0 | clear_has_field_oneof(); |
18690 | 0 | } |
18691 | 0 | } |
18692 | 0 | inline ::lua_grammar::Field_NameAssignment* Field::release_namedassign() { |
18693 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Field.namedassign) |
18694 | 0 | if (_internal_has_namedassign()) { |
18695 | 0 | clear_has_field_oneof(); |
18696 | 0 | ::lua_grammar::Field_NameAssignment* temp = _impl_.field_oneof_.namedassign_; |
18697 | 0 | if (GetArenaForAllocation() != nullptr) { |
18698 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18699 | 0 | } |
18700 | 0 | _impl_.field_oneof_.namedassign_ = nullptr; |
18701 | 0 | return temp; |
18702 | 0 | } else { |
18703 | 0 | return nullptr; |
18704 | 0 | } |
18705 | 0 | } |
18706 | 3.41k | inline const ::lua_grammar::Field_NameAssignment& Field::_internal_namedassign() const { |
18707 | 3.41k | return _internal_has_namedassign() |
18708 | 3.41k | ? *_impl_.field_oneof_.namedassign_ |
18709 | 3.41k | : reinterpret_cast< ::lua_grammar::Field_NameAssignment&>(::lua_grammar::_Field_NameAssignment_default_instance_); |
18710 | 3.41k | } |
18711 | 3.41k | inline const ::lua_grammar::Field_NameAssignment& Field::namedassign() const { |
18712 | | // @@protoc_insertion_point(field_get:lua_grammar.Field.namedassign) |
18713 | 3.41k | return _internal_namedassign(); |
18714 | 3.41k | } |
18715 | 0 | inline ::lua_grammar::Field_NameAssignment* Field::unsafe_arena_release_namedassign() { |
18716 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Field.namedassign) |
18717 | 0 | if (_internal_has_namedassign()) { |
18718 | 0 | clear_has_field_oneof(); |
18719 | 0 | ::lua_grammar::Field_NameAssignment* temp = _impl_.field_oneof_.namedassign_; |
18720 | 0 | _impl_.field_oneof_.namedassign_ = nullptr; |
18721 | 0 | return temp; |
18722 | 0 | } else { |
18723 | 0 | return nullptr; |
18724 | 0 | } |
18725 | 0 | } |
18726 | 0 | inline void Field::unsafe_arena_set_allocated_namedassign(::lua_grammar::Field_NameAssignment* namedassign) { |
18727 | 0 | clear_field_oneof(); |
18728 | 0 | if (namedassign) { |
18729 | 0 | set_has_namedassign(); |
18730 | 0 | _impl_.field_oneof_.namedassign_ = namedassign; |
18731 | 0 | } |
18732 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Field.namedassign) |
18733 | 0 | } |
18734 | 0 | inline ::lua_grammar::Field_NameAssignment* Field::_internal_mutable_namedassign() { |
18735 | 0 | if (!_internal_has_namedassign()) { |
18736 | 0 | clear_field_oneof(); |
18737 | 0 | set_has_namedassign(); |
18738 | 0 | _impl_.field_oneof_.namedassign_ = CreateMaybeMessage< ::lua_grammar::Field_NameAssignment >(GetArenaForAllocation()); |
18739 | 0 | } |
18740 | 0 | return _impl_.field_oneof_.namedassign_; |
18741 | 0 | } |
18742 | 0 | inline ::lua_grammar::Field_NameAssignment* Field::mutable_namedassign() { |
18743 | 0 | ::lua_grammar::Field_NameAssignment* _msg = _internal_mutable_namedassign(); |
18744 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Field.namedassign) |
18745 | 0 | return _msg; |
18746 | 0 | } |
18747 | | |
18748 | | // .lua_grammar.Expression expression = 3; |
18749 | 3.94k | inline bool Field::_internal_has_expression() const { |
18750 | 3.94k | return field_oneof_case() == kExpression; |
18751 | 3.94k | } |
18752 | 0 | inline bool Field::has_expression() const { |
18753 | 0 | return _internal_has_expression(); |
18754 | 0 | } |
18755 | 0 | inline void Field::set_has_expression() { |
18756 | 0 | _impl_._oneof_case_[0] = kExpression; |
18757 | 0 | } |
18758 | 0 | inline void Field::clear_expression() { |
18759 | 0 | if (_internal_has_expression()) { |
18760 | 0 | if (GetArenaForAllocation() == nullptr) { |
18761 | 0 | delete _impl_.field_oneof_.expression_; |
18762 | 0 | } |
18763 | 0 | clear_has_field_oneof(); |
18764 | 0 | } |
18765 | 0 | } |
18766 | 0 | inline ::lua_grammar::Expression* Field::release_expression() { |
18767 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Field.expression) |
18768 | 0 | if (_internal_has_expression()) { |
18769 | 0 | clear_has_field_oneof(); |
18770 | 0 | ::lua_grammar::Expression* temp = _impl_.field_oneof_.expression_; |
18771 | 0 | if (GetArenaForAllocation() != nullptr) { |
18772 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
18773 | 0 | } |
18774 | 0 | _impl_.field_oneof_.expression_ = nullptr; |
18775 | 0 | return temp; |
18776 | 0 | } else { |
18777 | 0 | return nullptr; |
18778 | 0 | } |
18779 | 0 | } |
18780 | 1.80k | inline const ::lua_grammar::Expression& Field::_internal_expression() const { |
18781 | 1.80k | return _internal_has_expression() |
18782 | 1.80k | ? *_impl_.field_oneof_.expression_ |
18783 | 1.80k | : reinterpret_cast< ::lua_grammar::Expression&>(::lua_grammar::_Expression_default_instance_); |
18784 | 1.80k | } |
18785 | 1.80k | inline const ::lua_grammar::Expression& Field::expression() const { |
18786 | | // @@protoc_insertion_point(field_get:lua_grammar.Field.expression) |
18787 | 1.80k | return _internal_expression(); |
18788 | 1.80k | } |
18789 | 0 | inline ::lua_grammar::Expression* Field::unsafe_arena_release_expression() { |
18790 | 0 | // @@protoc_insertion_point(field_unsafe_arena_release:lua_grammar.Field.expression) |
18791 | 0 | if (_internal_has_expression()) { |
18792 | 0 | clear_has_field_oneof(); |
18793 | 0 | ::lua_grammar::Expression* temp = _impl_.field_oneof_.expression_; |
18794 | 0 | _impl_.field_oneof_.expression_ = nullptr; |
18795 | 0 | return temp; |
18796 | 0 | } else { |
18797 | 0 | return nullptr; |
18798 | 0 | } |
18799 | 0 | } |
18800 | 0 | inline void Field::unsafe_arena_set_allocated_expression(::lua_grammar::Expression* expression) { |
18801 | 0 | clear_field_oneof(); |
18802 | 0 | if (expression) { |
18803 | 0 | set_has_expression(); |
18804 | 0 | _impl_.field_oneof_.expression_ = expression; |
18805 | 0 | } |
18806 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:lua_grammar.Field.expression) |
18807 | 0 | } |
18808 | 0 | inline ::lua_grammar::Expression* Field::_internal_mutable_expression() { |
18809 | 0 | if (!_internal_has_expression()) { |
18810 | 0 | clear_field_oneof(); |
18811 | 0 | set_has_expression(); |
18812 | 0 | _impl_.field_oneof_.expression_ = CreateMaybeMessage< ::lua_grammar::Expression >(GetArenaForAllocation()); |
18813 | 0 | } |
18814 | 0 | return _impl_.field_oneof_.expression_; |
18815 | 0 | } |
18816 | 0 | inline ::lua_grammar::Expression* Field::mutable_expression() { |
18817 | 0 | ::lua_grammar::Expression* _msg = _internal_mutable_expression(); |
18818 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Field.expression) |
18819 | 0 | return _msg; |
18820 | 0 | } |
18821 | | |
18822 | 8.45k | inline bool Field::has_field_oneof() const { |
18823 | 8.45k | return field_oneof_case() != FIELD_ONEOF_NOT_SET; |
18824 | 8.45k | } |
18825 | 8.45k | inline void Field::clear_has_field_oneof() { |
18826 | 8.45k | _impl_._oneof_case_[0] = FIELD_ONEOF_NOT_SET; |
18827 | 8.45k | } |
18828 | 39.9k | inline Field::FieldOneofCase Field::field_oneof_case() const { |
18829 | 39.9k | return Field::FieldOneofCase(_impl_._oneof_case_[0]); |
18830 | 39.9k | } |
18831 | | // ------------------------------------------------------------------- |
18832 | | |
18833 | | // FieldSep |
18834 | | |
18835 | | // uint32 comma = 1; |
18836 | 0 | inline bool FieldSep::_internal_has_comma() const { |
18837 | 0 | return sep_oneof_case() == kComma; |
18838 | 0 | } |
18839 | 0 | inline bool FieldSep::has_comma() const { |
18840 | 0 | return _internal_has_comma(); |
18841 | 0 | } |
18842 | 0 | inline void FieldSep::set_has_comma() { |
18843 | 0 | _impl_._oneof_case_[0] = kComma; |
18844 | 0 | } |
18845 | 0 | inline void FieldSep::clear_comma() { |
18846 | 0 | if (_internal_has_comma()) { |
18847 | 0 | _impl_.sep_oneof_.comma_ = 0u; |
18848 | 0 | clear_has_sep_oneof(); |
18849 | 0 | } |
18850 | 0 | } |
18851 | 0 | inline uint32_t FieldSep::_internal_comma() const { |
18852 | 0 | if (_internal_has_comma()) { |
18853 | 0 | return _impl_.sep_oneof_.comma_; |
18854 | 0 | } |
18855 | 0 | return 0u; |
18856 | 0 | } |
18857 | 0 | inline void FieldSep::_internal_set_comma(uint32_t value) { |
18858 | 0 | if (!_internal_has_comma()) { |
18859 | 0 | clear_sep_oneof(); |
18860 | 0 | set_has_comma(); |
18861 | 0 | } |
18862 | 0 | _impl_.sep_oneof_.comma_ = value; |
18863 | 0 | } |
18864 | 0 | inline uint32_t FieldSep::comma() const { |
18865 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.FieldSep.comma) |
18866 | 0 | return _internal_comma(); |
18867 | 0 | } |
18868 | 0 | inline void FieldSep::set_comma(uint32_t value) { |
18869 | 0 | _internal_set_comma(value); |
18870 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.FieldSep.comma) |
18871 | 0 | } |
18872 | | |
18873 | | // uint32 semicolon = 2; |
18874 | 0 | inline bool FieldSep::_internal_has_semicolon() const { |
18875 | 0 | return sep_oneof_case() == kSemicolon; |
18876 | 0 | } |
18877 | 0 | inline bool FieldSep::has_semicolon() const { |
18878 | 0 | return _internal_has_semicolon(); |
18879 | 0 | } |
18880 | 0 | inline void FieldSep::set_has_semicolon() { |
18881 | 0 | _impl_._oneof_case_[0] = kSemicolon; |
18882 | 0 | } |
18883 | 0 | inline void FieldSep::clear_semicolon() { |
18884 | 0 | if (_internal_has_semicolon()) { |
18885 | 0 | _impl_.sep_oneof_.semicolon_ = 0u; |
18886 | 0 | clear_has_sep_oneof(); |
18887 | 0 | } |
18888 | 0 | } |
18889 | 0 | inline uint32_t FieldSep::_internal_semicolon() const { |
18890 | 0 | if (_internal_has_semicolon()) { |
18891 | 0 | return _impl_.sep_oneof_.semicolon_; |
18892 | 0 | } |
18893 | 0 | return 0u; |
18894 | 0 | } |
18895 | 0 | inline void FieldSep::_internal_set_semicolon(uint32_t value) { |
18896 | 0 | if (!_internal_has_semicolon()) { |
18897 | 0 | clear_sep_oneof(); |
18898 | 0 | set_has_semicolon(); |
18899 | 0 | } |
18900 | 0 | _impl_.sep_oneof_.semicolon_ = value; |
18901 | 0 | } |
18902 | 0 | inline uint32_t FieldSep::semicolon() const { |
18903 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.FieldSep.semicolon) |
18904 | 0 | return _internal_semicolon(); |
18905 | 0 | } |
18906 | 0 | inline void FieldSep::set_semicolon(uint32_t value) { |
18907 | 0 | _internal_set_semicolon(value); |
18908 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.FieldSep.semicolon) |
18909 | 0 | } |
18910 | | |
18911 | 4.79k | inline bool FieldSep::has_sep_oneof() const { |
18912 | 4.79k | return sep_oneof_case() != SEP_ONEOF_NOT_SET; |
18913 | 4.79k | } |
18914 | 4.79k | inline void FieldSep::clear_has_sep_oneof() { |
18915 | 4.79k | _impl_._oneof_case_[0] = SEP_ONEOF_NOT_SET; |
18916 | 4.79k | } |
18917 | 10.7k | inline FieldSep::SepOneofCase FieldSep::sep_oneof_case() const { |
18918 | 10.7k | return FieldSep::SepOneofCase(_impl_._oneof_case_[0]); |
18919 | 10.7k | } |
18920 | | // ------------------------------------------------------------------- |
18921 | | |
18922 | | // BinaryOperator |
18923 | | |
18924 | | // uint32 add = 1; |
18925 | 0 | inline bool BinaryOperator::_internal_has_add() const { |
18926 | 0 | return binary_oneof_case() == kAdd; |
18927 | 0 | } |
18928 | 0 | inline bool BinaryOperator::has_add() const { |
18929 | 0 | return _internal_has_add(); |
18930 | 0 | } |
18931 | 0 | inline void BinaryOperator::set_has_add() { |
18932 | 0 | _impl_._oneof_case_[0] = kAdd; |
18933 | 0 | } |
18934 | 0 | inline void BinaryOperator::clear_add() { |
18935 | 0 | if (_internal_has_add()) { |
18936 | 0 | _impl_.binary_oneof_.add_ = 0u; |
18937 | 0 | clear_has_binary_oneof(); |
18938 | 0 | } |
18939 | 0 | } |
18940 | 0 | inline uint32_t BinaryOperator::_internal_add() const { |
18941 | 0 | if (_internal_has_add()) { |
18942 | 0 | return _impl_.binary_oneof_.add_; |
18943 | 0 | } |
18944 | 0 | return 0u; |
18945 | 0 | } |
18946 | 0 | inline void BinaryOperator::_internal_set_add(uint32_t value) { |
18947 | 0 | if (!_internal_has_add()) { |
18948 | 0 | clear_binary_oneof(); |
18949 | 0 | set_has_add(); |
18950 | 0 | } |
18951 | 0 | _impl_.binary_oneof_.add_ = value; |
18952 | 0 | } |
18953 | 0 | inline uint32_t BinaryOperator::add() const { |
18954 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.add) |
18955 | 0 | return _internal_add(); |
18956 | 0 | } |
18957 | 0 | inline void BinaryOperator::set_add(uint32_t value) { |
18958 | 0 | _internal_set_add(value); |
18959 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.add) |
18960 | 0 | } |
18961 | | |
18962 | | // uint32 sub = 2; |
18963 | 0 | inline bool BinaryOperator::_internal_has_sub() const { |
18964 | 0 | return binary_oneof_case() == kSub; |
18965 | 0 | } |
18966 | 0 | inline bool BinaryOperator::has_sub() const { |
18967 | 0 | return _internal_has_sub(); |
18968 | 0 | } |
18969 | 0 | inline void BinaryOperator::set_has_sub() { |
18970 | 0 | _impl_._oneof_case_[0] = kSub; |
18971 | 0 | } |
18972 | 0 | inline void BinaryOperator::clear_sub() { |
18973 | 0 | if (_internal_has_sub()) { |
18974 | 0 | _impl_.binary_oneof_.sub_ = 0u; |
18975 | 0 | clear_has_binary_oneof(); |
18976 | 0 | } |
18977 | 0 | } |
18978 | 0 | inline uint32_t BinaryOperator::_internal_sub() const { |
18979 | 0 | if (_internal_has_sub()) { |
18980 | 0 | return _impl_.binary_oneof_.sub_; |
18981 | 0 | } |
18982 | 0 | return 0u; |
18983 | 0 | } |
18984 | 0 | inline void BinaryOperator::_internal_set_sub(uint32_t value) { |
18985 | 0 | if (!_internal_has_sub()) { |
18986 | 0 | clear_binary_oneof(); |
18987 | 0 | set_has_sub(); |
18988 | 0 | } |
18989 | 0 | _impl_.binary_oneof_.sub_ = value; |
18990 | 0 | } |
18991 | 0 | inline uint32_t BinaryOperator::sub() const { |
18992 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.sub) |
18993 | 0 | return _internal_sub(); |
18994 | 0 | } |
18995 | 0 | inline void BinaryOperator::set_sub(uint32_t value) { |
18996 | 0 | _internal_set_sub(value); |
18997 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.sub) |
18998 | 0 | } |
18999 | | |
19000 | | // uint32 mult = 3; |
19001 | 0 | inline bool BinaryOperator::_internal_has_mult() const { |
19002 | 0 | return binary_oneof_case() == kMult; |
19003 | 0 | } |
19004 | 0 | inline bool BinaryOperator::has_mult() const { |
19005 | 0 | return _internal_has_mult(); |
19006 | 0 | } |
19007 | 0 | inline void BinaryOperator::set_has_mult() { |
19008 | 0 | _impl_._oneof_case_[0] = kMult; |
19009 | 0 | } |
19010 | 0 | inline void BinaryOperator::clear_mult() { |
19011 | 0 | if (_internal_has_mult()) { |
19012 | 0 | _impl_.binary_oneof_.mult_ = 0u; |
19013 | 0 | clear_has_binary_oneof(); |
19014 | 0 | } |
19015 | 0 | } |
19016 | 0 | inline uint32_t BinaryOperator::_internal_mult() const { |
19017 | 0 | if (_internal_has_mult()) { |
19018 | 0 | return _impl_.binary_oneof_.mult_; |
19019 | 0 | } |
19020 | 0 | return 0u; |
19021 | 0 | } |
19022 | 0 | inline void BinaryOperator::_internal_set_mult(uint32_t value) { |
19023 | 0 | if (!_internal_has_mult()) { |
19024 | 0 | clear_binary_oneof(); |
19025 | 0 | set_has_mult(); |
19026 | 0 | } |
19027 | 0 | _impl_.binary_oneof_.mult_ = value; |
19028 | 0 | } |
19029 | 0 | inline uint32_t BinaryOperator::mult() const { |
19030 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.mult) |
19031 | 0 | return _internal_mult(); |
19032 | 0 | } |
19033 | 0 | inline void BinaryOperator::set_mult(uint32_t value) { |
19034 | 0 | _internal_set_mult(value); |
19035 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.mult) |
19036 | 0 | } |
19037 | | |
19038 | | // uint32 div = 4; |
19039 | 0 | inline bool BinaryOperator::_internal_has_div() const { |
19040 | 0 | return binary_oneof_case() == kDiv; |
19041 | 0 | } |
19042 | 0 | inline bool BinaryOperator::has_div() const { |
19043 | 0 | return _internal_has_div(); |
19044 | 0 | } |
19045 | 0 | inline void BinaryOperator::set_has_div() { |
19046 | 0 | _impl_._oneof_case_[0] = kDiv; |
19047 | 0 | } |
19048 | 0 | inline void BinaryOperator::clear_div() { |
19049 | 0 | if (_internal_has_div()) { |
19050 | 0 | _impl_.binary_oneof_.div_ = 0u; |
19051 | 0 | clear_has_binary_oneof(); |
19052 | 0 | } |
19053 | 0 | } |
19054 | 0 | inline uint32_t BinaryOperator::_internal_div() const { |
19055 | 0 | if (_internal_has_div()) { |
19056 | 0 | return _impl_.binary_oneof_.div_; |
19057 | 0 | } |
19058 | 0 | return 0u; |
19059 | 0 | } |
19060 | 0 | inline void BinaryOperator::_internal_set_div(uint32_t value) { |
19061 | 0 | if (!_internal_has_div()) { |
19062 | 0 | clear_binary_oneof(); |
19063 | 0 | set_has_div(); |
19064 | 0 | } |
19065 | 0 | _impl_.binary_oneof_.div_ = value; |
19066 | 0 | } |
19067 | 0 | inline uint32_t BinaryOperator::div() const { |
19068 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.div) |
19069 | 0 | return _internal_div(); |
19070 | 0 | } |
19071 | 0 | inline void BinaryOperator::set_div(uint32_t value) { |
19072 | 0 | _internal_set_div(value); |
19073 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.div) |
19074 | 0 | } |
19075 | | |
19076 | | // uint32 exp = 5; |
19077 | 0 | inline bool BinaryOperator::_internal_has_exp() const { |
19078 | 0 | return binary_oneof_case() == kExp; |
19079 | 0 | } |
19080 | 0 | inline bool BinaryOperator::has_exp() const { |
19081 | 0 | return _internal_has_exp(); |
19082 | 0 | } |
19083 | 0 | inline void BinaryOperator::set_has_exp() { |
19084 | 0 | _impl_._oneof_case_[0] = kExp; |
19085 | 0 | } |
19086 | 0 | inline void BinaryOperator::clear_exp() { |
19087 | 0 | if (_internal_has_exp()) { |
19088 | 0 | _impl_.binary_oneof_.exp_ = 0u; |
19089 | 0 | clear_has_binary_oneof(); |
19090 | 0 | } |
19091 | 0 | } |
19092 | 0 | inline uint32_t BinaryOperator::_internal_exp() const { |
19093 | 0 | if (_internal_has_exp()) { |
19094 | 0 | return _impl_.binary_oneof_.exp_; |
19095 | 0 | } |
19096 | 0 | return 0u; |
19097 | 0 | } |
19098 | 0 | inline void BinaryOperator::_internal_set_exp(uint32_t value) { |
19099 | 0 | if (!_internal_has_exp()) { |
19100 | 0 | clear_binary_oneof(); |
19101 | 0 | set_has_exp(); |
19102 | 0 | } |
19103 | 0 | _impl_.binary_oneof_.exp_ = value; |
19104 | 0 | } |
19105 | 0 | inline uint32_t BinaryOperator::exp() const { |
19106 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.exp) |
19107 | 0 | return _internal_exp(); |
19108 | 0 | } |
19109 | 0 | inline void BinaryOperator::set_exp(uint32_t value) { |
19110 | 0 | _internal_set_exp(value); |
19111 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.exp) |
19112 | 0 | } |
19113 | | |
19114 | | // uint32 mod = 6; |
19115 | 0 | inline bool BinaryOperator::_internal_has_mod() const { |
19116 | 0 | return binary_oneof_case() == kMod; |
19117 | 0 | } |
19118 | 0 | inline bool BinaryOperator::has_mod() const { |
19119 | 0 | return _internal_has_mod(); |
19120 | 0 | } |
19121 | 0 | inline void BinaryOperator::set_has_mod() { |
19122 | 0 | _impl_._oneof_case_[0] = kMod; |
19123 | 0 | } |
19124 | 0 | inline void BinaryOperator::clear_mod() { |
19125 | 0 | if (_internal_has_mod()) { |
19126 | 0 | _impl_.binary_oneof_.mod_ = 0u; |
19127 | 0 | clear_has_binary_oneof(); |
19128 | 0 | } |
19129 | 0 | } |
19130 | 0 | inline uint32_t BinaryOperator::_internal_mod() const { |
19131 | 0 | if (_internal_has_mod()) { |
19132 | 0 | return _impl_.binary_oneof_.mod_; |
19133 | 0 | } |
19134 | 0 | return 0u; |
19135 | 0 | } |
19136 | 0 | inline void BinaryOperator::_internal_set_mod(uint32_t value) { |
19137 | 0 | if (!_internal_has_mod()) { |
19138 | 0 | clear_binary_oneof(); |
19139 | 0 | set_has_mod(); |
19140 | 0 | } |
19141 | 0 | _impl_.binary_oneof_.mod_ = value; |
19142 | 0 | } |
19143 | 0 | inline uint32_t BinaryOperator::mod() const { |
19144 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.mod) |
19145 | 0 | return _internal_mod(); |
19146 | 0 | } |
19147 | 0 | inline void BinaryOperator::set_mod(uint32_t value) { |
19148 | 0 | _internal_set_mod(value); |
19149 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.mod) |
19150 | 0 | } |
19151 | | |
19152 | | // uint32 concat = 7; |
19153 | 0 | inline bool BinaryOperator::_internal_has_concat() const { |
19154 | 0 | return binary_oneof_case() == kConcat; |
19155 | 0 | } |
19156 | 0 | inline bool BinaryOperator::has_concat() const { |
19157 | 0 | return _internal_has_concat(); |
19158 | 0 | } |
19159 | 0 | inline void BinaryOperator::set_has_concat() { |
19160 | 0 | _impl_._oneof_case_[0] = kConcat; |
19161 | 0 | } |
19162 | 0 | inline void BinaryOperator::clear_concat() { |
19163 | 0 | if (_internal_has_concat()) { |
19164 | 0 | _impl_.binary_oneof_.concat_ = 0u; |
19165 | 0 | clear_has_binary_oneof(); |
19166 | 0 | } |
19167 | 0 | } |
19168 | 0 | inline uint32_t BinaryOperator::_internal_concat() const { |
19169 | 0 | if (_internal_has_concat()) { |
19170 | 0 | return _impl_.binary_oneof_.concat_; |
19171 | 0 | } |
19172 | 0 | return 0u; |
19173 | 0 | } |
19174 | 0 | inline void BinaryOperator::_internal_set_concat(uint32_t value) { |
19175 | 0 | if (!_internal_has_concat()) { |
19176 | 0 | clear_binary_oneof(); |
19177 | 0 | set_has_concat(); |
19178 | 0 | } |
19179 | 0 | _impl_.binary_oneof_.concat_ = value; |
19180 | 0 | } |
19181 | 0 | inline uint32_t BinaryOperator::concat() const { |
19182 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.concat) |
19183 | 0 | return _internal_concat(); |
19184 | 0 | } |
19185 | 0 | inline void BinaryOperator::set_concat(uint32_t value) { |
19186 | 0 | _internal_set_concat(value); |
19187 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.concat) |
19188 | 0 | } |
19189 | | |
19190 | | // uint32 less = 8; |
19191 | 0 | inline bool BinaryOperator::_internal_has_less() const { |
19192 | 0 | return binary_oneof_case() == kLess; |
19193 | 0 | } |
19194 | 0 | inline bool BinaryOperator::has_less() const { |
19195 | 0 | return _internal_has_less(); |
19196 | 0 | } |
19197 | 0 | inline void BinaryOperator::set_has_less() { |
19198 | 0 | _impl_._oneof_case_[0] = kLess; |
19199 | 0 | } |
19200 | 0 | inline void BinaryOperator::clear_less() { |
19201 | 0 | if (_internal_has_less()) { |
19202 | 0 | _impl_.binary_oneof_.less_ = 0u; |
19203 | 0 | clear_has_binary_oneof(); |
19204 | 0 | } |
19205 | 0 | } |
19206 | 0 | inline uint32_t BinaryOperator::_internal_less() const { |
19207 | 0 | if (_internal_has_less()) { |
19208 | 0 | return _impl_.binary_oneof_.less_; |
19209 | 0 | } |
19210 | 0 | return 0u; |
19211 | 0 | } |
19212 | 0 | inline void BinaryOperator::_internal_set_less(uint32_t value) { |
19213 | 0 | if (!_internal_has_less()) { |
19214 | 0 | clear_binary_oneof(); |
19215 | 0 | set_has_less(); |
19216 | 0 | } |
19217 | 0 | _impl_.binary_oneof_.less_ = value; |
19218 | 0 | } |
19219 | 0 | inline uint32_t BinaryOperator::less() const { |
19220 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.less) |
19221 | 0 | return _internal_less(); |
19222 | 0 | } |
19223 | 0 | inline void BinaryOperator::set_less(uint32_t value) { |
19224 | 0 | _internal_set_less(value); |
19225 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.less) |
19226 | 0 | } |
19227 | | |
19228 | | // uint32 lessEqual = 9; |
19229 | 0 | inline bool BinaryOperator::_internal_has_lessequal() const { |
19230 | 0 | return binary_oneof_case() == kLessEqual; |
19231 | 0 | } |
19232 | 0 | inline bool BinaryOperator::has_lessequal() const { |
19233 | 0 | return _internal_has_lessequal(); |
19234 | 0 | } |
19235 | 0 | inline void BinaryOperator::set_has_lessequal() { |
19236 | 0 | _impl_._oneof_case_[0] = kLessEqual; |
19237 | 0 | } |
19238 | 0 | inline void BinaryOperator::clear_lessequal() { |
19239 | 0 | if (_internal_has_lessequal()) { |
19240 | 0 | _impl_.binary_oneof_.lessequal_ = 0u; |
19241 | 0 | clear_has_binary_oneof(); |
19242 | 0 | } |
19243 | 0 | } |
19244 | 0 | inline uint32_t BinaryOperator::_internal_lessequal() const { |
19245 | 0 | if (_internal_has_lessequal()) { |
19246 | 0 | return _impl_.binary_oneof_.lessequal_; |
19247 | 0 | } |
19248 | 0 | return 0u; |
19249 | 0 | } |
19250 | 0 | inline void BinaryOperator::_internal_set_lessequal(uint32_t value) { |
19251 | 0 | if (!_internal_has_lessequal()) { |
19252 | 0 | clear_binary_oneof(); |
19253 | 0 | set_has_lessequal(); |
19254 | 0 | } |
19255 | 0 | _impl_.binary_oneof_.lessequal_ = value; |
19256 | 0 | } |
19257 | 0 | inline uint32_t BinaryOperator::lessequal() const { |
19258 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.lessEqual) |
19259 | 0 | return _internal_lessequal(); |
19260 | 0 | } |
19261 | 0 | inline void BinaryOperator::set_lessequal(uint32_t value) { |
19262 | 0 | _internal_set_lessequal(value); |
19263 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.lessEqual) |
19264 | 0 | } |
19265 | | |
19266 | | // uint32 greater = 10; |
19267 | 0 | inline bool BinaryOperator::_internal_has_greater() const { |
19268 | 0 | return binary_oneof_case() == kGreater; |
19269 | 0 | } |
19270 | 0 | inline bool BinaryOperator::has_greater() const { |
19271 | 0 | return _internal_has_greater(); |
19272 | 0 | } |
19273 | 0 | inline void BinaryOperator::set_has_greater() { |
19274 | 0 | _impl_._oneof_case_[0] = kGreater; |
19275 | 0 | } |
19276 | 0 | inline void BinaryOperator::clear_greater() { |
19277 | 0 | if (_internal_has_greater()) { |
19278 | 0 | _impl_.binary_oneof_.greater_ = 0u; |
19279 | 0 | clear_has_binary_oneof(); |
19280 | 0 | } |
19281 | 0 | } |
19282 | 0 | inline uint32_t BinaryOperator::_internal_greater() const { |
19283 | 0 | if (_internal_has_greater()) { |
19284 | 0 | return _impl_.binary_oneof_.greater_; |
19285 | 0 | } |
19286 | 0 | return 0u; |
19287 | 0 | } |
19288 | 0 | inline void BinaryOperator::_internal_set_greater(uint32_t value) { |
19289 | 0 | if (!_internal_has_greater()) { |
19290 | 0 | clear_binary_oneof(); |
19291 | 0 | set_has_greater(); |
19292 | 0 | } |
19293 | 0 | _impl_.binary_oneof_.greater_ = value; |
19294 | 0 | } |
19295 | 0 | inline uint32_t BinaryOperator::greater() const { |
19296 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.greater) |
19297 | 0 | return _internal_greater(); |
19298 | 0 | } |
19299 | 0 | inline void BinaryOperator::set_greater(uint32_t value) { |
19300 | 0 | _internal_set_greater(value); |
19301 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.greater) |
19302 | 0 | } |
19303 | | |
19304 | | // uint32 greaterEqual = 11; |
19305 | 0 | inline bool BinaryOperator::_internal_has_greaterequal() const { |
19306 | 0 | return binary_oneof_case() == kGreaterEqual; |
19307 | 0 | } |
19308 | 0 | inline bool BinaryOperator::has_greaterequal() const { |
19309 | 0 | return _internal_has_greaterequal(); |
19310 | 0 | } |
19311 | 0 | inline void BinaryOperator::set_has_greaterequal() { |
19312 | 0 | _impl_._oneof_case_[0] = kGreaterEqual; |
19313 | 0 | } |
19314 | 0 | inline void BinaryOperator::clear_greaterequal() { |
19315 | 0 | if (_internal_has_greaterequal()) { |
19316 | 0 | _impl_.binary_oneof_.greaterequal_ = 0u; |
19317 | 0 | clear_has_binary_oneof(); |
19318 | 0 | } |
19319 | 0 | } |
19320 | 0 | inline uint32_t BinaryOperator::_internal_greaterequal() const { |
19321 | 0 | if (_internal_has_greaterequal()) { |
19322 | 0 | return _impl_.binary_oneof_.greaterequal_; |
19323 | 0 | } |
19324 | 0 | return 0u; |
19325 | 0 | } |
19326 | 0 | inline void BinaryOperator::_internal_set_greaterequal(uint32_t value) { |
19327 | 0 | if (!_internal_has_greaterequal()) { |
19328 | 0 | clear_binary_oneof(); |
19329 | 0 | set_has_greaterequal(); |
19330 | 0 | } |
19331 | 0 | _impl_.binary_oneof_.greaterequal_ = value; |
19332 | 0 | } |
19333 | 0 | inline uint32_t BinaryOperator::greaterequal() const { |
19334 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.greaterEqual) |
19335 | 0 | return _internal_greaterequal(); |
19336 | 0 | } |
19337 | 0 | inline void BinaryOperator::set_greaterequal(uint32_t value) { |
19338 | 0 | _internal_set_greaterequal(value); |
19339 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.greaterEqual) |
19340 | 0 | } |
19341 | | |
19342 | | // uint32 equal = 12; |
19343 | 0 | inline bool BinaryOperator::_internal_has_equal() const { |
19344 | 0 | return binary_oneof_case() == kEqual; |
19345 | 0 | } |
19346 | 0 | inline bool BinaryOperator::has_equal() const { |
19347 | 0 | return _internal_has_equal(); |
19348 | 0 | } |
19349 | 0 | inline void BinaryOperator::set_has_equal() { |
19350 | 0 | _impl_._oneof_case_[0] = kEqual; |
19351 | 0 | } |
19352 | 0 | inline void BinaryOperator::clear_equal() { |
19353 | 0 | if (_internal_has_equal()) { |
19354 | 0 | _impl_.binary_oneof_.equal_ = 0u; |
19355 | 0 | clear_has_binary_oneof(); |
19356 | 0 | } |
19357 | 0 | } |
19358 | 0 | inline uint32_t BinaryOperator::_internal_equal() const { |
19359 | 0 | if (_internal_has_equal()) { |
19360 | 0 | return _impl_.binary_oneof_.equal_; |
19361 | 0 | } |
19362 | 0 | return 0u; |
19363 | 0 | } |
19364 | 0 | inline void BinaryOperator::_internal_set_equal(uint32_t value) { |
19365 | 0 | if (!_internal_has_equal()) { |
19366 | 0 | clear_binary_oneof(); |
19367 | 0 | set_has_equal(); |
19368 | 0 | } |
19369 | 0 | _impl_.binary_oneof_.equal_ = value; |
19370 | 0 | } |
19371 | 0 | inline uint32_t BinaryOperator::equal() const { |
19372 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.equal) |
19373 | 0 | return _internal_equal(); |
19374 | 0 | } |
19375 | 0 | inline void BinaryOperator::set_equal(uint32_t value) { |
19376 | 0 | _internal_set_equal(value); |
19377 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.equal) |
19378 | 0 | } |
19379 | | |
19380 | | // uint32 notEqual = 13; |
19381 | 0 | inline bool BinaryOperator::_internal_has_notequal() const { |
19382 | 0 | return binary_oneof_case() == kNotEqual; |
19383 | 0 | } |
19384 | 0 | inline bool BinaryOperator::has_notequal() const { |
19385 | 0 | return _internal_has_notequal(); |
19386 | 0 | } |
19387 | 0 | inline void BinaryOperator::set_has_notequal() { |
19388 | 0 | _impl_._oneof_case_[0] = kNotEqual; |
19389 | 0 | } |
19390 | 0 | inline void BinaryOperator::clear_notequal() { |
19391 | 0 | if (_internal_has_notequal()) { |
19392 | 0 | _impl_.binary_oneof_.notequal_ = 0u; |
19393 | 0 | clear_has_binary_oneof(); |
19394 | 0 | } |
19395 | 0 | } |
19396 | 0 | inline uint32_t BinaryOperator::_internal_notequal() const { |
19397 | 0 | if (_internal_has_notequal()) { |
19398 | 0 | return _impl_.binary_oneof_.notequal_; |
19399 | 0 | } |
19400 | 0 | return 0u; |
19401 | 0 | } |
19402 | 0 | inline void BinaryOperator::_internal_set_notequal(uint32_t value) { |
19403 | 0 | if (!_internal_has_notequal()) { |
19404 | 0 | clear_binary_oneof(); |
19405 | 0 | set_has_notequal(); |
19406 | 0 | } |
19407 | 0 | _impl_.binary_oneof_.notequal_ = value; |
19408 | 0 | } |
19409 | 0 | inline uint32_t BinaryOperator::notequal() const { |
19410 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.notEqual) |
19411 | 0 | return _internal_notequal(); |
19412 | 0 | } |
19413 | 0 | inline void BinaryOperator::set_notequal(uint32_t value) { |
19414 | 0 | _internal_set_notequal(value); |
19415 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.notEqual) |
19416 | 0 | } |
19417 | | |
19418 | | // uint32 and = 14; |
19419 | 0 | inline bool BinaryOperator::_internal_has_and_() const { |
19420 | 0 | return binary_oneof_case() == kAnd; |
19421 | 0 | } |
19422 | 0 | inline bool BinaryOperator::has_and_() const { |
19423 | 0 | return _internal_has_and_(); |
19424 | 0 | } |
19425 | 0 | inline void BinaryOperator::set_has_and_() { |
19426 | 0 | _impl_._oneof_case_[0] = kAnd; |
19427 | 0 | } |
19428 | 0 | inline void BinaryOperator::clear_and_() { |
19429 | 0 | if (_internal_has_and_()) { |
19430 | 0 | _impl_.binary_oneof_.and__ = 0u; |
19431 | 0 | clear_has_binary_oneof(); |
19432 | 0 | } |
19433 | 0 | } |
19434 | 0 | inline uint32_t BinaryOperator::_internal_and_() const { |
19435 | 0 | if (_internal_has_and_()) { |
19436 | 0 | return _impl_.binary_oneof_.and__; |
19437 | 0 | } |
19438 | 0 | return 0u; |
19439 | 0 | } |
19440 | 0 | inline void BinaryOperator::_internal_set_and_(uint32_t value) { |
19441 | 0 | if (!_internal_has_and_()) { |
19442 | 0 | clear_binary_oneof(); |
19443 | 0 | set_has_and_(); |
19444 | 0 | } |
19445 | 0 | _impl_.binary_oneof_.and__ = value; |
19446 | 0 | } |
19447 | 0 | inline uint32_t BinaryOperator::and_() const { |
19448 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.and) |
19449 | 0 | return _internal_and_(); |
19450 | 0 | } |
19451 | 0 | inline void BinaryOperator::set_and_(uint32_t value) { |
19452 | 0 | _internal_set_and_(value); |
19453 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.and) |
19454 | 0 | } |
19455 | | |
19456 | | // uint32 or = 15; |
19457 | 0 | inline bool BinaryOperator::_internal_has_or_() const { |
19458 | 0 | return binary_oneof_case() == kOr; |
19459 | 0 | } |
19460 | 0 | inline bool BinaryOperator::has_or_() const { |
19461 | 0 | return _internal_has_or_(); |
19462 | 0 | } |
19463 | 0 | inline void BinaryOperator::set_has_or_() { |
19464 | 0 | _impl_._oneof_case_[0] = kOr; |
19465 | 0 | } |
19466 | 0 | inline void BinaryOperator::clear_or_() { |
19467 | 0 | if (_internal_has_or_()) { |
19468 | 0 | _impl_.binary_oneof_.or__ = 0u; |
19469 | 0 | clear_has_binary_oneof(); |
19470 | 0 | } |
19471 | 0 | } |
19472 | 0 | inline uint32_t BinaryOperator::_internal_or_() const { |
19473 | 0 | if (_internal_has_or_()) { |
19474 | 0 | return _impl_.binary_oneof_.or__; |
19475 | 0 | } |
19476 | 0 | return 0u; |
19477 | 0 | } |
19478 | 0 | inline void BinaryOperator::_internal_set_or_(uint32_t value) { |
19479 | 0 | if (!_internal_has_or_()) { |
19480 | 0 | clear_binary_oneof(); |
19481 | 0 | set_has_or_(); |
19482 | 0 | } |
19483 | 0 | _impl_.binary_oneof_.or__ = value; |
19484 | 0 | } |
19485 | 0 | inline uint32_t BinaryOperator::or_() const { |
19486 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.BinaryOperator.or) |
19487 | 0 | return _internal_or_(); |
19488 | 0 | } |
19489 | 0 | inline void BinaryOperator::set_or_(uint32_t value) { |
19490 | 0 | _internal_set_or_(value); |
19491 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.BinaryOperator.or) |
19492 | 0 | } |
19493 | | |
19494 | 18.9k | inline bool BinaryOperator::has_binary_oneof() const { |
19495 | 18.9k | return binary_oneof_case() != BINARY_ONEOF_NOT_SET; |
19496 | 18.9k | } |
19497 | 18.9k | inline void BinaryOperator::clear_has_binary_oneof() { |
19498 | 18.9k | _impl_._oneof_case_[0] = BINARY_ONEOF_NOT_SET; |
19499 | 18.9k | } |
19500 | 51.6k | inline BinaryOperator::BinaryOneofCase BinaryOperator::binary_oneof_case() const { |
19501 | 51.6k | return BinaryOperator::BinaryOneofCase(_impl_._oneof_case_[0]); |
19502 | 51.6k | } |
19503 | | // ------------------------------------------------------------------- |
19504 | | |
19505 | | // UnaryOperator |
19506 | | |
19507 | | // uint32 negate = 1; |
19508 | 0 | inline bool UnaryOperator::_internal_has_negate() const { |
19509 | 0 | return unary_oneof_case() == kNegate; |
19510 | 0 | } |
19511 | 0 | inline bool UnaryOperator::has_negate() const { |
19512 | 0 | return _internal_has_negate(); |
19513 | 0 | } |
19514 | 0 | inline void UnaryOperator::set_has_negate() { |
19515 | 0 | _impl_._oneof_case_[0] = kNegate; |
19516 | 0 | } |
19517 | 0 | inline void UnaryOperator::clear_negate() { |
19518 | 0 | if (_internal_has_negate()) { |
19519 | 0 | _impl_.unary_oneof_.negate_ = 0u; |
19520 | 0 | clear_has_unary_oneof(); |
19521 | 0 | } |
19522 | 0 | } |
19523 | 0 | inline uint32_t UnaryOperator::_internal_negate() const { |
19524 | 0 | if (_internal_has_negate()) { |
19525 | 0 | return _impl_.unary_oneof_.negate_; |
19526 | 0 | } |
19527 | 0 | return 0u; |
19528 | 0 | } |
19529 | 0 | inline void UnaryOperator::_internal_set_negate(uint32_t value) { |
19530 | 0 | if (!_internal_has_negate()) { |
19531 | 0 | clear_unary_oneof(); |
19532 | 0 | set_has_negate(); |
19533 | 0 | } |
19534 | 0 | _impl_.unary_oneof_.negate_ = value; |
19535 | 0 | } |
19536 | 0 | inline uint32_t UnaryOperator::negate() const { |
19537 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.UnaryOperator.negate) |
19538 | 0 | return _internal_negate(); |
19539 | 0 | } |
19540 | 0 | inline void UnaryOperator::set_negate(uint32_t value) { |
19541 | 0 | _internal_set_negate(value); |
19542 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.UnaryOperator.negate) |
19543 | 0 | } |
19544 | | |
19545 | | // uint32 not = 2; |
19546 | 0 | inline bool UnaryOperator::_internal_has_not_() const { |
19547 | 0 | return unary_oneof_case() == kNot; |
19548 | 0 | } |
19549 | 0 | inline bool UnaryOperator::has_not_() const { |
19550 | 0 | return _internal_has_not_(); |
19551 | 0 | } |
19552 | 0 | inline void UnaryOperator::set_has_not_() { |
19553 | 0 | _impl_._oneof_case_[0] = kNot; |
19554 | 0 | } |
19555 | 0 | inline void UnaryOperator::clear_not_() { |
19556 | 0 | if (_internal_has_not_()) { |
19557 | 0 | _impl_.unary_oneof_.not__ = 0u; |
19558 | 0 | clear_has_unary_oneof(); |
19559 | 0 | } |
19560 | 0 | } |
19561 | 0 | inline uint32_t UnaryOperator::_internal_not_() const { |
19562 | 0 | if (_internal_has_not_()) { |
19563 | 0 | return _impl_.unary_oneof_.not__; |
19564 | 0 | } |
19565 | 0 | return 0u; |
19566 | 0 | } |
19567 | 0 | inline void UnaryOperator::_internal_set_not_(uint32_t value) { |
19568 | 0 | if (!_internal_has_not_()) { |
19569 | 0 | clear_unary_oneof(); |
19570 | 0 | set_has_not_(); |
19571 | 0 | } |
19572 | 0 | _impl_.unary_oneof_.not__ = value; |
19573 | 0 | } |
19574 | 0 | inline uint32_t UnaryOperator::not_() const { |
19575 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.UnaryOperator.not) |
19576 | 0 | return _internal_not_(); |
19577 | 0 | } |
19578 | 0 | inline void UnaryOperator::set_not_(uint32_t value) { |
19579 | 0 | _internal_set_not_(value); |
19580 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.UnaryOperator.not) |
19581 | 0 | } |
19582 | | |
19583 | | // uint32 length = 3; |
19584 | 0 | inline bool UnaryOperator::_internal_has_length() const { |
19585 | 0 | return unary_oneof_case() == kLength; |
19586 | 0 | } |
19587 | 0 | inline bool UnaryOperator::has_length() const { |
19588 | 0 | return _internal_has_length(); |
19589 | 0 | } |
19590 | 0 | inline void UnaryOperator::set_has_length() { |
19591 | 0 | _impl_._oneof_case_[0] = kLength; |
19592 | 0 | } |
19593 | 0 | inline void UnaryOperator::clear_length() { |
19594 | 0 | if (_internal_has_length()) { |
19595 | 0 | _impl_.unary_oneof_.length_ = 0u; |
19596 | 0 | clear_has_unary_oneof(); |
19597 | 0 | } |
19598 | 0 | } |
19599 | 0 | inline uint32_t UnaryOperator::_internal_length() const { |
19600 | 0 | if (_internal_has_length()) { |
19601 | 0 | return _impl_.unary_oneof_.length_; |
19602 | 0 | } |
19603 | 0 | return 0u; |
19604 | 0 | } |
19605 | 0 | inline void UnaryOperator::_internal_set_length(uint32_t value) { |
19606 | 0 | if (!_internal_has_length()) { |
19607 | 0 | clear_unary_oneof(); |
19608 | 0 | set_has_length(); |
19609 | 0 | } |
19610 | 0 | _impl_.unary_oneof_.length_ = value; |
19611 | 0 | } |
19612 | 0 | inline uint32_t UnaryOperator::length() const { |
19613 | 0 | // @@protoc_insertion_point(field_get:lua_grammar.UnaryOperator.length) |
19614 | 0 | return _internal_length(); |
19615 | 0 | } |
19616 | 0 | inline void UnaryOperator::set_length(uint32_t value) { |
19617 | 0 | _internal_set_length(value); |
19618 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.UnaryOperator.length) |
19619 | 0 | } |
19620 | | |
19621 | 4.97k | inline bool UnaryOperator::has_unary_oneof() const { |
19622 | 4.97k | return unary_oneof_case() != UNARY_ONEOF_NOT_SET; |
19623 | 4.97k | } |
19624 | 4.97k | inline void UnaryOperator::clear_has_unary_oneof() { |
19625 | 4.97k | _impl_._oneof_case_[0] = UNARY_ONEOF_NOT_SET; |
19626 | 4.97k | } |
19627 | 12.4k | inline UnaryOperator::UnaryOneofCase UnaryOperator::unary_oneof_case() const { |
19628 | 12.4k | return UnaryOperator::UnaryOneofCase(_impl_._oneof_case_[0]); |
19629 | 12.4k | } |
19630 | | // ------------------------------------------------------------------- |
19631 | | |
19632 | | // Name |
19633 | | |
19634 | | // required string name = 1; |
19635 | 0 | inline bool Name::_internal_has_name() const { |
19636 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
19637 | 0 | return value; |
19638 | 0 | } |
19639 | 0 | inline bool Name::has_name() const { |
19640 | 0 | return _internal_has_name(); |
19641 | 0 | } |
19642 | 0 | inline void Name::clear_name() { |
19643 | 0 | _impl_.name_.ClearToEmpty(); |
19644 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
19645 | 0 | } |
19646 | 95.2k | inline const std::string& Name::name() const { |
19647 | | // @@protoc_insertion_point(field_get:lua_grammar.Name.name) |
19648 | 95.2k | return _internal_name(); |
19649 | 95.2k | } |
19650 | | template <typename ArgT0, typename... ArgT> |
19651 | | inline PROTOBUF_ALWAYS_INLINE |
19652 | | void Name::set_name(ArgT0&& arg0, ArgT... args) { |
19653 | | _impl_._has_bits_[0] |= 0x00000001u; |
19654 | | _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
19655 | | // @@protoc_insertion_point(field_set:lua_grammar.Name.name) |
19656 | | } |
19657 | 0 | inline std::string* Name::mutable_name() { |
19658 | 0 | std::string* _s = _internal_mutable_name(); |
19659 | 0 | // @@protoc_insertion_point(field_mutable:lua_grammar.Name.name) |
19660 | 0 | return _s; |
19661 | 0 | } |
19662 | 95.2k | inline const std::string& Name::_internal_name() const { |
19663 | 95.2k | return _impl_.name_.Get(); |
19664 | 95.2k | } |
19665 | 0 | inline void Name::_internal_set_name(const std::string& value) { |
19666 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
19667 | 0 | _impl_.name_.Set(value, GetArenaForAllocation()); |
19668 | 0 | } |
19669 | 0 | inline std::string* Name::_internal_mutable_name() { |
19670 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
19671 | 0 | return _impl_.name_.Mutable(GetArenaForAllocation()); |
19672 | 0 | } |
19673 | 0 | inline std::string* Name::release_name() { |
19674 | 0 | // @@protoc_insertion_point(field_release:lua_grammar.Name.name) |
19675 | 0 | if (!_internal_has_name()) { |
19676 | 0 | return nullptr; |
19677 | 0 | } |
19678 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
19679 | 0 | auto* p = _impl_.name_.Release(); |
19680 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
19681 | 0 | if (_impl_.name_.IsDefault()) { |
19682 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
19683 | 0 | } |
19684 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
19685 | 0 | return p; |
19686 | 0 | } |
19687 | 0 | inline void Name::set_allocated_name(std::string* name) { |
19688 | 0 | if (name != nullptr) { |
19689 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
19690 | 0 | } else { |
19691 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
19692 | 0 | } |
19693 | 0 | _impl_.name_.SetAllocated(name, GetArenaForAllocation()); |
19694 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
19695 | 0 | if (_impl_.name_.IsDefault()) { |
19696 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
19697 | 0 | } |
19698 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
19699 | 0 | // @@protoc_insertion_point(field_set_allocated:lua_grammar.Name.name) |
19700 | 0 | } |
19701 | | |
19702 | | // required uint32 num = 2; |
19703 | 0 | inline bool Name::_internal_has_num() const { |
19704 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
19705 | 0 | return value; |
19706 | 0 | } |
19707 | 0 | inline bool Name::has_num() const { |
19708 | 0 | return _internal_has_num(); |
19709 | 0 | } |
19710 | 0 | inline void Name::clear_num() { |
19711 | 0 | _impl_.num_ = 0u; |
19712 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
19713 | 0 | } |
19714 | 95.2k | inline uint32_t Name::_internal_num() const { |
19715 | 95.2k | return _impl_.num_; |
19716 | 95.2k | } |
19717 | 95.2k | inline uint32_t Name::num() const { |
19718 | | // @@protoc_insertion_point(field_get:lua_grammar.Name.num) |
19719 | 95.2k | return _internal_num(); |
19720 | 95.2k | } |
19721 | 0 | inline void Name::_internal_set_num(uint32_t value) { |
19722 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
19723 | 0 | _impl_.num_ = value; |
19724 | 0 | } |
19725 | 0 | inline void Name::set_num(uint32_t value) { |
19726 | 0 | _internal_set_num(value); |
19727 | 0 | // @@protoc_insertion_point(field_set:lua_grammar.Name.num) |
19728 | 0 | } |
19729 | | |
19730 | | #ifdef __GNUC__ |
19731 | | #pragma GCC diagnostic pop |
19732 | | #endif // __GNUC__ |
19733 | | // ------------------------------------------------------------------- |
19734 | | |
19735 | | // ------------------------------------------------------------------- |
19736 | | |
19737 | | // ------------------------------------------------------------------- |
19738 | | |
19739 | | // ------------------------------------------------------------------- |
19740 | | |
19741 | | // ------------------------------------------------------------------- |
19742 | | |
19743 | | // ------------------------------------------------------------------- |
19744 | | |
19745 | | // ------------------------------------------------------------------- |
19746 | | |
19747 | | // ------------------------------------------------------------------- |
19748 | | |
19749 | | // ------------------------------------------------------------------- |
19750 | | |
19751 | | // ------------------------------------------------------------------- |
19752 | | |
19753 | | // ------------------------------------------------------------------- |
19754 | | |
19755 | | // ------------------------------------------------------------------- |
19756 | | |
19757 | | // ------------------------------------------------------------------- |
19758 | | |
19759 | | // ------------------------------------------------------------------- |
19760 | | |
19761 | | // ------------------------------------------------------------------- |
19762 | | |
19763 | | // ------------------------------------------------------------------- |
19764 | | |
19765 | | // ------------------------------------------------------------------- |
19766 | | |
19767 | | // ------------------------------------------------------------------- |
19768 | | |
19769 | | // ------------------------------------------------------------------- |
19770 | | |
19771 | | // ------------------------------------------------------------------- |
19772 | | |
19773 | | // ------------------------------------------------------------------- |
19774 | | |
19775 | | // ------------------------------------------------------------------- |
19776 | | |
19777 | | // ------------------------------------------------------------------- |
19778 | | |
19779 | | // ------------------------------------------------------------------- |
19780 | | |
19781 | | // ------------------------------------------------------------------- |
19782 | | |
19783 | | // ------------------------------------------------------------------- |
19784 | | |
19785 | | // ------------------------------------------------------------------- |
19786 | | |
19787 | | // ------------------------------------------------------------------- |
19788 | | |
19789 | | // ------------------------------------------------------------------- |
19790 | | |
19791 | | // ------------------------------------------------------------------- |
19792 | | |
19793 | | // ------------------------------------------------------------------- |
19794 | | |
19795 | | // ------------------------------------------------------------------- |
19796 | | |
19797 | | // ------------------------------------------------------------------- |
19798 | | |
19799 | | // ------------------------------------------------------------------- |
19800 | | |
19801 | | // ------------------------------------------------------------------- |
19802 | | |
19803 | | // ------------------------------------------------------------------- |
19804 | | |
19805 | | // ------------------------------------------------------------------- |
19806 | | |
19807 | | // ------------------------------------------------------------------- |
19808 | | |
19809 | | // ------------------------------------------------------------------- |
19810 | | |
19811 | | // ------------------------------------------------------------------- |
19812 | | |
19813 | | // ------------------------------------------------------------------- |
19814 | | |
19815 | | // ------------------------------------------------------------------- |
19816 | | |
19817 | | // ------------------------------------------------------------------- |
19818 | | |
19819 | | // ------------------------------------------------------------------- |
19820 | | |
19821 | | // ------------------------------------------------------------------- |
19822 | | |
19823 | | |
19824 | | // @@protoc_insertion_point(namespace_scope) |
19825 | | |
19826 | | } // namespace lua_grammar |
19827 | | |
19828 | | // @@protoc_insertion_point(global_scope) |
19829 | | |
19830 | | #include <google/protobuf/port_undef.inc> |
19831 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_lua_5fgrammar_2eproto |