Skip to content

Commit 21aa025

Browse files
Update csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll
Co-authored-by: Tom Hvitved <[email protected]>
1 parent a0b44c0 commit 21aa025

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,11 +2075,10 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
20752075
node1 = TExplicitParameterNode(p) and
20762076
node2 = TPrimaryConstructorThisAccessNode(p, true) and
20772077
exists(Type t | t = p.getCallable().getDeclaringType() |
2078-
not t instanceof RecordType and
2079-
c.(PrimaryConstructorParameterContent).getParameter() = p
2080-
or
2081-
t instanceof RecordType and
2082-
c.(PropertyContent).getProperty().getName() = p.getName()
2078+
if t instanceof RecordType then
2079+
c.(PropertyContent).getProperty().getName() = p.getName()
2080+
else
2081+
c.(PrimaryConstructorParameterContent).getParameter() = p
20832082
)
20842083
)
20852084
or

0 commit comments

Comments
 (0)