mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
18 lines
746 B
Plaintext
Generated
18 lines
746 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from
|
|
LetStmt x, int getNumberOfAttrs, string hasInitializer, string hasLetElse, string hasPat,
|
|
string hasTypeRepr
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() and
|
|
(if x.hasInitializer() then hasInitializer = "yes" else hasInitializer = "no") and
|
|
(if x.hasLetElse() then hasLetElse = "yes" else hasLetElse = "no") and
|
|
(if x.hasPat() then hasPat = "yes" else hasPat = "no") and
|
|
if x.hasTypeRepr() then hasTypeRepr = "yes" else hasTypeRepr = "no"
|
|
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasInitializer:", hasInitializer, "hasLetElse:",
|
|
hasLetElse, "hasPat:", hasPat, "hasTypeRepr:", hasTypeRepr
|