ClosureType
@objcMembers public final class ClosureType: NSObject, SourceryModel
Describes closure type
-
Type name used in declaration with stripped whitespaces and new lines
Declaration
Swift
public let name: String
-
List of closure parameters
Declaration
Swift
public let parameters: [MethodParameter]
-
Return value type name
Declaration
Swift
public let returnTypeName: TypeName
-
Actual return value type name if declaration uses typealias, otherwise just a
returnTypeName
Declaration
Swift
public var actualReturnTypeName: TypeName
-
Actual return value type, if known
Declaration
Swift
public var returnType: Type?
-
Whether return value type is optional
Declaration
Swift
public var isOptionalReturnType: Bool
-
Whether return value type is implicitly unwrapped optional
Declaration
Swift
public var isImplicitlyUnwrappedOptionalReturnType: Bool
-
Return value type name without attributes and optional type information
Declaration
Swift
public var unwrappedReturnTypeName: String
-
Whether closure throws
Declaration
Swift
public let `throws`: Bool