1#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 moon_sharp::interpreter::tree::{
10 nodebase::{INodeBase, NodeBase},
11 statement::{IStatement, Statement},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/tree/statements/labelstatement/LabelStatement.md"))]
17 #[::unity::class(namespace = "MoonSharp.Interpreter.Tree.Statements", name = "LabelStatement")]
18 #[parent(crate::moon_sharp::interpreter::tree::statement::Statement)]
19 pub struct LabelStatement {
20 #[offset(80)]
21 #[rename(name = "m_Gotos")]
22 pub m_gotos:
23 crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement>,
24 #[offset(88)]
25 #[rename(name = "m_StackFrame")]
26 pub m_stack_frame: crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock,
27 }
28}
29
30#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement-types")]
31pub use __types::*;
32
33#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement")]
34#[doc(hidden)]
35#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
36mod __LabelStatement_unity_raw {
37 use super::*;
38 #[doc(hidden)]
39 #[allow(non_snake_case)]
40 pub mod __lookup_get_label {
41 use super::*;
42 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
43 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
44 ::unity::lookup::method_info_on_class_with_signature(
45 <LabelStatement as ::unity::ClassIdentity>::class(),
46 "get_Label",
47 0,
48 param_types,
49 false,
50 )
51 });
52 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53 match &*METHOD {
54 ::core::result::Result::Ok(mi) => *mi,
55 ::core::result::Result::Err(e) => {
56 panic!(
57 "method lookup failed: {}
58::{}
59: {}
60",
61 <LabelStatement as ::unity::ClassIdentity>::NAME,
62 "get_Label",
63 e
64 )
65 },
66 }
67 }
68 }
69 #[doc(hidden)]
70 #[allow(non_snake_case)]
71 pub mod __lookup_set_label {
72 use super::*;
73 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
74 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
75 ::unity::lookup::method_info_on_class_with_signature(
76 <LabelStatement as ::unity::ClassIdentity>::class(),
77 "set_Label",
78 1,
79 param_types,
80 false,
81 )
82 });
83 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 match &*METHOD {
85 ::core::result::Result::Ok(mi) => *mi,
86 ::core::result::Result::Err(e) => {
87 panic!(
88 "method lookup failed: {}
89::{}
90: {}
91",
92 <LabelStatement as ::unity::ClassIdentity>::NAME,
93 "set_Label",
94 e
95 )
96 },
97 }
98 }
99 }
100 #[doc(hidden)]
101 #[allow(non_snake_case)]
102 pub mod __lookup_get_address {
103 use super::*;
104 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
105 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
106 ::unity::lookup::method_info_on_class_with_signature(
107 <LabelStatement as ::unity::ClassIdentity>::class(),
108 "get_Address",
109 0,
110 param_types,
111 false,
112 )
113 });
114 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 match &*METHOD {
116 ::core::result::Result::Ok(mi) => *mi,
117 ::core::result::Result::Err(e) => {
118 panic!(
119 "method lookup failed: {}
120::{}
121: {}
122",
123 <LabelStatement as ::unity::ClassIdentity>::NAME,
124 "get_Address",
125 e
126 )
127 },
128 }
129 }
130 }
131 #[doc(hidden)]
132 #[allow(non_snake_case)]
133 pub mod __lookup_set_address {
134 use super::*;
135 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
136 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
137 ::unity::lookup::method_info_on_class_with_signature(
138 <LabelStatement as ::unity::ClassIdentity>::class(),
139 "set_Address",
140 1,
141 param_types,
142 false,
143 )
144 });
145 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146 match &*METHOD {
147 ::core::result::Result::Ok(mi) => *mi,
148 ::core::result::Result::Err(e) => {
149 panic!(
150 "method lookup failed: {}
151::{}
152: {}
153",
154 <LabelStatement as ::unity::ClassIdentity>::NAME,
155 "set_Address",
156 e
157 )
158 },
159 }
160 }
161 }
162 #[doc(hidden)]
163 #[allow(non_snake_case)]
164 pub mod __lookup_get_source_ref {
165 use super::*;
166 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
167 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
168 ::unity::lookup::method_info_on_class_with_signature(
169 <LabelStatement as ::unity::ClassIdentity>::class(),
170 "get_SourceRef",
171 0,
172 param_types,
173 false,
174 )
175 });
176 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 match &*METHOD {
178 ::core::result::Result::Ok(mi) => *mi,
179 ::core::result::Result::Err(e) => {
180 panic!(
181 "method lookup failed: {}
182::{}
183: {}
184",
185 <LabelStatement as ::unity::ClassIdentity>::NAME,
186 "get_SourceRef",
187 e
188 )
189 },
190 }
191 }
192 }
193 #[doc(hidden)]
194 #[allow(non_snake_case)]
195 pub mod __lookup_set_source_ref {
196 use super::*;
197 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
198 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
199 &[<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef as ::unity::IlType>::il_type()];
200 ::unity::lookup::method_info_on_class_with_signature(
201 <LabelStatement as ::unity::ClassIdentity>::class(),
202 "set_SourceRef",
203 1,
204 param_types,
205 false,
206 )
207 });
208 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 match &*METHOD {
210 ::core::result::Result::Ok(mi) => *mi,
211 ::core::result::Result::Err(e) => {
212 panic!(
213 "method lookup failed: {}
214::{}
215: {}
216",
217 <LabelStatement as ::unity::ClassIdentity>::NAME,
218 "set_SourceRef",
219 e
220 )
221 },
222 }
223 }
224 }
225 #[doc(hidden)]
226 #[allow(non_snake_case)]
227 pub mod __lookup_get_name_token {
228 use super::*;
229 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
230 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
231 ::unity::lookup::method_info_on_class_with_signature(
232 <LabelStatement as ::unity::ClassIdentity>::class(),
233 "get_NameToken",
234 0,
235 param_types,
236 false,
237 )
238 });
239 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 match &*METHOD {
241 ::core::result::Result::Ok(mi) => *mi,
242 ::core::result::Result::Err(e) => {
243 panic!(
244 "method lookup failed: {}
245::{}
246: {}
247",
248 <LabelStatement as ::unity::ClassIdentity>::NAME,
249 "get_NameToken",
250 e
251 )
252 },
253 }
254 }
255 }
256 #[doc(hidden)]
257 #[allow(non_snake_case)]
258 pub mod __lookup_set_name_token {
259 use super::*;
260 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
261 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
262 &[<crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type()];
263 ::unity::lookup::method_info_on_class_with_signature(
264 <LabelStatement as ::unity::ClassIdentity>::class(),
265 "set_NameToken",
266 1,
267 param_types,
268 false,
269 )
270 });
271 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 match &*METHOD {
273 ::core::result::Result::Ok(mi) => *mi,
274 ::core::result::Result::Err(e) => {
275 panic!(
276 "method lookup failed: {}
277::{}
278: {}
279",
280 <LabelStatement as ::unity::ClassIdentity>::NAME,
281 "set_NameToken",
282 e
283 )
284 },
285 }
286 }
287 }
288 #[doc(hidden)]
289 #[allow(non_snake_case)]
290 pub mod __lookup_get_defined_vars_count {
291 use super::*;
292 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
293 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
294 ::unity::lookup::method_info_on_class_with_signature(
295 <LabelStatement as ::unity::ClassIdentity>::class(),
296 "get_DefinedVarsCount",
297 0,
298 param_types,
299 false,
300 )
301 });
302 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 match &*METHOD {
304 ::core::result::Result::Ok(mi) => *mi,
305 ::core::result::Result::Err(e) => {
306 panic!(
307 "method lookup failed: {}
308::{}
309: {}
310",
311 <LabelStatement as ::unity::ClassIdentity>::NAME,
312 "get_DefinedVarsCount",
313 e
314 )
315 },
316 }
317 }
318 }
319 #[doc(hidden)]
320 #[allow(non_snake_case)]
321 pub mod __lookup_set_defined_vars_count {
322 use super::*;
323 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
324 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
325 ::unity::lookup::method_info_on_class_with_signature(
326 <LabelStatement as ::unity::ClassIdentity>::class(),
327 "set_DefinedVarsCount",
328 1,
329 param_types,
330 false,
331 )
332 });
333 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334 match &*METHOD {
335 ::core::result::Result::Ok(mi) => *mi,
336 ::core::result::Result::Err(e) => {
337 panic!(
338 "method lookup failed: {}
339::{}
340: {}
341",
342 <LabelStatement as ::unity::ClassIdentity>::NAME,
343 "set_DefinedVarsCount",
344 e
345 )
346 },
347 }
348 }
349 }
350 #[doc(hidden)]
351 #[allow(non_snake_case)]
352 pub mod __lookup_get_last_defined_var_name {
353 use super::*;
354 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
355 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
356 ::unity::lookup::method_info_on_class_with_signature(
357 <LabelStatement as ::unity::ClassIdentity>::class(),
358 "get_LastDefinedVarName",
359 0,
360 param_types,
361 false,
362 )
363 });
364 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 match &*METHOD {
366 ::core::result::Result::Ok(mi) => *mi,
367 ::core::result::Result::Err(e) => {
368 panic!(
369 "method lookup failed: {}
370::{}
371: {}
372",
373 <LabelStatement as ::unity::ClassIdentity>::NAME,
374 "get_LastDefinedVarName",
375 e
376 )
377 },
378 }
379 }
380 }
381 #[doc(hidden)]
382 #[allow(non_snake_case)]
383 pub mod __lookup_set_last_defined_var_name {
384 use super::*;
385 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
386 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
387 ::unity::lookup::method_info_on_class_with_signature(
388 <LabelStatement as ::unity::ClassIdentity>::class(),
389 "set_LastDefinedVarName",
390 1,
391 param_types,
392 false,
393 )
394 });
395 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 match &*METHOD {
397 ::core::result::Result::Ok(mi) => *mi,
398 ::core::result::Result::Err(e) => {
399 panic!(
400 "method lookup failed: {}
401::{}
402: {}
403",
404 <LabelStatement as ::unity::ClassIdentity>::NAME,
405 "set_LastDefinedVarName",
406 e
407 )
408 },
409 }
410 }
411 }
412 #[doc(hidden)]
413 #[allow(non_snake_case)]
414 pub mod __lookup_ctor {
415 use super::*;
416 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
417 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
418 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
419 ::unity::lookup::method_info_on_class_with_signature(<LabelStatement as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
420 });
421 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 match &*METHOD {
423 ::core::result::Result::Ok(mi) => *mi,
424 ::core::result::Result::Err(e) => {
425 panic!(
426 "method lookup failed: {}
427::{}
428: {}
429",
430 <LabelStatement as ::unity::ClassIdentity>::NAME,
431 ".ctor",
432 e
433 )
434 },
435 }
436 }
437 }
438 #[doc(hidden)]
439 #[allow(non_snake_case)]
440 pub mod __lookup_set_defined_vars {
441 use super::*;
442 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
443 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
444 &[<i32 as ::unity::IlType>::il_type(), <::unity::Il2CppString as ::unity::IlType>::il_type()];
445 ::unity::lookup::method_info_on_class_with_signature(
446 <LabelStatement as ::unity::ClassIdentity>::class(),
447 "SetDefinedVars",
448 2,
449 param_types,
450 false,
451 )
452 });
453 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 match &*METHOD {
455 ::core::result::Result::Ok(mi) => *mi,
456 ::core::result::Result::Err(e) => {
457 panic!(
458 "method lookup failed: {}
459::{}
460: {}
461",
462 <LabelStatement as ::unity::ClassIdentity>::NAME,
463 "SetDefinedVars",
464 e
465 )
466 },
467 }
468 }
469 }
470 #[doc(hidden)]
471 #[allow(non_snake_case)]
472 pub mod __lookup_register_goto {
473 use super::*;
474 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
475 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
476 &[<crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement as ::unity::IlType>::il_type()];
477 ::unity::lookup::method_info_on_class_with_signature(
478 <LabelStatement as ::unity::ClassIdentity>::class(),
479 "RegisterGoto",
480 1,
481 param_types,
482 false,
483 )
484 });
485 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486 match &*METHOD {
487 ::core::result::Result::Ok(mi) => *mi,
488 ::core::result::Result::Err(e) => {
489 panic!(
490 "method lookup failed: {}
491::{}
492: {}
493",
494 <LabelStatement as ::unity::ClassIdentity>::NAME,
495 "RegisterGoto",
496 e
497 )
498 },
499 }
500 }
501 }
502 #[doc(hidden)]
503 #[allow(non_snake_case)]
504 pub mod __lookup_set_scope {
505 use super::*;
506 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
507 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
508 &[<crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock as ::unity::IlType>::il_type()];
509 ::unity::lookup::method_info_on_class_with_signature(
510 <LabelStatement as ::unity::ClassIdentity>::class(),
511 "SetScope",
512 1,
513 param_types,
514 false,
515 )
516 });
517 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 match &*METHOD {
519 ::core::result::Result::Ok(mi) => *mi,
520 ::core::result::Result::Err(e) => {
521 panic!(
522 "method lookup failed: {}
523::{}
524: {}
525",
526 <LabelStatement as ::unity::ClassIdentity>::NAME,
527 "SetScope",
528 e
529 )
530 },
531 }
532 }
533 }
534}
535
536#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement")]
537pub trait ILabelStatementMethods: ILabelStatement {
538 #[doc = "`get_Label()` overload"]
539 fn get_label(self) -> ::unity::Il2CppString {
540 unsafe {
541 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
542 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_get_label::get_method_info().method_ptr, ::unity::Il2CppString;
543(LabelStatement)__receiver)
544 }
545 }
546 #[doc = "`set_Label(::unity::Il2CppString)` overload"]
547 fn set_label(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
548 unsafe {
549 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
550 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_label::get_method_info().method_ptr,();
551(LabelStatement)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
552 }
553 }
554 #[doc = "`get_Address()` overload"]
555 fn get_address(self) -> i32 {
556 unsafe {
557 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
558 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_get_address::get_method_info().method_ptr,i32;
559(LabelStatement)__receiver)
560 }
561 }
562 #[doc = "`set_Address(i32)` overload"]
563 fn set_address(self, value: impl ::core::convert::Into<i32>) -> () {
564 unsafe {
565 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
566 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_address::get_method_info().method_ptr,();
567(LabelStatement)__receiver,(i32)::core::convert::Into::into(value))
568 }
569 }
570 #[doc = "`get_SourceRef()` overload"]
571 fn get_source_ref(self) -> crate::moon_sharp::interpreter::debugging::sourceref::SourceRef {
572 unsafe {
573 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
574 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_get_source_ref::get_method_info().method_ptr,crate::moon_sharp::interpreter::debugging::sourceref::SourceRef;
575(LabelStatement)__receiver)
576 }
577 }
578 #[doc = "`set_SourceRef(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)` overload"]
579 fn set_source_ref(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>) -> () {
580 unsafe {
581 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
582 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_source_ref::get_method_info().method_ptr,();
583(LabelStatement)__receiver,(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)::core::convert::Into::into(value))
584 }
585 }
586 #[doc = "`get_NameToken()` overload"]
587 fn get_name_token(self) -> crate::moon_sharp::interpreter::tree::token::Token {
588 unsafe {
589 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
590 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_get_name_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
591(LabelStatement)__receiver)
592 }
593 }
594 #[doc = "`set_NameToken(crate::moon_sharp::interpreter::tree::token::Token)` overload"]
595 fn set_name_token(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>) -> () {
596 unsafe {
597 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
598 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_name_token::get_method_info().method_ptr,();
599(LabelStatement)__receiver,(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(value))
600 }
601 }
602 #[doc = "`get_DefinedVarsCount()` overload"]
603 fn get_defined_vars_count(self) -> i32 {
604 unsafe {
605 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
606 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_get_defined_vars_count::get_method_info().method_ptr,i32;
607(LabelStatement)__receiver)
608 }
609 }
610 #[doc = "`set_DefinedVarsCount(i32)` overload"]
611 fn set_defined_vars_count(self, value: impl ::core::convert::Into<i32>) -> () {
612 unsafe {
613 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
614 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_defined_vars_count::get_method_info().method_ptr,();
615(LabelStatement)__receiver,(i32)::core::convert::Into::into(value))
616 }
617 }
618 #[doc = "`get_LastDefinedVarName()` overload"]
619 fn get_last_defined_var_name(self) -> ::unity::Il2CppString {
620 unsafe {
621 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
622 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_get_last_defined_var_name::get_method_info().method_ptr, ::unity::Il2CppString;
623(LabelStatement)__receiver)
624 }
625 }
626 #[doc = "`set_LastDefinedVarName(::unity::Il2CppString)` overload"]
627 fn set_last_defined_var_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
628 unsafe {
629 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
630 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_last_defined_var_name::get_method_info().method_ptr,();
631(LabelStatement)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
632 }
633 }
634 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
635 fn ctor(self, lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>) -> () {
636 unsafe {
637 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
638 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
639(LabelStatement)__receiver,(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
640 }
641 }
642 #[doc = "`SetDefinedVars(i32, ::unity::Il2CppString)` overload"]
643 fn set_defined_vars(
644 self,
645 defined_vars_count: impl ::core::convert::Into<i32>,
646 last_defined_vars_name: impl ::core::convert::Into<::unity::Il2CppString>,
647 ) -> () {
648 unsafe {
649 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
650 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_defined_vars::get_method_info().method_ptr,();
651(LabelStatement)__receiver,(i32)::core::convert::Into::into(defined_vars_count),(::unity::Il2CppString)::core::convert::Into::into(last_defined_vars_name))
652 }
653 }
654 #[doc = "`RegisterGoto(crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement)` overload"]
655 fn register_goto(
656 self,
657 gotostat: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement>,
658 ) -> () {
659 unsafe {
660 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
661 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_register_goto::get_method_info().method_ptr,();
662(LabelStatement)__receiver,(crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement)::core::convert::Into::into(gotostat))
663 }
664 }
665 #[doc = "`Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode)` overload"]
666 fn compile(self, bc: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode>) -> () {
667 unsafe {
668 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
669 {
670 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
671 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
672 panic!(
673 "unity: virtual slot {}
674 out of range (vtable len {}
675) on the runtime class behind {}
676 (method `{}
677`)",
678 4usize,
679 __vt.len(),
680 <LabelStatement as ::unity::ClassIdentity>::NAME,
681 "Compile",
682 )
683 });
684 let __inner: extern "C" fn(
685 LabelStatement,
686 crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
687 ::unity::OptionalMethod,
688 ) -> () = ::core::mem::transmute(__vi.method_ptr);
689 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
690 __inner(__receiver, ::core::convert::Into::into(bc), __mi)
691 }
692 }
693 }
694 #[doc = "`SetScope(crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock)` overload"]
695 fn set_scope(
696 self,
697 runtime_scope_block: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock>,
698 ) -> () {
699 unsafe {
700 let __receiver = <LabelStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
701 ::unity::il2cpp_call!(__LabelStatement_unity_raw::__lookup_set_scope::get_method_info().method_ptr,();
702(LabelStatement)__receiver,(crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock)::core::convert::Into::into(runtime_scope_block))
703 }
704 }
705}
706
707#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement")]
708impl<__T: ILabelStatement> ILabelStatementMethods for __T {}
709
710#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement")]
711impl LabelStatement {
712 pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
713 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
714 }
715
716 pub fn set_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
717 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
718 }
719
720 pub fn get_address_method_info() -> &'static ::unity::il2cpp::MethodInfo {
721 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
722 }
723
724 pub fn set_address_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
726 }
727
728 pub fn get_source_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
730 }
731
732 pub fn set_source_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
734 }
735
736 pub fn get_name_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
738 }
739
740 pub fn set_name_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
741 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
742 }
743
744 pub fn get_defined_vars_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
745 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
746 }
747
748 pub fn set_defined_vars_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
749 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
750 }
751
752 pub fn get_last_defined_var_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
753 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
754 }
755
756 pub fn set_last_defined_var_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
757 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
758 }
759
760 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
761 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
762 }
763
764 pub fn set_defined_vars_method_info() -> &'static ::unity::il2cpp::MethodInfo {
765 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
766 }
767
768 pub fn register_goto_method_info() -> &'static ::unity::il2cpp::MethodInfo {
769 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
770 }
771
772 pub fn compile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
773 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
774 }
775
776 pub fn set_scope_method_info() -> &'static ::unity::il2cpp::MethodInfo {
777 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
778 }
779}
780
781#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement")]
782impl LabelStatement {
783 #[doc = "Direct (non-virtual) call to `LabelStatement`'s own `Compile`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
784 pub unsafe fn compile(
785 this: impl ::core::convert::Into<::unity::IlInstance>,
786 bc: crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
787 ) -> () {
788 let __mi = Self::compile_method_info();
789 let __inner: extern "C" fn(
790 ::unity::IlInstance,
791 crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
792 ::unity::OptionalMethod,
793 ) -> () = ::core::mem::transmute(__mi.method_ptr);
794 __inner(this.into(), bc, ::core::option::Option::None)
795 }
796}
797
798#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement")]
799impl LabelStatement {
800 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` — overload selector"]
801 pub fn new(lcontext: crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) -> Self {
802 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
803 panic!(
804 "{}
805::{}
806 failed to instantiate",
807 ::core::stringify!(LabelStatement),
808 ::core::stringify!(new),
809 )
810 });
811 <Self as ILabelStatementMethods>::ctor(this, lcontext);
812 this
813 }
814}
815
816#[cfg(feature = "moon_sharp-interpreter-tree-statements-labelstatement")]
817#[doc(hidden)]
818pub mod prelude {
819 pub use super::{ILabelStatement, ILabelStatementMethods, LabelStatement};
820 #[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
821 pub use crate::moon_sharp::interpreter::tree::nodebase::INodeBaseMethods;
822 #[cfg(feature = "moon_sharp-interpreter-tree-statement")]
823 pub use crate::moon_sharp::interpreter::tree::statement::IStatementMethods;
824 #[cfg(feature = "system-object")]
825 pub use crate::system::object::IObjectMethods;
826 pub use crate::{
827 moon_sharp::interpreter::tree::{nodebase::INodeBase, statement::IStatement},
828 system::object::IObject,
829 };
830}