Repository navigation
Support for generation of PInvoke transitions - #1255
Conversation
|
This is the compiler part for the PInvoke transitions. |
| { | ||
| return true; | ||
| } | ||
|
|
There was a problem hiding this comment.
Is RequiresMarshalling still a fitting name for this method?
There was a problem hiding this comment.
(Sigh, maybe PInvokeMarshallingILEmitter should be just PInvokeILEmitter too.)
Rename it to |
|
@MichalStrehovsky PTLA |
| { | ||
| var builder = new CppGenerationBuffer(); | ||
| switch (kind) | ||
| bool isPInvoke; |
There was a problem hiding this comment.
This bool makes readability of the code a bit worse (it's non-obvious that the bool being false means it's a runtime import). Maybe we could factor out a new method that takes the original MethodDesc and the importName string to alleviate that.
But I don't care much. CppWriter is not particularly readable anyway.
There was a problem hiding this comment.
I have refactored it as CompileExternMethod
|
LGTM |
No description provided.