Skip to content

Use synthesized methods for compiler-generated switch exceptions#59975

Merged
jcouv merged 7 commits intodotnet:mainfrom
Youssef1313:59601-switch-throw-wrapper
Mar 25, 2022
Merged

Use synthesized methods for compiler-generated switch exceptions#59975
jcouv merged 7 commits intodotnet:mainfrom
Youssef1313:59601-switch-throw-wrapper

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

Fixes #59601

@RikkiGibson Tagging you since you self-assigned the issue.

@Youssef1313 Youssef1313 requested a review from a team as a code owner March 6, 2022 07:40
@ghost ghost added Community The pull request was submitted by a contributor who is not a Microsoft employee. Area-Compilers labels Mar 6, 2022
@Youssef1313

This comment was marked as resolved.

@RikkiGibson RikkiGibson self-assigned this Mar 6, 2022
@RikkiGibson

This comment was marked as resolved.

@Youssef1313 Youssef1313 requested a review from RikkiGibson March 9, 2022 13:16
@RikkiGibson
Copy link
Copy Markdown
Member

Great progress here. My only concern currently is I don't see tests where:

  1. the parameterless ThrowSwitchExpressionException is used. For example, when switch input is a pointer type or ref struct.
  2. InvalidOperationException is used. For example, if we use MakeMemberMissing on both SwitchExpressionException constructors.

@Youssef1313
Copy link
Copy Markdown
Member Author

@RikkiGibson I updated some existing tests.

@RikkiGibson RikkiGibson requested a review from a team March 10, 2022 17:14
@RikkiGibson
Copy link
Copy Markdown
Member

@dotnet/roslyn-compiler for second review.

@jcouv jcouv self-assigned this Mar 17, 2022
Copy link
Copy Markdown
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

Done with review pass (iteration 6). Overall looks good, only minor feedback and coverage recommendations

Copy link
Copy Markdown
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 7)

@RikkiGibson
Copy link
Copy Markdown
Member

/azp run roslyn-integration-ci

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@RikkiGibson
Copy link
Copy Markdown
Member

/azp run roslyn-integration-corehost

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jcouv jcouv enabled auto-merge (squash) March 25, 2022 18:45
@jcouv jcouv merged commit 5a8dc97 into dotnet:main Mar 25, 2022
@ghost ghost added this to the Next milestone Mar 25, 2022
@Youssef1313 Youssef1313 deleted the 59601-switch-throw-wrapper branch March 25, 2022 20:01
@allisonchou allisonchou modified the milestones: Next, 17.2.P3 Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use synthesized wrapper methods for compiler-generated 'throw's

4 participants