-
Notifications
You must be signed in to change notification settings - Fork 238
Fix S3459 FP: Backing field with ref property #9383
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -184,7 +184,8 @@ private static ISet<ISymbol> GetAssignedMemberSymbols(IList<MemberUsage> memberU | |
|
|
||
| if (PreOrPostfixOpSyntaxKinds.Contains(parentNode.Kind()) | ||
| || (parentNode is AssignmentExpressionSyntax assignment && assignment.Left == node) | ||
| || (parentNode is ArgumentSyntax argument && (!argument.RefOrOutKeyword.IsKind(SyntaxKind.None) || TupleExpressionSyntaxWrapper.IsInstance(argument.Parent)))) | ||
| || (parentNode is ArgumentSyntax argument && (!argument.RefOrOutKeyword.IsKind(SyntaxKind.None) || TupleExpressionSyntaxWrapper.IsInstance(argument.Parent))) | ||
| || RefExpressionSyntaxWrapper.IsInstance(parentNode)) | ||
|
||
| { | ||
| assignedMembers.Add(memberSymbol); | ||
| assignedMembers.Add(memberSymbol.OriginalDefinition); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.