WrappedEnumCase

class WrappedEnumCase : Modifiable

Wraps the EnumCase of Sourcery

  • Undocumented

    Declaration

    Swift

    internal init(
        name: String,
        rawValue: String? = nil,
        hasAssociatedValue: Bool,
        associatedValues: [WrappedAssociatedValue]
    )
  • Undocumented

    Declaration

    Swift

    convenience init(from: EnumCase)
  • name of case

    Declaration

    Swift

    var name: String
  • raw value of case

    Declaration

    Swift

    var rawValue: String?
  • true if case has an associated value

    Declaration

    Swift

    var hasAssociatedValue: Bool
  • list of associated values

    Declaration

    Swift

    var associatedValues: [WrappedAssociatedValue]
  • string representation of annotation (varies for external/internal enum types)

    Declaration

    Swift

    var annotationString: String?
  • id

    Declaration

    Swift

    var id: String { get }
  • Declaration

    Swift

    var modified: Bool
  • Declaration

    Swift

    var annotation: Annotation?
  • Declaration

    Swift

    func modify(change: Change)
  • from() string for error enum

    Declaration

    Swift

    lazy var errorFrom: () -> String { get set }
  • declaration string for error enum

    Declaration

    Swift

    lazy var errorCase: () -> String { get set }
  • declaration string for default enums

    Declaration

    Swift

    lazy var defaultCase: () -> String { get set }
  • to() string for an OfType internal enum

    Declaration

    Swift

    lazy var ofTo: (_ definedIn: String) -> String { get set }
  • from() string for an OfType internal enum

    Declaration

    Swift

    lazy var ofFrom: () -> String { get set }
  • decoding string for an OfType internal enum

    Declaration

    Swift

    lazy var ofDecoding: (_ definedIn: String) -> String { get set }
  • encoding string for an OfType internal enum

    Declaration

    Swift

    lazy var ofEncoding: () -> String { get set }
  • returns the code type of an error enum case

    Declaration

    Swift

    var codeType: String { get }
  • returns the error type of an error enum case

    Declaration

    Swift

    var errorTypeFrom: String { get }
  • Declaration string for ofType enum case

    Declaration

    Swift

    var ofCase: String { get }