mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
18 lines
731 B
Plaintext
Generated
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
|