mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Prevent Ruby join order regression
This commit is contained in:
@@ -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))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user