-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Make IRecursivePatternOperation public #36709
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
Conversation
|
Awesome thanks! i can remove some ugly reflection code now :) |
CyrusNajmabadi
left a comment
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.
Approve
Submit feedback approving these changes.
333fred
left a comment
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.
API looks good to me, but we need to ensure that we're ok with it. Sent an email internally.
| Microsoft.CodeAnalysis.Operations.IPropertySubpatternOperation | ||
| Microsoft.CodeAnalysis.Operations.IPropertySubpatternOperation.Member.get -> Microsoft.CodeAnalysis.IOperation | ||
| Microsoft.CodeAnalysis.Operations.IPropertySubpatternOperation.Pattern.get -> Microsoft.CodeAnalysis.Operations.IPatternOperation | ||
| Microsoft.CodeAnalysis.Operations.IRecursivePatternOperation |
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.
We should remove this IDE reflection based hack that was added for this API: http://source.roslyn.io/#Microsoft.CodeAnalysis.Workspaces/Extensions/OperationExtensions.cs,64
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.
case IOperation iop when iop.GetType().GetInterfaces().Any(i => i.Name == "IRecursivePatternOperation"):
mavasani
left a comment
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.
LGTM, @gafter let me know if you can update the PR to remove the reflection based workaround in the IDE layer for this API. Otherwise, please file an IDE issue to track that change. Thanks!
|
@dotnet/roslyn-compiler for a second review. |
|
@dotnet/roslyn-compiler May I please have a second review from the compiler team? |
|
Looking |
jcouv
left a comment
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.
LGTM Thanks (iteration 3)
The API was made public in dotnet#36709, so we don't need a reflection based workaround Fixes dotnet#36866
Fixes #35843