Files
codeql/rust/ql/test/extractor-tests/generated/WhileExpr/WhileExpr.ql
Arthur Baars db06ad2ac3 Rust: codegen
2024-09-20 15:51:03 +02:00

15 lines
625 B
Plaintext
Generated

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