init(_:)

    Initialize a new printer using the existing state from another printer.

    CodePrinter.swift:82
    init(_ parent: CodePrinter)

    Parameters

    parent

    The other printer to copy the configuration/state from.

    This can be useful to use with generation subtasks, so see if they actually generate something (via isEmpty) to then optionally add it back into the parent with whatever surounding content.

    This is most useful to then use append to add the new content.

    Other members in extension

    Type members

    Instance members