mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Merge pull request #10491 from hvitved/ruby/fix-bad-join
Ruby: Fix bad join-order
This commit is contained in:
@@ -519,9 +519,9 @@ module ExposedForTestingOnly {
|
||||
private TMethodOrExpr lookupMethodOrConst0(Module m, string name) {
|
||||
result = lookupMethodOrConst0(m.getAPrependedModule(), name)
|
||||
or
|
||||
not exists(getMethodOrConst(getAncestors(m.getAPrependedModule()), name)) and
|
||||
not exists(getMethodOrConst(getAncestors(m.getAPrependedModule()), pragma[only_bind_into](name))) and
|
||||
(
|
||||
result = getMethodOrConst(m, name)
|
||||
result = getMethodOrConst(m, pragma[only_bind_into](name))
|
||||
or
|
||||
not exists(getMethodOrConst(m, name)) and
|
||||
result = lookupMethodOrConst0(m.getAnIncludedModule(), name)
|
||||
|
||||
Reference in New Issue
Block a user