docs/Classes/ClosureType.html
@objcMembers
public final class ClosureType : NSObject, SourceryModel, Diffable
extension ClosureType: NSCoding
Describes closure type
`
name
`
Type name used in declaration with stripped whitespaces and new lines
Swift
public let name: String
`
parameters
`
List of closure parameters
Swift
public let parameters: [ClosureParameter]
`
returnTypeName
`
Return value type name
Swift
public let returnTypeName: TypeName
`
actualReturnTypeName
`
Actual return value type name if declaration uses typealias, otherwise just a returnTypeName
Swift
public var actualReturnTypeName: TypeName { get }
`
returnType
`
Actual return value type, if known
Swift
public var returnType: Type?
`
isOptionalReturnType
`
Whether return value type is optional
Swift
public var isOptionalReturnType: Bool { get }
`
isImplicitlyUnwrappedOptionalReturnType
`
Whether return value type is implicitly unwrapped optional
Swift
public var isImplicitlyUnwrappedOptionalReturnType: Bool { get }
`
unwrappedReturnTypeName
`
Return value type name without attributes and optional type information
Swift
public var unwrappedReturnTypeName: String { get }
`
isAsync
`
Whether method is async method
Swift
public let isAsync: Bool
`
asyncKeyword
`
async keyword
Swift
public let asyncKeyword: String?
`
throws
`
Whether closure throws
Swift
public let `throws`: Bool
`
throwsOrRethrowsKeyword
`
throws or rethrows keyword
Swift
public let throwsOrRethrowsKeyword: String?
`
throwsTypeName
`
Type of thrown error if specified
Swift
public let throwsTypeName: TypeName?
`
asSource
`
Swift
public var asSource: String { get }
`
diffAgainst(_:)
`
Swift
public func diffAgainst(_ object: Any?) -> DiffableResult
Copyright © 2016-2021 Pixle. All rights reserved.
Generated by jazzy ♪♫ v0.14.0, a Realm project.