Files
codeql/rust/ql/test/extractor-tests/generated/Path/Path.ql
2024-10-31 14:19:15 +01:00

20 lines
740 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
from
Path x, string hasResolvedPath, string hasResolvedCrateOrigin, string hasQualifier, string hasPart
where
toBeTested(x) and
not x.isUnknown() and
(if x.hasResolvedPath() then hasResolvedPath = "yes" else hasResolvedPath = "no") and
(
if x.hasResolvedCrateOrigin()
then hasResolvedCrateOrigin = "yes"
else hasResolvedCrateOrigin = "no"
) and
(if x.hasQualifier() then hasQualifier = "yes" else hasQualifier = "no") and
if x.hasPart() then hasPart = "yes" else hasPart = "no"
select x, "hasResolvedPath:", hasResolvedPath, "hasResolvedCrateOrigin:", hasResolvedCrateOrigin,
"hasQualifier:", hasQualifier, "hasPart:", hasPart