Files
codeql/swift/ql/test/extractor-tests/generated/decl/NamedFunction/NamedFunction.ql
Nora Dimitrijević 91a151ec2a Swift: update tests
2023-04-26 15:47:20 +02:00

25 lines
1.2 KiB
Plaintext
Generated

// generated by codegen/codegen.py
import codeql.swift.elements
import TestUtils
from
NamedFunction x, string hasName, string hasSelfParam, int getNumberOfParams, string hasBody,
int getNumberOfCaptures, int getNumberOfGenericTypeParams, ModuleDecl getModule,
int getNumberOfMembers, Type getInterfaceType
where
toBeTested(x) and
not x.isUnknown() and
(if x.hasName() then hasName = "yes" else hasName = "no") and
(if x.hasSelfParam() then hasSelfParam = "yes" else hasSelfParam = "no") and
getNumberOfParams = x.getNumberOfParams() and
(if x.hasBody() then hasBody = "yes" else hasBody = "no") and
getNumberOfCaptures = x.getNumberOfCaptures() and
getNumberOfGenericTypeParams = x.getNumberOfGenericTypeParams() and
getModule = x.getModule() and
getNumberOfMembers = x.getNumberOfMembers() and
getInterfaceType = x.getInterfaceType()
select x, "hasName:", hasName, "hasSelfParam:", hasSelfParam, "getNumberOfParams:",
getNumberOfParams, "hasBody:", hasBody, "getNumberOfCaptures:", getNumberOfCaptures,
"getNumberOfGenericTypeParams:", getNumberOfGenericTypeParams, "getModule:", getModule,
"getNumberOfMembers:", getNumberOfMembers, "getInterfaceType:", getInterfaceType