mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Merge pull request #12875 from kaspersv/kaspersv/prevent-ruby-join-order-regression
Prevent Ruby join order regression
This commit is contained in:
@@ -1169,12 +1169,11 @@ private module ArrayLiteralDesugar {
|
||||
child = SynthChild(MethodCallKind("[]", false, al.getNumberOfElements()))
|
||||
or
|
||||
parent = TMethodCallSynth(al, -1, _, _, _) and
|
||||
(
|
||||
i = 0 and
|
||||
child = SynthChild(ConstantReadAccessKind("::Array"))
|
||||
or
|
||||
child = childRef(al.getElement(i - 1))
|
||||
)
|
||||
i = 0 and
|
||||
child = SynthChild(ConstantReadAccessKind("::Array"))
|
||||
or
|
||||
parent = TMethodCallSynth(al, -1, _, _, _) and
|
||||
child = childRef(al.getElement(i - 1))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user