Files
codeql/rust/ql/test/extractor-tests/generated/IfExpr/IfExpr.ql
2025-06-25 12:02:13 +02:00

22 lines
668 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(IfExpr x) { toBeTested(x) and not x.isUnknown() }
query predicate getAttr(IfExpr x, int index, Attr getAttr) {
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
}
query predicate getCondition(IfExpr x, Expr getCondition) {
toBeTested(x) and not x.isUnknown() and getCondition = x.getCondition()
}
query predicate getElse(IfExpr x, Expr getElse) {
toBeTested(x) and not x.isUnknown() and getElse = x.getElse()
}
query predicate getThen(IfExpr x, BlockExpr getThen) {
toBeTested(x) and not x.isUnknown() and getThen = x.getThen()
}