-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rust: Change array element content type into a general collection element content type #18568
Conversation
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.
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more
*/ | ||
final class ArrayElementContent extends Content, TArrayElement { | ||
ArrayElementContent() { this = TArrayElement() } | ||
final class CollectionContent extends Content, TArrayElement { |
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.
TArrayElement
should be renamed to TElementContent
as well. This will also reveal that the MaD token "ArrayElement"
needs to be changed in FlowSummaryImpl.qll
. And once that is done, the QL doc in ModelsAsData.qll
needs to be updated, as well as a few tests.
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.
LGTM. I have a local branch that is waiting for this, thanks for getting it done!
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.
One last thing, otherwise LGTM.
This new
CollectionContent
is similar to the same content type in C/C++ and Swift.