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

13 lines
491 B
Plaintext
Generated

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