Skip to content

Add the module name to generated PrivateImplementationDetails class - #1257

Merged
gafter merged 6 commits into
dotnet:masterfrom
gafter:fix1228
Mar 16, 2015
Merged

Add the module name to generated PrivateImplementationDetails class#1257
gafter merged 6 commits into
dotnet:masterfrom
gafter:fix1228

Conversation

@gafter

@gafter gafter commented Mar 13, 2015

Copy link
Copy Markdown
Member

so that there will be no conflict if they are used as netmodules
Fixes #1228

so that there will be no conflict if they are used as netmodules
Fixes dotnet#1228
@gafter gafter added Area-Compilers 4 - In Review A fix for the issue is submitted for review. labels Mar 13, 2015
@gafter gafter added this to the 1.0-rc2 milestone Mar 13, 2015
@gafter gafter self-assigned this Mar 13, 2015
@gafter

gafter commented Mar 13, 2015

Copy link
Copy Markdown
Member Author

@jaredpar @VSadov @AlekseyTs @agocke @VladimirReshetnikov Could a couple of you review this please?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I removed some unused type parameters

@VSadov

VSadov commented Mar 13, 2015

Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please use non-ASCII module name (e.g. "MODULE") in at least one test.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pedantic: could you fix the comment alignment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'd rather remove it, as it is not true. This is the module builder, not the module. This was terribly confusing to me when I was working on this code. I'd love to disentangle the two types.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Removing it SGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we add a comment about the necessity of this naming convention?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes.

@jaredpar

Copy link
Copy Markdown
Member

👍 Added some minor comments.

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.

You could use EmitToImageReference helper instead.

@AlekseyTs

Copy link
Copy Markdown
Contributor

LGTM

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@tmat Please tell me if this is OK. It was required to get tests to pass, as otherwise we use a random GUID for the module name in E&C, which means that the generated code is not deterministic even for testing.

gafter added a commit that referenced this pull request Mar 16, 2015
Add the module name to generated PrivateImplementationDetails class
@gafter
gafter merged commit a84ed43 into dotnet:master Mar 16, 2015
@gafter
gafter deleted the fix1228 branch March 16, 2015 21:03
@gafter gafter removed the 4 - In Review A fix for the issue is submitted for review. label Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to build assembly using multiple netmodules built from Roslyn

7 participants