MethodImpl
public struct MethodImpl : BundleImpl, LexicalScope
The declaration of a method implementation.
Instances of this type represent individual variant inside a method 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 method.
Declaration
Swift
public let introducer: SourceRepresentable<AccessEffect> -
The declaration of the implicit receiver parameter.
Declaration
Swift
public let receiver: ParameterDecl.ID -
The body of the method, 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