SKGenericSwiftDocs
open class SKGenericSwiftDocs<Substructure> : SKGenericResponse<Substructure> where Substructure : SKBaseSubstructure
Represents a generic SourceKitten Swift Documentation request for a Swift file.
-
The file that documentation was requested for.
Declaration
Swift
public let file: File
-
Creates a new synchronous SourceKitten Swift Documentation 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(file: File, compilerArguments: [String]) throws
Parameters
file
The source file to gather documentation for.
compilerArguments
The compiler arguments used to build the module (e.g
["-sdk", "/path/to/sdk"]
). -
Creates a new synchronous SourceKitten Swift Documentation 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 convenience init(filePath: String, compilerArguments: [String]) throws
Parameters
filePath
The absolute file path to the source file to gather documentation for.
compilerArguments
The compiler arguments used to build the module (e.g
["-sdk", "/path/to/sdk"]
). -
Creates a new synchronous SourceKitten Swift Documentation request.
Warning
The request is sent synchronously, so ensure this initializer is not called on the main thread.
Declaration
Swift
public convenience init(filePath: String, module: SKModule) throws
Parameters
filePath
The absolute file path to the source file to gather documentation for.
module
The module that contains the source file.
-
Creates a new synchronous SourceKitten Swift Documentation 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 convenience init(file: File, module: SKModule) throws
Parameters
file
The source file to gather documentation for.
module
The module that contains the source file.
-
Undocumented
Declaration
Swift
public required init(from decoder: Decoder) throws