docs/Classes/MethodParameter.html
@objcMembers
public class MethodParameter : NSObject, SourceryModel, Typed, Annotated, Diffable
extension MethodParameter: NSCoding
Describes method parameter
`
argumentLabel
`
Parameter external name
Swift
public var argumentLabel: String?
`
name
`
Parameter internal name
Swift
public let name: String
`
typeName
`
Parameter type name
Swift
public let typeName: TypeName
`
inout
`
Parameter flag whether it’s inout or not
Swift
public let `inout`: Bool
`
isVariadic
`
Is this variadic parameter?
Swift
public let isVariadic: Bool
`
type
`
Parameter type, if known
Swift
public var type: Type?
`
typeAttributes
`
Parameter type attributes, i.e. @escaping
Swift
public var typeAttributes: AttributeList { get }
`
defaultValue
`
Method parameter default value expression
Swift
public var defaultValue: String?
`
annotations
`
Annotations, that were created with // sourcery: annotation1, other = “annotation value”, alterantive = 2
Swift
public var annotations: Annotations
`
index
`
Method parameter index in the argument list
Swift
public var index: Int
`
asSource
`
Swift
public var asSource: String { get }
`
diffAgainst(_:)
`
Swift
public func diffAgainst(_ object: Any?) -> DiffableResult
`
isOptional
`
Whether type is optional. Shorthand for typeName.isOptional
Swift
public var isOptional: Bool { get }
`
isImplicitlyUnwrappedOptional
`
Whether type is implicitly unwrapped optional. Shorthand for typeName.isImplicitlyUnwrappedOptional
Swift
public var isImplicitlyUnwrappedOptional: Bool { get }
`
unwrappedTypeName
`
Type name without attributes and optional type information. Shorthand for typeName.unwrappedTypeName
Swift
public var unwrappedTypeName: String { get }
`
actualTypeName
`
Actual type name if declaration uses typealias, otherwise just a typeName. Shorthand for typeName.actualTypeName
Swift
public var actualTypeName: TypeName? { get }
`
isTuple
`
Whether type is a tuple. Shorthand for typeName.isTuple
Swift
public var isTuple: Bool { get }
`
isClosure
`
Whether type is a closure. Shorthand for typeName.isClosure
Swift
public var isClosure: Bool { get }
`
isArray
`
Whether type is an array. Shorthand for typeName.isArray
Swift
public var isArray: Bool { get }
`
isSet
`
Whether type is a set. Shorthand for typeName.isSet
Swift
public var isSet: Bool { get }
`
isDictionary
`
Whether type is a dictionary. Shorthand for typeName.isDictionary
Swift
public var isDictionary: Bool { get }
Copyright © 2016-2021 Pixle. All rights reserved.
Generated by jazzy ♪♫ v0.14.0, a Realm project.