ClosureParameter

@objcMembers
public final class ClosureParameter : NSObject, SourceryModel, Typed, Annotated
  • Parameter external name

    Declaration

    Swift

    public var argumentLabel: String?
  • Parameter internal name

    Declaration

    Swift

    public let name: String?
  • Parameter type name

    Declaration

    Swift

    public let typeName: TypeName
  • Parameter flag whether it’s inout or not

    Declaration

    Swift

    public let `inout`: Bool
  • Parameter type, if known

    Declaration

    Swift

    public var type: Type?
  • Parameter type attributes, i.e. @escaping

    Declaration

    Swift

    public var typeAttributes: AttributeList { get }
  • Method parameter default value expression

    Declaration

    Swift

    public var defaultValue: String?
  • Annotations, that were created with // sourcery: annotation1, other = “annotation value”, alterantive = 2

    Declaration

    Swift

    public var annotations: Annotations
  • Declaration

    Swift

    public var asSource: String { get }