mirror of
https://github.com/github/codeql.git
synced 2026-02-16 23:13:43 +01:00
14 lines
542 B
Plaintext
Generated
14 lines
542 B
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from MatchExpr x, int getNumberOfAttrs, string hasScrutinee, string hasMatchArmList
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() and
|
|
(if x.hasScrutinee() then hasScrutinee = "yes" else hasScrutinee = "no") and
|
|
if x.hasMatchArmList() then hasMatchArmList = "yes" else hasMatchArmList = "no"
|
|
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasScrutinee:", hasScrutinee, "hasMatchArmList:",
|
|
hasMatchArmList
|