mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
26 lines
853 B
Plaintext
Generated
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()
|
|
}
|