SKCodeCompletionItem

public struct SKCodeCompletionItem

Undocumented

  • The UID for the declaration kind (function, class, etc.).

    Declaration

    Swift

    public let kind: Kind
  • The name of the word being completed.

    Declaration

    Swift

    public let name: String
  • The text to be inserted in source.

    Declaration

    Swift

    public let sourceText: String
  • The text to be displayed in code-completion window.

    Declaration

    Swift

    public let description: String
  • The text describing the type of the item.

    Declaration

    Swift

    public let typeName: String
  • The brief documentation of the item.

    Declaration

    Swift

    public let briefDocumentation: String?
  • The semantic context of the code completion item.

    Declaration

    Swift

    public let context: Context
  • The number of bytes to the left of the cursor that should be erased before inserting this completion item.

    Declaration

    Swift

    public let numberOfBytesToErase: Int
  • Whether the item is to be avoided (e.g. because the declaration is unavailable).

    Declaration

    Swift

    public let isNotRecommended: Bool
  • The substructure that represents ranges of structural elements in the item description, such as the parameters of a function.

    Only present for SKCodeCompletionSession requests.

    Declaration

    Swift

    public let substructure: Substructure?
  • The associated Unified Symbol Resolutions (USRs) of the item.

    Declaration

    Swift

    public let associatedUSRs: String?
  • The name of the module the item belongs to.

    Declaration

    Swift

    public let moduleName: String?
  • Declaration

    Swift

    public init(from decoder: Decoder) throws