mirror of
https://github.com/github/codeql.git
synced 2026-03-04 22:56:47 +01:00
15 lines
564 B
Plaintext
Generated
15 lines
564 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from MatchArm x, int getNumberOfAttrs, string hasExpr, string hasGuard, string hasPat
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() and
|
|
(if x.hasExpr() then hasExpr = "yes" else hasExpr = "no") and
|
|
(if x.hasGuard() then hasGuard = "yes" else hasGuard = "no") and
|
|
if x.hasPat() then hasPat = "yes" else hasPat = "no"
|
|
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasExpr:", hasExpr, "hasGuard:", hasGuard,
|
|
"hasPat:", hasPat
|