mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
19 lines
795 B
Plaintext
Generated
19 lines
795 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from
|
|
SelfParam x, int getNumberOfAttrs, string hasTypeRepr, string isRef, string isMut,
|
|
string hasLifetime, string hasName
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() and
|
|
(if x.hasTypeRepr() then hasTypeRepr = "yes" else hasTypeRepr = "no") and
|
|
(if x.isRef() then isRef = "yes" else isRef = "no") and
|
|
(if x.isMut() then isMut = "yes" else isMut = "no") and
|
|
(if x.hasLifetime() then hasLifetime = "yes" else hasLifetime = "no") and
|
|
if x.hasName() then hasName = "yes" else hasName = "no"
|
|
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasTypeRepr:", hasTypeRepr, "isRef:", isRef,
|
|
"isMut:", isMut, "hasLifetime:", hasLifetime, "hasName:", hasName
|