docs/Classes/TypeName.html
@objcMembers
public final class TypeName : NSObject, SourceryModelWithoutDescription, LosslessStringConvertible, Diffable
extension TypeName: NSCoding
Describes name of the type used in typed declaration (variable, method parameter or return value etc.)
`
name
`
Type name used in declaration
Swift
public var name: String
`
generic
`
The generics of this TypeName
Swift
public var generic: GenericType?
`
isGeneric
`
Whether this TypeName is generic
Swift
public var isGeneric: Bool { get }
`
isProtocolComposition
`
Whether this TypeName is protocol composition
Swift
public var isProtocolComposition: Bool
`
actualTypeName
`
Actual type name if given type name is a typealias
Swift
public var actualTypeName: TypeName?
`
attributes
`
Type name attributes, i.e. @escaping
Swift
public var attributes: AttributeList
`
modifiers
`
Modifiers, i.e. escaping
Swift
public var modifiers: [SourceryModifier]
`
isOptional
`
Whether type is optional
Swift
public let isOptional: Bool
`
isImplicitlyUnwrappedOptional
`
Whether type is implicitly unwrapped optional
Swift
public let isImplicitlyUnwrappedOptional: Bool
`
unwrappedTypeName
`
Type name without attributes and optional type information
Swift
public var unwrappedTypeName: String
`
isVoid
`
Whether type is void (Void or ())
Swift
public var isVoid: Bool { get }
`
isTuple
`
Whether type is a tuple
Swift
public var isTuple: Bool { get }
`
tuple
`
Tuple type data
Swift
public var tuple: TupleType?
`
isArray
`
Whether type is an array
Swift
public var isArray: Bool { get }
`
array
`
Array type data
Swift
public var array: ArrayType?
`
isDictionary
`
Whether type is a dictionary
Swift
public var isDictionary: Bool { get }
`
dictionary
`
Dictionary type data
Swift
public var dictionary: DictionaryType?
`
isClosure
`
Whether type is a closure
Swift
public var isClosure: Bool { get }
`
closure
`
Closure type data
Swift
public var closure: ClosureType?
`
isSet
`
Whether type is a Set
Swift
public var isSet: Bool { get }
`
set
`
Set type data
Swift
public var set: SetType?
`
isNever
`
Whether type is Never
Swift
public var isNever: Bool { get }
`
asSource
`
Prints typename as it would appear on definition
Swift
public var asSource: String { get }
`
description
`
Swift
public override var description: String { get }
`
diffAgainst(_:)
`
Swift
public func diffAgainst(_ object: Any?) -> DiffableResult
`
hash
`
Swift
public override var hash: Int { get }
`
init(_:)
`
Swift
public convenience init(_ description: String)
`
unknown(description:attributes:)
`
Swift
public static func unknown(description: String?, attributes: AttributeList = [:]) -> TypeName
Copyright © 2016-2021 Pixle. All rights reserved.
Generated by jazzy ♪♫ v0.14.0, a Realm project.