Skip to content

Implement ModuleBuilder.GetFieldToken #37497

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

Merged

Conversation

alexischr
Copy link
Contributor

I am not sure why this was not filled in, ModuleBuilder has support for FieldBuilder pseudo-tokens in the same file, and support for RuntimeFieldInfo in sre.c:mono_image_create_token.

Contributes to mono/mono#14788

@alexischr
Copy link
Contributor Author

There are no tests for this; It is only used internally by CoreCLR's ModuleBuilder, and Mono's version does not use it. This does help in eventually replacing Mono's ModuleBuilder with CoreCLR's.

Copy link
Contributor

@marek-safar marek-safar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's public API so it's odd there are no tests

@alexischr alexischr merged commit 6649dc7 into dotnet:master Jun 8, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants