Subscript
@objcMembers public final class Subscript: NSObject, SourceryModel, Annotated, Definition
Describes subscript
-
Method parameters
Declaration
Swift
public var parameters: [MethodParameter] -
Return value type name used in declaration, including generic constraints, i.e.
where T: EquatableDeclaration
Swift
public var returnTypeName: TypeName -
Actual return value type name if declaration uses typealias, otherwise just a
returnTypeNameDeclaration
Swift
public var actualReturnTypeName: TypeName -
Actual return value type, if known
Declaration
Swift
public var returnType: Type? -
Whether return value type is optional
Declaration
Swift
public var isOptionalReturnType: Bool -
Whether return value type is implicitly unwrapped optional
Declaration
Swift
public var isImplicitlyUnwrappedOptionalReturnType: Bool -
Return value type name without attributes and optional type information
Declaration
Swift
public var unwrappedReturnTypeName: String -
Whether method is final
Declaration
Swift
public var isFinal: Bool -
Variable read access level, i.e.
internal,private,fileprivate,public,openDeclaration
Swift
public let readAccess: String -
Variable write access, i.e.
internal,private,fileprivate,public,open. For immutable variables this value is empty stringDeclaration
Swift
public var writeAccess: String -
Whether variable is mutable or not
Declaration
Swift
public var isMutable: Bool -
Annotations, that were created with // sourcery: annotation1, other =
annotation value
, alterantive = 2Declaration
Swift
public let annotations: Annotations -
Reference to type name where the method is defined, nil if defined outside of any
enum,struct,classetcDeclaration
Swift
public let definedInTypeName: TypeName? -
Reference to actual type name where the method is defined if declaration uses typealias, otherwise just a
definedInTypeNameDeclaration
Swift
public var actualDefinedInTypeName: TypeName? -
Reference to actual type where the object is defined, nil if defined outside of any
enum,struct,classetc or type is unknownDeclaration
Swift
public var definedInType: Type? -
Method attributes, i.e.
@discardableResultDeclaration
Swift
public let attributes: AttributeList -
Method modifiers, i.e.
privateDeclaration
Swift
public let modifiers: [SourceryModifier]
View on GitHub
Subscript Class Reference