File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
rust/ql/lib/codeql/rust/controlflow/internal Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,18 @@ class TypeReprTree extends LeafTree instanceof TypeRepr { }
204
204
* `LetExpr`s.
205
205
*/
206
206
module ExprTrees {
207
- class ArrayExprTree extends StandardPostOrderTree , ArrayExpr {
207
+ class ArrayListExprTree extends StandardPostOrderTree , ArrayListExpr {
208
208
override AstNode getChildNode ( int i ) { result = this .getExpr ( i ) }
209
209
}
210
210
211
+ class ArrayRepeatExprTree extends StandardPostOrderTree , ArrayRepeatExpr {
212
+ override AstNode getChildNode ( int i ) {
213
+ i = 0 and result = this .getRepeatOperand ( )
214
+ or
215
+ i = 1 and result = this .getRepeatLength ( )
216
+ }
217
+ }
218
+
211
219
class AsmExprTree extends LeafTree instanceof AsmExpr { }
212
220
213
221
class AwaitExprTree extends StandardPostOrderTree instanceof AwaitExpr {
You can’t perform that action at this time.
0 commit comments