如何记录作为参数的闭包的参数

Ant*_*hko 5 markdown swift3

我试图记录一个函数的闭包参数:

/**
    sends the request out.

    - Parameter pzurl: request description including url, method, formdata.
 - Parameter responseProcessor: closure that's on success invokes
 - Parameter json: a json array or dictionary
 - Parameter timestamp: and the same `timestamp` that this function returns
 - parameter failure: closure is invoked when json could not be parsed or remote indicated failure
 - Returns: timestamp to identify responses
 */
internal static func processPZURL(pzurl: PZURL,
                                  responseProcessor:@escaping (_ json:JSON, _ timestamp: TimeInterval) -> (), failure:@escaping (PZError) -> ()) -> TimeInterval {
Run Code Online (Sandbox Code Playgroud)

产生“无描述”

我找不到关于如何改变它的描述

在此处输入图片说明

没有帮助的Apple 标记文档这里

更多来自 NSHipster 的文档没有解决关闭问题

Ant*_*hko 3

显然,自 2017 年 1 月以来,这个问题就被破坏了(或者从未在任何 xcode 中工作过):

https://bugs.swift.org/browse/SR-3693所以我的问题似乎是如何在 Swift 3 中记录函数闭包参数的参数 的最新版本 ?

除了该问题的答案在 xcode 9.2 中不起作用

向苹果提交 35881586