AssociatedValue
Defines enum case associated value
-
Associated value local name. This is a name to be used to construct enum case value
Declaration
Swift
public let localName: String? -
Associated value external name. This is a name to be used to access value in value-bindig
Declaration
Swift
public let externalName: String? -
Associated value type name
Declaration
Swift
public let typeName: TypeName -
Associated value type, if known
Declaration
Swift
public var type: Type? -
Associated value default value
Declaration
Swift
public let defaultValue: String? -
Annotations, that were created with // sourcery: annotation1, other = “annotation value”, alterantive = 2
Declaration
Swift
public var annotations: Annotations -
Declaration
Swift
public func diffAgainst(_ object: Any?) -> DiffableResult -
Whether type is optional. Shorthand for
typeName.isOptionalDeclaration
Swift
public var isOptional: Bool { get } -
Whether type is implicitly unwrapped optional. Shorthand for
typeName.isImplicitlyUnwrappedOptionalDeclaration
Swift
public var isImplicitlyUnwrappedOptional: Bool { get } -
Type name without attributes and optional type information. Shorthand for
typeName.unwrappedTypeNameDeclaration
Swift
public var unwrappedTypeName: String { get } -
Whether type is a tuple. Shorthand for
typeName.isTupleDeclaration
Swift
public var isTuple: Bool { get } -
Whether type is a closure. Shorthand for
typeName.isClosureDeclaration
Swift
public var isClosure: Bool { get } -
Whether type is an array. Shorthand for
typeName.isArrayDeclaration
Swift
public var isArray: Bool { get } -
Whether type is a set. Shorthand for
typeName.isSetDeclaration
Swift
public var isSet: Bool { get } -
Whether type is a dictionary. Shorthand for
typeName.isDictionaryDeclaration
Swift
public var isDictionary: Bool { get }
View on GitHub
AssociatedValue Class Reference