SubscriptImpl
public struct SubscriptImpl : BundleImpl, LexicalScope
The declaration of a subscript implementation.
Instances of this type represent individual variant inside a subscript declaration.
-
Declaration
Swift
public static let constructDescription: String -
Declaration
Swift
public static let isCallable: Bool -
Declaration
Swift
public let site: SourceRange -
The introducer of the subscript.
Declaration
Swift
public let introducer: SourceRepresentable<AccessEffect> -
The declaration of the implicit receiver parameter, if any.
Declaration
Swift
public let receiver: ParameterDecl.ID? -
The body of the subscript, if any.
Declaration
Swift
public let body: FunctionBody? -
Creates an instance with the given properties.
Declaration
Swift
public init( introducer: SourceRepresentable<AccessEffect>, receiver: ParameterDecl.ID?, body: FunctionBody?, site: SourceRange ) -
trueiffselfis a definition of the entity that it declares.Declaration
Swift
public var isDefinition: Bool { get }
View on GitHub