-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
IOperation Node Porting: Non-Leaf Non-Hierarchy Nodes Pt3 #48892
Conversation
@dotnet/roslyn-ide |
@CyrusNajmabadi or @jasonmalinowski any pointers? |
Somewhere in roslyn/src/Features/Core/Portable/InlineMethod/AbstractInlineMethodRefactoringProvider.cs Lines 93 to 111 in 7da3c0f
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compiler portion LGTM Thanks (iteration 26)
@dotnet/roslyn-ide can I get a review on the IDE portions of this change? For the IDE sections, it's probably easiest to not review commit by commit, and instead just review all of it at once as there are not that many. |
@@ -60,7 +60,7 @@ private static ExpressionSyntax AsExpressionSyntax(IOperation operation) | |||
=> operation switch | |||
{ | |||
IReturnOperation { ReturnedValue: { } value } => (ExpressionSyntax)value.Syntax, | |||
IThrowOperation op => ThrowExpression((ExpressionSyntax)op.Exception.Syntax), | |||
IThrowOperation { Exception: { } exception } => ThrowExpression((ExpressionSyntax)exception.Syntax), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDE side lgtm.
Since Refers to: src/Compilers/Core/Portable/Generated/Operations.Generated.cs:5799 in 2942c0f. [](commit_id = 2942c0f, deletion_comment = False) |
...s/Core/Portable/InlineMethod/AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments, none blocking.
This is the next set of non-leaf, non-hierarchy IOperation nodes. With this PR, we're ~55% of the way through the types defined in OperationInterfaces.xml. Once again, commit-by-commit is recommended. You might be able to get away with doing a few commits at a time, but reviewing this all at once is likely to be very hard to do (given that there are 28 ported nodes in this PR).