-
Notifications
You must be signed in to change notification settings - Fork 147
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
VSTHRD114: Handle delegate and local functions #625
Conversation
These tests fail. We need to get these fixed.
Oops I forgot to update the code-fix provider. I'll work on it! |
...rosoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD114AvoidReturningNullTaskCodeFixTests.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.
Thanks!
I was so close to it!!!! Thanks for the changes @AArnott |
ILocalFunctionOperation localFunction => localFunction.Symbol, | ||
IAnonymousFunctionOperation anonymousFunction => anonymousFunction.Symbol, | ||
|
||
// Block parent is the method declaration, for vbnet this means a null parent but for C# it's a IMethodBodyOperation |
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.
🤔 I don't know. I'll leave that up to @sharwell.
This required adding a workaround for dotnet/roslyn#43950
Fixes #618 and based upon #619
Tagging @AArnott