Skip to content

Implement ModuleBuilder.GetFieldToken#37497

Merged
alexischr merged 1 commit into
dotnet:masterfrom
alexischr:mono-modulebuilder-getfieldtoken
Jun 8, 2020
Merged

Implement ModuleBuilder.GetFieldToken#37497
alexischr merged 1 commit into
dotnet:masterfrom
alexischr:mono-modulebuilder-getfieldtoken

Conversation

@alexischr

Copy link
Copy Markdown
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
Copy Markdown
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.

@marek-safar marek-safar left a comment

Copy link
Copy Markdown
Contributor

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