Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signature reader: add support for parametrized types/methods #37

Open
jagobagascon opened this issue Jun 15, 2022 · 2 comments
Open

signature reader: add support for parametrized types/methods #37

jagobagascon opened this issue Jun 15, 2022 · 2 comments

Comments

@jagobagascon
Copy link

Hi! I'm trying to read the information of the IAsyncOperation<TResult> interface, and when I call the following function:

methodSig, err := myMethod.Signature.Reader().Method(ctx)
// err == nil
// methodSig is empty

The methodSig is empty, but there has been no error.

This problem is related to #36. Debugging the code I can see that the method is indeed failing with unexpected element type 0x13:

Screenshot 2022-06-14 at 15 32 06

Element type 0x13 is ELEMENT_TYPE_VAR, which according to the docs is "A class variable type modifier".

Are there any plans to support this? This may require some changes to the Element struct to add the information related to the generic type.

@tdakkota
Copy link
Owner

I've added ELEMENT_TYPE_VAR and ELEMENT_TYPE_MVAR support in #41 and made v0.1.0 release. Can you check it?

@jagobagascon
Copy link
Author

It's working fine now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants