We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Hash#keys
1 parent e895f96 commit 187a68bCopy full SHA for 187a68b
ruby/ql/lib/codeql/ruby/frameworks/core/Hash.qll
@@ -523,3 +523,13 @@ private class ValuesSummary extends SimpleSummarizedCallable {
523
preservesValue = true
524
}
525
526
+
527
+private class KeysSummary extends SimpleSummarizedCallable {
528
+ KeysSummary() { this = "keys" }
529
530
+ override predicate propagatesFlow(string input, string output, boolean preservesValue) {
531
+ input = "Argument[self].Element[any]" and
532
+ output = "ReturnValue.Element[?]" and
533
+ preservesValue = true
534
+ }
535
+}
0 commit comments