File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ruby/ql/lib/codeql/ruby/frameworks/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments