mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
40 lines
1.4 KiB
Plaintext
Generated
40 lines
1.4 KiB
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(Struct x) { toBeTested(x) and not x.isUnknown() }
|
|
|
|
query predicate getAttributeMacroExpansion(Struct x, MacroItems getAttributeMacroExpansion) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getAttributeMacroExpansion = x.getAttributeMacroExpansion()
|
|
}
|
|
|
|
query predicate getDeriveMacroExpansion(Struct x, int index, MacroItems getDeriveMacroExpansion) {
|
|
toBeTested(x) and not x.isUnknown() and getDeriveMacroExpansion = x.getDeriveMacroExpansion(index)
|
|
}
|
|
|
|
query predicate getAttr(Struct x, int index, Attr getAttr) {
|
|
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
|
|
}
|
|
|
|
query predicate getFieldList(Struct x, FieldList getFieldList) {
|
|
toBeTested(x) and not x.isUnknown() and getFieldList = x.getFieldList()
|
|
}
|
|
|
|
query predicate getGenericParamList(Struct x, GenericParamList getGenericParamList) {
|
|
toBeTested(x) and not x.isUnknown() and getGenericParamList = x.getGenericParamList()
|
|
}
|
|
|
|
query predicate getName(Struct x, Name getName) {
|
|
toBeTested(x) and not x.isUnknown() and getName = x.getName()
|
|
}
|
|
|
|
query predicate getVisibility(Struct x, Visibility getVisibility) {
|
|
toBeTested(x) and not x.isUnknown() and getVisibility = x.getVisibility()
|
|
}
|
|
|
|
query predicate getWhereClause(Struct x, WhereClause getWhereClause) {
|
|
toBeTested(x) and not x.isUnknown() and getWhereClause = x.getWhereClause()
|
|
}
|