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

22 lines
689 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(BinaryExpr x) { toBeTested(x) and not x.isUnknown() }
query predicate getAttr(BinaryExpr x, int index, Attr getAttr) {
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
}
query predicate getLhs(BinaryExpr x, Expr getLhs) {
toBeTested(x) and not x.isUnknown() and getLhs = x.getLhs()
}
query predicate getOperatorName(BinaryExpr x, string getOperatorName) {
toBeTested(x) and not x.isUnknown() and getOperatorName = x.getOperatorName()
}
query predicate getRhs(BinaryExpr x, Expr getRhs) {
toBeTested(x) and not x.isUnknown() and getRhs = x.getRhs()
}