1#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement-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/gotostatement/GotoStatement.md"))]
17 #[::unity::class(namespace = "MoonSharp.Interpreter.Tree.Statements", name = "GotoStatement")]
18 #[parent(crate::moon_sharp::interpreter::tree::statement::Statement)]
19 pub struct GotoStatement {
20 #[offset(72)]
21 #[rename(name = "m_Jump")]
22 pub m_jump: crate::moon_sharp::interpreter::execution::vm::instruction::Instruction,
23 #[offset(80)]
24 #[rename(name = "m_LabelAddress")]
25 pub m_label_address: i32,
26 }
27}
28
29#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement-types")]
30pub use __types::*;
31
32#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement")]
33#[doc(hidden)]
34#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
35mod __GotoStatement_unity_raw {
36 use super::*;
37 #[doc(hidden)]
38 #[allow(non_snake_case)]
39 pub mod __lookup_get_source_ref {
40 use super::*;
41 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
42 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
43 ::unity::lookup::method_info_on_class_with_signature(
44 <GotoStatement as ::unity::ClassIdentity>::class(),
45 "get_SourceRef",
46 0,
47 param_types,
48 false,
49 )
50 });
51 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52 match &*METHOD {
53 ::core::result::Result::Ok(mi) => *mi,
54 ::core::result::Result::Err(e) => {
55 panic!(
56 "method lookup failed: {}
57::{}
58: {}
59",
60 <GotoStatement as ::unity::ClassIdentity>::NAME,
61 "get_SourceRef",
62 e
63 )
64 },
65 }
66 }
67 }
68 #[doc(hidden)]
69 #[allow(non_snake_case)]
70 pub mod __lookup_set_source_ref {
71 use super::*;
72 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
73 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
74 &[<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef as ::unity::IlType>::il_type()];
75 ::unity::lookup::method_info_on_class_with_signature(
76 <GotoStatement as ::unity::ClassIdentity>::class(),
77 "set_SourceRef",
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 <GotoStatement as ::unity::ClassIdentity>::NAME,
93 "set_SourceRef",
94 e
95 )
96 },
97 }
98 }
99 }
100 #[doc(hidden)]
101 #[allow(non_snake_case)]
102 pub mod __lookup_get_goto_token {
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 <GotoStatement as ::unity::ClassIdentity>::class(),
108 "get_GotoToken",
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 <GotoStatement as ::unity::ClassIdentity>::NAME,
124 "get_GotoToken",
125 e
126 )
127 },
128 }
129 }
130 }
131 #[doc(hidden)]
132 #[allow(non_snake_case)]
133 pub mod __lookup_set_goto_token {
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] =
137 &[<crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type()];
138 ::unity::lookup::method_info_on_class_with_signature(
139 <GotoStatement as ::unity::ClassIdentity>::class(),
140 "set_GotoToken",
141 1,
142 param_types,
143 false,
144 )
145 });
146 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147 match &*METHOD {
148 ::core::result::Result::Ok(mi) => *mi,
149 ::core::result::Result::Err(e) => {
150 panic!(
151 "method lookup failed: {}
152::{}
153: {}
154",
155 <GotoStatement as ::unity::ClassIdentity>::NAME,
156 "set_GotoToken",
157 e
158 )
159 },
160 }
161 }
162 }
163 #[doc(hidden)]
164 #[allow(non_snake_case)]
165 pub mod __lookup_get_label {
166 use super::*;
167 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
168 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
169 ::unity::lookup::method_info_on_class_with_signature(
170 <GotoStatement as ::unity::ClassIdentity>::class(),
171 "get_Label",
172 0,
173 param_types,
174 false,
175 )
176 });
177 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 match &*METHOD {
179 ::core::result::Result::Ok(mi) => *mi,
180 ::core::result::Result::Err(e) => {
181 panic!(
182 "method lookup failed: {}
183::{}
184: {}
185",
186 <GotoStatement as ::unity::ClassIdentity>::NAME,
187 "get_Label",
188 e
189 )
190 },
191 }
192 }
193 }
194 #[doc(hidden)]
195 #[allow(non_snake_case)]
196 pub mod __lookup_set_label {
197 use super::*;
198 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
199 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
200 ::unity::lookup::method_info_on_class_with_signature(
201 <GotoStatement as ::unity::ClassIdentity>::class(),
202 "set_Label",
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 <GotoStatement as ::unity::ClassIdentity>::NAME,
218 "set_Label",
219 e
220 )
221 },
222 }
223 }
224 }
225 #[doc(hidden)]
226 #[allow(non_snake_case)]
227 pub mod __lookup_get_defined_vars_count {
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 <GotoStatement as ::unity::ClassIdentity>::class(),
233 "get_DefinedVarsCount",
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 <GotoStatement as ::unity::ClassIdentity>::NAME,
249 "get_DefinedVarsCount",
250 e
251 )
252 },
253 }
254 }
255 }
256 #[doc(hidden)]
257 #[allow(non_snake_case)]
258 pub mod __lookup_set_defined_vars_count {
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] = &[<i32 as ::unity::IlType>::il_type()];
262 ::unity::lookup::method_info_on_class_with_signature(
263 <GotoStatement as ::unity::ClassIdentity>::class(),
264 "set_DefinedVarsCount",
265 1,
266 param_types,
267 false,
268 )
269 });
270 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 match &*METHOD {
272 ::core::result::Result::Ok(mi) => *mi,
273 ::core::result::Result::Err(e) => {
274 panic!(
275 "method lookup failed: {}
276::{}
277: {}
278",
279 <GotoStatement as ::unity::ClassIdentity>::NAME,
280 "set_DefinedVarsCount",
281 e
282 )
283 },
284 }
285 }
286 }
287 #[doc(hidden)]
288 #[allow(non_snake_case)]
289 pub mod __lookup_get_last_defined_var_name {
290 use super::*;
291 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
292 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
293 ::unity::lookup::method_info_on_class_with_signature(
294 <GotoStatement as ::unity::ClassIdentity>::class(),
295 "get_LastDefinedVarName",
296 0,
297 param_types,
298 false,
299 )
300 });
301 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 match &*METHOD {
303 ::core::result::Result::Ok(mi) => *mi,
304 ::core::result::Result::Err(e) => {
305 panic!(
306 "method lookup failed: {}
307::{}
308: {}
309",
310 <GotoStatement as ::unity::ClassIdentity>::NAME,
311 "get_LastDefinedVarName",
312 e
313 )
314 },
315 }
316 }
317 }
318 #[doc(hidden)]
319 #[allow(non_snake_case)]
320 pub mod __lookup_set_last_defined_var_name {
321 use super::*;
322 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
323 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
324 ::unity::lookup::method_info_on_class_with_signature(
325 <GotoStatement as ::unity::ClassIdentity>::class(),
326 "set_LastDefinedVarName",
327 1,
328 param_types,
329 false,
330 )
331 });
332 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 match &*METHOD {
334 ::core::result::Result::Ok(mi) => *mi,
335 ::core::result::Result::Err(e) => {
336 panic!(
337 "method lookup failed: {}
338::{}
339: {}
340",
341 <GotoStatement as ::unity::ClassIdentity>::NAME,
342 "set_LastDefinedVarName",
343 e
344 )
345 },
346 }
347 }
348 }
349 #[doc(hidden)]
350 #[allow(non_snake_case)]
351 pub mod __lookup_ctor {
352 use super::*;
353 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
354 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
355 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
356 ::unity::lookup::method_info_on_class_with_signature(<GotoStatement as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
357 });
358 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 match &*METHOD {
360 ::core::result::Result::Ok(mi) => *mi,
361 ::core::result::Result::Err(e) => {
362 panic!(
363 "method lookup failed: {}
364::{}
365: {}
366",
367 <GotoStatement as ::unity::ClassIdentity>::NAME,
368 ".ctor",
369 e
370 )
371 },
372 }
373 }
374 }
375 #[doc(hidden)]
376 #[allow(non_snake_case)]
377 pub mod __lookup_set_defined_vars {
378 use super::*;
379 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
380 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
381 &[<i32 as ::unity::IlType>::il_type(), <::unity::Il2CppString as ::unity::IlType>::il_type()];
382 ::unity::lookup::method_info_on_class_with_signature(
383 <GotoStatement as ::unity::ClassIdentity>::class(),
384 "SetDefinedVars",
385 2,
386 param_types,
387 false,
388 )
389 });
390 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 match &*METHOD {
392 ::core::result::Result::Ok(mi) => *mi,
393 ::core::result::Result::Err(e) => {
394 panic!(
395 "method lookup failed: {}
396::{}
397: {}
398",
399 <GotoStatement as ::unity::ClassIdentity>::NAME,
400 "SetDefinedVars",
401 e
402 )
403 },
404 }
405 }
406 }
407 #[doc(hidden)]
408 #[allow(non_snake_case)]
409 pub mod __lookup_set_address {
410 use super::*;
411 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
412 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
413 ::unity::lookup::method_info_on_class_with_signature(
414 <GotoStatement as ::unity::ClassIdentity>::class(),
415 "SetAddress",
416 1,
417 param_types,
418 false,
419 )
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 <GotoStatement as ::unity::ClassIdentity>::NAME,
431 "SetAddress",
432 e
433 )
434 },
435 }
436 }
437 }
438}
439
440#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement")]
441pub trait IGotoStatementMethods: IGotoStatement {
442 #[doc = "`get_SourceRef()` overload"]
443 fn get_source_ref(self) -> crate::moon_sharp::interpreter::debugging::sourceref::SourceRef {
444 unsafe {
445 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
446 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_get_source_ref::get_method_info().method_ptr,crate::moon_sharp::interpreter::debugging::sourceref::SourceRef;
447(GotoStatement)__receiver)
448 }
449 }
450 #[doc = "`set_SourceRef(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)` overload"]
451 fn set_source_ref(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>) -> () {
452 unsafe {
453 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
454 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_set_source_ref::get_method_info().method_ptr,();
455(GotoStatement)__receiver,(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)::core::convert::Into::into(value))
456 }
457 }
458 #[doc = "`get_GotoToken()` overload"]
459 fn get_goto_token(self) -> crate::moon_sharp::interpreter::tree::token::Token {
460 unsafe {
461 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
462 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_get_goto_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
463(GotoStatement)__receiver)
464 }
465 }
466 #[doc = "`set_GotoToken(crate::moon_sharp::interpreter::tree::token::Token)` overload"]
467 fn set_goto_token(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>) -> () {
468 unsafe {
469 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
470 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_set_goto_token::get_method_info().method_ptr,();
471(GotoStatement)__receiver,(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(value))
472 }
473 }
474 #[doc = "`get_Label()` overload"]
475 fn get_label(self) -> ::unity::Il2CppString {
476 unsafe {
477 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
478 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_get_label::get_method_info().method_ptr, ::unity::Il2CppString;
479(GotoStatement)__receiver)
480 }
481 }
482 #[doc = "`set_Label(::unity::Il2CppString)` overload"]
483 fn set_label(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
484 unsafe {
485 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
486 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_set_label::get_method_info().method_ptr,();
487(GotoStatement)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
488 }
489 }
490 #[doc = "`get_DefinedVarsCount()` overload"]
491 fn get_defined_vars_count(self) -> i32 {
492 unsafe {
493 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
494 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_get_defined_vars_count::get_method_info().method_ptr,i32;
495(GotoStatement)__receiver)
496 }
497 }
498 #[doc = "`set_DefinedVarsCount(i32)` overload"]
499 fn set_defined_vars_count(self, value: impl ::core::convert::Into<i32>) -> () {
500 unsafe {
501 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
502 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_set_defined_vars_count::get_method_info().method_ptr,();
503(GotoStatement)__receiver,(i32)::core::convert::Into::into(value))
504 }
505 }
506 #[doc = "`get_LastDefinedVarName()` overload"]
507 fn get_last_defined_var_name(self) -> ::unity::Il2CppString {
508 unsafe {
509 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
510 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_get_last_defined_var_name::get_method_info().method_ptr, ::unity::Il2CppString;
511(GotoStatement)__receiver)
512 }
513 }
514 #[doc = "`set_LastDefinedVarName(::unity::Il2CppString)` overload"]
515 fn set_last_defined_var_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
516 unsafe {
517 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
518 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_set_last_defined_var_name::get_method_info().method_ptr,();
519(GotoStatement)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
520 }
521 }
522 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
523 fn ctor(self, lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>) -> () {
524 unsafe {
525 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
526 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
527(GotoStatement)__receiver,(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
528 }
529 }
530 #[doc = "`Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode)` overload"]
531 fn compile(self, bc: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode>) -> () {
532 unsafe {
533 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
534 {
535 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
536 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
537 panic!(
538 "unity: virtual slot {}
539 out of range (vtable len {}
540) on the runtime class behind {}
541 (method `{}
542`)",
543 4usize,
544 __vt.len(),
545 <GotoStatement as ::unity::ClassIdentity>::NAME,
546 "Compile",
547 )
548 });
549 let __inner: extern "C" fn(
550 GotoStatement,
551 crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
552 ::unity::OptionalMethod,
553 ) -> () = ::core::mem::transmute(__vi.method_ptr);
554 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
555 __inner(__receiver, ::core::convert::Into::into(bc), __mi)
556 }
557 }
558 }
559 #[doc = "`SetDefinedVars(i32, ::unity::Il2CppString)` overload"]
560 fn set_defined_vars(
561 self,
562 defined_vars_count: impl ::core::convert::Into<i32>,
563 last_defined_vars_name: impl ::core::convert::Into<::unity::Il2CppString>,
564 ) -> () {
565 unsafe {
566 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
567 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_set_defined_vars::get_method_info().method_ptr,();
568(GotoStatement)__receiver,(i32)::core::convert::Into::into(defined_vars_count),(::unity::Il2CppString)::core::convert::Into::into(last_defined_vars_name))
569 }
570 }
571 #[doc = "`SetAddress(i32)` overload"]
572 fn set_address(self, label_address: impl ::core::convert::Into<i32>) -> () {
573 unsafe {
574 let __receiver = <GotoStatement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
575 ::unity::il2cpp_call!(__GotoStatement_unity_raw::__lookup_set_address::get_method_info().method_ptr,();
576(GotoStatement)__receiver,(i32)::core::convert::Into::into(label_address))
577 }
578 }
579}
580
581#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement")]
582impl<__T: IGotoStatement> IGotoStatementMethods for __T {}
583
584#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement")]
585impl GotoStatement {
586 pub fn get_source_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
587 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
588 }
589
590 pub fn set_source_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
591 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
592 }
593
594 pub fn get_goto_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
596 }
597
598 pub fn set_goto_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
599 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
600 }
601
602 pub fn get_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
603 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
604 }
605
606 pub fn set_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
607 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
608 }
609
610 pub fn get_defined_vars_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
611 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
612 }
613
614 pub fn set_defined_vars_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
615 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
616 }
617
618 pub fn get_last_defined_var_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
620 }
621
622 pub fn set_last_defined_var_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
623 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
624 }
625
626 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
627 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
628 }
629
630 pub fn compile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
631 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
632 }
633
634 pub fn set_defined_vars_method_info() -> &'static ::unity::il2cpp::MethodInfo {
635 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
636 }
637
638 pub fn set_address_method_info() -> &'static ::unity::il2cpp::MethodInfo {
639 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
640 }
641}
642
643#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement")]
644impl GotoStatement {
645 #[doc = "Direct (non-virtual) call to `GotoStatement`'s own `Compile`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
646 pub unsafe fn compile(
647 this: impl ::core::convert::Into<::unity::IlInstance>,
648 bc: crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
649 ) -> () {
650 let __mi = Self::compile_method_info();
651 let __inner: extern "C" fn(
652 ::unity::IlInstance,
653 crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
654 ::unity::OptionalMethod,
655 ) -> () = ::core::mem::transmute(__mi.method_ptr);
656 __inner(this.into(), bc, ::core::option::Option::None)
657 }
658}
659
660#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement")]
661impl GotoStatement {
662 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` — overload selector"]
663 pub fn new(lcontext: crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) -> Self {
664 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
665 panic!(
666 "{}
667::{}
668 failed to instantiate",
669 ::core::stringify!(GotoStatement),
670 ::core::stringify!(new),
671 )
672 });
673 <Self as IGotoStatementMethods>::ctor(this, lcontext);
674 this
675 }
676}
677
678#[cfg(feature = "moon_sharp-interpreter-tree-statements-gotostatement")]
679#[doc(hidden)]
680pub mod prelude {
681 pub use super::{GotoStatement, IGotoStatement, IGotoStatementMethods};
682 #[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
683 pub use crate::moon_sharp::interpreter::tree::nodebase::INodeBaseMethods;
684 #[cfg(feature = "moon_sharp-interpreter-tree-statement")]
685 pub use crate::moon_sharp::interpreter::tree::statement::IStatementMethods;
686 #[cfg(feature = "system-object")]
687 pub use crate::system::object::IObjectMethods;
688 pub use crate::{
689 moon_sharp::interpreter::tree::{nodebase::INodeBase, statement::IStatement},
690 system::object::IObject,
691 };
692}