WrappedMethodParameter
class WrappedMethodParameter : Modifiable
Wrapped parameter of sourcery MethodParameter
-
Declaration
Swift
var annotation: Annotation?
-
Declaration
Swift
var id: String { get }
-
Declaration
Swift
var modified: Bool
-
Declaration
Swift
func modify(change: Change)
-
Undocumented
Declaration
Swift
internal init( name: String, isOptional: Bool, typeName: WrappedTypeName, actualTypeName: WrappedTypeName?, defaultValue: String? )
-
Undocumented
Declaration
Swift
convenience init(from: MethodParameter)
-
name of parameter
Declaration
Swift
var name: String
-
true if parameter is optional
Declaration
Swift
var isOptional: Bool
-
type of parameter
Declaration
Swift
var typeName: WrappedTypeName
-
actual type of parameter (if type alias)
Declaration
Swift
var actualTypeName: WrappedTypeName?
-
default value of parameter if available
Declaration
Swift
var defaultValue: String?
-
true if default value is set
Declaration
Swift
var hasDefaultValue: Bool { get }
-
String representation of parameter in method signature
Declaration
Swift
lazy var signatureString: () -> String { get set }
-
String for parameter conversion
Declaration
Swift
lazy var paramConversionString: () -> String { get set }
-
String representation of parameter in calling the api method
Declaration
Swift
lazy var endpointCall: () -> String { get set }
-
handle added a method parameter
Declaration
Swift
func handleAddChange(_ change: AddChange)
Parameters
change
AddChange affecting this parameter
-
handle renaming a method parameter
Declaration
Swift
func handleRenameChange(_ change: RenameChange)
Parameters
change
RenameChange affecting this parameter
-
handle deleting a method parameter
Declaration
Swift
func handleDeleteChange(_ change: DeleteChange)
Parameters
change
DeleteChange affecting this parameter
-
handle replacing a method parameter
Declaration
Swift
func handleReplacementChange(_ change: ReplaceChange)
Parameters
change
ReplaceChange affecting this parameter