Skip to content

Commit 6b74e43

Browse files
committed
C#: Support postupdate notes for NullCoalescing expressions.
1 parent 11d6774 commit 6b74e43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,8 @@ module LocalFlow {
418418
private ControlFlow::Nodes::ExprNode getALastEvalNode(ControlFlow::Nodes::ExprNode cfn) {
419419
exists(Expr e | any(LocalExprStepConfiguration x).hasExprPath(_, result, e, cfn) |
420420
e instanceof ConditionalExpr or
421-
e instanceof Cast
421+
e instanceof Cast or
422+
e instanceof NullCoalescingExpr
422423
)
423424
}
424425

0 commit comments

Comments
 (0)