Diagnostic

extension Diagnostic
  • Writes self into output using the given output style.

    See more

    Declaration

    Swift

    func render<Output>(into output: inout Output, style: TextOutputStyle) where Output : TextOutputStream
  • Writes the text of the source line and column indicator (the “window”) into output.

    Declaration

    Swift

    private func renderWindow<Output>(into output: inout Output) where Output : TextOutputStream
  • Style transforms applied to the raw text of different parts of a diagnostic.

    See more

    Declaration

    Swift

    public struct TextOutputStyle : Sendable