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

22 lines
704 B
Plaintext
Generated

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