SKGenericEditorOpen

open class SKGenericEditorOpen<Substructure> : SKGenericResponse<Substructure> where Substructure : SKBaseSubstructure

Represents a generic SourceKit editor open request for a Swift file.

  • Creates a new synchronous SourceKit editor open 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) throws

    Parameters

    file

    The source file.

  • Creates a new synchronous SourceKit editor open 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) throws

    Parameters

    filePath

    The absolute file path to the source file.

  • Undocumented

    Declaration

    Swift

    required public init(from decoder: Decoder) throws