Files
codeql/rust/ql/test/extractor-tests/generated/BlockExpr/BlockExpr.ql
Arthur Baars a9423f4bdb Rust: codegen
2024-09-20 15:50:59 +02:00

13 lines
492 B
Plaintext
Generated

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