mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Ruby: use getAnAncestor
This commit is contained in:
@@ -124,14 +124,8 @@ module Filters {
|
||||
*/
|
||||
Callable getFilterCallable(string name) {
|
||||
result.(MethodBase).getName() = name and
|
||||
// Method in same class
|
||||
(
|
||||
result.getEnclosingModule() = this.getExpr().getEnclosingModule()
|
||||
or
|
||||
// Method in superclass
|
||||
result.getEnclosingModule().getModule() =
|
||||
this.getExpr().getEnclosingModule().getModule().getSuperClass()
|
||||
)
|
||||
result.getEnclosingModule().getModule() =
|
||||
this.getExpr().getEnclosingModule().getModule().getAnAncestor()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user