Files
codeql/rust/ql/test/extractor-tests/generated/RangeExpr/RangeExpr.ql
Arthur Baars a9423f4bdb Rust: codegen
2024-09-20 15:50:59 +02:00

15 lines
613 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
from RangeExpr x, int getNumberOfAttrs, string hasEnd, string hasOperatorName, string hasStart
where
toBeTested(x) and
not x.isUnknown() and
getNumberOfAttrs = x.getNumberOfAttrs() and
(if x.hasEnd() then hasEnd = "yes" else hasEnd = "no") and
(if x.hasOperatorName() then hasOperatorName = "yes" else hasOperatorName = "no") and
if x.hasStart() then hasStart = "yes" else hasStart = "no"
select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasEnd:", hasEnd, "hasOperatorName:",
hasOperatorName, "hasStart:", hasStart