SKYAMLRequest
open class SKYAMLRequest<Response> where Response : Decodable
Represents a SourceKit YAML request.
-
The response from the SourceKit YAML request.
Declaration
Swift
public let response: Response
-
Creates a new synchronous SourceKit code completion request.
Warning
The request is sent synchronously, so ensure this initializer is not called on the main thread.
Throws
A
SKError
, if an error occurs.Declaration
Swift
public init(yaml: String) throws
Parameters
yaml
The SourceKit request in YAML representation.