Skip to content

Commit 50c3c15

Browse files
committed
C#: Make checked and unchecked as a local flow step.
1 parent 042e53a commit 50c3c15

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,14 @@ module LocalFlow {
239239
scope = e2 and
240240
isSuccessor = true
241241
or
242+
e1 = e2.(CheckedExpr).getExpr() and
243+
scope = e2 and
244+
isSuccessor = true
245+
or
246+
e1 = e2.(UncheckedExpr).getExpr() and
247+
scope = e2 and
248+
isSuccessor = true
249+
or
242250
exists(WithExpr we |
243251
scope = we and
244252
isSuccessor = true

0 commit comments

Comments
 (0)