Merge pull request #10491 from hvitved/ruby/fix-bad-join

Ruby: Fix bad join-order
This commit is contained in:
Tom Hvitved
2022-09-21 11:13:09 +02:00
committed by GitHub

View File

@@ -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)