SourceRepresentable

public struct SourceRepresentable<Part>
extension SourceRepresentable: Sendable where Part: Sendable
extension SourceRepresentable: Equatable where Part: Equatable
extension SourceRepresentable: Hashable where Part: Hashable
extension SourceRepresentable: Codable where Part: Codable

A part of an AST node that may have a textual representation in source code.

Note

The site is a non-salient annotation. It does not contribute to a node’s value.

Available where Part == Name

  • Returns self with introducer incorporated into its value.

    Precondition

    self has no introducer.`

    Declaration

    Swift

    func introduced(by introducer: SourceRepresentable<AccessEffect>) -> SourceRepresentable<Part>

Available where Part: Equatable

Available where Part: Hashable

Available where Part: Codable