1#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/execution/buildtimescope/BuildTimeScope.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Execution", name = "BuildTimeScope")]
12 #[parent(crate::system::object::Object)]
13 pub struct BuildTimeScope {
14 #[offset(16)]
15 #[rename(name = "m_Frames")]
16 pub m_frames: crate::system::collections::generic::list_1::List_1<
17 crate::moon_sharp::interpreter::execution::scopes::buildtimescopeframe::BuildTimeScopeFrame,
18 >,
19 #[offset(24)]
20 #[rename(name = "m_ClosureBuilders")]
21 pub m_closure_builders:
22 crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::execution::iclosurebuilder::IClosureBuilder>,
23 }
24}
25
26#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope-types")]
27pub use __types::*;
28
29#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope")]
30#[doc(hidden)]
31#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
32mod __BuildTimeScope_unity_raw {
33 use super::*;
34 #[doc(hidden)]
35 #[allow(non_snake_case)]
36 pub mod __lookup_push_function {
37 use super::*;
38 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
39 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
40 <crate::moon_sharp::interpreter::execution::iclosurebuilder::IClosureBuilder as ::unity::IlType>::il_type(),
41 <bool as ::unity::IlType>::il_type(),
42 ];
43 ::unity::lookup::method_info_on_class_with_signature(
44 <BuildTimeScope as ::unity::ClassIdentity>::class(),
45 "PushFunction",
46 2,
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 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
61 "PushFunction",
62 e
63 )
64 },
65 }
66 }
67 }
68 #[doc(hidden)]
69 #[allow(non_snake_case)]
70 pub mod __lookup_push_block {
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 ::unity::lookup::method_info_on_class_with_signature(
75 <BuildTimeScope as ::unity::ClassIdentity>::class(),
76 "PushBlock",
77 0,
78 param_types,
79 false,
80 )
81 });
82 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83 match &*METHOD {
84 ::core::result::Result::Ok(mi) => *mi,
85 ::core::result::Result::Err(e) => {
86 panic!(
87 "method lookup failed: {}
88::{}
89: {}
90",
91 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
92 "PushBlock",
93 e
94 )
95 },
96 }
97 }
98 }
99 #[doc(hidden)]
100 #[allow(non_snake_case)]
101 pub mod __lookup_pop_block {
102 use super::*;
103 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
104 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
105 ::unity::lookup::method_info_on_class_with_signature(
106 <BuildTimeScope as ::unity::ClassIdentity>::class(),
107 "PopBlock",
108 0,
109 param_types,
110 false,
111 )
112 });
113 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 match &*METHOD {
115 ::core::result::Result::Ok(mi) => *mi,
116 ::core::result::Result::Err(e) => {
117 panic!(
118 "method lookup failed: {}
119::{}
120: {}
121",
122 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
123 "PopBlock",
124 e
125 )
126 },
127 }
128 }
129 }
130 #[doc(hidden)]
131 #[allow(non_snake_case)]
132 pub mod __lookup_pop_function {
133 use super::*;
134 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
135 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
136 ::unity::lookup::method_info_on_class_with_signature(
137 <BuildTimeScope as ::unity::ClassIdentity>::class(),
138 "PopFunction",
139 0,
140 param_types,
141 false,
142 )
143 });
144 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 match &*METHOD {
146 ::core::result::Result::Ok(mi) => *mi,
147 ::core::result::Result::Err(e) => {
148 panic!(
149 "method lookup failed: {}
150::{}
151: {}
152",
153 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
154 "PopFunction",
155 e
156 )
157 },
158 }
159 }
160 }
161 #[doc(hidden)]
162 #[allow(non_snake_case)]
163 pub mod __lookup_find {
164 use super::*;
165 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
166 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
167 ::unity::lookup::method_info_on_class_with_signature(<BuildTimeScope as ::unity::ClassIdentity>::class(), "Find", 1, param_types, false)
168 });
169 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 match &*METHOD {
171 ::core::result::Result::Ok(mi) => *mi,
172 ::core::result::Result::Err(e) => {
173 panic!(
174 "method lookup failed: {}
175::{}
176: {}
177",
178 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
179 "Find",
180 e
181 )
182 },
183 }
184 }
185 }
186 #[doc(hidden)]
187 #[allow(non_snake_case)]
188 pub mod __lookup_create_global_reference {
189 use super::*;
190 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
191 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
192 ::unity::lookup::method_info_on_class_with_signature(
193 <BuildTimeScope as ::unity::ClassIdentity>::class(),
194 "CreateGlobalReference",
195 1,
196 param_types,
197 false,
198 )
199 });
200 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 match &*METHOD {
202 ::core::result::Result::Ok(mi) => *mi,
203 ::core::result::Result::Err(e) => {
204 panic!(
205 "method lookup failed: {}
206::{}
207: {}
208",
209 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
210 "CreateGlobalReference",
211 e
212 )
213 },
214 }
215 }
216 }
217 #[doc(hidden)]
218 #[allow(non_snake_case)]
219 pub mod __lookup_force_env_up_value {
220 use super::*;
221 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
222 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
223 ::unity::lookup::method_info_on_class_with_signature(
224 <BuildTimeScope as ::unity::ClassIdentity>::class(),
225 "ForceEnvUpValue",
226 0,
227 param_types,
228 false,
229 )
230 });
231 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 match &*METHOD {
233 ::core::result::Result::Ok(mi) => *mi,
234 ::core::result::Result::Err(e) => {
235 panic!(
236 "method lookup failed: {}
237::{}
238: {}
239",
240 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
241 "ForceEnvUpValue",
242 e
243 )
244 },
245 }
246 }
247 }
248 #[doc(hidden)]
249 #[allow(non_snake_case)]
250 pub mod __lookup_create_up_value {
251 use super::*;
252 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
253 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
254 <crate::moon_sharp::interpreter::execution::buildtimescope::BuildTimeScope as ::unity::IlType>::il_type(),
255 <crate::moon_sharp::interpreter::symbolref::SymbolRef as ::unity::IlType>::il_type(),
256 <i32 as ::unity::IlType>::il_type(),
257 <i32 as ::unity::IlType>::il_type(),
258 ];
259 ::unity::lookup::method_info_on_class_with_signature(
260 <BuildTimeScope as ::unity::ClassIdentity>::class(),
261 "CreateUpValue",
262 4,
263 param_types,
264 false,
265 )
266 });
267 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 match &*METHOD {
269 ::core::result::Result::Ok(mi) => *mi,
270 ::core::result::Result::Err(e) => {
271 panic!(
272 "method lookup failed: {}
273::{}
274: {}
275",
276 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
277 "CreateUpValue",
278 e
279 )
280 },
281 }
282 }
283 }
284 #[doc(hidden)]
285 #[allow(non_snake_case)]
286 pub mod __lookup_define_local {
287 use super::*;
288 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
289 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
290 ::unity::lookup::method_info_on_class_with_signature(
291 <BuildTimeScope as ::unity::ClassIdentity>::class(),
292 "DefineLocal",
293 1,
294 param_types,
295 false,
296 )
297 });
298 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 match &*METHOD {
300 ::core::result::Result::Ok(mi) => *mi,
301 ::core::result::Result::Err(e) => {
302 panic!(
303 "method lookup failed: {}
304::{}
305: {}
306",
307 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
308 "DefineLocal",
309 e
310 )
311 },
312 }
313 }
314 }
315 #[doc(hidden)]
316 #[allow(non_snake_case)]
317 pub mod __lookup_try_define_local {
318 use super::*;
319 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
320 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
321 ::unity::lookup::method_info_on_class_with_signature(
322 <BuildTimeScope as ::unity::ClassIdentity>::class(),
323 "TryDefineLocal",
324 1,
325 param_types,
326 false,
327 )
328 });
329 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 match &*METHOD {
331 ::core::result::Result::Ok(mi) => *mi,
332 ::core::result::Result::Err(e) => {
333 panic!(
334 "method lookup failed: {}
335::{}
336: {}
337",
338 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
339 "TryDefineLocal",
340 e
341 )
342 },
343 }
344 }
345 }
346 #[doc(hidden)]
347 #[allow(non_snake_case)]
348 pub mod __lookup_current_function_has_var_args {
349 use super::*;
350 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
351 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
352 ::unity::lookup::method_info_on_class_with_signature(
353 <BuildTimeScope as ::unity::ClassIdentity>::class(),
354 "CurrentFunctionHasVarArgs",
355 0,
356 param_types,
357 false,
358 )
359 });
360 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 match &*METHOD {
362 ::core::result::Result::Ok(mi) => *mi,
363 ::core::result::Result::Err(e) => {
364 panic!(
365 "method lookup failed: {}
366::{}
367: {}
368",
369 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
370 "CurrentFunctionHasVarArgs",
371 e
372 )
373 },
374 }
375 }
376 }
377 #[doc(hidden)]
378 #[allow(non_snake_case)]
379 pub mod __lookup_define_label {
380 use super::*;
381 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
382 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
383 &[<crate::moon_sharp::interpreter::tree::statements::labelstatement::LabelStatement as ::unity::IlType>::il_type()];
384 ::unity::lookup::method_info_on_class_with_signature(
385 <BuildTimeScope as ::unity::ClassIdentity>::class(),
386 "DefineLabel",
387 1,
388 param_types,
389 false,
390 )
391 });
392 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 match &*METHOD {
394 ::core::result::Result::Ok(mi) => *mi,
395 ::core::result::Result::Err(e) => {
396 panic!(
397 "method lookup failed: {}
398::{}
399: {}
400",
401 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
402 "DefineLabel",
403 e
404 )
405 },
406 }
407 }
408 }
409 #[doc(hidden)]
410 #[allow(non_snake_case)]
411 pub mod __lookup_register_goto {
412 use super::*;
413 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
414 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
415 &[<crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement as ::unity::IlType>::il_type()];
416 ::unity::lookup::method_info_on_class_with_signature(
417 <BuildTimeScope as ::unity::ClassIdentity>::class(),
418 "RegisterGoto",
419 1,
420 param_types,
421 false,
422 )
423 });
424 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 match &*METHOD {
426 ::core::result::Result::Ok(mi) => *mi,
427 ::core::result::Result::Err(e) => {
428 panic!(
429 "method lookup failed: {}
430::{}
431: {}
432",
433 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
434 "RegisterGoto",
435 e
436 )
437 },
438 }
439 }
440 }
441 #[doc(hidden)]
442 #[allow(non_snake_case)]
443 pub mod __lookup_ctor {
444 use super::*;
445 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
446 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
447 ::unity::lookup::method_info_on_class_with_signature(<BuildTimeScope as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
448 });
449 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 match &*METHOD {
451 ::core::result::Result::Ok(mi) => *mi,
452 ::core::result::Result::Err(e) => {
453 panic!(
454 "method lookup failed: {}
455::{}
456: {}
457",
458 <BuildTimeScope as ::unity::ClassIdentity>::NAME,
459 ".ctor",
460 e
461 )
462 },
463 }
464 }
465 }
466}
467
468#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope")]
469pub trait IBuildTimeScopeMethods: IBuildTimeScope {
470 #[doc = "`PushFunction(crate::moon_sharp::interpreter::execution::iclosurebuilder::IClosureBuilder, bool)` overload"]
471 fn push_function(
472 self,
473 closure_builder: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::iclosurebuilder::IClosureBuilder>,
474 has_var_args: impl ::core::convert::Into<bool>,
475 ) -> () {
476 unsafe {
477 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
478 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_push_function::get_method_info().method_ptr,();
479(BuildTimeScope)__receiver,(crate::moon_sharp::interpreter::execution::iclosurebuilder::IClosureBuilder)::core::convert::Into::into(closure_builder),(bool)::core::convert::Into::into(has_var_args))
480 }
481 }
482 #[doc = "`PushBlock()` overload"]
483 fn push_block(self) -> () {
484 unsafe {
485 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
486 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_push_block::get_method_info().method_ptr,();
487(BuildTimeScope)__receiver)
488 }
489 }
490 #[doc = "`PopBlock()` overload"]
491 fn pop_block(self) -> crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock {
492 unsafe {
493 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
494 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_pop_block::get_method_info().method_ptr,crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock;
495(BuildTimeScope)__receiver)
496 }
497 }
498 #[doc = "`PopFunction()` overload"]
499 fn pop_function(self) -> crate::moon_sharp::interpreter::execution::runtimescopeframe::RuntimeScopeFrame {
500 unsafe {
501 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
502 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_pop_function::get_method_info().method_ptr,crate::moon_sharp::interpreter::execution::runtimescopeframe::RuntimeScopeFrame;
503(BuildTimeScope)__receiver)
504 }
505 }
506 #[doc = "`Find(::unity::Il2CppString)` overload"]
507 fn find(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
508 unsafe {
509 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
510 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_find::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
511(BuildTimeScope)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
512 }
513 }
514 #[doc = "`CreateGlobalReference(::unity::Il2CppString)` overload"]
515 fn create_global_reference(
516 self,
517 name: impl ::core::convert::Into<::unity::Il2CppString>,
518 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
519 unsafe {
520 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
521 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_create_global_reference::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
522(BuildTimeScope)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
523 }
524 }
525 #[doc = "`ForceEnvUpValue()` overload"]
526 fn force_env_up_value(self) -> () {
527 unsafe {
528 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_force_env_up_value::get_method_info().method_ptr,();
530(BuildTimeScope)__receiver)
531 }
532 }
533 #[doc = "`CreateUpValue(crate::moon_sharp::interpreter::execution::buildtimescope::BuildTimeScope, crate::moon_sharp::interpreter::symbolref::SymbolRef, i32, i32)` overload"]
534 fn create_up_value(
535 self,
536 build_time_scope: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::buildtimescope::BuildTimeScope>,
537 symb: impl ::core::convert::Into<crate::moon_sharp::interpreter::symbolref::SymbolRef>,
538 closured_frame: impl ::core::convert::Into<i32>,
539 current_frame: impl ::core::convert::Into<i32>,
540 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
541 unsafe {
542 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
543 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_create_up_value::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
544(BuildTimeScope)__receiver,(crate::moon_sharp::interpreter::execution::buildtimescope::BuildTimeScope)::core::convert::Into::into(build_time_scope),(crate::moon_sharp::interpreter::symbolref::SymbolRef)::core::convert::Into::into(symb),(i32)::core::convert::Into::into(closured_frame),(i32)::core::convert::Into::into(current_frame))
545 }
546 }
547 #[doc = "`DefineLocal(::unity::Il2CppString)` overload"]
548 fn define_local(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
549 unsafe {
550 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
551 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_define_local::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
552(BuildTimeScope)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
553 }
554 }
555 #[doc = "`TryDefineLocal(::unity::Il2CppString)` overload"]
556 fn try_define_local(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
557 unsafe {
558 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
559 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_try_define_local::get_method_info().method_ptr,crate::moon_sharp::interpreter::symbolref::SymbolRef;
560(BuildTimeScope)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
561 }
562 }
563 #[doc = "`CurrentFunctionHasVarArgs()` overload"]
564 fn current_function_has_var_args(self) -> bool {
565 unsafe {
566 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
567 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_current_function_has_var_args::get_method_info().method_ptr,bool;
568(BuildTimeScope)__receiver)
569 }
570 }
571 #[doc = "`DefineLabel(crate::moon_sharp::interpreter::tree::statements::labelstatement::LabelStatement)` overload"]
572 fn define_label(self, label: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::statements::labelstatement::LabelStatement>) -> () {
573 unsafe {
574 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
575 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_define_label::get_method_info().method_ptr,();
576(BuildTimeScope)__receiver,(crate::moon_sharp::interpreter::tree::statements::labelstatement::LabelStatement)::core::convert::Into::into(label))
577 }
578 }
579 #[doc = "`RegisterGoto(crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement)` overload"]
580 fn register_goto(
581 self,
582 gotostat: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement>,
583 ) -> () {
584 unsafe {
585 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
586 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_register_goto::get_method_info().method_ptr,();
587(BuildTimeScope)__receiver,(crate::moon_sharp::interpreter::tree::statements::gotostatement::GotoStatement)::core::convert::Into::into(gotostat))
588 }
589 }
590 #[doc = "`.ctor()` overload"]
591 fn ctor(self) -> () {
592 unsafe {
593 let __receiver = <BuildTimeScope as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
594 ::unity::il2cpp_call!(__BuildTimeScope_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
595(BuildTimeScope)__receiver)
596 }
597 }
598}
599
600#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope")]
601impl<__T: IBuildTimeScope> IBuildTimeScopeMethods for __T {}
602
603#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope")]
604impl BuildTimeScope {
605 pub fn push_function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
607 }
608
609 pub fn push_block_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
611 }
612
613 pub fn pop_block_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
615 }
616
617 pub fn pop_function_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
619 }
620
621 pub fn find_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
623 }
624
625 pub fn create_global_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
627 }
628
629 pub fn force_env_up_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
631 }
632
633 pub fn create_up_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
635 }
636
637 pub fn define_local_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
639 }
640
641 pub fn try_define_local_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
643 }
644
645 pub fn current_function_has_var_args_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
647 }
648
649 pub fn define_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
651 }
652
653 pub fn register_goto_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
655 }
656
657 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
659 }
660}
661
662#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope")]
663impl BuildTimeScope {
664 #[doc = "`.ctor()` — no args"]
665 pub fn new() -> Self {
666 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
667 panic!(
668 "{}
669::{}
670 failed to instantiate",
671 ::core::stringify!(BuildTimeScope),
672 ::core::stringify!(new),
673 )
674 });
675 <Self as IBuildTimeScopeMethods>::ctor(this);
676 this
677 }
678}
679
680#[cfg(feature = "moon_sharp-interpreter-execution-buildtimescope")]
681#[doc(hidden)]
682pub mod prelude {
683 pub use super::{BuildTimeScope, IBuildTimeScope, IBuildTimeScopeMethods};
684 pub use crate::system::object::IObject;
685 #[cfg(feature = "system-object")]
686 pub use crate::system::object::IObjectMethods;
687}