Files
codeql/rust/ql/test/extractor-tests/generated/Path/PathSegment.ql
2024-12-17 14:07:44 +01:00

25 lines
1.2 KiB
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
from
PathSegment x, string hasGenericArgList, string hasNameRef, string hasParenthesizedArgList,
string hasPathType, string hasRetType, string hasReturnTypeSyntax, string hasTypeRepr
where
toBeTested(x) and
not x.isUnknown() and
(if x.hasGenericArgList() then hasGenericArgList = "yes" else hasGenericArgList = "no") and
(if x.hasNameRef() then hasNameRef = "yes" else hasNameRef = "no") and
(
if x.hasParenthesizedArgList()
then hasParenthesizedArgList = "yes"
else hasParenthesizedArgList = "no"
) and
(if x.hasPathType() then hasPathType = "yes" else hasPathType = "no") and
(if x.hasRetType() then hasRetType = "yes" else hasRetType = "no") and
(if x.hasReturnTypeSyntax() then hasReturnTypeSyntax = "yes" else hasReturnTypeSyntax = "no") and
if x.hasTypeRepr() then hasTypeRepr = "yes" else hasTypeRepr = "no"
select x, "hasGenericArgList:", hasGenericArgList, "hasNameRef:", hasNameRef,
"hasParenthesizedArgList:", hasParenthesizedArgList, "hasPathType:", hasPathType, "hasRetType:",
hasRetType, "hasReturnTypeSyntax:", hasReturnTypeSyntax, "hasTypeRepr:", hasTypeRepr