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 {
42
42
* Gets a call to the method `name` invoked on the `Hash` object
43
43
* (not on a hash instance).
44
44
*/
45
- MethodCall getAStaticHashCall ( string name ) {
45
+ private MethodCall getAStaticHashCall ( string name ) {
46
46
result .getMethodName ( ) = name and
47
47
resolveConstantReadAccess ( result .getReceiver ( ) ) = TResolved ( "Hash" )
48
48
}
@@ -72,7 +72,7 @@ module Hash {
72
72
73
73
/** Holds if `literal` is a call to `Hash.[]` and `argument` is one of its arguments. */
74
74
private predicate hashLiteralStore ( DataFlow:: CallNode literal , DataFlow:: Node argument ) {
75
- literal .getExprNode ( ) .getExpr ( ) = Hash :: getAStaticHashCall ( "[]" ) and
75
+ literal .getExprNode ( ) .getExpr ( ) = getAStaticHashCall ( "[]" ) and
76
76
argument = literal .getArgument ( _)
77
77
}
78
78
You can’t perform that action at this time.
0 commit comments