mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: fix ArrayRepeatExpr control flow
This commit is contained in:
@@ -204,10 +204,18 @@ class TypeReprTree extends LeafTree instanceof TypeRepr { }
|
||||
* `LetExpr`s.
|
||||
*/
|
||||
module ExprTrees {
|
||||
class ArrayExprTree extends StandardPostOrderTree, ArrayExpr {
|
||||
class ArrayListExprTree extends StandardPostOrderTree, ArrayListExpr {
|
||||
override AstNode getChildNode(int i) { result = this.getExpr(i) }
|
||||
}
|
||||
|
||||
class ArrayRepeatExprTree extends StandardPostOrderTree, ArrayRepeatExpr {
|
||||
override AstNode getChildNode(int i) {
|
||||
i = 0 and result = this.getRepeatOperand()
|
||||
or
|
||||
i = 1 and result = this.getRepeatLength()
|
||||
}
|
||||
}
|
||||
|
||||
class AsmExprTree extends LeafTree instanceof AsmExpr { }
|
||||
|
||||
class AwaitExprTree extends StandardPostOrderTree instanceof AwaitExpr {
|
||||
|
||||
Reference in New Issue
Block a user