Merge pull request #12891 from kaspersv/kaspersv/prevent-ruby-join-regression2

Prevent Ruby join order regression
This commit is contained in:
Kasper Svendsen
2023-04-24 13:27:33 +02:00
committed by GitHub

View File

@@ -1211,12 +1211,11 @@ private module HashLiteralDesugar {
child = SynthChild(MethodCallKind("[]", false, hl.getNumberOfElements()))
or
parent = TMethodCallSynth(hl, -1, _, _, _) and
(
i = 0 and
child = SynthChild(ConstantReadAccessKind("::Hash"))
or
child = childRef(hl.getElement(i - 1))
)
i = 0 and
child = SynthChild(ConstantReadAccessKind("::Hash"))
or
parent = TMethodCallSynth(hl, -1, _, _, _) and
child = childRef(hl.getElement(i - 1))
)
}