1#[cfg(feature = "moon_sharp-interpreter-tree-nodebase-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/tree/nodebase/NodeBase.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Tree", name = "NodeBase")]
12 #[parent(crate::system::object::Object)]
13 pub struct NodeBase {}
14}
15
16#[cfg(feature = "moon_sharp-interpreter-tree-nodebase-types")]
17pub use __types::*;
18
19#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
20#[doc(hidden)]
21#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
22mod __NodeBase_unity_raw {
23 use super::*;
24 #[doc(hidden)]
25 #[allow(non_snake_case)]
26 pub mod __lookup_get_script {
27 use super::*;
28 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
29 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
30 ::unity::lookup::method_info_on_class_with_signature(<NodeBase as ::unity::ClassIdentity>::class(), "get_Script", 0, param_types, false)
31 });
32 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
33 match &*METHOD {
34 ::core::result::Result::Ok(mi) => *mi,
35 ::core::result::Result::Err(e) => {
36 panic!(
37 "method lookup failed: {}
38::{}
39: {}
40",
41 <NodeBase as ::unity::ClassIdentity>::NAME,
42 "get_Script",
43 e
44 )
45 },
46 }
47 }
48 }
49 #[doc(hidden)]
50 #[allow(non_snake_case)]
51 pub mod __lookup_set_script {
52 use super::*;
53 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
54 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
55 &[<crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type()];
56 ::unity::lookup::method_info_on_class_with_signature(<NodeBase as ::unity::ClassIdentity>::class(), "set_Script", 1, param_types, false)
57 });
58 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59 match &*METHOD {
60 ::core::result::Result::Ok(mi) => *mi,
61 ::core::result::Result::Err(e) => {
62 panic!(
63 "method lookup failed: {}
64::{}
65: {}
66",
67 <NodeBase as ::unity::ClassIdentity>::NAME,
68 "set_Script",
69 e
70 )
71 },
72 }
73 }
74 }
75 #[doc(hidden)]
76 #[allow(non_snake_case)]
77 pub mod __lookup_get_loading_context {
78 use super::*;
79 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
80 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
81 ::unity::lookup::method_info_on_class_with_signature(
82 <NodeBase as ::unity::ClassIdentity>::class(),
83 "get_LoadingContext",
84 0,
85 param_types,
86 false,
87 )
88 });
89 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 match &*METHOD {
91 ::core::result::Result::Ok(mi) => *mi,
92 ::core::result::Result::Err(e) => {
93 panic!(
94 "method lookup failed: {}
95::{}
96: {}
97",
98 <NodeBase as ::unity::ClassIdentity>::NAME,
99 "get_LoadingContext",
100 e
101 )
102 },
103 }
104 }
105 }
106 #[doc(hidden)]
107 #[allow(non_snake_case)]
108 pub mod __lookup_set_loading_context {
109 use super::*;
110 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
111 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
112 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
113 ::unity::lookup::method_info_on_class_with_signature(
114 <NodeBase as ::unity::ClassIdentity>::class(),
115 "set_LoadingContext",
116 1,
117 param_types,
118 false,
119 )
120 });
121 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 match &*METHOD {
123 ::core::result::Result::Ok(mi) => *mi,
124 ::core::result::Result::Err(e) => {
125 panic!(
126 "method lookup failed: {}
127::{}
128: {}
129",
130 <NodeBase as ::unity::ClassIdentity>::NAME,
131 "set_LoadingContext",
132 e
133 )
134 },
135 }
136 }
137 }
138 #[doc(hidden)]
139 #[allow(non_snake_case)]
140 pub mod __lookup_ctor {
141 use super::*;
142 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
143 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
144 &[<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type()];
145 ::unity::lookup::method_info_on_class_with_signature(<NodeBase as ::unity::ClassIdentity>::class(), ".ctor", 1, param_types, false)
146 });
147 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 match &*METHOD {
149 ::core::result::Result::Ok(mi) => *mi,
150 ::core::result::Result::Err(e) => {
151 panic!(
152 "method lookup failed: {}
153::{}
154: {}
155",
156 <NodeBase as ::unity::ClassIdentity>::NAME,
157 ".ctor",
158 e
159 )
160 },
161 }
162 }
163 }
164 #[doc(hidden)]
165 #[allow(non_snake_case)]
166 pub mod __lookup_unexpected_token_type {
167 use super::*;
168 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
169 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
170 &[<crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type()];
171 ::unity::lookup::method_info_on_class_with_signature(
172 <NodeBase as ::unity::ClassIdentity>::class(),
173 "UnexpectedTokenType",
174 1,
175 param_types,
176 true,
177 )
178 });
179 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 match &*METHOD {
181 ::core::result::Result::Ok(mi) => *mi,
182 ::core::result::Result::Err(e) => {
183 panic!(
184 "method lookup failed: {}
185::{}
186: {}
187",
188 <NodeBase as ::unity::ClassIdentity>::NAME,
189 "UnexpectedTokenType",
190 e
191 )
192 },
193 }
194 }
195 }
196 #[doc(hidden)]
197 #[allow(non_snake_case)]
198 pub mod __lookup_check_token_type {
199 use super::*;
200 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
201 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
202 <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
203 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
204 ];
205 ::unity::lookup::method_info_on_class_with_signature(
206 <NodeBase as ::unity::ClassIdentity>::class(),
207 "CheckTokenType",
208 2,
209 param_types,
210 true,
211 )
212 });
213 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 match &*METHOD {
215 ::core::result::Result::Ok(mi) => *mi,
216 ::core::result::Result::Err(e) => {
217 panic!(
218 "method lookup failed: {}
219::{}
220: {}
221",
222 <NodeBase as ::unity::ClassIdentity>::NAME,
223 "CheckTokenType",
224 e
225 )
226 },
227 }
228 }
229 }
230 #[doc(hidden)]
231 #[allow(non_snake_case)]
232 pub mod __lookup_check_token_type_2 {
233 use super::*;
234 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
235 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
236 <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
237 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
238 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
239 ];
240 ::unity::lookup::method_info_on_class_with_signature(
241 <NodeBase as ::unity::ClassIdentity>::class(),
242 "CheckTokenType",
243 3,
244 param_types,
245 true,
246 )
247 });
248 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 match &*METHOD {
250 ::core::result::Result::Ok(mi) => *mi,
251 ::core::result::Result::Err(e) => {
252 panic!(
253 "method lookup failed: {}
254::{}
255: {}
256",
257 <NodeBase as ::unity::ClassIdentity>::NAME,
258 "CheckTokenType",
259 e
260 )
261 },
262 }
263 }
264 }
265 #[doc(hidden)]
266 #[allow(non_snake_case)]
267 pub mod __lookup_check_token_type_3 {
268 use super::*;
269 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
270 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
271 <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
272 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
273 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
274 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
275 ];
276 ::unity::lookup::method_info_on_class_with_signature(
277 <NodeBase as ::unity::ClassIdentity>::class(),
278 "CheckTokenType",
279 4,
280 param_types,
281 true,
282 )
283 });
284 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 match &*METHOD {
286 ::core::result::Result::Ok(mi) => *mi,
287 ::core::result::Result::Err(e) => {
288 panic!(
289 "method lookup failed: {}
290::{}
291: {}
292",
293 <NodeBase as ::unity::ClassIdentity>::NAME,
294 "CheckTokenType",
295 e
296 )
297 },
298 }
299 }
300 }
301 #[doc(hidden)]
302 #[allow(non_snake_case)]
303 pub mod __lookup_check_token_type_not_next {
304 use super::*;
305 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
306 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
307 <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
308 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
309 ];
310 ::unity::lookup::method_info_on_class_with_signature(
311 <NodeBase as ::unity::ClassIdentity>::class(),
312 "CheckTokenTypeNotNext",
313 2,
314 param_types,
315 true,
316 )
317 });
318 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 match &*METHOD {
320 ::core::result::Result::Ok(mi) => *mi,
321 ::core::result::Result::Err(e) => {
322 panic!(
323 "method lookup failed: {}
324::{}
325: {}
326",
327 <NodeBase as ::unity::ClassIdentity>::NAME,
328 "CheckTokenTypeNotNext",
329 e
330 )
331 },
332 }
333 }
334 }
335 #[doc(hidden)]
336 #[allow(non_snake_case)]
337 pub mod __lookup_check_match {
338 use super::*;
339 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
340 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
341 <crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext as ::unity::IlType>::il_type(),
342 <crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type(),
343 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
344 <::unity::Il2CppString as ::unity::IlType>::il_type(),
345 ];
346 ::unity::lookup::method_info_on_class_with_signature(<NodeBase as ::unity::ClassIdentity>::class(), "CheckMatch", 4, param_types, true)
347 });
348 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 match &*METHOD {
350 ::core::result::Result::Ok(mi) => *mi,
351 ::core::result::Result::Err(e) => {
352 panic!(
353 "method lookup failed: {}
354::{}
355: {}
356",
357 <NodeBase as ::unity::ClassIdentity>::NAME,
358 "CheckMatch",
359 e
360 )
361 },
362 }
363 }
364 }
365}
366
367#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
368impl NodeBase {
369 #[doc = "`UnexpectedTokenType(crate::moon_sharp::interpreter::tree::token::Token)` overload"]
370 pub fn unexpected_token_type(
371 t: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>,
372 ) -> crate::moon_sharp::interpreter::tree::token::Token {
373 unsafe {
374 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_unexpected_token_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
375(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(t))
376 }
377 }
378
379 #[doc = "`CheckTokenType(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::tokentype::TokenType)` overload"]
380 pub fn check_token_type(
381 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
382 token_type: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
383 ) -> crate::moon_sharp::interpreter::tree::token::Token {
384 unsafe {
385 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_check_token_type::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
386(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type))
387 }
388 }
389
390 #[doc = "`CheckTokenType(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::tokentype::TokenType, crate::moon_sharp::interpreter::tree::tokentype::TokenType)` overload"]
391 pub fn check_token_type_2(
392 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
393 token_type1: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
394 token_type2: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
395 ) -> crate::moon_sharp::interpreter::tree::token::Token {
396 unsafe {
397 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_check_token_type_2::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
398(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type1),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type2))
399 }
400 }
401
402 #[doc = "`CheckTokenType(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::tokentype::TokenType, crate::moon_sharp::interpreter::tree::tokentype::TokenType, crate::moon_sharp::interpreter::tree::tokentype::TokenType)` overload"]
403 pub fn check_token_type_3(
404 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
405 token_type1: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
406 token_type2: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
407 token_type3: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
408 ) -> crate::moon_sharp::interpreter::tree::token::Token {
409 unsafe {
410 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_check_token_type_3::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
411(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type1),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type2),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type3))
412 }
413 }
414
415 #[doc = "`CheckTokenTypeNotNext(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::tokentype::TokenType)` overload"]
416 pub fn check_token_type_not_next(
417 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
418 token_type: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
419 ) -> () {
420 unsafe {
421 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_check_token_type_not_next::get_method_info().method_ptr,();
422(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type))
423 }
424 }
425
426 #[doc = "`CheckMatch(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::token::Token, crate::moon_sharp::interpreter::tree::tokentype::TokenType, ::unity::Il2CppString)` overload"]
427 pub fn check_match(
428 lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
429 original_token: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>,
430 expected_token_type: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
431 expected_token_text: impl ::core::convert::Into<::unity::Il2CppString>,
432 ) -> crate::moon_sharp::interpreter::tree::token::Token {
433 unsafe {
434 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_check_match::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
435(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext),(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(original_token),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(expected_token_type),(::unity::Il2CppString)::core::convert::Into::into(expected_token_text))
436 }
437 }
438}
439
440#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
441pub trait INodeBaseMethods: INodeBase {
442 #[doc = "`get_Script()` overload"]
443 fn get_script(self) -> crate::moon_sharp::interpreter::script::Script {
444 unsafe {
445 let __receiver = <NodeBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
446 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_get_script::get_method_info().method_ptr,crate::moon_sharp::interpreter::script::Script;
447(NodeBase)__receiver)
448 }
449 }
450 #[doc = "`set_Script(crate::moon_sharp::interpreter::script::Script)` overload"]
451 fn set_script(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>) -> () {
452 unsafe {
453 let __receiver = <NodeBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
454 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_set_script::get_method_info().method_ptr,();
455(NodeBase)__receiver,(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(value))
456 }
457 }
458 #[doc = "`get_LoadingContext()` overload"]
459 fn get_loading_context(self) -> crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext {
460 unsafe {
461 let __receiver = <NodeBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
462 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_get_loading_context::get_method_info().method_ptr,crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext;
463(NodeBase)__receiver)
464 }
465 }
466 #[doc = "`set_LoadingContext(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
467 fn set_loading_context(
468 self,
469 value: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>,
470 ) -> () {
471 unsafe {
472 let __receiver = <NodeBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
473 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_set_loading_context::get_method_info().method_ptr,();
474(NodeBase)__receiver,(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(value))
475 }
476 }
477 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` overload"]
478 fn ctor(self, lcontext: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext>) -> () {
479 unsafe {
480 let __receiver = <NodeBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
481 ::unity::il2cpp_call!(__NodeBase_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
482(NodeBase)__receiver,(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)::core::convert::Into::into(lcontext))
483 }
484 }
485 #[doc = "`Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode)` overload"]
486 fn compile(self, bc: impl ::core::convert::Into<crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode>) -> () {
487 unsafe {
488 let __receiver = <NodeBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
489 {
490 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
491 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
492 panic!(
493 "unity: virtual slot {}
494 out of range (vtable len {}
495) on the runtime class behind {}
496 (method `{}
497`)",
498 4usize,
499 __vt.len(),
500 <NodeBase as ::unity::ClassIdentity>::NAME,
501 "Compile",
502 )
503 });
504 let __inner: extern "C" fn(
505 NodeBase,
506 crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
507 ::unity::OptionalMethod,
508 ) -> () = ::core::mem::transmute(__vi.method_ptr);
509 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
510 __inner(__receiver, ::core::convert::Into::into(bc), __mi)
511 }
512 }
513 }
514}
515
516#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
517impl<__T: INodeBase> INodeBaseMethods for __T {}
518
519#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
520impl NodeBase {
521 pub fn get_script_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
523 }
524
525 pub fn set_script_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
527 }
528
529 pub fn get_loading_context_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
531 }
532
533 pub fn set_loading_context_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
535 }
536
537 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
539 }
540
541 pub fn compile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
543 }
544
545 pub fn unexpected_token_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
547 }
548
549 pub fn check_token_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
551 }
552
553 pub fn check_token_type_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
555 }
556
557 pub fn check_token_type_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
559 }
560
561 pub fn check_token_type_not_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
563 }
564
565 pub fn check_match_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
567 }
568}
569
570#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
571impl NodeBase {
572 #[doc = "Direct (non-virtual) call to `NodeBase`'s own `Compile`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
573 pub unsafe fn compile(
574 this: impl ::core::convert::Into<::unity::IlInstance>,
575 bc: crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
576 ) -> () {
577 let __mi = Self::compile_method_info();
578 let __inner: extern "C" fn(
579 ::unity::IlInstance,
580 crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode,
581 ::unity::OptionalMethod,
582 ) -> () = ::core::mem::transmute(__mi.method_ptr);
583 __inner(this.into(), bc, ::core::option::Option::None)
584 }
585}
586
587#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
588impl NodeBase {
589 #[doc = "`.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext)` — overload selector"]
590 pub fn new(lcontext: crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) -> Self {
591 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
592 panic!(
593 "{}
594::{}
595 failed to instantiate",
596 ::core::stringify!(NodeBase),
597 ::core::stringify!(new),
598 )
599 });
600 <Self as INodeBaseMethods>::ctor(this, lcontext);
601 this
602 }
603}
604
605#[cfg(feature = "moon_sharp-interpreter-tree-nodebase")]
606#[doc(hidden)]
607pub mod prelude {
608 pub use super::{INodeBase, INodeBaseMethods, NodeBase};
609 pub use crate::system::object::IObject;
610 #[cfg(feature = "system-object")]
611 pub use crate::system::object::IObjectMethods;
612}