Skip to content

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Jul 16, 2021

Fixes #52563
Fixes #48635

@davidwengier davidwengier requested review from a team as code owners July 16, 2021 01:51
@ghost ghost added the Area-Interactive label Jul 16, 2021
@davidwengier davidwengier force-pushed the EnCRenameParameters branch from 00771cc to 95b2551 Compare July 20, 2021 08:12
@davidwengier davidwengier requested a review from a team as a code owner July 23, 2021 00:10
@davidwengier davidwengier force-pushed the EnCRenameParameters branch from 27c9822 to 5705a3b Compare July 26, 2021 03:56
@davidwengier davidwengier force-pushed the EnCRenameParameters branch from fb75822 to 93aa07c Compare July 28, 2021 02:06
@davidwengier
Copy link
Member Author

@tmat PTAL

Now that the other PR is in, this is pretty straight forward

Copy link
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

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

🕐

Copy link
Contributor

@cston cston left a comment

Choose a reason for hiding this comment

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

Compiler changes LGTM.

@davidwengier
Copy link
Member Author

Worked out my symbol issues, the tests were bad and I feel bad. Updated with all feedback addressed now.

@RikkiGibson RikkiGibson self-assigned this Aug 4, 2021

CheckNames(readers, reader2.GetTypeDefNames());
CheckNames(readers, reader2.GetMethodDefNames(), "F");
CheckNames(readers, reader2.GetParameterDefNames(), "", "arg");
Copy link
Member

Choose a reason for hiding this comment

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

""

Curious, where does this empty name come from?

Copy link
Member Author

Choose a reason for hiding this comment

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

The method return

Copy link
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

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

:shipit:

@davidwengier
Copy link
Member Author

Ping @dotnet/roslyn-compiler for a second review

@jaredpar
Copy link
Member

jaredpar commented Aug 9, 2021

@RikkiGibson PTAL


// signature validation:
if (!ParametersEquivalent(oldLambdaSymbol.Parameters, newLambdaSymbol.Parameters, exact: false))
if (!ParameterTypesEquivalent(oldLambdaSymbol.Parameters, newLambdaSymbol.Parameters, exact: false))
Copy link
Member

Choose a reason for hiding this comment

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

I was confused by this method name. Don't we also consider a change to the parameter's ref kind a rude edit? Do we have existing tests for such scenarios?

Copy link
Member

@tmat tmat Aug 10, 2021

Choose a reason for hiding this comment

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

RefKind is part of parameter type.

@davidwengier davidwengier merged commit 9683739 into dotnet:main Aug 10, 2021
@davidwengier davidwengier deleted the EnCRenameParameters branch August 10, 2021 21:20
@ghost ghost added this to the Next milestone Aug 10, 2021
@dibarbet dibarbet modified the milestones: Next, 17.0.P4 Aug 31, 2021
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.

EnC - Allow parameter renames EnC: Updating lambda parameters to discards breaks EnC

7 participants