MichalStrehovsky / iltrim

MIT License
9 stars 1 forks source link

Add support for function pointer signatures #35

Closed MichalStrehovsky closed 2 years ago

MichalStrehovsky commented 2 years ago

(Can be worked on after #33 is merged.)

To repro, update the Main program to call a new method that has a function pointer as an argument (i.e. delegate*<SomeType, SomeOtherType> in C#).

The fix is in two spots: look for SignatureTypeCode.FunctionPointer in EcmaSignatureAnalyzer and EcmaSignatureRewriter. One has to extract all the types referenced from the method signature report a dependency on them. The other needs to mirror the function pointer structure and rewrite the tokens of the parameter types.