Fragment

public protocol Fragment : CodeRepresentable

Represents a line or block of Swift code

  • Generates a String representation of the Swift code represented by this Fragment

    Declaration

    Swift

    @inlinable
    func renderContent() -> String
  • asCode Extension method

    Declaration

    Swift

    @inlinable
    var asCode: Code { get }