Skip to main content

engage/generated/moon_sharp/interpreter/tree/
lexer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "moon_sharp-interpreter-tree-lexer-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/lexer/Lexer.md"))]
11    #[::unity::class(namespace = "MoonSharp.Interpreter.Tree", name = "Lexer")]
12    #[parent(crate::system::object::Object)]
13    pub struct Lexer {
14        #[offset(16)]
15        #[rename(name = "m_Current")]
16        pub m_current: crate::moon_sharp::interpreter::tree::token::Token,
17        #[offset(24)]
18        #[rename(name = "m_Code")]
19        pub m_code: ::unity::Il2CppString,
20        #[offset(32)]
21        #[rename(name = "m_PrevLineTo")]
22        pub m_prev_line_to: i32,
23        #[offset(36)]
24        #[rename(name = "m_PrevColTo")]
25        pub m_prev_col_to: i32,
26        #[offset(40)]
27        #[rename(name = "m_Cursor")]
28        pub m_cursor: i32,
29        #[offset(44)]
30        #[rename(name = "m_Line")]
31        pub m_line: i32,
32        #[offset(48)]
33        #[rename(name = "m_Col")]
34        pub m_col: i32,
35        #[offset(52)]
36        #[rename(name = "m_SourceId")]
37        pub m_source_id: i32,
38        #[offset(56)]
39        #[rename(name = "m_AutoSkipComments")]
40        pub m_auto_skip_comments: bool,
41    }
42}
43
44#[cfg(feature = "moon_sharp-interpreter-tree-lexer-types")]
45pub use __types::*;
46
47#[cfg(feature = "moon_sharp-interpreter-tree-lexer")]
48#[doc(hidden)]
49#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
50mod __Lexer_unity_raw {
51    use super::*;
52    #[doc(hidden)]
53    #[allow(non_snake_case)]
54    pub mod __lookup_ctor {
55        use super::*;
56        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
57            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
58                <i32 as ::unity::IlType>::il_type(),
59                <::unity::Il2CppString as ::unity::IlType>::il_type(),
60                <bool as ::unity::IlType>::il_type(),
61            ];
62            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), ".ctor", 3, param_types, false)
63        });
64        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65            match &*METHOD {
66                ::core::result::Result::Ok(mi) => *mi,
67                ::core::result::Result::Err(e) => {
68                    panic!(
69                        "method lookup failed: {}
70::{}
71: {}
72",
73                        <Lexer as ::unity::ClassIdentity>::NAME,
74                        ".ctor",
75                        e
76                    )
77                },
78            }
79        }
80    }
81    #[doc(hidden)]
82    #[allow(non_snake_case)]
83    pub mod __lookup_get_current {
84        use super::*;
85        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
86            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
87            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "get_Current", 0, param_types, false)
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                        <Lexer as ::unity::ClassIdentity>::NAME,
99                        "get_Current",
100                        e
101                    )
102                },
103            }
104        }
105    }
106    #[doc(hidden)]
107    #[allow(non_snake_case)]
108    pub mod __lookup_fetch_new_token {
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            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "FetchNewToken", 0, param_types, false)
113        });
114        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115            match &*METHOD {
116                ::core::result::Result::Ok(mi) => *mi,
117                ::core::result::Result::Err(e) => {
118                    panic!(
119                        "method lookup failed: {}
120::{}
121: {}
122",
123                        <Lexer as ::unity::ClassIdentity>::NAME,
124                        "FetchNewToken",
125                        e
126                    )
127                },
128            }
129        }
130    }
131    #[doc(hidden)]
132    #[allow(non_snake_case)]
133    pub mod __lookup_next {
134        use super::*;
135        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
136            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
137            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "Next", 0, param_types, false)
138        });
139        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140            match &*METHOD {
141                ::core::result::Result::Ok(mi) => *mi,
142                ::core::result::Result::Err(e) => {
143                    panic!(
144                        "method lookup failed: {}
145::{}
146: {}
147",
148                        <Lexer as ::unity::ClassIdentity>::NAME,
149                        "Next",
150                        e
151                    )
152                },
153            }
154        }
155    }
156    #[doc(hidden)]
157    #[allow(non_snake_case)]
158    pub mod __lookup_peek_next {
159        use super::*;
160        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
161            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
162            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "PeekNext", 0, param_types, false)
163        });
164        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165            match &*METHOD {
166                ::core::result::Result::Ok(mi) => *mi,
167                ::core::result::Result::Err(e) => {
168                    panic!(
169                        "method lookup failed: {}
170::{}
171: {}
172",
173                        <Lexer as ::unity::ClassIdentity>::NAME,
174                        "PeekNext",
175                        e
176                    )
177                },
178            }
179        }
180    }
181    #[doc(hidden)]
182    #[allow(non_snake_case)]
183    pub mod __lookup_cursor_next {
184        use super::*;
185        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
186            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
187            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "CursorNext", 0, param_types, false)
188        });
189        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190            match &*METHOD {
191                ::core::result::Result::Ok(mi) => *mi,
192                ::core::result::Result::Err(e) => {
193                    panic!(
194                        "method lookup failed: {}
195::{}
196: {}
197",
198                        <Lexer as ::unity::ClassIdentity>::NAME,
199                        "CursorNext",
200                        e
201                    )
202                },
203            }
204        }
205    }
206    #[doc(hidden)]
207    #[allow(non_snake_case)]
208    pub mod __lookup_cursor_char {
209        use super::*;
210        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
211            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
212            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "CursorChar", 0, param_types, false)
213        });
214        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215            match &*METHOD {
216                ::core::result::Result::Ok(mi) => *mi,
217                ::core::result::Result::Err(e) => {
218                    panic!(
219                        "method lookup failed: {}
220::{}
221: {}
222",
223                        <Lexer as ::unity::ClassIdentity>::NAME,
224                        "CursorChar",
225                        e
226                    )
227                },
228            }
229        }
230    }
231    #[doc(hidden)]
232    #[allow(non_snake_case)]
233    pub mod __lookup_cursor_char_next {
234        use super::*;
235        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
236            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
237            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "CursorCharNext", 0, param_types, false)
238        });
239        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240            match &*METHOD {
241                ::core::result::Result::Ok(mi) => *mi,
242                ::core::result::Result::Err(e) => {
243                    panic!(
244                        "method lookup failed: {}
245::{}
246: {}
247",
248                        <Lexer as ::unity::ClassIdentity>::NAME,
249                        "CursorCharNext",
250                        e
251                    )
252                },
253            }
254        }
255    }
256    #[doc(hidden)]
257    #[allow(non_snake_case)]
258    pub mod __lookup_cursor_matches {
259        use super::*;
260        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
261            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
262            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "CursorMatches", 1, param_types, false)
263        });
264        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265            match &*METHOD {
266                ::core::result::Result::Ok(mi) => *mi,
267                ::core::result::Result::Err(e) => {
268                    panic!(
269                        "method lookup failed: {}
270::{}
271: {}
272",
273                        <Lexer as ::unity::ClassIdentity>::NAME,
274                        "CursorMatches",
275                        e
276                    )
277                },
278            }
279        }
280    }
281    #[doc(hidden)]
282    #[allow(non_snake_case)]
283    pub mod __lookup_cursor_not_eof {
284        use super::*;
285        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
286            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
287            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "CursorNotEof", 0, param_types, false)
288        });
289        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290            match &*METHOD {
291                ::core::result::Result::Ok(mi) => *mi,
292                ::core::result::Result::Err(e) => {
293                    panic!(
294                        "method lookup failed: {}
295::{}
296: {}
297",
298                        <Lexer as ::unity::ClassIdentity>::NAME,
299                        "CursorNotEof",
300                        e
301                    )
302                },
303            }
304        }
305    }
306    #[doc(hidden)]
307    #[allow(non_snake_case)]
308    pub mod __lookup_is_white_space {
309        use super::*;
310        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
311            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<u16 as ::unity::IlType>::il_type()];
312            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "IsWhiteSpace", 1, param_types, false)
313        });
314        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315            match &*METHOD {
316                ::core::result::Result::Ok(mi) => *mi,
317                ::core::result::Result::Err(e) => {
318                    panic!(
319                        "method lookup failed: {}
320::{}
321: {}
322",
323                        <Lexer as ::unity::ClassIdentity>::NAME,
324                        "IsWhiteSpace",
325                        e
326                    )
327                },
328            }
329        }
330    }
331    #[doc(hidden)]
332    #[allow(non_snake_case)]
333    pub mod __lookup_skip_white_space {
334        use super::*;
335        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
336            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
337            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "SkipWhiteSpace", 0, param_types, false)
338        });
339        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340            match &*METHOD {
341                ::core::result::Result::Ok(mi) => *mi,
342                ::core::result::Result::Err(e) => {
343                    panic!(
344                        "method lookup failed: {}
345::{}
346: {}
347",
348                        <Lexer as ::unity::ClassIdentity>::NAME,
349                        "SkipWhiteSpace",
350                        e
351                    )
352                },
353            }
354        }
355    }
356    #[doc(hidden)]
357    #[allow(non_snake_case)]
358    pub mod __lookup_read_token {
359        use super::*;
360        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
361            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
362            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "ReadToken", 0, param_types, false)
363        });
364        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365            match &*METHOD {
366                ::core::result::Result::Ok(mi) => *mi,
367                ::core::result::Result::Err(e) => {
368                    panic!(
369                        "method lookup failed: {}
370::{}
371: {}
372",
373                        <Lexer as ::unity::ClassIdentity>::NAME,
374                        "ReadToken",
375                        e
376                    )
377                },
378            }
379        }
380    }
381    #[doc(hidden)]
382    #[allow(non_snake_case)]
383    pub mod __lookup_read_long_string {
384        use super::*;
385        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
386            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
387                <i32 as ::unity::IlType>::il_type(),
388                <i32 as ::unity::IlType>::il_type(),
389                <::unity::Il2CppString as ::unity::IlType>::il_type(),
390                <::unity::Il2CppString as ::unity::IlType>::il_type(),
391            ];
392            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "ReadLongString", 4, param_types, false)
393        });
394        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395            match &*METHOD {
396                ::core::result::Result::Ok(mi) => *mi,
397                ::core::result::Result::Err(e) => {
398                    panic!(
399                        "method lookup failed: {}
400::{}
401: {}
402",
403                        <Lexer as ::unity::ClassIdentity>::NAME,
404                        "ReadLongString",
405                        e
406                    )
407                },
408            }
409        }
410    }
411    #[doc(hidden)]
412    #[allow(non_snake_case)]
413    pub mod __lookup_read_number_token {
414        use super::*;
415        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
416            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
417                <i32 as ::unity::IlType>::il_type(),
418                <i32 as ::unity::IlType>::il_type(),
419                <bool as ::unity::IlType>::il_type(),
420            ];
421            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "ReadNumberToken", 3, param_types, false)
422        });
423        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424            match &*METHOD {
425                ::core::result::Result::Ok(mi) => *mi,
426                ::core::result::Result::Err(e) => {
427                    panic!(
428                        "method lookup failed: {}
429::{}
430: {}
431",
432                        <Lexer as ::unity::ClassIdentity>::NAME,
433                        "ReadNumberToken",
434                        e
435                    )
436                },
437            }
438        }
439    }
440    #[doc(hidden)]
441    #[allow(non_snake_case)]
442    pub mod __lookup_create_single_char_token {
443        use super::*;
444        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
445            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
446                <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
447                <i32 as ::unity::IlType>::il_type(),
448                <i32 as ::unity::IlType>::il_type(),
449            ];
450            ::unity::lookup::method_info_on_class_with_signature(
451                <Lexer as ::unity::ClassIdentity>::class(),
452                "CreateSingleCharToken",
453                3,
454                param_types,
455                false,
456            )
457        });
458        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459            match &*METHOD {
460                ::core::result::Result::Ok(mi) => *mi,
461                ::core::result::Result::Err(e) => {
462                    panic!(
463                        "method lookup failed: {}
464::{}
465: {}
466",
467                        <Lexer as ::unity::ClassIdentity>::NAME,
468                        "CreateSingleCharToken",
469                        e
470                    )
471                },
472            }
473        }
474    }
475    #[doc(hidden)]
476    #[allow(non_snake_case)]
477    pub mod __lookup_read_hash_bang {
478        use super::*;
479        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
480            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type(), <i32 as ::unity::IlType>::il_type()];
481            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "ReadHashBang", 2, param_types, false)
482        });
483        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484            match &*METHOD {
485                ::core::result::Result::Ok(mi) => *mi,
486                ::core::result::Result::Err(e) => {
487                    panic!(
488                        "method lookup failed: {}
489::{}
490: {}
491",
492                        <Lexer as ::unity::ClassIdentity>::NAME,
493                        "ReadHashBang",
494                        e
495                    )
496                },
497            }
498        }
499    }
500    #[doc(hidden)]
501    #[allow(non_snake_case)]
502    pub mod __lookup_read_comment {
503        use super::*;
504        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
505            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type(), <i32 as ::unity::IlType>::il_type()];
506            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "ReadComment", 2, param_types, false)
507        });
508        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
509            match &*METHOD {
510                ::core::result::Result::Ok(mi) => *mi,
511                ::core::result::Result::Err(e) => {
512                    panic!(
513                        "method lookup failed: {}
514::{}
515: {}
516",
517                        <Lexer as ::unity::ClassIdentity>::NAME,
518                        "ReadComment",
519                        e
520                    )
521                },
522            }
523        }
524    }
525    #[doc(hidden)]
526    #[allow(non_snake_case)]
527    pub mod __lookup_read_simple_string_token {
528        use super::*;
529        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
530            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type(), <i32 as ::unity::IlType>::il_type()];
531            ::unity::lookup::method_info_on_class_with_signature(
532                <Lexer as ::unity::ClassIdentity>::class(),
533                "ReadSimpleStringToken",
534                2,
535                param_types,
536                false,
537            )
538        });
539        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540            match &*METHOD {
541                ::core::result::Result::Ok(mi) => *mi,
542                ::core::result::Result::Err(e) => {
543                    panic!(
544                        "method lookup failed: {}
545::{}
546: {}
547",
548                        <Lexer as ::unity::ClassIdentity>::NAME,
549                        "ReadSimpleStringToken",
550                        e
551                    )
552                },
553            }
554        }
555    }
556    #[doc(hidden)]
557    #[allow(non_snake_case)]
558    pub mod __lookup_potentially_double_char_operator {
559        use super::*;
560        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
561            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
562                <u16 as ::unity::IlType>::il_type(),
563                <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
564                <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
565                <i32 as ::unity::IlType>::il_type(),
566                <i32 as ::unity::IlType>::il_type(),
567            ];
568            ::unity::lookup::method_info_on_class_with_signature(
569                <Lexer as ::unity::ClassIdentity>::class(),
570                "PotentiallyDoubleCharOperator",
571                5,
572                param_types,
573                false,
574            )
575        });
576        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
577            match &*METHOD {
578                ::core::result::Result::Ok(mi) => *mi,
579                ::core::result::Result::Err(e) => {
580                    panic!(
581                        "method lookup failed: {}
582::{}
583: {}
584",
585                        <Lexer as ::unity::ClassIdentity>::NAME,
586                        "PotentiallyDoubleCharOperator",
587                        e
588                    )
589                },
590            }
591        }
592    }
593    #[doc(hidden)]
594    #[allow(non_snake_case)]
595    pub mod __lookup_create_name_token {
596        use super::*;
597        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
598            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
599                <::unity::Il2CppString as ::unity::IlType>::il_type(),
600                <i32 as ::unity::IlType>::il_type(),
601                <i32 as ::unity::IlType>::il_type(),
602            ];
603            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "CreateNameToken", 3, param_types, false)
604        });
605        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606            match &*METHOD {
607                ::core::result::Result::Ok(mi) => *mi,
608                ::core::result::Result::Err(e) => {
609                    panic!(
610                        "method lookup failed: {}
611::{}
612: {}
613",
614                        <Lexer as ::unity::ClassIdentity>::NAME,
615                        "CreateNameToken",
616                        e
617                    )
618                },
619            }
620        }
621    }
622    #[doc(hidden)]
623    #[allow(non_snake_case)]
624    pub mod __lookup_create_token {
625        use super::*;
626        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
627            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
628                <crate::moon_sharp::interpreter::tree::tokentype::TokenType as ::unity::IlType>::il_type(),
629                <i32 as ::unity::IlType>::il_type(),
630                <i32 as ::unity::IlType>::il_type(),
631                <::unity::Il2CppString as ::unity::IlType>::il_type(),
632            ];
633            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "CreateToken", 4, param_types, false)
634        });
635        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636            match &*METHOD {
637                ::core::result::Result::Ok(mi) => *mi,
638                ::core::result::Result::Err(e) => {
639                    panic!(
640                        "method lookup failed: {}
641::{}
642: {}
643",
644                        <Lexer as ::unity::ClassIdentity>::NAME,
645                        "CreateToken",
646                        e
647                    )
648                },
649            }
650        }
651    }
652    #[doc(hidden)]
653    #[allow(non_snake_case)]
654    pub mod __lookup_read_name_token {
655        use super::*;
656        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
657            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
658            ::unity::lookup::method_info_on_class_with_signature(<Lexer as ::unity::ClassIdentity>::class(), "ReadNameToken", 0, param_types, false)
659        });
660        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661            match &*METHOD {
662                ::core::result::Result::Ok(mi) => *mi,
663                ::core::result::Result::Err(e) => {
664                    panic!(
665                        "method lookup failed: {}
666::{}
667: {}
668",
669                        <Lexer as ::unity::ClassIdentity>::NAME,
670                        "ReadNameToken",
671                        e
672                    )
673                },
674            }
675        }
676    }
677}
678
679#[cfg(feature = "moon_sharp-interpreter-tree-lexer")]
680pub trait ILexerMethods: ILexer {
681    #[doc = "`.ctor(i32, ::unity::Il2CppString, bool)` overload"]
682    fn ctor(
683        self,
684        source_id: impl ::core::convert::Into<i32>,
685        script_content: impl ::core::convert::Into<::unity::Il2CppString>,
686        auto_skip_comments: impl ::core::convert::Into<bool>,
687    ) -> () {
688        unsafe {
689            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
690            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
691(Lexer)__receiver,(i32)::core::convert::Into::into(source_id),(::unity::Il2CppString)::core::convert::Into::into(script_content),(bool)::core::convert::Into::into(auto_skip_comments))
692        }
693    }
694    #[doc = "`get_Current()` overload"]
695    fn get_current(self) -> crate::moon_sharp::interpreter::tree::token::Token {
696        unsafe {
697            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
698            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_get_current::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
699(Lexer)__receiver)
700        }
701    }
702    #[doc = "`FetchNewToken()` overload"]
703    fn fetch_new_token(self) -> crate::moon_sharp::interpreter::tree::token::Token {
704        unsafe {
705            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
706            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_fetch_new_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
707(Lexer)__receiver)
708        }
709    }
710    #[doc = "`Next()` overload"]
711    fn next(self) -> () {
712        unsafe {
713            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
714            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_next::get_method_info().method_ptr,();
715(Lexer)__receiver)
716        }
717    }
718    #[doc = "`PeekNext()` overload"]
719    fn peek_next(self) -> crate::moon_sharp::interpreter::tree::token::Token {
720        unsafe {
721            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
722            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_peek_next::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
723(Lexer)__receiver)
724        }
725    }
726    #[doc = "`CursorNext()` overload"]
727    fn cursor_next(self) -> () {
728        unsafe {
729            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
730            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_cursor_next::get_method_info().method_ptr,();
731(Lexer)__receiver)
732        }
733    }
734    #[doc = "`CursorChar()` overload"]
735    fn cursor_char(self) -> u16 {
736        unsafe {
737            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
738            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_cursor_char::get_method_info().method_ptr,u16;
739(Lexer)__receiver)
740        }
741    }
742    #[doc = "`CursorCharNext()` overload"]
743    fn cursor_char_next(self) -> u16 {
744        unsafe {
745            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
746            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_cursor_char_next::get_method_info().method_ptr,u16;
747(Lexer)__receiver)
748        }
749    }
750    #[doc = "`CursorMatches(::unity::Il2CppString)` overload"]
751    fn cursor_matches(self, pattern: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
752        unsafe {
753            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
754            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_cursor_matches::get_method_info().method_ptr,bool;
755(Lexer)__receiver,(::unity::Il2CppString)::core::convert::Into::into(pattern))
756        }
757    }
758    #[doc = "`CursorNotEof()` overload"]
759    fn cursor_not_eof(self) -> bool {
760        unsafe {
761            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
762            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_cursor_not_eof::get_method_info().method_ptr,bool;
763(Lexer)__receiver)
764        }
765    }
766    #[doc = "`IsWhiteSpace(u16)` overload"]
767    fn is_white_space(self, c: impl ::core::convert::Into<u16>) -> bool {
768        unsafe {
769            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
770            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_is_white_space::get_method_info().method_ptr,bool;
771(Lexer)__receiver,(u16)::core::convert::Into::into(c))
772        }
773    }
774    #[doc = "`SkipWhiteSpace()` overload"]
775    fn skip_white_space(self) -> () {
776        unsafe {
777            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
778            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_skip_white_space::get_method_info().method_ptr,();
779(Lexer)__receiver)
780        }
781    }
782    #[doc = "`ReadToken()` overload"]
783    fn read_token(self) -> crate::moon_sharp::interpreter::tree::token::Token {
784        unsafe {
785            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
786            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_read_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
787(Lexer)__receiver)
788        }
789    }
790    #[doc = "`ReadLongString(i32, i32, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
791    fn read_long_string(
792        self,
793        from_line: impl ::core::convert::Into<i32>,
794        from_col: impl ::core::convert::Into<i32>,
795        startpattern: impl ::core::convert::Into<::unity::Il2CppString>,
796        subtypeforerrors: impl ::core::convert::Into<::unity::Il2CppString>,
797    ) -> ::unity::Il2CppString {
798        unsafe {
799            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
800            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_read_long_string::get_method_info().method_ptr, ::unity::Il2CppString;
801(Lexer)__receiver,(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col),(::unity::Il2CppString)::core::convert::Into::into(startpattern),(::unity::Il2CppString)::core::convert::Into::into(subtypeforerrors))
802        }
803    }
804    #[doc = "`ReadNumberToken(i32, i32, bool)` overload"]
805    fn read_number_token(
806        self,
807        from_line: impl ::core::convert::Into<i32>,
808        from_col: impl ::core::convert::Into<i32>,
809        leading_dot: impl ::core::convert::Into<bool>,
810    ) -> crate::moon_sharp::interpreter::tree::token::Token {
811        unsafe {
812            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
813            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_read_number_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
814(Lexer)__receiver,(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col),(bool)::core::convert::Into::into(leading_dot))
815        }
816    }
817    #[doc = "`CreateSingleCharToken(crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32)` overload"]
818    fn create_single_char_token(
819        self,
820        token_type: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
821        from_line: impl ::core::convert::Into<i32>,
822        from_col: impl ::core::convert::Into<i32>,
823    ) -> crate::moon_sharp::interpreter::tree::token::Token {
824        unsafe {
825            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
826            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_create_single_char_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
827(Lexer)__receiver,(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type),(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col))
828        }
829    }
830    #[doc = "`ReadHashBang(i32, i32)` overload"]
831    fn read_hash_bang(
832        self,
833        from_line: impl ::core::convert::Into<i32>,
834        from_col: impl ::core::convert::Into<i32>,
835    ) -> crate::moon_sharp::interpreter::tree::token::Token {
836        unsafe {
837            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
838            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_read_hash_bang::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
839(Lexer)__receiver,(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col))
840        }
841    }
842    #[doc = "`ReadComment(i32, i32)` overload"]
843    fn read_comment(
844        self,
845        from_line: impl ::core::convert::Into<i32>,
846        from_col: impl ::core::convert::Into<i32>,
847    ) -> crate::moon_sharp::interpreter::tree::token::Token {
848        unsafe {
849            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
850            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_read_comment::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
851(Lexer)__receiver,(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col))
852        }
853    }
854    #[doc = "`ReadSimpleStringToken(i32, i32)` overload"]
855    fn read_simple_string_token(
856        self,
857        from_line: impl ::core::convert::Into<i32>,
858        from_col: impl ::core::convert::Into<i32>,
859    ) -> crate::moon_sharp::interpreter::tree::token::Token {
860        unsafe {
861            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
862            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_read_simple_string_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
863(Lexer)__receiver,(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col))
864        }
865    }
866    #[doc = "`PotentiallyDoubleCharOperator(u16, crate::moon_sharp::interpreter::tree::tokentype::TokenType, crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32)` overload"]
867    fn potentially_double_char_operator(
868        self,
869        expected_second_char: impl ::core::convert::Into<u16>,
870        single_char_token: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
871        double_char_token: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
872        from_line: impl ::core::convert::Into<i32>,
873        from_col: impl ::core::convert::Into<i32>,
874    ) -> crate::moon_sharp::interpreter::tree::token::Token {
875        unsafe {
876            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
877            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_potentially_double_char_operator::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
878(Lexer)__receiver,(u16)::core::convert::Into::into(expected_second_char),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(single_char_token),(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(double_char_token),(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col))
879        }
880    }
881    #[doc = "`CreateNameToken(::unity::Il2CppString, i32, i32)` overload"]
882    fn create_name_token(
883        self,
884        name: impl ::core::convert::Into<::unity::Il2CppString>,
885        from_line: impl ::core::convert::Into<i32>,
886        from_col: impl ::core::convert::Into<i32>,
887    ) -> crate::moon_sharp::interpreter::tree::token::Token {
888        unsafe {
889            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
890            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_create_name_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
891(Lexer)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col))
892        }
893    }
894    #[doc = "`CreateToken(crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32, ::unity::Il2CppString)` overload"]
895    fn create_token(
896        self,
897        token_type: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::tokentype::TokenType>,
898        from_line: impl ::core::convert::Into<i32>,
899        from_col: impl ::core::convert::Into<i32>,
900        text: impl ::core::convert::Into<::unity::Il2CppString>,
901    ) -> crate::moon_sharp::interpreter::tree::token::Token {
902        unsafe {
903            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
904            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_create_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
905(Lexer)__receiver,(crate::moon_sharp::interpreter::tree::tokentype::TokenType)::core::convert::Into::into(token_type),(i32)::core::convert::Into::into(from_line),(i32)::core::convert::Into::into(from_col),(::unity::Il2CppString)::core::convert::Into::into(text))
906        }
907    }
908    #[doc = "`ReadNameToken()` overload"]
909    fn read_name_token(self) -> ::unity::Il2CppString {
910        unsafe {
911            let __receiver = <Lexer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
912            ::unity::il2cpp_call!(__Lexer_unity_raw::__lookup_read_name_token::get_method_info().method_ptr, ::unity::Il2CppString;
913(Lexer)__receiver)
914        }
915    }
916}
917
918#[cfg(feature = "moon_sharp-interpreter-tree-lexer")]
919impl<__T: ILexer> ILexerMethods for __T {}
920
921#[cfg(feature = "moon_sharp-interpreter-tree-lexer")]
922impl Lexer {
923    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
924        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
925    }
926
927    pub fn get_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
928        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
929    }
930
931    pub fn fetch_new_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
932        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
933    }
934
935    pub fn next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
936        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
937    }
938
939    pub fn peek_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
940        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
941    }
942
943    pub fn cursor_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
944        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
945    }
946
947    pub fn cursor_char_method_info() -> &'static ::unity::il2cpp::MethodInfo {
948        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
949    }
950
951    pub fn cursor_char_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
952        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
953    }
954
955    pub fn cursor_matches_method_info() -> &'static ::unity::il2cpp::MethodInfo {
956        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
957    }
958
959    pub fn cursor_not_eof_method_info() -> &'static ::unity::il2cpp::MethodInfo {
960        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
961    }
962
963    pub fn is_white_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
964        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
965    }
966
967    pub fn skip_white_space_method_info() -> &'static ::unity::il2cpp::MethodInfo {
968        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
969    }
970
971    pub fn read_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
972        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
973    }
974
975    pub fn read_long_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
976        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
977    }
978
979    pub fn read_number_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
980        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
981    }
982
983    pub fn create_single_char_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
984        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
985    }
986
987    pub fn read_hash_bang_method_info() -> &'static ::unity::il2cpp::MethodInfo {
988        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
989    }
990
991    pub fn read_comment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
992        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
993    }
994
995    pub fn read_simple_string_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
996        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
997    }
998
999    pub fn potentially_double_char_operator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1000        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1001    }
1002
1003    pub fn create_name_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1004        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1005    }
1006
1007    pub fn create_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1008        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1009    }
1010
1011    pub fn read_name_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1012        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1013    }
1014}
1015
1016#[cfg(feature = "moon_sharp-interpreter-tree-lexer")]
1017impl Lexer {
1018    #[doc = "`.ctor(i32, ::unity::Il2CppString, bool)` — overload selector"]
1019    pub fn new(source_id: i32, script_content: ::unity::Il2CppString, auto_skip_comments: bool) -> Self {
1020        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1021            panic!(
1022                "{}
1023::{}
1024 failed to instantiate",
1025                ::core::stringify!(Lexer),
1026                ::core::stringify!(new),
1027            )
1028        });
1029        <Self as ILexerMethods>::ctor(this, source_id, script_content, auto_skip_comments);
1030        this
1031    }
1032}
1033
1034#[cfg(feature = "moon_sharp-interpreter-tree-lexer")]
1035#[doc(hidden)]
1036pub mod prelude {
1037    pub use super::{ILexer, ILexerMethods, Lexer};
1038    pub use crate::system::object::IObject;
1039    #[cfg(feature = "system-object")]
1040    pub use crate::system::object::IObjectMethods;
1041}