-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Ruby: Model some ActiveSupport methods #10700
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
Conversation
dadee98 to
62cb31a
Compare
| } | ||
|
|
||
| /** | ||
| * Extensions to the `Hash` class. |
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.
| * Extensions to the `Hash` class. | |
| * Extensions to the `Hash` class. |
| result = DataFlow::Content::getKnownElementIndex(mc.getArgument(i)).serialize() | ||
| } | ||
|
|
||
| private class ExtractSummary extends SummarizedCallable { |
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.
This summary is sufficiently complicated that I can't quite follow what it's doing. Could you add a comment, perhaps with an example call to extract! and then an explanation of the flow step we're adding?
alexrford
left a comment
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.
Looks great 👍
|
CI seems to have got stuck for some reason. I'll rebase this PR in the hope that unsticks it. |
The type-tracking flow tests document the difference in sensitivity between type-tracking and dataflow, so failures in that test are expected.
This is already tested in hash-flow.
|
@alexrford could a get a 👍 on this again when you have a chance? CI has fixed itself now. |
alexrford
left a comment
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.
👍
Model many ActiveSupport extensions to
String,HashandObject.