Skip to content

Commit 4c19d2d

Browse files
committed
Ruby: make getAStaticHashCall private again
1 parent 9485940 commit 4c19d2d

File tree

1 file changed

+2
-2
lines changed
  • ruby/ql/lib/codeql/ruby/frameworks/core

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/frameworks/core/Hash.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module Hash {
4242
* Gets a call to the method `name` invoked on the `Hash` object
4343
* (not on a hash instance).
4444
*/
45-
MethodCall getAStaticHashCall(string name) {
45+
private MethodCall getAStaticHashCall(string name) {
4646
result.getMethodName() = name and
4747
resolveConstantReadAccess(result.getReceiver()) = TResolved("Hash")
4848
}
@@ -72,7 +72,7 @@ module Hash {
7272

7373
/** Holds if `literal` is a call to `Hash.[]` and `argument` is one of its arguments. */
7474
private predicate hashLiteralStore(DataFlow::CallNode literal, DataFlow::Node argument) {
75-
literal.getExprNode().getExpr() = Hash::getAStaticHashCall("[]") and
75+
literal.getExprNode().getExpr() = getAStaticHashCall("[]") and
7676
argument = literal.getArgument(_)
7777
}
7878

0 commit comments

Comments
 (0)