engage/generated/moon_sharp/interpreter/tree/
statement.rs1#[cfg(feature = "moon_sharp-interpreter-tree-statement-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 moon_sharp::interpreter::tree::nodebase::{INodeBase, NodeBase},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/tree/statement/Statement.md"))]
14 #[::unity::class(namespace = "MoonSharp.Interpreter.Tree", name = "Statement")]
15 #[parent(crate::moon_sharp::interpreter::tree::nodebase::NodeBase)]
16 pub struct Statement {}
17}
18
19#[cfg(feature = "moon_sharp-interpreter-tree-statement-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-tree-statement")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __Statement_unity_raw {
26 use super::*;
27 #[doc(hidden)]
28 #[allow(non_snake_case)]
29 pub mod __lookup_ctor {
30 use super::*;
31 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
32 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
33 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
34 ::unity::lookup::method_info_on_class_with_signature(<Statement as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
35 });
36 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
37 match &*METHOD {
38 ::core::result::Result::Ok(mi) => *mi,
39 ::core::result::Result::Err(e) => {
40 panic!(
41 "method lookup failed: {}
42::{}
43: {}
44",
45 <Statement as ::unity::ClassIdentity>::NAME,
46 ".ctor",
47 e
48 )
49 },
50 }
51 }
52 }
53 #[doc(hidden)]
54 #[allow(non_snake_case)]
55 pub mod __lookup_create_statement {
56 use super::*;
57 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
58 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
59 <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
60 <bool as ::unity::IlType>::il_type(),
61 ];
62 ::unity::lookup::method_info_on_class_with_signature(
63 <Statement as ::unity::ClassIdentity>::class(),
64 "CreateStatement",
65 2,
66 param_types,
67 true,
68 )
69 });
70 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71 match &*METHOD {
72 ::core::result::Result::Ok(mi) => *mi,
73 ::core::result::Result::Err(e) => {
74 panic!(
75 "method lookup failed: {}
76::{}
77: {}
78",
79 <Statement as ::unity::ClassIdentity>::NAME,
80 "CreateStatement",
81 e
82 )
83 },
84 }
85 }
86 }
87 #[doc(hidden)]
88 #[allow(non_snake_case)]
89 pub mod __lookup_dispatch_for_loop_statement {
90 use super::*;
91 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
92 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
93 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
94 ::unity::lookup::method_info_on_class_with_signature(
95 <Statement as ::unity::ClassIdentity>::class(),
96 "DispatchForLoopStatement",
97 1,
98 param_types,
99 true,
100 )
101 });
102 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 match &*METHOD {
104 ::core::result::Result::Ok(mi) => *mi,
105 ::core::result::Result::Err(e) => {
106 panic!(
107 "method lookup failed: {}
108::{}
109: {}
110",
111 <Statement as ::unity::ClassIdentity>::NAME,
112 "DispatchForLoopStatement",
113 e
114 )
115 },
116 }
117 }
118 }
119}
120
121#[cfg(feature = "moon_sharp-interpreter-tree-statement")]
122impl Statement {
123 #[doc = "`CreateStatement(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, *mutbool)` overload"]
124 pub fn create_statement(
125 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
126 ) -> (crate::moon_sharp::interpreter::tree::statement::Statement, bool) {
127 unsafe {
128 let mut __out_0 = ::core::mem::MaybeUninit::<bool>::uninit();
129 let __ret = {
130 ::unity::il2cpp_call!(__Statement_unity_raw::__lookup_create_statement::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::statement::Statement;
131(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(*mut bool)__out_0.as_mut_ptr())
132 };
133 (__ret, __out_0.assume_init())
134 }
135 }
136
137 #[doc = "`DispatchForLoopStatement(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
138 pub fn dispatch_for_loop_statement(
139 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
140 ) -> crate::moon_sharp::interpreter::tree::statement::Statement {
141 unsafe {
142 ::unity::il2cpp_call!(__Statement_unity_raw::__lookup_dispatch_for_loop_statement::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::statement::Statement;
143(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
144 }
145 }
146}
147
148#[cfg(feature = "moon_sharp-interpreter-tree-statement")]
149pub trait IStatementMethods: IStatement {
150 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
151 fn ctor(self, lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>) -> () {
152 unsafe {
153 let __receiver = <Statement as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!(__Statement_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
155(Statement)__receiver,(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
156 }
157 }
158}
159
160#[cfg(feature = "moon_sharp-interpreter-tree-statement")]
161impl<__T: IStatement> IStatementMethods for __T {}
162
163#[cfg(feature = "moon_sharp-interpreter-tree-statement")]
164impl Statement {
165 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
167 }
168
169 pub fn create_statement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
171 }
172
173 pub fn dispatch_for_loop_statement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
175 }
176}
177
178#[cfg(feature = "moon_sharp-interpreter-tree-statement")]
179impl Statement {
180 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` — overload selector"]
181 pub fn new(lcontext: crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) -> Self {
182 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183 panic!(
184 "{}
185::{}
186 failed to instantiate",
187 ::core::stringify!(Statement),
188 ::core::stringify!(new),
189 )
190 });
191 <Self as IStatementMethods>::ctor(this, lcontext);
192 this
193 }
194}
195
196#[cfg(feature = "moon_sharp-interpreter-tree-statement")]
197#[doc(hidden)]
198pub mod prelude {
199 pub use super::{IStatement, IStatementMethods, Statement};
200 #[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
201 pub use crate::moon_sharp::interpreter::tree::nodebase::INodeBaseMethods;
202 #[cfg(feature = "system-object")]
203 pub use crate::system::object::IObjectMethods;
204 pub use crate::{moon_sharp::interpreter::tree::nodebase::INodeBase, system::object::IObject};
205}