-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Ruby: Active support enumerable #11339
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
7c005ac
to
f1371f1
Compare
exists(string s, int i | | ||
s = getKeyArgument(mc, i) and | ||
input = "Argument[self].Element[0].Element[" + s + "!]" and | ||
output = "ReturnValue.Element[" + i + "!]" |
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.
The !
is not needed here.
override MethodCall getACall() { result = mc } | ||
|
||
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) { | ||
input = "Argument[self].Element[0].Element[" + key + "!]" and |
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.
I don't think we want the !
here.
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) { | ||
exists(string s, int i | | ||
s = getKeyArgument(mc, i) and | ||
input = "Argument[self].Element[0].Element[" + s + "!]" and |
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.
I don't think we want the !
here.
override MethodCall getACall() { result = mc } | ||
|
||
override predicate propagatesFlowExt(string input, string output, boolean preservesValue) { | ||
input = "Argument[self].Element[any].Element[" + key + "!]" and |
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.
Same
input = "Argument[self].Element[any].Element[" + s + "!]" and | ||
output = "ReturnValue.Element[?].Element[" + i + "!]" |
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.
Same
265c045
to
6103c57
Compare
No description provided.