Classes
The following classes are available globally.
-
Thread-safe value wrapper, using dispatch queues to achieve synchronization.
Note
This class is not KVO-compliant. If you need this, please use subclasses of
DispatchedValue
.See also
DispatchedValueWrapper
Declaration
Swift
public class DispatchedValue<T> : DispatchedValueWrapper
-
Represents a structure of symbols (a class has its methods as sub-entities, etc.).
This includes the function parameters and their types as entities. Each entity refers to the range of the original text via
See moreoffset + length
entries.Declaration
Swift
open class SKBaseEntity : NSObject, SKSequence
-
Represents the default entity returned by SourceKit doc info requests.
See moreDeclaration
Swift
final public class SKEntity : SKBaseEntity, SKFinalSubclass
-
Represents an annotation for the token of source text.
It refers to the text via
See moreoffset + length
entries. This includes syntactic annotations (e.g. keywords) and semantic ones. The semantic ones include the name and Unified Symbol Resolution (USR) of the referenced symbol.Declaration
Swift
open class SKAnnotation : SKGenericKindEntity<SKAnnotation.Kind>
-
A pre-order (NLR) depth-first search (DFS) traversing iterator.
See moreDeclaration
Swift
open class SKPreOrderDFSIterator<Child> : IteratorProtocol where Child : SKSequence
-
Undocumented
Declaration
Swift
open class SKBaseResponse : SKGenericResponse<SKSubstructure>
-
Undocumented
See moreDeclaration
Swift
open class SKGenericResponse<Substructure> : NSObject, Codable, JSONDebugStringConvertible where Substructure : SKBaseSubstructure
-
Undocumented
See moreDeclaration
Swift
open class SKByteRange : Codable, Equatable
-
Undocumented
See moreDeclaration
Swift
open class SKGenericKindEntity<Kind> : SKByteRange where Kind : Equatable
-
Represents a SourceKit source text response.
See moreDeclaration
Swift
open class SKSourceTextResponse : Codable
-
Undocumented
See moreDeclaration
Swift
open class SKChildren<Child> : Sequence where Child : SKSequence
-
Undocumented
See moreDeclaration
Swift
open class SKAttribute : SKGenericKindEntity<SKAttribute.Kind>
-
Undocumented
See moreDeclaration
Swift
open class SKElement : SKGenericKindEntity<SKElement.Kind>
-
Represents the structure of a symbol.
Depending on the request, the structure may contain syntactic and semantic information.
Subclassing
Fancy your own subclass? No problem.
See morefinal class BetterSubstructureSubclass: SKBaseSubstructure, SKFinalSubclass { var iAmAnImportantProperty: String = "🚶♂️" public override func decodeChildren(from container: DecodingContainer) throws -> [SKBaseSubstructure]? { return try decodeChildren(BetterSubstructureSubclass.self, from: container) } /// The default iterator for `SKChildren` does a pre-order (NLR) depth-first search (DFS) traversal; however, if you want something else, for instance: class FunctionSubstructureIterator<Substructure: BetterSubstructureSubclass>: SKPreOrderDFSIterator<Substructure> { override func next() -> Substructure? { guard let nextSubstructure = super.next() else { return nil } if nextSubstructure.isFunction { return nextSubstructure } else { return next() } } } override class func iteratorClass<Substructure: BetterSubstructureSubclass>() -> SKPreOrderDFSIterator<Substructure>.Type { return FunctionSubstructureIterator.self } }
Declaration
Swift
open class SKBaseSubstructure : NSObject, SKSequence
-
Represents the default substructure returned by some requests.
See moreDeclaration
Swift
final public class SKSubstructure : SKBaseSubstructure, SKFinalSubclass
-
Represents a SourceKit code completion request that provides code completion suggestions.
See moreDeclaration
Swift
open class SKCodeCompletion : Codable
-
Represents a SourceKit code completion session, which can be filtered using update requests.
See moreDeclaration
Swift
open class SKCodeCompletionSession : NSObject
-
A SourceKit doc info request.
Declaration
Swift
open class SKDocInfo : SKGenericDocInfo<SKEntity>
-
A generic SourceKit doc info request.
See moreDeclaration
Swift
open class SKGenericDocInfo<Entity> : NSObject, Codable where Entity : SKBaseEntity
-
Represents a SourceKit editor open request for a Swift file.
Declaration
Swift
open class SKEditorOpen : SKGenericEditorOpen<SKSubstructure>
-
Represents a generic SourceKit editor open request for a Swift file.
See moreDeclaration
Swift
open class SKGenericEditorOpen<Substructure> : SKGenericResponse<Substructure> where Substructure : SKBaseSubstructure
-
Represents a generic SourceKitten documentation request for a given module.
See moreDeclaration
Swift
open class SKGenericModule<S, T> where S : SKBaseSubstructure, T : SKGenericSwiftDocs<S>
-
Represents a SourceKitten documentation request for a given module.
Declaration
Swift
open class SKModule : SKGenericModule<SKSubstructure, SKSwiftDocs>
-
Represents a SourceKit Markup parsing request.
See moreDeclaration
Swift
open class SKConvertMarkupToXML : SKSourceTextResponse
-
Represents a SourceKit cursor info request.
See moreDeclaration
Swift
open class SKCursorInfo : Codable
-
Represents a SourceKit editor text extraction request.
See moreDeclaration
Swift
open class SKEditorExtractTextFromComment : SKSourceTextResponse
-
Represents a Swift file’s syntax information.
See moreDeclaration
Swift
open class SKSyntaxMap : Codable
-
Represents a SourceKit YAML request.
See moreDeclaration
Swift
open class SKYAMLRequest<Response> where Response : Decodable
-
Represents a generic SourceKitten Swift Documentation request for a Swift file.
See moreDeclaration
Swift
open class SKGenericSwiftDocs<Substructure> : SKGenericResponse<Substructure> where Substructure : SKBaseSubstructure
-
Represents a SourceKitten Swift Documentation request for a Swift file.
Declaration
Swift
open class SKSwiftDocs : SKGenericSwiftDocs<SKSubstructure>
-
Undocumented
See moreDeclaration
Swift
open class SylvesterInterface