MethodParameter

@objcMembers
public class MethodParameter : NSObject, SourceryModel, Typed, Annotated

Describes method parameter

  • 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
  • Is this variadic parameter?

    Declaration

    Swift

    public let isVariadic: 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