Files
codeql/rust/ql/test/extractor-tests/generated/ConstBlockPat/ConstBlockPat.ql
2024-10-10 14:25:06 +02:00

12 lines
389 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
from ConstBlockPat x, string hasBlockExpr, string isConst
where
toBeTested(x) and
not x.isUnknown() and
(if x.hasBlockExpr() then hasBlockExpr = "yes" else hasBlockExpr = "no") and
if x.isConst() then isConst = "yes" else isConst = "no"
select x, "hasBlockExpr:", hasBlockExpr, "isConst:", isConst