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

23 lines
673 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(Meta x, string isUnsafe__label, string isUnsafe) {
toBeTested(x) and
not x.isUnknown() and
isUnsafe__label = "isUnsafe:" and
if x.isUnsafe() then isUnsafe = "yes" else isUnsafe = "no"
}
query predicate getExpr(Meta x, Expr getExpr) {
toBeTested(x) and not x.isUnknown() and getExpr = x.getExpr()
}
query predicate getPath(Meta x, Path getPath) {
toBeTested(x) and not x.isUnknown() and getPath = x.getPath()
}
query predicate getTokenTree(Meta x, TokenTree getTokenTree) {
toBeTested(x) and not x.isUnknown() and getTokenTree = x.getTokenTree()
}