-
Notifications
You must be signed in to change notification settings - Fork 470
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
CA1311 various fixes #6010
CA1311 various fixes #6010
Conversation
Dim invocation = DirectCast(node, InvocationExpressionSyntax) | ||
If invocation.Expression.IsKind(SyntaxKind.SimpleMemberAccessExpression) Then | ||
Return DirectCast(invocation.Expression, MemberAccessExpressionSyntax).Name.GetLocation() | ||
End If |
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.
Dim invocation = DirectCast(node, InvocationExpressionSyntax) | |
If invocation.Expression.IsKind(SyntaxKind.SimpleMemberAccessExpression) Then | |
Return DirectCast(invocation.Expression, MemberAccessExpressionSyntax).Name.GetLocation() | |
End If | |
node = DirectCast(node, InvocationExpressionSyntax).Expression |
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.
Not sure why @Youssef1313 suggested this
...s/VisualBasic/Microsoft.NetCore.Analyzers/Runtime/BasicSpecifyCultureForToLowerAndToUpper.vb
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #6010 +/- ##
========================================
Coverage 96.03% 96.03%
========================================
Files 1330 1330
Lines 306571 306672 +101
Branches 9722 9729 +7
========================================
+ Hits 294426 294527 +101
+ Misses 9796 9792 -4
- Partials 2349 2353 +4 |
...alBasic/Microsoft.NetCore.Analyzers/Runtime/BasicSpecifyCultureForToLowerAndToUpper.Fixer.vb
Show resolved
Hide resolved
…me/BasicSpecifyCultureForToLowerAndToUpper.vb Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
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 for the fix @TKharaishvili and thanks for pointing it out @Youssef1313
This PR is a follow-up of these two - #5970 #2186
@buyaa-n @Youssef1313 Here's the new PR addressing the issues left over from the previous ones.
I've updated the fixer to address the VB edge case and I've also fixed the typo in the resource files.
I haven't however moved unit tests into a single file. Is that a must? I see that many analyzers/fixers in the codebase have separate files for unit tests.