Skip to content

Commit 5c1468b

Browse files
committed
C#: Consider the left argument as the qualifier of instance operator calls.
1 parent 0978631 commit 5c1468b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/Expressions/UserCompoundAssignmentInvocation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ protected UserCompoundAssignmentInvocation(ExpressionNodeInfo info)
2323

2424
protected override void PopulateExpression(TextWriter trapFile)
2525
{
26-
Create(Context, Syntax.Left, this, 0);
27-
Create(Context, Syntax.Right, this, 1);
26+
Create(Context, Syntax.Left, this, -1);
27+
Create(Context, Syntax.Right, this, 0);
2828

2929
var target = info.GetTargetSymbol(Context);
3030
if (target is null)

0 commit comments

Comments
 (0)