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

48 lines
1.7 KiB
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(Union x) { toBeTested(x) and not x.isUnknown() }
query predicate getExtendedCanonicalPath(Union x, string getExtendedCanonicalPath) {
toBeTested(x) and not x.isUnknown() and getExtendedCanonicalPath = x.getExtendedCanonicalPath()
}
query predicate getCrateOrigin(Union x, string getCrateOrigin) {
toBeTested(x) and not x.isUnknown() and getCrateOrigin = x.getCrateOrigin()
}
query predicate getAttributeMacroExpansion(Union x, MacroItems getAttributeMacroExpansion) {
toBeTested(x) and
not x.isUnknown() and
getAttributeMacroExpansion = x.getAttributeMacroExpansion()
}
query predicate getDeriveMacroExpansion(Union x, int index, MacroItems getDeriveMacroExpansion) {
toBeTested(x) and not x.isUnknown() and getDeriveMacroExpansion = x.getDeriveMacroExpansion(index)
}
query predicate getAttr(Union x, int index, Attr getAttr) {
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
}
query predicate getGenericParamList(Union x, GenericParamList getGenericParamList) {
toBeTested(x) and not x.isUnknown() and getGenericParamList = x.getGenericParamList()
}
query predicate getName(Union x, Name getName) {
toBeTested(x) and not x.isUnknown() and getName = x.getName()
}
query predicate getStructFieldList(Union x, StructFieldList getStructFieldList) {
toBeTested(x) and not x.isUnknown() and getStructFieldList = x.getStructFieldList()
}
query predicate getVisibility(Union x, Visibility getVisibility) {
toBeTested(x) and not x.isUnknown() and getVisibility = x.getVisibility()
}
query predicate getWhereClause(Union x, WhereClause getWhereClause) {
toBeTested(x) and not x.isUnknown() and getWhereClause = x.getWhereClause()
}