mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Rust: Rename classes with Record to Struct
This commit is contained in:
12
rust/ql/test/extractor-tests/generated/StructPatField/StructPatField.ql
generated
Normal file
12
rust/ql/test/extractor-tests/generated/StructPatField/StructPatField.ql
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
// generated by codegen, do not edit
|
||||
import codeql.rust.elements
|
||||
import TestUtils
|
||||
|
||||
from StructPatField x, int getNumberOfAttrs, string hasNameRef, string hasPat
|
||||
where
|
||||
toBeTested(x) and
|
||||
not x.isUnknown() and
|
||||
getNumberOfAttrs = x.getNumberOfAttrs() and
|
||||
(if x.hasNameRef() then hasNameRef = "yes" else hasNameRef = "no") and
|
||||
if x.hasPat() then hasPat = "yes" else hasPat = "no"
|
||||
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasNameRef:", hasNameRef, "hasPat:", hasPat
|
||||
Reference in New Issue
Block a user