1#[cfg(feature = "moon_sharp-interpreter-tree-expression-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/expression/Expression.md"))]
14 #[::unity::class(namespace = "MoonSharp.Interpreter.Tree", name = "Expression")]
15 #[parent(crate::moon_sharp::interpreter::tree::nodebase::NodeBase)]
16 pub struct Expression {}
17}
18
19#[cfg(feature = "moon_sharp-interpreter-tree-expression-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __Expression_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(<Expression 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 <Expression 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_expr_list_after_first_expr {
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 <crate::moon_sharp::interpreter::tree::expression::Expression as ::unity::IlType>::il_type(),
61 ];
62 ::unity::lookup::method_info_on_class_with_signature(
63 <Expression as ::unity::ClassIdentity>::class(),
64 "ExprListAfterFirstExpr",
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 <Expression as ::unity::ClassIdentity>::NAME,
80 "ExprListAfterFirstExpr",
81 e
82 )
83 },
84 }
85 }
86 }
87 #[doc(hidden)]
88 #[allow(non_snake_case)]
89 pub mod __lookup_expr_list {
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(<Expression as ::unity::ClassIdentity>::class(), "ExprList", 1, param_types, true)
95 });
96 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 match &*METHOD {
98 ::core::result::Result::Ok(mi) => *mi,
99 ::core::result::Result::Err(e) => {
100 panic!(
101 "method lookup failed: {}
102::{}
103: {}
104",
105 <Expression as ::unity::ClassIdentity>::NAME,
106 "ExprList",
107 e
108 )
109 },
110 }
111 }
112 }
113 #[doc(hidden)]
114 #[allow(non_snake_case)]
115 pub mod __lookup_expr {
116 use super::*;
117 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
118 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
119 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
120 ::unity::lookup::method_info_on_class_with_signature(<Expression as ::unity::ClassIdentity>::class(), "Expr", 1, param_types, true)
121 });
122 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 match &*METHOD {
124 ::core::result::Result::Ok(mi) => *mi,
125 ::core::result::Result::Err(e) => {
126 panic!(
127 "method lookup failed: {}
128::{}
129: {}
130",
131 <Expression as ::unity::ClassIdentity>::NAME,
132 "Expr",
133 e
134 )
135 },
136 }
137 }
138 }
139 #[doc(hidden)]
140 #[allow(non_snake_case)]
141 pub mod __lookup_sub_expr {
142 use super::*;
143 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
144 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
145 <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
146 <bool as ::unity::IlType>::il_type(),
147 ];
148 ::unity::lookup::method_info_on_class_with_signature(<Expression as ::unity::ClassIdentity>::class(), "SubExpr", 2, param_types, true)
149 });
150 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151 match &*METHOD {
152 ::core::result::Result::Ok(mi) => *mi,
153 ::core::result::Result::Err(e) => {
154 panic!(
155 "method lookup failed: {}
156::{}
157: {}
158",
159 <Expression as ::unity::ClassIdentity>::NAME,
160 "SubExpr",
161 e
162 )
163 },
164 }
165 }
166 }
167 #[doc(hidden)]
168 #[allow(non_snake_case)]
169 pub mod __lookup_simple_exp {
170 use super::*;
171 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
172 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
173 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
174 ::unity::lookup::method_info_on_class_with_signature(<Expression as ::unity::ClassIdentity>::class(), "SimpleExp", 1, param_types, true)
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 <Expression as ::unity::ClassIdentity>::NAME,
186 "SimpleExp",
187 e
188 )
189 },
190 }
191 }
192 }
193 #[doc(hidden)]
194 #[allow(non_snake_case)]
195 pub mod __lookup_primary_exp {
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::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
200 ::unity::lookup::method_info_on_class_with_signature(<Expression as ::unity::ClassIdentity>::class(), "PrimaryExp", 1, param_types, true)
201 });
202 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 match &*METHOD {
204 ::core::result::Result::Ok(mi) => *mi,
205 ::core::result::Result::Err(e) => {
206 panic!(
207 "method lookup failed: {}
208::{}
209: {}
210",
211 <Expression as ::unity::ClassIdentity>::NAME,
212 "PrimaryExp",
213 e
214 )
215 },
216 }
217 }
218 }
219 #[doc(hidden)]
220 #[allow(non_snake_case)]
221 pub mod __lookup_prefix_exp {
222 use super::*;
223 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
224 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
225 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
226 ::unity::lookup::method_info_on_class_with_signature(<Expression as ::unity::ClassIdentity>::class(), "PrefixExp", 1, param_types, true)
227 });
228 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229 match &*METHOD {
230 ::core::result::Result::Ok(mi) => *mi,
231 ::core::result::Result::Err(e) => {
232 panic!(
233 "method lookup failed: {}
234::{}
235: {}
236",
237 <Expression as ::unity::ClassIdentity>::NAME,
238 "PrefixExp",
239 e
240 )
241 },
242 }
243 }
244 }
245}
246
247#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
248impl Expression {
249 #[doc = "`ExprListAfterFirstExpr(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::expression::Expression)` overload"]
250 pub fn expr_list_after_first_expr(
251 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
252 expr1: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::expression::Expression>,
253 ) -> crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::tree::expression::Expression> {
254 unsafe {
255 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_expr_list_after_first_expr::get_method_info().method_ptr,crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::tree::expression::Expression> ;
256(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(crate::moon_sharp::interpreter::tree::expression::Expression)::core::convert::Into::into(expr1))
257 }
258 }
259
260 #[doc = "`ExprList(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
261 pub fn expr_list(
262 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
263 ) -> crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::tree::expression::Expression> {
264 unsafe {
265 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_expr_list::get_method_info().method_ptr,crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::tree::expression::Expression> ;
266(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
267 }
268 }
269
270 #[doc = "`Expr(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
271 pub fn expr(
272 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
273 ) -> crate::moon_sharp::interpreter::tree::expression::Expression {
274 unsafe {
275 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_expr::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::expression::Expression;
276(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
277 }
278 }
279
280 #[doc = "`SubExpr(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, bool)` overload"]
281 pub fn sub_expr(
282 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
283 is_primary: impl ::core::convert::Into<bool>,
284 ) -> crate::moon_sharp::interpreter::tree::expression::Expression {
285 unsafe {
286 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_sub_expr::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::expression::Expression;
287(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(bool)::core::convert::Into::into(is_primary))
288 }
289 }
290
291 #[doc = "`SimpleExp(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
292 pub fn simple_exp(
293 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
294 ) -> crate::moon_sharp::interpreter::tree::expression::Expression {
295 unsafe {
296 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_simple_exp::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::expression::Expression;
297(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
298 }
299 }
300
301 #[doc = "`PrimaryExp(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
302 pub fn primary_exp(
303 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
304 ) -> crate::moon_sharp::interpreter::tree::expression::Expression {
305 unsafe {
306 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_primary_exp::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::expression::Expression;
307(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
308 }
309 }
310
311 #[doc = "`PrefixExp(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
312 pub fn prefix_exp(
313 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
314 ) -> crate::moon_sharp::interpreter::tree::expression::Expression {
315 unsafe {
316 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_prefix_exp::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::expression::Expression;
317(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
318 }
319 }
320}
321
322#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
323pub trait IExpressionMethods: IExpression {
324 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
325 fn ctor(self, lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>) -> () {
326 unsafe {
327 let __receiver = <Expression as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328 ::unity::il2cpp_call!(__Expression_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
329(Expression)__receiver,(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
330 }
331 }
332 #[doc = "`GetFriendlyDebugName()` overload"]
333 fn get_friendly_debug_name(self) -> ::unity::Il2CppString {
334 unsafe {
335 let __receiver = <Expression as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 {
337 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
338 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
339 panic!(
340 "unity: virtual slot {}
341 out of range (vtable len {}
342) on the runtime class behind {}
343 (method `{}
344`)",
345 5usize,
346 __vt.len(),
347 <Expression as ::unity::ClassIdentity>::NAME,
348 "GetFriendlyDebugName",
349 )
350 });
351 let __inner: extern "C" fn(Expression, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
352 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
353 __inner(__receiver, __mi)
354 }
355 }
356 }
357 #[doc = "`Eval(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)` overload"]
358 fn eval(
359 self,
360 context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
361 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
362 unsafe {
363 let __receiver = <Expression as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364 {
365 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
366 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
367 panic!(
368 "unity: virtual slot {}
369 out of range (vtable len {}
370) on the runtime class behind {}
371 (method `{}
372`)",
373 6usize,
374 __vt.len(),
375 <Expression as ::unity::ClassIdentity>::NAME,
376 "Eval",
377 )
378 });
379 let __inner: extern "C" fn(
380 Expression,
381 crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
382 ::unity::OptionalMethod,
383 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__vi.method_ptr);
384 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
385 __inner(__receiver, ::core::convert::Into::into(context), __mi)
386 }
387 }
388 }
389 #[doc = "`FindDynamic(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext)` overload"]
390 fn find_dynamic(
391 self,
392 context: impl ::core::convert::Into<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext>,
393 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
394 unsafe {
395 let __receiver = <Expression as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
396 {
397 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
398 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
399 panic!(
400 "unity: virtual slot {}
401 out of range (vtable len {}
402) on the runtime class behind {}
403 (method `{}
404`)",
405 7usize,
406 __vt.len(),
407 <Expression as ::unity::ClassIdentity>::NAME,
408 "FindDynamic",
409 )
410 });
411 let __inner: extern "C" fn(
412 Expression,
413 crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
414 ::unity::OptionalMethod,
415 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef = ::core::mem::transmute(__vi.method_ptr);
416 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
417 __inner(__receiver, ::core::convert::Into::into(context), __mi)
418 }
419 }
420 }
421}
422
423#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
424impl<__T: IExpression> IExpressionMethods for __T {}
425
426#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
427impl Expression {
428 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
430 }
431
432 pub fn get_friendly_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
434 }
435
436 pub fn eval_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
438 }
439
440 pub fn find_dynamic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
441 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
442 }
443
444 pub fn expr_list_after_first_expr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
445 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
446 }
447
448 pub fn expr_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
449 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
450 }
451
452 pub fn expr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
453 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
454 }
455
456 pub fn sub_expr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
457 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
458 }
459
460 pub fn simple_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
462 }
463
464 pub fn primary_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
466 }
467
468 pub fn prefix_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
469 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
470 }
471}
472
473#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
474impl Expression {
475 #[doc = "Direct (non-virtual) call to `Expression`'s own `GetFriendlyDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
476 pub unsafe fn get_friendly_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
477 let __mi = Self::get_friendly_debug_name_method_info();
478 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
479 __inner(this.into(), ::core::option::Option::None)
480 }
481
482 #[doc = "Direct (non-virtual) call to `Expression`'s own `Eval`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
483 pub unsafe fn eval(
484 this: impl ::core::convert::Into<::unity::IlInstance>,
485 context: crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
486 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue {
487 let __mi = Self::eval_method_info();
488 let __inner: extern "C" fn(
489 ::unity::IlInstance,
490 crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
491 ::unity::OptionalMethod,
492 ) -> crate::moon_sharp::interpreter::dynvalue::DynValue = ::core::mem::transmute(__mi.method_ptr);
493 __inner(this.into(), context, ::core::option::Option::None)
494 }
495
496 #[doc = "Direct (non-virtual) call to `Expression`'s own `FindDynamic`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
497 pub unsafe fn find_dynamic(
498 this: impl ::core::convert::Into<::unity::IlInstance>,
499 context: crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
500 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef {
501 let __mi = Self::find_dynamic_method_info();
502 let __inner: extern "C" fn(
503 ::unity::IlInstance,
504 crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,
505 ::unity::OptionalMethod,
506 ) -> crate::moon_sharp::interpreter::symbolref::SymbolRef = ::core::mem::transmute(__mi.method_ptr);
507 __inner(this.into(), context, ::core::option::Option::None)
508 }
509}
510
511#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
512impl Expression {
513 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` — overload selector"]
514 pub fn new(lcontext: crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) -> Self {
515 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
516 panic!(
517 "{}
518::{}
519 failed to instantiate",
520 ::core::stringify!(Expression),
521 ::core::stringify!(new),
522 )
523 });
524 <Self as IExpressionMethods>::ctor(this, lcontext);
525 this
526 }
527}
528
529#[cfg(feature = "moon_sharp-interpreter-tree-expression")]
530#[doc(hidden)]
531pub mod prelude {
532 pub use super::{Expression, IExpression, IExpressionMethods};
533 #[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
534 pub use crate::moon_sharp::interpreter::tree::nodebase::INodeBaseMethods;
535 #[cfg(feature = "system-object")]
536 pub use crate::system::object::IObjectMethods;
537 pub use crate::{moon_sharp::interpreter::tree::nodebase::INodeBase, system::object::IObject};
538}