Files
codeql/rust/ql/test/extractor-tests/generated/ClosureExpr/ClosureExpr.ql
2024-09-16 13:39:55 +02:00

18 lines
640 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
from
ClosureExpr x, int getNumberOfArgs, string hasRetType, Expr getBody, string getClosureKind,
string isMove
where
toBeTested(x) and
not x.isUnknown() and
getNumberOfArgs = x.getNumberOfArgs() and
(if x.hasRetType() then hasRetType = "yes" else hasRetType = "no") and
getBody = x.getBody() and
getClosureKind = x.getClosureKind() and
if x.isMove() then isMove = "yes" else isMove = "no"
select x, "getNumberOfArgs:", getNumberOfArgs, "hasRetType:", hasRetType, "getBody:", getBody,
"getClosureKind:", getClosureKind, "isMove:", isMove