Name
public struct Name : Hashable, Codable, Sendable
extension Name: CustomStringConvertible
extension Name: ExpressibleByStringLiteral
An unqualified name denoting an entity.
-
The stem identifier of the referred entity.
Declaration
Swift
public let stem: Identifier -
The argument labels of the referred entity, given that it is a function.
Declaration
Swift
public let labels: [String?] -
The operator notation of the referred entity, given that it is an operator.
Declaration
Swift
public let notation: OperatorNotation? -
The method introducer of the referred entity, given that it is a method implementation.
The introducer, if any, is incorporated during parsing, after the original
Nameis created.Declaration
Swift
public let introducer: AccessEffect? -
Creates an instance with the given properties.
Declaration
Swift
public init( stem: Identifier, labels: [String?] = [], notation: OperatorNotation? = nil, introducer: AccessEffect? = nil ) -
Returns
selfappendingxornilifselfalready has an introducer.Declaration
Swift
public func appending(_ x: AccessEffect) -> Name? -
Returns
selfsans access effect.Declaration
Swift
public func removingIntroducer() -> Name -
Returns a textual description of
labels.Declaration
Swift
public static func describe<S>(labels: S) -> String where S : Sequence, S.Element == String? -
Declaration
Swift
public var description: String { get } -
Declaration
Swift
public init(stringLiteral value: StringLiteralType)
-
Returns
selfwithnewIntroducerincorporated into its value.Precondition
selfhas no introducer.`Declaration
Swift
func introduced(by newIntroducer: AccessEffect) -> Name
View on GitHub