SubscriptType
public struct SubscriptType : TypeProtocol
extension SubscriptType: CallableType
extension SubscriptType: CustomStringConvertible
The overarching type of a subscript declaration.
-
Indicates whether the subscript denotes a computed property.
Declaration
Swift
public let isProperty: Bool -
The capabilities of the subscript.
Declaration
Swift
public let capabilities: AccessEffectSet -
The environment of the subscript implementation.
Declaration
Swift
public let environment: AnyType -
The parameter labels and types of the subscript.
Declaration
Swift
public let inputs: [CallableTypeParameter] -
The type of the value projected by the subscript.
Declaration
Swift
public let output: AnyType -
Declaration
Swift
public let flags: ValueFlags -
Creates an instance with the given properties.
Declaration
Swift
public init( isProperty: Bool, capabilities: AccessEffectSet, environment: AnyType = .void, inputs: [CallableTypeParameter], output: AnyType ) -
Accesses the individual elements of the subscript’s environment.
Declaration
Swift
public var captures: [TupleType.Element] { get } -
Returns the type of the thin function corresponding to
self.Declaration
Swift
public var pure: ArrowType { get } -
Declaration
Swift
public func transformParts<M>( mutating m: inout M, _ transformer: (inout M, AnyType) -> TypeTransformAction ) -> Self -
Declaration
Swift
public var isArrow: Bool { get } -
Declaration
Swift
public var description: String { get }
View on GitHub