Commit c825dca
authored
[Java.Interop.Tools.JavaCallableWrappers] Refactor (#1174)
Context: #540
Refactor `Java.Interop.Tools.JavaCallableWrappers` to be more
maintainable and modular. Adopts the same architecture as
`generator`: using a `CecilImporter` to import data from a compiled
assembly into an intermediate model. Java code is then generated
from the intermediate model.
Refactoring and updating this code should make it not only more
maintainable, but also easier to extend with potential upcoming
features we are considering:
- Moving `jcw-gen` into the `ILLink` pipeline
- [Sanity-check Java Callable Wrappers][0]
- Possibly creating a Kotlin backend
[0]: dotnet/android#42781 parent ae65609 commit c825dca
File tree
20 files changed
+1487
-1208
lines changed- src
- Java.Interop.Tools.Diagnostics/Java.Interop.Tools.Diagnostics
- Java.Interop.Tools.JavaCallableWrappers
- Java.Interop.Tools.JavaCallableWrappers.Adapters
- Java.Interop.Tools.JavaCallableWrappers.CallableWrapperMembers
- Java.Interop.Tools.JavaCallableWrappers
- tests/Java.Interop.Tools.JavaCallableWrappers-Tests/Java.Interop.Tools.JavaCallableWrappers
- tools/jcw-gen
20 files changed
+1487
-1208
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
0 commit comments