ParameterDecl
public struct ParameterDecl : SingleEntityDecl
A parameter declaration in a function or subscript declaration.
-
Declaration
Swift
public static let constructDescription: String -
Declaration
Swift
public let site: SourceRange -
The label of the parameter.
Declaration
Swift
public let label: SourceRepresentable<Identifier>? -
The identifier of the parameter.
Declaration
Swift
public let identifier: SourceRepresentable<Identifier> -
The type annotation of the declaration, if any.
Declaration
Swift
public let annotation: ParameterTypeExpr.ID? -
The default value of the declaration, if any.
Declaration
Swift
public let defaultValue: AnyExprID? -
trueif arguments to the parameter can be passed implicitly.Declaration
Swift
public let isImplicit: Bool -
Undocumented
Declaration
Swift
public init( label: SourceRepresentable<Identifier>? = nil, identifier: SourceRepresentable<Identifier>, annotation: ParameterTypeExpr.ID? = nil, defaultValue: AnyExprID? = nil, isImplicit: Bool = false, site: SourceRange ) -
Declaration
Swift
public var baseName: String { get }
View on GitHub