Files
codeql/rust/ql/test/extractor-tests/generated/Variant/Variant.ql
Geoffrey White 152ae1d29b Rust: Codegen.
2025-08-27 10:42:42 +01:00

26 lines
853 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(Variant x) { toBeTested(x) and not x.isUnknown() }
query predicate getAttr(Variant x, int index, Attr getAttr) {
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
}
query predicate getDiscriminant(Variant x, Expr getDiscriminant) {
toBeTested(x) and not x.isUnknown() and getDiscriminant = x.getDiscriminant()
}
query predicate getFieldList(Variant x, FieldList getFieldList) {
toBeTested(x) and not x.isUnknown() and getFieldList = x.getFieldList()
}
query predicate getName(Variant x, Name getName) {
toBeTested(x) and not x.isUnknown() and getName = x.getName()
}
query predicate getVisibility(Variant x, Visibility getVisibility) {
toBeTested(x) and not x.isUnknown() and getVisibility = x.getVisibility()
}