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

15 lines
592 B
Plaintext
Generated

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