mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
13 lines
480 B
Plaintext
Generated
13 lines
480 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from FieldExpr x, int getNumberOfAttrs, string hasExpr, string hasNameRef
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() and
|
|
(if x.hasExpr() then hasExpr = "yes" else hasExpr = "no") and
|
|
if x.hasNameRef() then hasNameRef = "yes" else hasNameRef = "no"
|
|
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasExpr:", hasExpr, "hasNameRef:", hasNameRef
|