CaseObj - XcodeExtKit/XcodeExtBase GitHub Wiki
CaseObj
enum case which can be repr-d in 3 ways: rawValue, nested value or just case Supported formats: case cat, case cat = "", case .cat(Animal),
public struct CaseObj: SwiftT
Inheritance
SwiftT
Initializers
init(name:rawValue:)
if rawValue is nil - make case without rawvalue
init(name: Str, rawValue: Str? = nil)
init(name:_:)
init(name: Str, _ nestedType: TypeName)
init(name:nestedType:optional:)
init(name: Str, nestedType: Str, optional: Bool = false)
Properties
name
case name
var name: Str
rawValue
var rawValue: Str?
nestedType
var nestedType: TypeName?
hasRawValue
var hasRawValue: Bool
hasNestedType
var hasNestedType: Bool
switchStr
case .cat(let a), .case .cat
var switchStr: Str
typeDeclStr
case cat(Cat), case cat
var typeDeclStr: Str
str
case cat(Cat), case cat
var str: Str