Skip to content

Commit ab63949

Browse files
committed
FIXUP of extractor implementation. Null coalescing assignments doesn't have operator calls.
1 parent 2949edd commit ab63949

File tree

1 file changed

+1
-1
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp/Entities/Expressions

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected override void PopulateExpression(TextWriter trapFile)
2525
Create(Context, Syntax.Left, this, 0);
2626
Create(Context, Syntax.Right, this, 1);
2727

28-
if (Kind != ExprKind.SIMPLE_ASSIGN)
28+
if (Kind != ExprKind.SIMPLE_ASSIGN && Kind != ExprKind.ASSIGN_COALESCE)
2929
{
3030
OperatorCall(trapFile, Syntax);
3131
}

0 commit comments

Comments
 (0)