EnumCase
@objcMembers
public final class EnumCase : NSObject, SourceryModel, AutoDescription, Annotated, Documented, Diffable
extension EnumCase: NSCoding
Defines enum case
-
Enum case name
Declaration
Swift
public let name: String
-
Enum case raw value, if any
Declaration
Swift
public let rawValue: String?
-
Enum case associated values
Declaration
Swift
public let associatedValues: [AssociatedValue]
-
Enum case annotations
Declaration
Swift
public var annotations: Annotations
-
Declaration
Swift
public var documentation: Documentation
-
Whether enum case is indirect
Declaration
Swift
public let indirect: Bool
-
Whether enum case has associated value
Declaration
Swift
public var hasAssociatedValue: Bool { get }
-
Declaration
Swift
public func diffAgainst(_ object: Any?) -> DiffableResult