We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a11db7a + 55aedbc commit 3a9c34cCopy full SHA for 3a9c34c
1 file changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll
@@ -1165,8 +1165,14 @@ private module ArgumentNodes {
1165
) {
1166
e1.(Argument).isArgumentOf(e2, _) and
1167
exactScope = false and
1168
- scope = e2 and
1169
- isSuccessor = true
+ isSuccessor = true and
+ if e2 instanceof PropertyWrite
1170
+ then
1171
+ exists(AssignableDefinition def |
1172
+ def.getTargetAccess() = e2 and
1173
+ scope = def.getExpr()
1174
+ )
1175
+ else scope = e2
1176
}
1177
1178
0 commit comments