-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C#: Add tuple dataflow #5242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#: Add tuple dataflow #5242
Conversation
8ad11c7
to
a17df10
Compare
6aeca4e
to
f1b5d83
Compare
b1bd299
to
eb2e431
Compare
1ed7bb5
to
d11ac7f
Compare
ab5059b
to
0defad7
Compare
@hvitved I rebased this PR to fix the merge conflicts, fixed the nullability annotations in new code, and added an extra commit to handle patterns. (Let's see which other tests need to be adjusted) Here's the new differences job. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent that we now handle tuple patterns as well.
csharp/ql/src/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll
Outdated
Show resolved
Hide resolved
@hvitved I added an extra commit with mixed positional and variable decl. tuple pattern. I'm not going to address that in this PR, but it shows what I'd like to cover next. |
This PR adds better data flow support for tuples. We're now tracking data flowing into tuple fields and out of them. Also, tuple extraction was slightly changed to remove named tuple fields.
Differences jobDifferences jobDifferences job