mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
15 lines
592 B
Plaintext
Generated
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
|