Swift: add SetContent for data flow#13838
Conversation
|
Also small nitpick: How about just calling this |
I like this idea. |
| cs.isSingleton(c) and | ||
| result = "EnumElement[" + c.getSignature() + "]" | ||
| ) | ||
| or |
There was a problem hiding this comment.
Thanks for adding this, I missed it in #13795 .
|
|
||
| let set2 = Set([source()]) | ||
| sink(arg: set2.randomElement()!) // $ MISSING: flow=703 | ||
| sink(arg: set2.randomElement()!) // $ flow=706 |
|
Do you mind rebasing this on the latest main so that we get a smaller diff @rdmarsh2? |
| TEnumContent(ParamDecl f) { exists(EnumElementDecl d | d.getAParam() = f) } or | ||
| TArrayContent() | ||
| TArrayContent() or | ||
| TSetContent() |
There was a problem hiding this comment.
I still think we should call this CollectionContent (see #13838 (comment))
3bcf28e to
024c5cf
Compare
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
MathiasVP
left a comment
There was a problem hiding this comment.
LGTM once we have a successful DCA run!
geoffw0
left a comment
There was a problem hiding this comment.
This looks great, and I could use the readStep fix in two of my open PRs and CollectionContent in one, so the sooner we merge this the better!
|
DCA LGTM. Merging. |
No description provided.