1#[cfg(feature = "moon_sharp-interpreter-tree-token-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/token/Token.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Tree", name = "Token")]
12 #[parent(crate::system::object::Object)]
13 pub struct Token {
14 #[offset(16)]
15 #[rename(name = "SourceId")]
16 pub source_id: i32,
17 #[offset(20)]
18 #[rename(name = "FromCol")]
19 pub from_col: i32,
20 #[offset(24)]
21 #[rename(name = "ToCol")]
22 pub to_col: i32,
23 #[offset(28)]
24 #[rename(name = "FromLine")]
25 pub from_line: i32,
26 #[offset(32)]
27 #[rename(name = "ToLine")]
28 pub to_line: i32,
29 #[offset(36)]
30 #[rename(name = "PrevCol")]
31 pub prev_col: i32,
32 #[offset(40)]
33 #[rename(name = "PrevLine")]
34 pub prev_line: i32,
35 #[offset(44)]
36 #[rename(name = "Type")]
37 pub r#type: crate::moon_sharp::interpreter::tree::tokentype::TokenType,
38 }
39}
40
41#[cfg(feature = "moon_sharp-interpreter-tree-token-types")]
42pub use __types::*;
43
44#[cfg(feature = "moon_sharp-interpreter-tree-token")]
45#[doc(hidden)]
46#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
47mod __Token_unity_raw {
48 use super::*;
49 #[doc(hidden)]
50 #[allow(non_snake_case)]
51 pub mod __lookup_get_text {
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 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), "get_Text", 0, param_types, false)
56 });
57 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
58 match &*METHOD {
59 ::core::result::Result::Ok(mi) => *mi,
60 ::core::result::Result::Err(e) => {
61 panic!(
62 "method lookup failed: {}
63::{}
64: {}
65",
66 <Token as ::unity::ClassIdentity>::NAME,
67 "get_Text",
68 e
69 )
70 },
71 }
72 }
73 }
74 #[doc(hidden)]
75 #[allow(non_snake_case)]
76 pub mod __lookup_set_text {
77 use super::*;
78 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
79 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
80 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), "set_Text", 1, param_types, false)
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 <Token as ::unity::ClassIdentity>::NAME,
92 "set_Text",
93 e
94 )
95 },
96 }
97 }
98 }
99 #[doc(hidden)]
100 #[allow(non_snake_case)]
101 pub mod __lookup_ctor {
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 <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
106 <i32 as ::unity::IlType>::il_type(),
107 <i32 as ::unity::IlType>::il_type(),
108 <i32 as ::unity::IlType>::il_type(),
109 <i32 as ::unity::IlType>::il_type(),
110 <i32 as ::unity::IlType>::il_type(),
111 <i32 as ::unity::IlType>::il_type(),
112 <i32 as ::unity::IlType>::il_type(),
113 ];
114 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), ".ctor", 8, param_types, false)
115 });
116 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 match &*METHOD {
118 ::core::result::Result::Ok(mi) => *mi,
119 ::core::result::Result::Err(e) => {
120 panic!(
121 "method lookup failed: {}
122::{}
123: {}
124",
125 <Token as ::unity::ClassIdentity>::NAME,
126 ".ctor",
127 e
128 )
129 },
130 }
131 }
132 }
133 #[doc(hidden)]
134 #[allow(non_snake_case)]
135 pub mod __lookup_get_number_value {
136 use super::*;
137 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
138 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
139 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), "GetNumberValue", 0, param_types, false)
140 });
141 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 match &*METHOD {
143 ::core::result::Result::Ok(mi) => *mi,
144 ::core::result::Result::Err(e) => {
145 panic!(
146 "method lookup failed: {}
147::{}
148: {}
149",
150 <Token as ::unity::ClassIdentity>::NAME,
151 "GetNumberValue",
152 e
153 )
154 },
155 }
156 }
157 }
158 #[doc(hidden)]
159 #[allow(non_snake_case)]
160 pub mod __lookup_is_end_of_block {
161 use super::*;
162 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
163 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
164 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), "IsEndOfBlock", 0, param_types, false)
165 });
166 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 match &*METHOD {
168 ::core::result::Result::Ok(mi) => *mi,
169 ::core::result::Result::Err(e) => {
170 panic!(
171 "method lookup failed: {}
172::{}
173: {}
174",
175 <Token as ::unity::ClassIdentity>::NAME,
176 "IsEndOfBlock",
177 e
178 )
179 },
180 }
181 }
182 }
183 #[doc(hidden)]
184 #[allow(non_snake_case)]
185 pub mod __lookup_is_unary_operator {
186 use super::*;
187 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
188 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
189 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), "IsUnaryOperator", 0, param_types, false)
190 });
191 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 match &*METHOD {
193 ::core::result::Result::Ok(mi) => *mi,
194 ::core::result::Result::Err(e) => {
195 panic!(
196 "method lookup failed: {}
197::{}
198: {}
199",
200 <Token as ::unity::ClassIdentity>::NAME,
201 "IsUnaryOperator",
202 e
203 )
204 },
205 }
206 }
207 }
208 #[doc(hidden)]
209 #[allow(non_snake_case)]
210 pub mod __lookup_is_binary_operator {
211 use super::*;
212 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
213 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
214 ::unity::lookup::method_info_on_class_with_signature(
215 <Token as ::unity::ClassIdentity>::class(),
216 "IsBinaryOperator",
217 0,
218 param_types,
219 false,
220 )
221 });
222 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 match &*METHOD {
224 ::core::result::Result::Ok(mi) => *mi,
225 ::core::result::Result::Err(e) => {
226 panic!(
227 "method lookup failed: {}
228::{}
229: {}
230",
231 <Token as ::unity::ClassIdentity>::NAME,
232 "IsBinaryOperator",
233 e
234 )
235 },
236 }
237 }
238 }
239 #[doc(hidden)]
240 #[allow(non_snake_case)]
241 pub mod __lookup_get_source_ref {
242 use super::*;
243 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
244 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
245 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), "GetSourceRef", 1, param_types, false)
246 });
247 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 match &*METHOD {
249 ::core::result::Result::Ok(mi) => *mi,
250 ::core::result::Result::Err(e) => {
251 panic!(
252 "method lookup failed: {}
253::{}
254: {}
255",
256 <Token as ::unity::ClassIdentity>::NAME,
257 "GetSourceRef",
258 e
259 )
260 },
261 }
262 }
263 }
264 #[doc(hidden)]
265 #[allow(non_snake_case)]
266 pub mod __lookup_get_source_ref_2 {
267 use super::*;
268 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
269 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
270 <crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type(),
271 <bool as ::unity::IlType>::il_type(),
272 ];
273 ::unity::lookup::method_info_on_class_with_signature(<Token as ::unity::ClassIdentity>::class(), "GetSourceRef", 2, param_types, false)
274 });
275 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 match &*METHOD {
277 ::core::result::Result::Ok(mi) => *mi,
278 ::core::result::Result::Err(e) => {
279 panic!(
280 "method lookup failed: {}
281::{}
282: {}
283",
284 <Token as ::unity::ClassIdentity>::NAME,
285 "GetSourceRef",
286 e
287 )
288 },
289 }
290 }
291 }
292 #[doc(hidden)]
293 #[allow(non_snake_case)]
294 pub mod __lookup_get_source_ref_up_to {
295 use super::*;
296 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
297 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
298 <crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type(),
299 <bool as ::unity::IlType>::il_type(),
300 ];
301 ::unity::lookup::method_info_on_class_with_signature(
302 <Token as ::unity::ClassIdentity>::class(),
303 "GetSourceRefUpTo",
304 2,
305 param_types,
306 false,
307 )
308 });
309 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 match &*METHOD {
311 ::core::result::Result::Ok(mi) => *mi,
312 ::core::result::Result::Err(e) => {
313 panic!(
314 "method lookup failed: {}
315::{}
316: {}
317",
318 <Token as ::unity::ClassIdentity>::NAME,
319 "GetSourceRefUpTo",
320 e
321 )
322 },
323 }
324 }
325 }
326}
327
328#[cfg(feature = "moon_sharp-interpreter-tree-token")]
329pub trait ITokenMethods: IToken {
330 #[doc = "`get_Text()` overload"]
331 fn get_text(self) -> ::unity::Il2CppString {
332 unsafe {
333 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_get_text::get_method_info().method_ptr, ::unity::Il2CppString;
335(Token)__receiver)
336 }
337 }
338 #[doc = "`set_Text(::unity::Il2CppString)` overload"]
339 fn set_text(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
340 unsafe {
341 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_set_text::get_method_info().method_ptr,();
343(Token)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
344 }
345 }
346 #[doc = "`.ctor(crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32, i32, i32, i32, i32, i32)` overload"]
347 fn ctor(
348 self,
349 r#type: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
350 source_id: impl ::core::convert::Into<i32>,
351 from_line: impl ::core::convert::Into<i32>,
352 from_col: impl ::core::convert::Into<i32>,
353 to_line: impl ::core::convert::Into<i32>,
354 to_col: impl ::core::convert::Into<i32>,
355 prev_line: impl ::core::convert::Into<i32>,
356 prev_col: impl ::core::convert::Into<i32>,
357 ) -> () {
358 unsafe {
359 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
361(Token)__receiver,(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(r#type),(i32)::core::convert::Into::into(source_id),(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col),(i32)::core::convert::Into::into(to_line),(i32)::core::convert::Into::into(to_col),(i32)::core::convert::Into::into(prev_line),(i32)::core::convert::Into::into(prev_col))
362 }
363 }
364 #[doc = "`ToString()` overload"]
365 fn to_string(self) -> ::unity::Il2CppString {
366 unsafe {
367 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 {
369 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
370 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
371 panic!(
372 "unity: virtual slot {}
373 out of range (vtable len {}
374) on the runtime class behind {}
375 (method `{}
376`)",
377 3usize,
378 __vt.len(),
379 <Token as ::unity::ClassIdentity>::NAME,
380 "ToString",
381 )
382 });
383 let __inner: extern "C" fn(Token, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::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, __mi)
386 }
387 }
388 }
389 #[doc = "`GetNumberValue()` overload"]
390 fn get_number_value(self) -> f64 {
391 unsafe {
392 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_get_number_value::get_method_info().method_ptr,f64;
394(Token)__receiver)
395 }
396 }
397 #[doc = "`IsEndOfBlock()` overload"]
398 fn is_end_of_block(self) -> bool {
399 unsafe {
400 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
401 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_is_end_of_block::get_method_info().method_ptr,bool;
402(Token)__receiver)
403 }
404 }
405 #[doc = "`IsUnaryOperator()` overload"]
406 fn is_unary_operator(self) -> bool {
407 unsafe {
408 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
409 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_is_unary_operator::get_method_info().method_ptr,bool;
410(Token)__receiver)
411 }
412 }
413 #[doc = "`IsBinaryOperator()` overload"]
414 fn is_binary_operator(self) -> bool {
415 unsafe {
416 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
417 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_is_binary_operator::get_method_info().method_ptr,bool;
418(Token)__receiver)
419 }
420 }
421 #[doc = "`GetSourceRef(bool)` overload"]
422 fn get_source_ref(self, is_step_stop: impl ::core::convert::Into<bool>) -> crate::moon_sharp::interpreter::debugging::sourceref::SourceRef {
423 unsafe {
424 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
425 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_get_source_ref::get_method_info().method_ptr,crate::moon_sharp::interpreter::debugging::sourceref::SourceRef;
426(Token)__receiver,(bool)::core::convert::Into::into(is_step_stop))
427 }
428 }
429 #[doc = "`GetSourceRef(crate::moon_sharp::interpreter::tree::token::Token, bool)` overload"]
430 fn get_source_ref_2(
431 self,
432 to: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>,
433 is_step_stop: impl ::core::convert::Into<bool>,
434 ) -> crate::moon_sharp::interpreter::debugging::sourceref::SourceRef {
435 unsafe {
436 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
437 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_get_source_ref_2::get_method_info().method_ptr,crate::moon_sharp::interpreter::debugging::sourceref::SourceRef;
438(Token)__receiver,(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(to),(bool)::core::convert::Into::into(is_step_stop))
439 }
440 }
441 #[doc = "`GetSourceRefUpTo(crate::moon_sharp::interpreter::tree::token::Token, bool)` overload"]
442 fn get_source_ref_up_to(
443 self,
444 to: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>,
445 is_step_stop: impl ::core::convert::Into<bool>,
446 ) -> crate::moon_sharp::interpreter::debugging::sourceref::SourceRef {
447 unsafe {
448 let __receiver = <Token as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
449 ::unity::il2cpp_call!(__Token_unity_raw::__lookup_get_source_ref_up_to::get_method_info().method_ptr,crate::moon_sharp::interpreter::debugging::sourceref::SourceRef;
450(Token)__receiver,(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(to),(bool)::core::convert::Into::into(is_step_stop))
451 }
452 }
453}
454
455#[cfg(feature = "moon_sharp-interpreter-tree-token")]
456impl<__T: IToken> ITokenMethods for __T {}
457
458#[cfg(feature = "moon_sharp-interpreter-tree-token")]
459impl Token {
460 pub fn get_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
462 }
463
464 pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
466 }
467
468 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
469 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
470 }
471
472 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
473 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
474 }
475
476 pub fn get_number_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
477 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
478 }
479
480 pub fn is_end_of_block_method_info() -> &'static ::unity::il2cpp::MethodInfo {
481 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
482 }
483
484 pub fn is_unary_operator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
485 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
486 }
487
488 pub fn is_binary_operator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
489 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
490 }
491
492 pub fn get_source_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
493 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
494 }
495
496 pub fn get_source_ref_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
497 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
498 }
499
500 pub fn get_source_ref_up_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
501 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
502 }
503}
504
505#[cfg(feature = "moon_sharp-interpreter-tree-token")]
506impl Token {
507 #[doc = "Direct (non-virtual) call to `Token`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
508 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
509 let __mi = Self::to_string_method_info();
510 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
511 __inner(this.into(), ::core::option::Option::None)
512 }
513}
514
515#[cfg(feature = "moon_sharp-interpreter-tree-token")]
516impl Token {
517 #[doc = "`.ctor(crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32, i32, i32, i32, i32, i32)` — overload selector"]
518 pub fn new(
519 r#type: crate::moon_sharp::interpreter::tree::tokentype::TokenType,
520 source_id: i32,
521 from_line: i32,
522 from_col: i32,
523 to_line: i32,
524 to_col: i32,
525 prev_line: i32,
526 prev_col: i32,
527 ) -> Self {
528 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
529 panic!(
530 "{}
531::{}
532 failed to instantiate",
533 ::core::stringify!(Token),
534 ::core::stringify!(new),
535 )
536 });
537 <Self as ITokenMethods>::ctor(this, r#type, source_id, from_line, from_col, to_line, to_col, prev_line, prev_col);
538 this
539 }
540}
541
542#[cfg(feature = "moon_sharp-interpreter-tree-token")]
543#[doc(hidden)]
544pub mod prelude {
545 pub use super::{IToken, ITokenMethods, Token};
546 pub use crate::system::object::IObject;
547 #[cfg(feature = "system-object")]
548 pub use crate::system::object::IObjectMethods;
549}