mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
This splits the `ArrayExpr` class into `ArrayListExpr` and `ArrayRepeatExpr`. This uses the `synth.from_class` machinery to integrate seamlessly into the generated code, by hiding the extracted `ArrayExpr` behind an internal class and replacing it with a hierarchy of those two classes under a new `ArrayExpr` class.
14 lines
481 B
Plaintext
Generated
14 lines
481 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from ArrayRepeatExpr x, int getNumberOfExprs, Expr getRepeatOperand, Expr getRepeatLength
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getNumberOfExprs = x.getNumberOfExprs() and
|
|
getRepeatOperand = x.getRepeatOperand() and
|
|
getRepeatLength = x.getRepeatLength()
|
|
select x, "getNumberOfExprs:", getNumberOfExprs, "getRepeatOperand:", getRepeatOperand,
|
|
"getRepeatLength:", getRepeatLength
|