1#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 moon_sharp::interpreter::interpreterexception::{IInterpreterException, InterpreterException},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/syntaxerrorexception/SyntaxErrorException.md"))]
14 #[::unity::class(namespace = "MoonSharp.Interpreter", name = "SyntaxErrorException")]
15 #[parent(crate::moon_sharp::interpreter::interpreterexception::InterpreterException)]
16 pub struct SyntaxErrorException {}
17}
18
19#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __SyntaxErrorException_unity_raw {
26 use super::*;
27 #[doc(hidden)]
28 #[allow(non_snake_case)]
29 pub mod __lookup_get_token {
30 use super::*;
31 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
32 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
33 ::unity::lookup::method_info_on_class_with_signature(
34 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
35 "get_Token",
36 0,
37 param_types,
38 false,
39 )
40 });
41 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42 match &*METHOD {
43 ::core::result::Result::Ok(mi) => *mi,
44 ::core::result::Result::Err(e) => {
45 panic!(
46 "method lookup failed: {}
47::{}
48: {}
49",
50 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
51 "get_Token",
52 e
53 )
54 },
55 }
56 }
57 }
58 #[doc(hidden)]
59 #[allow(non_snake_case)]
60 pub mod __lookup_set_token {
61 use super::*;
62 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
63 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
64 &[<crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type()];
65 ::unity::lookup::method_info_on_class_with_signature(
66 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
67 "set_Token",
68 1,
69 param_types,
70 false,
71 )
72 });
73 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 match &*METHOD {
75 ::core::result::Result::Ok(mi) => *mi,
76 ::core::result::Result::Err(e) => {
77 panic!(
78 "method lookup failed: {}
79::{}
80: {}
81",
82 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
83 "set_Token",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_get_to_line {
93 use super::*;
94 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
95 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
96 ::unity::lookup::method_info_on_class_with_signature(
97 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
98 "get_ToLine",
99 0,
100 param_types,
101 false,
102 )
103 });
104 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 match &*METHOD {
106 ::core::result::Result::Ok(mi) => *mi,
107 ::core::result::Result::Err(e) => {
108 panic!(
109 "method lookup failed: {}
110::{}
111: {}
112",
113 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
114 "get_ToLine",
115 e
116 )
117 },
118 }
119 }
120 }
121 #[doc(hidden)]
122 #[allow(non_snake_case)]
123 pub mod __lookup_get_from_line {
124 use super::*;
125 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
126 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
127 ::unity::lookup::method_info_on_class_with_signature(
128 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
129 "get_FromLine",
130 0,
131 param_types,
132 false,
133 )
134 });
135 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 match &*METHOD {
137 ::core::result::Result::Ok(mi) => *mi,
138 ::core::result::Result::Err(e) => {
139 panic!(
140 "method lookup failed: {}
141::{}
142: {}
143",
144 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
145 "get_FromLine",
146 e
147 )
148 },
149 }
150 }
151 }
152 #[doc(hidden)]
153 #[allow(non_snake_case)]
154 pub mod __lookup_get_is_premature_stream_termination {
155 use super::*;
156 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
157 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
158 ::unity::lookup::method_info_on_class_with_signature(
159 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
160 "get_IsPrematureStreamTermination",
161 0,
162 param_types,
163 false,
164 )
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 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
176 "get_IsPrematureStreamTermination",
177 e
178 )
179 },
180 }
181 }
182 }
183 #[doc(hidden)]
184 #[allow(non_snake_case)]
185 pub mod __lookup_set_is_premature_stream_termination {
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] = &[<bool as ::unity::IlType>::il_type()];
189 ::unity::lookup::method_info_on_class_with_signature(
190 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
191 "set_IsPrematureStreamTermination",
192 1,
193 param_types,
194 false,
195 )
196 });
197 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 match &*METHOD {
199 ::core::result::Result::Ok(mi) => *mi,
200 ::core::result::Result::Err(e) => {
201 panic!(
202 "method lookup failed: {}
203::{}
204: {}
205",
206 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
207 "set_IsPrematureStreamTermination",
208 e
209 )
210 },
211 }
212 }
213 }
214 #[doc(hidden)]
215 #[allow(non_snake_case)]
216 pub mod __lookup_ctor {
217 use super::*;
218 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
219 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
220 <crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type(),
221 <::unity::Il2CppString as ::unity::IlType>::il_type(),
222 <::unity::Array<crate::system::object::Object> as ::unity::IlType>::il_type(),
223 ];
224 ::unity::lookup::method_info_on_class_with_signature(
225 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
226 ".ctor",
227 3,
228 param_types,
229 false,
230 )
231 });
232 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 match &*METHOD {
234 ::core::result::Result::Ok(mi) => *mi,
235 ::core::result::Result::Err(e) => {
236 panic!(
237 "method lookup failed: {}
238::{}
239: {}
240",
241 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
242 ".ctor",
243 e
244 )
245 },
246 }
247 }
248 }
249 #[doc(hidden)]
250 #[allow(non_snake_case)]
251 pub mod __lookup_ctor_2 {
252 use super::*;
253 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
254 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
255 <crate::moon_sharp::interpreter::tree::token::Token as ::unity::IlType>::il_type(),
256 <::unity::Il2CppString as ::unity::IlType>::il_type(),
257 ];
258 ::unity::lookup::method_info_on_class_with_signature(
259 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
260 ".ctor",
261 2,
262 param_types,
263 false,
264 )
265 });
266 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 match &*METHOD {
268 ::core::result::Result::Ok(mi) => *mi,
269 ::core::result::Result::Err(e) => {
270 panic!(
271 "method lookup failed: {}
272::{}
273: {}
274",
275 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
276 ".ctor",
277 e
278 )
279 },
280 }
281 }
282 }
283 #[doc(hidden)]
284 #[allow(non_snake_case)]
285 pub mod __lookup_ctor_3 {
286 use super::*;
287 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
288 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
289 <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
290 <crate::moon_sharp::interpreter::debugging::sourceref::SourceRef as ::unity::IlType>::il_type(),
291 <::unity::Il2CppString as ::unity::IlType>::il_type(),
292 <::unity::Array<crate::system::object::Object> as ::unity::IlType>::il_type(),
293 ];
294 ::unity::lookup::method_info_on_class_with_signature(
295 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
296 ".ctor",
297 4,
298 param_types,
299 false,
300 )
301 });
302 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 match &*METHOD {
304 ::core::result::Result::Ok(mi) => *mi,
305 ::core::result::Result::Err(e) => {
306 panic!(
307 "method lookup failed: {}
308::{}
309: {}
310",
311 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
312 ".ctor",
313 e
314 )
315 },
316 }
317 }
318 }
319 #[doc(hidden)]
320 #[allow(non_snake_case)]
321 pub mod __lookup_ctor_4 {
322 use super::*;
323 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
324 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
325 <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
326 <crate::moon_sharp::interpreter::debugging::sourceref::SourceRef as ::unity::IlType>::il_type(),
327 <::unity::Il2CppString as ::unity::IlType>::il_type(),
328 ];
329 ::unity::lookup::method_info_on_class_with_signature(
330 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
331 ".ctor",
332 3,
333 param_types,
334 false,
335 )
336 });
337 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338 match &*METHOD {
339 ::core::result::Result::Ok(mi) => *mi,
340 ::core::result::Result::Err(e) => {
341 panic!(
342 "method lookup failed: {}
343::{}
344: {}
345",
346 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
347 ".ctor",
348 e
349 )
350 },
351 }
352 }
353 }
354 #[doc(hidden)]
355 #[allow(non_snake_case)]
356 pub mod __lookup_ctor_5 {
357 use super::*;
358 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
359 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
360 &[<crate::moon_sharp::interpreter::syntaxerrorexception::SyntaxErrorException as ::unity::IlType>::il_type()];
361 ::unity::lookup::method_info_on_class_with_signature(
362 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
363 ".ctor",
364 1,
365 param_types,
366 false,
367 )
368 });
369 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 match &*METHOD {
371 ::core::result::Result::Ok(mi) => *mi,
372 ::core::result::Result::Err(e) => {
373 panic!(
374 "method lookup failed: {}
375::{}
376: {}
377",
378 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
379 ".ctor",
380 e
381 )
382 },
383 }
384 }
385 }
386 #[doc(hidden)]
387 #[allow(non_snake_case)]
388 pub mod __lookup_decorate_message {
389 use super::*;
390 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
391 let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
392 &[<crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type()];
393 ::unity::lookup::method_info_on_class_with_signature(
394 <SyntaxErrorException as ::unity::ClassIdentity>::class(),
395 "DecorateMessage",
396 1,
397 param_types,
398 false,
399 )
400 });
401 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402 match &*METHOD {
403 ::core::result::Result::Ok(mi) => *mi,
404 ::core::result::Result::Err(e) => {
405 panic!(
406 "method lookup failed: {}
407::{}
408: {}
409",
410 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
411 "DecorateMessage",
412 e
413 )
414 },
415 }
416 }
417 }
418}
419
420#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception")]
421pub trait ISyntaxErrorExceptionMethods: ISyntaxErrorException {
422 #[doc = "`get_Token()` overload"]
423 fn get_token(self) -> crate::moon_sharp::interpreter::tree::token::Token {
424 unsafe {
425 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_get_token::get_method_info().method_ptr,crate::moon_sharp::interpreter::tree::token::Token;
427(SyntaxErrorException)__receiver)
428 }
429 }
430 #[doc = "`set_Token(crate::moon_sharp::interpreter::tree::token::Token)` overload"]
431 fn set_token(self, value: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>) -> () {
432 unsafe {
433 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
434 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_set_token::get_method_info().method_ptr,();
435(SyntaxErrorException)__receiver,(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(value))
436 }
437 }
438 #[doc = "`get_ToLine()` overload"]
439 fn get_to_line(self) -> i32 {
440 unsafe {
441 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_get_to_line::get_method_info().method_ptr,i32;
443(SyntaxErrorException)__receiver)
444 }
445 }
446 #[doc = "`get_FromLine()` overload"]
447 fn get_from_line(self) -> i32 {
448 unsafe {
449 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
450 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_get_from_line::get_method_info().method_ptr,i32;
451(SyntaxErrorException)__receiver)
452 }
453 }
454 #[doc = "`get_IsPrematureStreamTermination()` overload"]
455 fn get_is_premature_stream_termination(self) -> bool {
456 unsafe {
457 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_get_is_premature_stream_termination::get_method_info().method_ptr,bool;
459(SyntaxErrorException)__receiver)
460 }
461 }
462 #[doc = "`set_IsPrematureStreamTermination(bool)` overload"]
463 fn set_is_premature_stream_termination(self, value: impl ::core::convert::Into<bool>) -> () {
464 unsafe {
465 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_set_is_premature_stream_termination::get_method_info().method_ptr,();
467(SyntaxErrorException)__receiver,(bool)::core::convert::Into::into(value))
468 }
469 }
470 #[doc = "`.ctor(crate::moon_sharp::interpreter::tree::token::Token, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
471 fn ctor(
472 self,
473 t: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>,
474 format: impl ::core::convert::Into<::unity::Il2CppString>,
475 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
476 ) -> () {
477 unsafe {
478 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
480(SyntaxErrorException)__receiver,(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(t),(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
481 }
482 }
483 #[doc = "`.ctor(crate::moon_sharp::interpreter::tree::token::Token, ::unity::Il2CppString)` overload"]
484 fn ctor_2(
485 self,
486 t: impl ::core::convert::Into<crate::moon_sharp::interpreter::tree::token::Token>,
487 message: impl ::core::convert::Into<::unity::Il2CppString>,
488 ) -> () {
489 unsafe {
490 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
492(SyntaxErrorException)__receiver,(crate::moon_sharp::interpreter::tree::token::Token)::core::convert::Into::into(t),(::unity::Il2CppString)::core::convert::Into::into(message))
493 }
494 }
495 #[doc = "`.ctor(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
496 fn ctor_3(
497 self,
498 script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
499 sref: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>,
500 format: impl ::core::convert::Into<::unity::Il2CppString>,
501 args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
502 ) -> () {
503 unsafe {
504 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
505 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_ctor_3::get_method_info().method_ptr,();
506(SyntaxErrorException)__receiver,(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)::core::convert::Into::into(sref),(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
507 }
508 }
509 #[doc = "`.ctor(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, ::unity::Il2CppString)` overload"]
510 fn ctor_4(
511 self,
512 script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
513 sref: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>,
514 message: impl ::core::convert::Into<::unity::Il2CppString>,
515 ) -> () {
516 unsafe {
517 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
518 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_ctor_4::get_method_info().method_ptr,();
519(SyntaxErrorException)__receiver,(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)::core::convert::Into::into(sref),(::unity::Il2CppString)::core::convert::Into::into(message))
520 }
521 }
522 #[doc = "`.ctor(crate::moon_sharp::interpreter::syntaxerrorexception::SyntaxErrorException)` overload"]
523 fn ctor_5(
524 self,
525 syntax_error_exception: impl ::core::convert::Into<crate::moon_sharp::interpreter::syntaxerrorexception::SyntaxErrorException>,
526 ) -> () {
527 unsafe {
528 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_ctor_5::get_method_info().method_ptr,();
530(SyntaxErrorException)__receiver,(crate::moon_sharp::interpreter::syntaxerrorexception::SyntaxErrorException)::core::convert::Into::into(syntax_error_exception))
531 }
532 }
533 #[doc = "`DecorateMessage(crate::moon_sharp::interpreter::script::Script)` overload"]
534 fn decorate_message(self, script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>) -> () {
535 unsafe {
536 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
537 ::unity::il2cpp_call!(__SyntaxErrorException_unity_raw::__lookup_decorate_message::get_method_info().method_ptr,();
538(SyntaxErrorException)__receiver,(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script))
539 }
540 }
541 #[doc = "`Rethrow()` overload"]
542 fn rethrow(self) -> () {
543 unsafe {
544 let __receiver = <SyntaxErrorException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
545 {
546 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
547 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
548 panic!(
549 "unity: virtual slot {}
550 out of range (vtable len {}
551) on the runtime class behind {}
552 (method `{}
553`)",
554 18usize,
555 __vt.len(),
556 <SyntaxErrorException as ::unity::ClassIdentity>::NAME,
557 "Rethrow",
558 )
559 });
560 let __inner: extern "C" fn(SyntaxErrorException, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
561 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
562 __inner(__receiver, __mi)
563 }
564 }
565 }
566}
567
568#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception")]
569impl<__T: ISyntaxErrorException> ISyntaxErrorExceptionMethods for __T {}
570
571#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception")]
572impl SyntaxErrorException {
573 pub fn get_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
575 }
576
577 pub fn set_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
579 }
580
581 pub fn get_to_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
583 }
584
585 pub fn get_from_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
587 }
588
589 pub fn get_is_premature_stream_termination_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
591 }
592
593 pub fn set_is_premature_stream_termination_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
595 }
596
597 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
599 }
600
601 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
603 }
604
605 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
607 }
608
609 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
611 }
612
613 pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
615 }
616
617 pub fn decorate_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
619 }
620
621 pub fn rethrow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
623 }
624}
625
626#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception")]
627impl SyntaxErrorException {
628 #[doc = "Direct (non-virtual) call to `SyntaxErrorException`'s own `Rethrow`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
629 pub unsafe fn rethrow(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
630 let __mi = Self::rethrow_method_info();
631 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
632 __inner(this.into(), ::core::option::Option::None)
633 }
634}
635
636#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception")]
637impl SyntaxErrorException {
638 #[doc = "`.ctor(crate::moon_sharp::interpreter::tree::token::Token, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` — overload selector"]
639 pub fn new(
640 t: crate::moon_sharp::interpreter::tree::token::Token,
641 format: ::unity::Il2CppString,
642 args: ::unity::Array<crate::system::object::Object>,
643 ) -> Self {
644 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
645 panic!(
646 "{}
647::{}
648 failed to instantiate",
649 ::core::stringify!(SyntaxErrorException),
650 ::core::stringify!(new),
651 )
652 });
653 <Self as ISyntaxErrorExceptionMethods>::ctor(this, t, format, args);
654 this
655 }
656
657 #[doc = "`.ctor(crate::moon_sharp::interpreter::tree::token::Token, ::unity::Il2CppString)` — overload selector"]
658 pub fn new_2(t: crate::moon_sharp::interpreter::tree::token::Token, message: ::unity::Il2CppString) -> Self {
659 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
660 panic!(
661 "{}
662::{}
663 failed to instantiate",
664 ::core::stringify!(SyntaxErrorException),
665 ::core::stringify!(new_2),
666 )
667 });
668 <Self as ISyntaxErrorExceptionMethods>::ctor_2(this, t, message);
669 this
670 }
671
672 #[doc = "`.ctor(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` — overload selector"]
673 pub fn new_3(
674 script: crate::moon_sharp::interpreter::script::Script,
675 sref: crate::moon_sharp::interpreter::debugging::sourceref::SourceRef,
676 format: ::unity::Il2CppString,
677 args: ::unity::Array<crate::system::object::Object>,
678 ) -> Self {
679 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
680 panic!(
681 "{}
682::{}
683 failed to instantiate",
684 ::core::stringify!(SyntaxErrorException),
685 ::core::stringify!(new_3),
686 )
687 });
688 <Self as ISyntaxErrorExceptionMethods>::ctor_3(this, script, sref, format, args);
689 this
690 }
691
692 #[doc = "`.ctor(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, ::unity::Il2CppString)` — overload selector"]
693 pub fn new_4(
694 script: crate::moon_sharp::interpreter::script::Script,
695 sref: crate::moon_sharp::interpreter::debugging::sourceref::SourceRef,
696 message: ::unity::Il2CppString,
697 ) -> Self {
698 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
699 panic!(
700 "{}
701::{}
702 failed to instantiate",
703 ::core::stringify!(SyntaxErrorException),
704 ::core::stringify!(new_4),
705 )
706 });
707 <Self as ISyntaxErrorExceptionMethods>::ctor_4(this, script, sref, message);
708 this
709 }
710
711 #[doc = "`.ctor(crate::moon_sharp::interpreter::syntaxerrorexception::SyntaxErrorException)` — overload selector"]
712 pub fn new_5(syntax_error_exception: crate::moon_sharp::interpreter::syntaxerrorexception::SyntaxErrorException) -> Self {
713 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
714 panic!(
715 "{}
716::{}
717 failed to instantiate",
718 ::core::stringify!(SyntaxErrorException),
719 ::core::stringify!(new_5),
720 )
721 });
722 <Self as ISyntaxErrorExceptionMethods>::ctor_5(this, syntax_error_exception);
723 this
724 }
725}
726
727#[cfg(feature = "moon_sharp-interpreter-syntaxerrorexception")]
728#[doc(hidden)]
729pub mod prelude {
730 pub use super::{ISyntaxErrorException, ISyntaxErrorExceptionMethods, SyntaxErrorException};
731 #[cfg(feature = "moon_sharp-interpreter-interpreterexception")]
732 pub use crate::moon_sharp::interpreter::interpreterexception::IInterpreterExceptionMethods;
733 #[cfg(feature = "system-object")]
734 pub use crate::system::object::IObjectMethods;
735 pub use crate::{
736 moon_sharp::interpreter::interpreterexception::{IInterpreterException, InterpreterException},
737 system::object::IObject,
738 };
739}