mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
25 lines
1.1 KiB
Plaintext
Generated
25 lines
1.1 KiB
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from
|
|
MethodCallExpr x, string hasArgList, int getNumberOfAttrs, string hasResolvedPath,
|
|
string hasResolvedCrateOrigin, string hasGenericArgList, string hasIdentifier, string hasReceiver
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
(if x.hasArgList() then hasArgList = "yes" else hasArgList = "no") and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() and
|
|
(if x.hasResolvedPath() then hasResolvedPath = "yes" else hasResolvedPath = "no") and
|
|
(
|
|
if x.hasResolvedCrateOrigin()
|
|
then hasResolvedCrateOrigin = "yes"
|
|
else hasResolvedCrateOrigin = "no"
|
|
) and
|
|
(if x.hasGenericArgList() then hasGenericArgList = "yes" else hasGenericArgList = "no") and
|
|
(if x.hasIdentifier() then hasIdentifier = "yes" else hasIdentifier = "no") and
|
|
if x.hasReceiver() then hasReceiver = "yes" else hasReceiver = "no"
|
|
select x, "hasArgList:", hasArgList, "getNumberOfAttrs:", getNumberOfAttrs, "hasResolvedPath:",
|
|
hasResolvedPath, "hasResolvedCrateOrigin:", hasResolvedCrateOrigin, "hasGenericArgList:",
|
|
hasGenericArgList, "hasIdentifier:", hasIdentifier, "hasReceiver:", hasReceiver
|