mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
673 B
Plaintext
Generated
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()
|
|
}
|