Files
codeql/rust/ql/test/extractor-tests/generated/ConstParam/ConstParam.ql
2024-12-03 11:17:08 +01:00

18 lines
731 B
Plaintext
Generated

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