func applyFunctionSuffixTemplate()

in Sources/MockoloFramework/Utils/FunctionSuffixTemplate.swift [20:29]


func applyFunctionSuffixTemplate(isAsync: Bool, throwing: ThrowingKind) -> String {
    var keywords = [String]()
    if isAsync {
        keywords.append(.async)
    }
    if let throwing = throwing.applyThrowingTemplate() {
        keywords.append(throwing)
    }
    return keywords.map { "\($0) " }.joined()
}