1#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref-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/debugging/sourceref/SourceRef.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Debugging", name = "SourceRef")]
12 #[parent(crate::system::object::Object)]
13 pub struct SourceRef {
14 #[offset(41)]
15 #[rename(name = "Breakpoint")]
16 pub breakpoint: bool,
17 }
18}
19
20#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref-types")]
21pub use __types::*;
22
23#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
24#[doc(hidden)]
25#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
26mod __SourceRef_unity_raw {
27 use super::*;
28 #[doc(hidden)]
29 #[allow(non_snake_case)]
30 pub mod __lookup_get_is_clr_location {
31 use super::*;
32 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
33 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
34 ::unity::lookup::method_info_on_class_with_signature(
35 <SourceRef as ::unity::ClassIdentity>::class(),
36 "get_IsClrLocation",
37 0,
38 param_types,
39 false,
40 )
41 });
42 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 match &*METHOD {
44 ::core::result::Result::Ok(mi) => *mi,
45 ::core::result::Result::Err(e) => {
46 panic!(
47 "method lookup failed: {}
48::{}
49: {}
50",
51 <SourceRef as ::unity::ClassIdentity>::NAME,
52 "get_IsClrLocation",
53 e
54 )
55 },
56 }
57 }
58 }
59 #[doc(hidden)]
60 #[allow(non_snake_case)]
61 pub mod __lookup_set_is_clr_location {
62 use super::*;
63 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
64 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
65 ::unity::lookup::method_info_on_class_with_signature(
66 <SourceRef as ::unity::ClassIdentity>::class(),
67 "set_IsClrLocation",
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 <SourceRef as ::unity::ClassIdentity>::NAME,
83 "set_IsClrLocation",
84 e
85 )
86 },
87 }
88 }
89 }
90 #[doc(hidden)]
91 #[allow(non_snake_case)]
92 pub mod __lookup_get_source_idx {
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 <SourceRef as ::unity::ClassIdentity>::class(),
98 "get_SourceIdx",
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 <SourceRef as ::unity::ClassIdentity>::NAME,
114 "get_SourceIdx",
115 e
116 )
117 },
118 }
119 }
120 }
121 #[doc(hidden)]
122 #[allow(non_snake_case)]
123 pub mod __lookup_set_source_idx {
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] = &[<i32 as ::unity::IlType>::il_type()];
127 ::unity::lookup::method_info_on_class_with_signature(
128 <SourceRef as ::unity::ClassIdentity>::class(),
129 "set_SourceIdx",
130 1,
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 <SourceRef as ::unity::ClassIdentity>::NAME,
145 "set_SourceIdx",
146 e
147 )
148 },
149 }
150 }
151 }
152 #[doc(hidden)]
153 #[allow(non_snake_case)]
154 pub mod __lookup_get_from_char {
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 <SourceRef as ::unity::ClassIdentity>::class(),
160 "get_FromChar",
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 <SourceRef as ::unity::ClassIdentity>::NAME,
176 "get_FromChar",
177 e
178 )
179 },
180 }
181 }
182 }
183 #[doc(hidden)]
184 #[allow(non_snake_case)]
185 pub mod __lookup_set_from_char {
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] = &[<i32 as ::unity::IlType>::il_type()];
189 ::unity::lookup::method_info_on_class_with_signature(
190 <SourceRef as ::unity::ClassIdentity>::class(),
191 "set_FromChar",
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 <SourceRef as ::unity::ClassIdentity>::NAME,
207 "set_FromChar",
208 e
209 )
210 },
211 }
212 }
213 }
214 #[doc(hidden)]
215 #[allow(non_snake_case)]
216 pub mod __lookup_get_to_char {
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 ::unity::lookup::method_info_on_class_with_signature(<SourceRef as ::unity::ClassIdentity>::class(), "get_ToChar", 0, param_types, false)
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 <SourceRef as ::unity::ClassIdentity>::NAME,
232 "get_ToChar",
233 e
234 )
235 },
236 }
237 }
238 }
239 #[doc(hidden)]
240 #[allow(non_snake_case)]
241 pub mod __lookup_set_to_char {
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] = &[<i32 as ::unity::IlType>::il_type()];
245 ::unity::lookup::method_info_on_class_with_signature(<SourceRef as ::unity::ClassIdentity>::class(), "set_ToChar", 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 <SourceRef as ::unity::ClassIdentity>::NAME,
257 "set_ToChar",
258 e
259 )
260 },
261 }
262 }
263 }
264 #[doc(hidden)]
265 #[allow(non_snake_case)]
266 pub mod __lookup_get_from_line {
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 ::unity::lookup::method_info_on_class_with_signature(
271 <SourceRef as ::unity::ClassIdentity>::class(),
272 "get_FromLine",
273 0,
274 param_types,
275 false,
276 )
277 });
278 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 match &*METHOD {
280 ::core::result::Result::Ok(mi) => *mi,
281 ::core::result::Result::Err(e) => {
282 panic!(
283 "method lookup failed: {}
284::{}
285: {}
286",
287 <SourceRef as ::unity::ClassIdentity>::NAME,
288 "get_FromLine",
289 e
290 )
291 },
292 }
293 }
294 }
295 #[doc(hidden)]
296 #[allow(non_snake_case)]
297 pub mod __lookup_set_from_line {
298 use super::*;
299 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
300 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
301 ::unity::lookup::method_info_on_class_with_signature(
302 <SourceRef as ::unity::ClassIdentity>::class(),
303 "set_FromLine",
304 1,
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 <SourceRef as ::unity::ClassIdentity>::NAME,
319 "set_FromLine",
320 e
321 )
322 },
323 }
324 }
325 }
326 #[doc(hidden)]
327 #[allow(non_snake_case)]
328 pub mod __lookup_get_to_line {
329 use super::*;
330 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
331 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
332 ::unity::lookup::method_info_on_class_with_signature(<SourceRef as ::unity::ClassIdentity>::class(), "get_ToLine", 0, param_types, false)
333 });
334 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 match &*METHOD {
336 ::core::result::Result::Ok(mi) => *mi,
337 ::core::result::Result::Err(e) => {
338 panic!(
339 "method lookup failed: {}
340::{}
341: {}
342",
343 <SourceRef as ::unity::ClassIdentity>::NAME,
344 "get_ToLine",
345 e
346 )
347 },
348 }
349 }
350 }
351 #[doc(hidden)]
352 #[allow(non_snake_case)]
353 pub mod __lookup_set_to_line {
354 use super::*;
355 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
356 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<i32 as ::unity::IlType>::il_type()];
357 ::unity::lookup::method_info_on_class_with_signature(<SourceRef as ::unity::ClassIdentity>::class(), "set_ToLine", 1, param_types, false)
358 });
359 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 match &*METHOD {
361 ::core::result::Result::Ok(mi) => *mi,
362 ::core::result::Result::Err(e) => {
363 panic!(
364 "method lookup failed: {}
365::{}
366: {}
367",
368 <SourceRef as ::unity::ClassIdentity>::NAME,
369 "set_ToLine",
370 e
371 )
372 },
373 }
374 }
375 }
376 #[doc(hidden)]
377 #[allow(non_snake_case)]
378 pub mod __lookup_get_is_step_stop {
379 use super::*;
380 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
381 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
382 ::unity::lookup::method_info_on_class_with_signature(
383 <SourceRef as ::unity::ClassIdentity>::class(),
384 "get_IsStepStop",
385 0,
386 param_types,
387 false,
388 )
389 });
390 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 match &*METHOD {
392 ::core::result::Result::Ok(mi) => *mi,
393 ::core::result::Result::Err(e) => {
394 panic!(
395 "method lookup failed: {}
396::{}
397: {}
398",
399 <SourceRef as ::unity::ClassIdentity>::NAME,
400 "get_IsStepStop",
401 e
402 )
403 },
404 }
405 }
406 }
407 #[doc(hidden)]
408 #[allow(non_snake_case)]
409 pub mod __lookup_set_is_step_stop {
410 use super::*;
411 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
412 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
413 ::unity::lookup::method_info_on_class_with_signature(
414 <SourceRef as ::unity::ClassIdentity>::class(),
415 "set_IsStepStop",
416 1,
417 param_types,
418 false,
419 )
420 });
421 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 match &*METHOD {
423 ::core::result::Result::Ok(mi) => *mi,
424 ::core::result::Result::Err(e) => {
425 panic!(
426 "method lookup failed: {}
427::{}
428: {}
429",
430 <SourceRef as ::unity::ClassIdentity>::NAME,
431 "set_IsStepStop",
432 e
433 )
434 },
435 }
436 }
437 }
438 #[doc(hidden)]
439 #[allow(non_snake_case)]
440 pub mod __lookup_get_cannot_breakpoint {
441 use super::*;
442 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
443 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
444 ::unity::lookup::method_info_on_class_with_signature(
445 <SourceRef as ::unity::ClassIdentity>::class(),
446 "get_CannotBreakpoint",
447 0,
448 param_types,
449 false,
450 )
451 });
452 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
453 match &*METHOD {
454 ::core::result::Result::Ok(mi) => *mi,
455 ::core::result::Result::Err(e) => {
456 panic!(
457 "method lookup failed: {}
458::{}
459: {}
460",
461 <SourceRef as ::unity::ClassIdentity>::NAME,
462 "get_CannotBreakpoint",
463 e
464 )
465 },
466 }
467 }
468 }
469 #[doc(hidden)]
470 #[allow(non_snake_case)]
471 pub mod __lookup_set_cannot_breakpoint {
472 use super::*;
473 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
474 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<bool as ::unity::IlType>::il_type()];
475 ::unity::lookup::method_info_on_class_with_signature(
476 <SourceRef as ::unity::ClassIdentity>::class(),
477 "set_CannotBreakpoint",
478 1,
479 param_types,
480 false,
481 )
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 <SourceRef as ::unity::ClassIdentity>::NAME,
493 "set_CannotBreakpoint",
494 e
495 )
496 },
497 }
498 }
499 }
500 #[doc(hidden)]
501 #[allow(non_snake_case)]
502 pub mod __lookup_get_clr_location {
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] = &[];
506 ::unity::lookup::method_info_on_class_with_signature(
507 <SourceRef as ::unity::ClassIdentity>::class(),
508 "GetClrLocation",
509 0,
510 param_types,
511 true,
512 )
513 });
514 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 match &*METHOD {
516 ::core::result::Result::Ok(mi) => *mi,
517 ::core::result::Result::Err(e) => {
518 panic!(
519 "method lookup failed: {}
520::{}
521: {}
522",
523 <SourceRef as ::unity::ClassIdentity>::NAME,
524 "GetClrLocation",
525 e
526 )
527 },
528 }
529 }
530 }
531 #[doc(hidden)]
532 #[allow(non_snake_case)]
533 pub mod __lookup_ctor {
534 use super::*;
535 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
536 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
537 <crate::moon_sharp::interpreter::debugging::sourceref::SourceRef as ::unity::IlType>::il_type(),
538 <bool as ::unity::IlType>::il_type(),
539 ];
540 ::unity::lookup::method_info_on_class_with_signature(<SourceRef as ::unity::ClassIdentity>::class(), ".ctor", 2, param_types, false)
541 });
542 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
543 match &*METHOD {
544 ::core::result::Result::Ok(mi) => *mi,
545 ::core::result::Result::Err(e) => {
546 panic!(
547 "method lookup failed: {}
548::{}
549: {}
550",
551 <SourceRef as ::unity::ClassIdentity>::NAME,
552 ".ctor",
553 e
554 )
555 },
556 }
557 }
558 }
559 #[doc(hidden)]
560 #[allow(non_snake_case)]
561 pub mod __lookup_ctor_2 {
562 use super::*;
563 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
564 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
565 <i32 as ::unity::IlType>::il_type(),
566 <i32 as ::unity::IlType>::il_type(),
567 <i32 as ::unity::IlType>::il_type(),
568 <i32 as ::unity::IlType>::il_type(),
569 <i32 as ::unity::IlType>::il_type(),
570 <bool as ::unity::IlType>::il_type(),
571 ];
572 ::unity::lookup::method_info_on_class_with_signature(<SourceRef as ::unity::ClassIdentity>::class(), ".ctor", 6, param_types, false)
573 });
574 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
575 match &*METHOD {
576 ::core::result::Result::Ok(mi) => *mi,
577 ::core::result::Result::Err(e) => {
578 panic!(
579 "method lookup failed: {}
580::{}
581: {}
582",
583 <SourceRef as ::unity::ClassIdentity>::NAME,
584 ".ctor",
585 e
586 )
587 },
588 }
589 }
590 }
591 #[doc(hidden)]
592 #[allow(non_snake_case)]
593 pub mod __lookup_get_location_distance {
594 use super::*;
595 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
596 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
597 <i32 as ::unity::IlType>::il_type(),
598 <i32 as ::unity::IlType>::il_type(),
599 <i32 as ::unity::IlType>::il_type(),
600 ];
601 ::unity::lookup::method_info_on_class_with_signature(
602 <SourceRef as ::unity::ClassIdentity>::class(),
603 "GetLocationDistance",
604 3,
605 param_types,
606 false,
607 )
608 });
609 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610 match &*METHOD {
611 ::core::result::Result::Ok(mi) => *mi,
612 ::core::result::Result::Err(e) => {
613 panic!(
614 "method lookup failed: {}
615::{}
616: {}
617",
618 <SourceRef as ::unity::ClassIdentity>::NAME,
619 "GetLocationDistance",
620 e
621 )
622 },
623 }
624 }
625 }
626 #[doc(hidden)]
627 #[allow(non_snake_case)]
628 pub mod __lookup_includes_location {
629 use super::*;
630 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
631 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
632 <i32 as ::unity::IlType>::il_type(),
633 <i32 as ::unity::IlType>::il_type(),
634 <i32 as ::unity::IlType>::il_type(),
635 ];
636 ::unity::lookup::method_info_on_class_with_signature(
637 <SourceRef as ::unity::ClassIdentity>::class(),
638 "IncludesLocation",
639 3,
640 param_types,
641 false,
642 )
643 });
644 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645 match &*METHOD {
646 ::core::result::Result::Ok(mi) => *mi,
647 ::core::result::Result::Err(e) => {
648 panic!(
649 "method lookup failed: {}
650::{}
651: {}
652",
653 <SourceRef as ::unity::ClassIdentity>::NAME,
654 "IncludesLocation",
655 e
656 )
657 },
658 }
659 }
660 }
661 #[doc(hidden)]
662 #[allow(non_snake_case)]
663 pub mod __lookup_set_no_break_point {
664 use super::*;
665 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
666 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
667 ::unity::lookup::method_info_on_class_with_signature(
668 <SourceRef as ::unity::ClassIdentity>::class(),
669 "SetNoBreakPoint",
670 0,
671 param_types,
672 false,
673 )
674 });
675 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
676 match &*METHOD {
677 ::core::result::Result::Ok(mi) => *mi,
678 ::core::result::Result::Err(e) => {
679 panic!(
680 "method lookup failed: {}
681::{}
682: {}
683",
684 <SourceRef as ::unity::ClassIdentity>::NAME,
685 "SetNoBreakPoint",
686 e
687 )
688 },
689 }
690 }
691 }
692 #[doc(hidden)]
693 #[allow(non_snake_case)]
694 pub mod __lookup_format_location {
695 use super::*;
696 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
697 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
698 <crate::moon_sharp::interpreter::script::Script as ::unity::IlType>::il_type(),
699 <bool as ::unity::IlType>::il_type(),
700 ];
701 ::unity::lookup::method_info_on_class_with_signature(
702 <SourceRef as ::unity::ClassIdentity>::class(),
703 "FormatLocation",
704 2,
705 param_types,
706 false,
707 )
708 });
709 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
710 match &*METHOD {
711 ::core::result::Result::Ok(mi) => *mi,
712 ::core::result::Result::Err(e) => {
713 panic!(
714 "method lookup failed: {}
715::{}
716: {}
717",
718 <SourceRef as ::unity::ClassIdentity>::NAME,
719 "FormatLocation",
720 e
721 )
722 },
723 }
724 }
725 }
726}
727
728#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
729impl SourceRef {
730 #[doc = "`GetClrLocation()` overload"]
731 pub fn get_clr_location() -> crate::moon_sharp::interpreter::debugging::sourceref::SourceRef {
732 unsafe {
733 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_clr_location::get_method_info().method_ptr,crate::moon_sharp::interpreter::debugging::sourceref::SourceRef;
734 )
735 }
736 }
737}
738
739#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
740pub trait ISourceRefMethods: ISourceRef {
741 #[doc = "`get_IsClrLocation()` overload"]
742 fn get_is_clr_location(self) -> bool {
743 unsafe {
744 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
745 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_is_clr_location::get_method_info().method_ptr,bool;
746(SourceRef)__receiver)
747 }
748 }
749 #[doc = "`set_IsClrLocation(bool)` overload"]
750 fn set_is_clr_location(self, value: impl ::core::convert::Into<bool>) -> () {
751 unsafe {
752 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
753 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_is_clr_location::get_method_info().method_ptr,();
754(SourceRef)__receiver,(bool)::core::convert::Into::into(value))
755 }
756 }
757 #[doc = "`get_SourceIdx()` overload"]
758 fn get_source_idx(self) -> i32 {
759 unsafe {
760 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
761 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_source_idx::get_method_info().method_ptr,i32;
762(SourceRef)__receiver)
763 }
764 }
765 #[doc = "`set_SourceIdx(i32)` overload"]
766 fn set_source_idx(self, value: impl ::core::convert::Into<i32>) -> () {
767 unsafe {
768 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
769 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_source_idx::get_method_info().method_ptr,();
770(SourceRef)__receiver,(i32)::core::convert::Into::into(value))
771 }
772 }
773 #[doc = "`get_FromChar()` overload"]
774 fn get_from_char(self) -> i32 {
775 unsafe {
776 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
777 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_from_char::get_method_info().method_ptr,i32;
778(SourceRef)__receiver)
779 }
780 }
781 #[doc = "`set_FromChar(i32)` overload"]
782 fn set_from_char(self, value: impl ::core::convert::Into<i32>) -> () {
783 unsafe {
784 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
785 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_from_char::get_method_info().method_ptr,();
786(SourceRef)__receiver,(i32)::core::convert::Into::into(value))
787 }
788 }
789 #[doc = "`get_ToChar()` overload"]
790 fn get_to_char(self) -> i32 {
791 unsafe {
792 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
793 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_to_char::get_method_info().method_ptr,i32;
794(SourceRef)__receiver)
795 }
796 }
797 #[doc = "`set_ToChar(i32)` overload"]
798 fn set_to_char(self, value: impl ::core::convert::Into<i32>) -> () {
799 unsafe {
800 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
801 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_to_char::get_method_info().method_ptr,();
802(SourceRef)__receiver,(i32)::core::convert::Into::into(value))
803 }
804 }
805 #[doc = "`get_FromLine()` overload"]
806 fn get_from_line(self) -> i32 {
807 unsafe {
808 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
809 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_from_line::get_method_info().method_ptr,i32;
810(SourceRef)__receiver)
811 }
812 }
813 #[doc = "`set_FromLine(i32)` overload"]
814 fn set_from_line(self, value: impl ::core::convert::Into<i32>) -> () {
815 unsafe {
816 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
817 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_from_line::get_method_info().method_ptr,();
818(SourceRef)__receiver,(i32)::core::convert::Into::into(value))
819 }
820 }
821 #[doc = "`get_ToLine()` overload"]
822 fn get_to_line(self) -> i32 {
823 unsafe {
824 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
825 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_to_line::get_method_info().method_ptr,i32;
826(SourceRef)__receiver)
827 }
828 }
829 #[doc = "`set_ToLine(i32)` overload"]
830 fn set_to_line(self, value: impl ::core::convert::Into<i32>) -> () {
831 unsafe {
832 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
833 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_to_line::get_method_info().method_ptr,();
834(SourceRef)__receiver,(i32)::core::convert::Into::into(value))
835 }
836 }
837 #[doc = "`get_IsStepStop()` overload"]
838 fn get_is_step_stop(self) -> bool {
839 unsafe {
840 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
841 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_is_step_stop::get_method_info().method_ptr,bool;
842(SourceRef)__receiver)
843 }
844 }
845 #[doc = "`set_IsStepStop(bool)` overload"]
846 fn set_is_step_stop(self, value: impl ::core::convert::Into<bool>) -> () {
847 unsafe {
848 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
849 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_is_step_stop::get_method_info().method_ptr,();
850(SourceRef)__receiver,(bool)::core::convert::Into::into(value))
851 }
852 }
853 #[doc = "`get_CannotBreakpoint()` overload"]
854 fn get_cannot_breakpoint(self) -> bool {
855 unsafe {
856 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
857 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_cannot_breakpoint::get_method_info().method_ptr,bool;
858(SourceRef)__receiver)
859 }
860 }
861 #[doc = "`set_CannotBreakpoint(bool)` overload"]
862 fn set_cannot_breakpoint(self, value: impl ::core::convert::Into<bool>) -> () {
863 unsafe {
864 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
865 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_cannot_breakpoint::get_method_info().method_ptr,();
866(SourceRef)__receiver,(bool)::core::convert::Into::into(value))
867 }
868 }
869 #[doc = "`.ctor(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, bool)` overload"]
870 fn ctor(
871 self,
872 src: impl ::core::convert::Into<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>,
873 is_step_stop: impl ::core::convert::Into<bool>,
874 ) -> () {
875 unsafe {
876 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
877 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
878(SourceRef)__receiver,(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef)::core::convert::Into::into(src),(bool)::core::convert::Into::into(is_step_stop))
879 }
880 }
881 #[doc = "`.ctor(i32, i32, i32, i32, i32, bool)` overload"]
882 fn ctor_2(
883 self,
884 source_idx: impl ::core::convert::Into<i32>,
885 from: impl ::core::convert::Into<i32>,
886 to: impl ::core::convert::Into<i32>,
887 fromline: impl ::core::convert::Into<i32>,
888 toline: impl ::core::convert::Into<i32>,
889 is_step_stop: impl ::core::convert::Into<bool>,
890 ) -> () {
891 unsafe {
892 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
893 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_ctor_2::get_method_info().method_ptr,();
894(SourceRef)__receiver,(i32)::core::convert::Into::into(source_idx),(i32)::core::convert::Into::into(from),(i32)::core::convert::Into::into(to),(i32)::core::convert::Into::into(fromline),(i32)::core::convert::Into::into(toline),(bool)::core::convert::Into::into(is_step_stop))
895 }
896 }
897 #[doc = "`ToString()` overload"]
898 fn to_string(self) -> ::unity::Il2CppString {
899 unsafe {
900 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
901 {
902 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
903 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
904 panic!(
905 "unity: virtual slot {}
906 out of range (vtable len {}
907) on the runtime class behind {}
908 (method `{}
909`)",
910 3usize,
911 __vt.len(),
912 <SourceRef as ::unity::ClassIdentity>::NAME,
913 "ToString",
914 )
915 });
916 let __inner: extern "C" fn(SourceRef, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
917 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
918 __inner(__receiver, __mi)
919 }
920 }
921 }
922 #[doc = "`GetLocationDistance(i32, i32, i32)` overload"]
923 fn get_location_distance(
924 self,
925 source_idx: impl ::core::convert::Into<i32>,
926 line: impl ::core::convert::Into<i32>,
927 col: impl ::core::convert::Into<i32>,
928 ) -> i32 {
929 unsafe {
930 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
931 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_get_location_distance::get_method_info().method_ptr,i32;
932(SourceRef)__receiver,(i32)::core::convert::Into::into(source_idx),(i32)::core::convert::Into::into(line),(i32)::core::convert::Into::into(col))
933 }
934 }
935 #[doc = "`IncludesLocation(i32, i32, i32)` overload"]
936 fn includes_location(
937 self,
938 source_idx: impl ::core::convert::Into<i32>,
939 line: impl ::core::convert::Into<i32>,
940 col: impl ::core::convert::Into<i32>,
941 ) -> bool {
942 unsafe {
943 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
944 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_includes_location::get_method_info().method_ptr,bool;
945(SourceRef)__receiver,(i32)::core::convert::Into::into(source_idx),(i32)::core::convert::Into::into(line),(i32)::core::convert::Into::into(col))
946 }
947 }
948 #[doc = "`SetNoBreakPoint()` overload"]
949 fn set_no_break_point(self) -> crate::moon_sharp::interpreter::debugging::sourceref::SourceRef {
950 unsafe {
951 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
952 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_set_no_break_point::get_method_info().method_ptr,crate::moon_sharp::interpreter::debugging::sourceref::SourceRef;
953(SourceRef)__receiver)
954 }
955 }
956 #[doc = "`FormatLocation(crate::moon_sharp::interpreter::script::Script, bool)` overload"]
957 fn format_location(
958 self,
959 script: impl ::core::convert::Into<crate::moon_sharp::interpreter::script::Script>,
960 force_classic_format: impl ::core::convert::Into<bool>,
961 ) -> ::unity::Il2CppString {
962 unsafe {
963 let __receiver = <SourceRef as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
964 ::unity::il2cpp_call!(__SourceRef_unity_raw::__lookup_format_location::get_method_info().method_ptr, ::unity::Il2CppString;
965(SourceRef)__receiver,(crate::moon_sharp::interpreter::script::Script)::core::convert::Into::into(script),(bool)::core::convert::Into::into(force_classic_format))
966 }
967 }
968}
969
970#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
971impl<__T: ISourceRef> ISourceRefMethods for __T {}
972
973#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
974impl SourceRef {
975 pub fn get_is_clr_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
976 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
977 }
978
979 pub fn set_is_clr_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
980 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
981 }
982
983 pub fn get_source_idx_method_info() -> &'static ::unity::il2cpp::MethodInfo {
984 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
985 }
986
987 pub fn set_source_idx_method_info() -> &'static ::unity::il2cpp::MethodInfo {
988 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
989 }
990
991 pub fn get_from_char_method_info() -> &'static ::unity::il2cpp::MethodInfo {
992 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
993 }
994
995 pub fn set_from_char_method_info() -> &'static ::unity::il2cpp::MethodInfo {
996 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
997 }
998
999 pub fn get_to_char_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1000 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1001 }
1002
1003 pub fn set_to_char_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1004 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1005 }
1006
1007 pub fn get_from_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1008 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
1009 }
1010
1011 pub fn set_from_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1012 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
1013 }
1014
1015 pub fn get_to_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1016 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1017 }
1018
1019 pub fn set_to_line_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1020 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1021 }
1022
1023 pub fn get_is_step_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1024 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1025 }
1026
1027 pub fn set_is_step_stop_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1028 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1029 }
1030
1031 pub fn get_cannot_breakpoint_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1032 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1033 }
1034
1035 pub fn set_cannot_breakpoint_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1036 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1037 }
1038
1039 pub fn get_clr_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1040 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1041 }
1042
1043 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1044 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1045 }
1046
1047 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1048 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1049 }
1050
1051 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1052 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1053 }
1054
1055 pub fn get_location_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1056 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1057 }
1058
1059 pub fn includes_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1060 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1061 }
1062
1063 pub fn set_no_break_point_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1064 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1065 }
1066
1067 pub fn format_location_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1068 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1069 }
1070}
1071
1072#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
1073impl SourceRef {
1074 #[doc = "Direct (non-virtual) call to `SourceRef`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1075 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
1076 let __mi = Self::to_string_method_info();
1077 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
1078 __inner(this.into(), ::core::option::Option::None)
1079 }
1080}
1081
1082#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
1083impl SourceRef {
1084 #[doc = "`.ctor(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, bool)` — overload selector"]
1085 pub fn new(src: crate::moon_sharp::interpreter::debugging::sourceref::SourceRef, is_step_stop: bool) -> Self {
1086 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1087 panic!(
1088 "{}
1089::{}
1090 failed to instantiate",
1091 ::core::stringify!(SourceRef),
1092 ::core::stringify!(new),
1093 )
1094 });
1095 <Self as ISourceRefMethods>::ctor(this, src, is_step_stop);
1096 this
1097 }
1098
1099 #[doc = "`.ctor(i32, i32, i32, i32, i32, bool)` — overload selector"]
1100 pub fn new_2(source_idx: i32, from: i32, to: i32, fromline: i32, toline: i32, is_step_stop: bool) -> Self {
1101 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1102 panic!(
1103 "{}
1104::{}
1105 failed to instantiate",
1106 ::core::stringify!(SourceRef),
1107 ::core::stringify!(new_2),
1108 )
1109 });
1110 <Self as ISourceRefMethods>::ctor_2(this, source_idx, from, to, fromline, toline, is_step_stop);
1111 this
1112 }
1113}
1114
1115#[cfg(feature = "moon_sharp-interpreter-debugging-sourceref")]
1116#[doc(hidden)]
1117pub mod prelude {
1118 pub use super::{ISourceRef, ISourceRefMethods, SourceRef};
1119 pub use crate::system::object::IObject;
1120 #[cfg(feature = "system-object")]
1121 pub use crate::system::object::IObjectMethods;
1122}