SingleLineFragment

public struct SingleLineFragment : Fragment

SingleLineFragment represents a single line of Swift code

  • The content of this SingleLineFragment

    Declaration

    Swift

    public let content: String
  • A SingleLineFragment tepresents a single line of Swift code

    Declaration

    Swift

    @inlinable
    public init(_ content: String)

    Parameters

    content

    The textual representation of the Swift code this Fragment represents.

  • The SingleLineFragment as a String. It is the content appended with a newline.

    Declaration

    Swift

    @inlinable
    public func renderContent() -> String