mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
48 lines
1.7 KiB
Plaintext
Generated
48 lines
1.7 KiB
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(Enum x) { toBeTested(x) and not x.isUnknown() }
|
|
|
|
query predicate getExtendedCanonicalPath(Enum x, string getExtendedCanonicalPath) {
|
|
toBeTested(x) and not x.isUnknown() and getExtendedCanonicalPath = x.getExtendedCanonicalPath()
|
|
}
|
|
|
|
query predicate getCrateOrigin(Enum x, string getCrateOrigin) {
|
|
toBeTested(x) and not x.isUnknown() and getCrateOrigin = x.getCrateOrigin()
|
|
}
|
|
|
|
query predicate getAttributeMacroExpansion(Enum x, MacroItems getAttributeMacroExpansion) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getAttributeMacroExpansion = x.getAttributeMacroExpansion()
|
|
}
|
|
|
|
query predicate getDeriveMacroExpansion(Enum x, int index, MacroItems getDeriveMacroExpansion) {
|
|
toBeTested(x) and not x.isUnknown() and getDeriveMacroExpansion = x.getDeriveMacroExpansion(index)
|
|
}
|
|
|
|
query predicate getAttr(Enum x, int index, Attr getAttr) {
|
|
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
|
|
}
|
|
|
|
query predicate getGenericParamList(Enum x, GenericParamList getGenericParamList) {
|
|
toBeTested(x) and not x.isUnknown() and getGenericParamList = x.getGenericParamList()
|
|
}
|
|
|
|
query predicate getName(Enum x, Name getName) {
|
|
toBeTested(x) and not x.isUnknown() and getName = x.getName()
|
|
}
|
|
|
|
query predicate getVariantList(Enum x, VariantList getVariantList) {
|
|
toBeTested(x) and not x.isUnknown() and getVariantList = x.getVariantList()
|
|
}
|
|
|
|
query predicate getVisibility(Enum x, Visibility getVisibility) {
|
|
toBeTested(x) and not x.isUnknown() and getVisibility = x.getVisibility()
|
|
}
|
|
|
|
query predicate getWhereClause(Enum x, WhereClause getWhereClause) {
|
|
toBeTested(x) and not x.isUnknown() and getWhereClause = x.getWhereClause()
|
|
}
|