Files
codeql/rust/ql/test/extractor-tests/generated/WhileExpr/WhileExpr.ql
2024-11-20 16:21:23 +01:00

15 lines
625 B
Plaintext
Generated

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