mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
454 B
Plaintext
Generated
15 lines
454 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(ConstBlockPat x, string isConst__label, string isConst) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
isConst__label = "isConst:" and
|
|
if x.isConst() then isConst = "yes" else isConst = "no"
|
|
}
|
|
|
|
query predicate getBlockExpr(ConstBlockPat x, BlockExpr getBlockExpr) {
|
|
toBeTested(x) and not x.isUnknown() and getBlockExpr = x.getBlockExpr()
|
|
}
|