in Sources/MockoloFramework/Parsers/SwiftSyntaxExtensions.swift [415:440]
func model(with acl: String, declType: DeclType, funcsWithArgsHistory: [String]?, customModifiers: [String : Modifier]?, processed: Bool) -> Model {
let isStatic = self.modifiers.isStatic
let params = self.signature.parameterClause.parameters.compactMap { $0.model(inInit: false, declType: declType) }
let genericTypeParams = self.genericParameterClause?.parameters.compactMap { $0.model(inInit: false) } ?? []
let genericWhereClause = self.genericWhereClause?.description
let funcmodel = MethodModel(name: self.name.description,
typeName: self.signature.returnClause?.type.description ?? "",
kind: .funcKind,
encloserType: declType,
acl: acl,
genericTypeParams: genericTypeParams,
genericWhereClause: genericWhereClause,
params: params,
throwsOrRethrows: self.signature.effectSpecifiers?.throwsSpecifier?.text,
asyncOrReasync: self.signature.effectSpecifiers?.asyncSpecifier?.text,
isStatic: isStatic,
offset: self.offset,
length: self.length,
funcsWithArgsHistory: funcsWithArgsHistory ?? [],
customModifiers: customModifiers ?? [:],
modelDescription: self.description,
processed: processed)
return funcmodel
}