Method
Describes method
-
-
Full method name, including generic constraints, i.e.
foo<T>(bar: T)
-
Method name including arguments names, i.e.
foo(bar:)
-
Method name without arguments names and parenthesis, i.e.
foo<T>
-
Method name without arguments names, parenthesis and generic types, i.e.
foo
(can be used to generate code for method call) -
Method parameters
-
Return value type name used in declaration, including generic constraints, i.e.
where T: Equatable
-
Actual return value type name if declaration uses typealias, otherwise just a
returnTypeName
-
Actual return value type, if known
-
Whether return value type is optional
-
Whether return value type is implicitly unwrapped optional
-
Return value type name without attributes and optional type information
-
Whether method is async method
-
Whether method throws
-
Whether method rethrows
-
Method access level, i.e.
internal
,private
,fileprivate
,public
,open
-
Whether method is a static method
-
Whether method is a class method
-
Whether method is an initializer
-
Whether method is an deinitializer
-
Whether method is a failable initializer
-
Whether method is a convenience initializer
-
Whether method is required
-
Whether method is final
-
Whether method is mutating
-
Whether method is generic
-
Whether method is optional (in an Objective-C protocol)
-
Whether method is nonisolated (this modifier only applies to actor methods)
-
Annotations, that were created with // sourcery: annotation1, other = “annotation value”, alterantive = 2
-
-
Reference to type name where the method is defined, nil if defined outside of any
enum
,struct
,class
etc -
Reference to actual type name where the method is defined if declaration uses typealias, otherwise just a
definedInTypeName
-
Reference to actual type where the object is defined, nil if defined outside of any
enum
,struct
,class
etc or type is unknown -
Method attributes, i.e.
@discardableResult
-
Method modifiers, i.e.
private
-
-