mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
17 lines
668 B
Plaintext
Generated
17 lines
668 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from
|
|
SelfParam x, int getNumberOfAttrs, string isMut, string hasLifetime, string hasName, string hasTy
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() 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") and
|
|
if x.hasTy() then hasTy = "yes" else hasTy = "no"
|
|
select x, "getNumberOfAttrs:", getNumberOfAttrs, "isMut:", isMut, "hasLifetime:", hasLifetime,
|
|
"hasName:", hasName, "hasTy:", hasTy
|