Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c49a16c commit d3530b0Copy full SHA for d3530b0
1 file changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll
@@ -423,13 +423,11 @@ module LocalFlow {
423
ControlFlow::Nodes::ExprNode getAPostUpdateNodeForArg(ControlFlow::Nodes::ExprNode arg) {
424
arg.getExpr() instanceof Argument and
425
result = getALastEvalNode*(arg) and
426
- exists(Expr e | result.getExpr() = e |
427
- exists(Type t | t = e.stripCasts().getType() |
428
- t instanceof RefType and
429
- not t instanceof NullType
430
- or
431
- t = any(TypeParameter tp | not tp.isValueType())
432
- )
+ exists(Expr e, Type t | result.getExpr() = e and t = e.stripCasts().getType() |
+ t instanceof RefType and
+ not t instanceof NullType
+ or
+ t = any(TypeParameter tp | not tp.isValueType())
433
) and
434
not exists(getALastEvalNode(result))
435
}
0 commit comments