TextOutputStyle
public struct TextOutputStyle : Sendable
Style transforms applied to the raw text of different parts of a diagnostic.
-
How the site is rendered in this style.
Declaration
Swift
fileprivate let sourceRange: String.ANSIStyle -
How a “note:” label is rendered in this style.
Declaration
Swift
fileprivate let noteLabel: String.ANSIStyle -
How a “warning:” label is rendered in this style.
Declaration
Swift
fileprivate let warningLabel: String.ANSIStyle -
How an “error:” label is rendered in this style.
Declaration
Swift
fileprivate let errorLabel: String.ANSIStyle -
How a diagnostic message is rendered in this style.
Declaration
Swift
fileprivate let message: String.ANSIStyle -
How a label for diagnostic level
lis rendered in this style.Declaration
Swift
fileprivate subscript(l: Diagnostic.Level) -> String.ANSIStyle { get } -
The identity style; applies no changes to text.
Declaration
Swift
public static let unstyled: Diagnostic.TextOutputStyle -
The default style with colors and font weights.
Declaration
Swift
public static let styled: Diagnostic.TextOutputStyle
View on GitHub