Skip to content

SourceKit

rockbruno edited this page May 9, 2020 · 1 revision

SourceKit

A wrapper for accessing the API of a sourcekitd library loaded via dlopen.

open class SourceKit

Initializers

init()

public init()

init(path:)

public init(path: String)

Properties

path

The path to the sourcekitd dylib.

let path: String

dylib

The handle to the dylib.

let dylib: DLHandle!

api

The sourcekitd API functions.

let api: sourcekitd_functions_t!

keys

Convenience for accessing known keys.

let keys: sourcekitd_keys!

requests

Convenience for accessing known keys.

let requests: sourcekitd_requests!

values

Convenience for accessing known keys.

let values: sourcekitd_values!

Methods

sendSync(_:)

Send the given request and synchronously receive a reply dictionary (or error).

public func sendSync(_ req: SKRequestDictionary) -> SKResult<SKResponseDictionary>
Clone this wiki locally