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.
1 parent 5de8934 commit 93678e5Copy full SHA for 93678e5
ruby/ql/lib/codeql/ruby/ast/internal/Call.qll
@@ -121,13 +121,15 @@ private Ruby::AstNode getSuperParent(Ruby::Super sup) {
121
result = sup
122
or
123
result = getSuperParent(sup).getParent() and
124
- not result instanceof Ruby::Method
+ not result instanceof Ruby::Method and
125
+ not result instanceof Ruby::SingletonMethod
126
}
127
128
private string getSuperMethodName(Ruby::Super sup) {
- exists(Ruby::Method meth |
129
- meth = getSuperParent(sup).getParent() and
+ exists(Ruby::AstNode meth | meth = getSuperParent(sup).getParent() |
130
result = any(Method c | toGenerated(c) = meth).getName()
131
+ or
132
+ result = any(SingletonMethod c | toGenerated(c) = meth).getName()
133
)
134
135
0 commit comments