- Notifications
You must be signed in to change notification settings - Fork543
Commitb11b39c
[RGen] Add support for the generation of constructors. (#23341)
This commit adds support to generate the constructors of a class. Thiscomes with some extra changes to take a look at:1. Constructor formatter: It now takes an extra parameter that can beused to state the addition of calling base (NSObjectFlag.Empty).2. Fixed the messsage send generation to use the this.SuperHandle. Wehad a bug and we were generating the super call with the this.Handle.3. Update all tests according to the changes for the super calls.4. Added the constructor generation in the class emitter.We still have to correctly add the Skip method for the constructors thatare not partial. This will need to be added in the net10.0 branch inwhich we will have partial constructors.---------Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>1 parent758a1d4 commitb11b39c
File tree
36 files changed
+1033
-302
lines changed- src/rgen/Microsoft.Macios.Generator
- DataModel
- Emitters
- Formatters
- tests/rgen/Microsoft.Macios.Generator.Tests
- Classes
- Data
- DataModel
- Emitters
36 files changed
+1033
-302
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
| |||
84 | 85 |
| |
85 | 86 |
| |
86 | 87 |
| |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 |
| |
88 | 92 |
| |
89 | 93 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| 9 | + | |
9 | 10 |
| |
10 | 11 |
| |
| 12 | + | |
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
| |
| |||
23 | 25 |
| |
24 | 26 |
| |
25 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
26 | 43 |
| |
27 | 44 |
| |
28 | 45 |
| |
| |||
41 | 58 |
| |
42 | 59 |
| |
43 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
44 | 64 |
| |
45 | 65 |
| |
46 | 66 |
| |
| 67 | + | |
47 | 68 |
| |
48 | 69 |
| |
49 | 70 |
| |
|
Lines changed: 19 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 |
| |
23 | 26 |
| |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 |
| |
25 | 33 |
| |
26 | 34 |
| |
| |||
509 | 517 |
| |
510 | 518 |
| |
511 | 519 |
| |
512 |
| - | |
513 |
| - | |
514 |
| - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
515 | 523 |
| |
516 | 524 |
| |
517 | 525 |
| |
518 | 526 |
| |
519 | 527 |
| |
520 | 528 |
| |
521 |
| - | |
| 529 | + | |
522 | 530 |
| |
523 | 531 |
| |
524 | 532 |
| |
525 | 533 |
| |
526 | 534 |
| |
527 |
| - | |
| 535 | + | |
528 | 536 |
| |
529 | 537 |
| |
530 |
| - | |
531 |
| - | |
| 538 | + | |
| 539 | + | |
532 | 540 |
| |
533 | 541 |
| |
534 | 542 |
| |
| |||
539 | 547 |
| |
540 | 548 |
| |
541 | 549 |
| |
542 |
| - | |
543 |
| - | |
544 |
| - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
545 | 553 |
| |
546 | 554 |
| |
547 | 555 |
| |
| |||
552 | 560 |
| |
553 | 561 |
| |
554 | 562 |
| |
555 |
| - | |
| 563 | + | |
556 | 564 |
| |
557 | 565 |
| |
558 | 566 |
| |
|
Lines changed: 89 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
75 |
| - | |
| 74 | + | |
| 75 | + | |
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
112 |
| - | |
| 111 | + | |
| 112 | + | |
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
|
Lines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
102 | 114 |
| |
103 | 115 |
| |
104 | 116 |
| |
105 | 117 |
| |
106 | 118 |
| |
107 | 119 |
| |
| 120 | + | |
108 | 121 |
| |
109 | 122 |
| |
110 |
| - | |
| 123 | + | |
111 | 124 |
| |
112 | 125 |
| |
113 | 126 |
| |
| |||
118 | 131 |
| |
119 | 132 |
| |
120 | 133 |
| |
121 |
| - | |
| 134 | + | |
122 | 135 |
| |
123 | 136 |
| |
124 | 137 |
| |
|
Lines changed: 45 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
| |||
69 | 70 |
| |
70 | 71 |
| |
71 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
72 | 114 |
| |
73 | 115 |
| |
74 | 116 |
| |
| |||
554 | 596 |
| |
555 | 597 |
| |
556 | 598 |
| |
| 599 | + | |
| 600 | + | |
| 601 | + | |
557 | 602 |
| |
558 | 603 |
| |
559 | 604 |
| |
| |||
563 | 608 |
| |
564 | 609 |
| |
565 | 610 |
| |
566 |
| - | |
567 | 611 |
| |
568 | 612 |
| |
569 | 613 |
| |
|
0 commit comments
Comments
(0)